diff --git a/build/assets/ClipLoader-1ce39797.js b/build/assets/ClipLoader-2e8a2039.js similarity index 97% rename from build/assets/ClipLoader-1ce39797.js rename to build/assets/ClipLoader-2e8a2039.js index 3e9098fe6..2ba6bdd9e 100644 --- a/build/assets/ClipLoader-1ce39797.js +++ b/build/assets/ClipLoader-2e8a2039.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-f22e6e13.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-6502785b.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-fefb6197.js b/build/assets/DailyMotion-261e157a.js similarity index 95% rename from build/assets/DailyMotion-fefb6197.js rename to build/assets/DailyMotion-261e157a.js index 65e4a66a7..47984cc60 100644 --- a/build/assets/DailyMotion-fefb6197.js +++ b/build/assets/DailyMotion-261e157a.js @@ -1 +1 @@ -import{J as P,r as v}from"./index-f22e6e13.js";import{u as D,p as O}from"./index-9ddac9de.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:g=>a(g)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; +import{J as P,r as v}from"./index-6502785b.js";import{u as D,p as O}from"./index-a40552ce.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:g=>a(g)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/build/assets/Facebook-dc3f1ac8.js b/build/assets/Facebook-d9966750.js similarity index 96% rename from build/assets/Facebook-dc3f1ac8.js rename to build/assets/Facebook-d9966750.js index 0632c080d..a8338f3af 100644 --- a/build/assets/Facebook-dc3f1ac8.js +++ b/build/assets/Facebook-d9966750.js @@ -1 +1 @@ -import{J as _,r as P}from"./index-f22e6e13.js";import{u as g,p as m}from"./index-9ddac9de.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(P),n=g,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; +import{J as _,r as P}from"./index-6502785b.js";import{u as g,p as m}from"./index-a40552ce.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(P),n=g,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; diff --git a/build/assets/FilePlayer-13e3db63.js b/build/assets/FilePlayer-5645f3f0.js similarity index 98% rename from build/assets/FilePlayer-13e3db63.js rename to build/assets/FilePlayer-5645f3f0.js index 9cd6f5afe..5c9abb1e2 100644 --- a/build/assets/FilePlayer-13e3db63.js +++ b/build/assets/FilePlayer-5645f3f0.js @@ -1 +1 @@ -import{J as b,r as _}from"./index-f22e6e13.js";import{u as O,p as A}from"./index-9ddac9de.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{J as b,r as _}from"./index-6502785b.js";import{u as O,p as A}from"./index-a40552ce.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-23fffe9c.js b/build/assets/Kaltura-fabf841f.js similarity index 95% rename from build/assets/Kaltura-23fffe9c.js rename to build/assets/Kaltura-fabf841f.js index d30b9d6c2..28745c89f 100644 --- a/build/assets/Kaltura-23fffe9c.js +++ b/build/assets/Kaltura-fabf841f.js @@ -1 +1 @@ -import{J as y,r as f}from"./index-f22e6e13.js";import{u as _,p as m}from"./index-9ddac9de.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{J as y,r as f}from"./index-6502785b.js";import{u as _,p as m}from"./index-a40552ce.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-0939a087.js b/build/assets/Mixcloud-742af2ad.js similarity index 95% rename from build/assets/Mixcloud-0939a087.js rename to build/assets/Mixcloud-742af2ad.js index d1e88b7ef..d69b104fc 100644 --- a/build/assets/Mixcloud-0939a087.js +++ b/build/assets/Mixcloud-742af2ad.js @@ -1 +1 @@ -import{J as _,r as f}from"./index-f22e6e13.js";import{u as m,p as g}from"./index-9ddac9de.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{J as _,r as f}from"./index-6502785b.js";import{u as m,p as g}from"./index-a40552ce.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-66cc253f.js b/build/assets/Preview-579339c7.js similarity index 97% rename from build/assets/Preview-66cc253f.js rename to build/assets/Preview-579339c7.js index 20157922f..c1ed24ce4 100644 --- a/build/assets/Preview-66cc253f.js +++ b/build/assets/Preview-579339c7.js @@ -1 +1 @@ -import{J as y,r as b}from"./index-f22e6e13.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{J as y,r as b}from"./index-6502785b.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-6d9b0e62.js b/build/assets/Skeleton-e8200c96.js similarity index 97% rename from build/assets/Skeleton-6d9b0e62.js rename to build/assets/Skeleton-e8200c96.js index 971368e93..917c7a1d5 100644 --- a/build/assets/Skeleton-6d9b0e62.js +++ b/build/assets/Skeleton-e8200c96.js @@ -1,4 +1,4 @@ -import{P as x,S as y,bw as b,U as R,y as o,V as S,bx as u,r as _,X as U,L as $,j as M,Y as X,Z as j}from"./index-f22e6e13.js";function A(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function P(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const B=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const E=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return j({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},P,a)},F=b(p||(p=r` +import{P as x,S as y,bw as b,U as R,y as o,V as S,bx as u,r as _,X as U,L as $,j as M,Y as X,Z as j}from"./index-6502785b.js";function A(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function P(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const B=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const E=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return j({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},P,a)},F=b(p||(p=r` 0% { opacity: 1; } diff --git a/build/assets/SoundCloud-7f9276ba.js b/build/assets/SoundCloud-d853b11d.js similarity index 95% rename from build/assets/SoundCloud-7f9276ba.js rename to build/assets/SoundCloud-d853b11d.js index dbc86a33e..9ed2f5a27 100644 --- a/build/assets/SoundCloud-7f9276ba.js +++ b/build/assets/SoundCloud-d853b11d.js @@ -1 +1 @@ -import{J as P,r as g}from"./index-f22e6e13.js";import{u as b,p as v}from"./index-9ddac9de.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{J as P,r as g}from"./index-6502785b.js";import{u as b,p as v}from"./index-a40552ce.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-e2486c11.js b/build/assets/Stack-72c38e89.js similarity index 99% rename from build/assets/Stack-e2486c11.js rename to build/assets/Stack-72c38e89.js index 8406d1fae..218e221ee 100644 --- a/build/assets/Stack-e2486c11.js +++ b/build/assets/Stack-72c38e89.js @@ -1 +1 @@ -import{r as E,a7 as Mt,L as ae,y as T,c4 as Ft,c5 as Wt,c6 as Lt,c7 as Vt,c8 as Nt,bA as Ke,bz as Ae,c9 as Ht,c3 as It,ca as Ut,j as K,cb as Qe,Z as ke,P as Te,S as ht,a1 as et,a2 as tt,U as Be,cc as qt,X as Me,a0 as gt,Y as zt}from"./index-f22e6e13.js";import{U as rt,b1 as Xt,a1 as Yt}from"./index-8304ea06.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"],Zt=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 Jt(e){const{sx:t}=e,r=ae(e,_t),{systemProps:o,otherProps:n}=Zt(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"},Ke({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,Ke({theme:t},c,(i,f)=>e.useFlexGap?{gap:Qe(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Qe(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=Jt(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 K.jsx(a,T({as:h,ownerState:u,ref:f,className:Kt(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 Q(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function V(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function 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];!V(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},{});!V(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 J=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&&V(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Q(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 Le(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function 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((Q(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!V(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&V(e)){var o=q(e);if(o.position==="fixed")return null}var n=Pe(e);for(We(n)&&(n=n.host);V(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 Ve(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return J(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=Ve(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Le(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 Lr(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 Vr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Lr,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=J(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=J(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+=J(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:V(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)):Q(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&&V(e)?ve(e):e;return Q(o)?t.filter(function(n){return Q(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=J(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=J(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?Ve(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case 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(Q(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,L=[M,N].indexOf(S)>=0?"y":"x";R[S]+=k[L]*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,L=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=j?S?H:F:S?N:M;g[L]>y[L]&&(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 Zr={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 Jr(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 Kr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jr};function Qr(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]=Qr(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=Ve(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,L=u==="y"?N:H,D=u==="y"?"height":"width",B=y[u],z=B+m[j],G=B-m[L],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?Le(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ot(),se=X[j],ge=X[L],_=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?J(G,kt):G);y[u]=qe,k[u]=qe-B}if(s){var ze,Tt=u==="x"?M:F,Bt=u==="x"?N:H,Z=y[g],ye=g==="y"?"height":"width",Xe=Z+m[Tt],Ye=Z-m[Bt],Re=[M,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:Z-P[ye]-A[ye]-Ge+R.altAxis,Ze=Re?Z+P[ye]+A[ye]-Ge-R.altAxis:Ye,Je=p&&Re?$r(_e,Z,Ze):ce(p?_e:Xe,Z,p?Ze:Ye);y[g]=Je,k[g]=Je-Z}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)||!V(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=V(t),n=V(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)),V(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function 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=et(w,r),b=E.useRef(null),u=et(b,h),g=E.useRef(u);tt(()=>{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]),tt(()=>{if(!C||!f)return;const L=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})=>{L(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 K.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)?rt(R).body:rt(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return K.jsx(Xt,{disablePortal:s,container:P,children:K.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 K.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 L=Se(j,["Select"])?j.props.input:j;L&&ko(L.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 K.jsx(St.Provider,{value:k,children:K.jsx(Fo,T({as:s,ownerState:O,className:zt(b.root,a),ref:r},w,{children:n}))})}),Xo=Wo,Lo=lr({createStyledComponent:Be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Yo=Lo;export{Xo as F,Uo as P,Yo as S,Ho as a,zo as b,St as c,Jt as e,qo as f,mt as i,Io as u}; +import{r as E,a7 as Mt,L as ae,y as T,c4 as Ft,c5 as Wt,c6 as Lt,c7 as Vt,c8 as Nt,bA as Ke,bz as Ae,c9 as Ht,c3 as It,ca as Ut,j as K,cb as Qe,Z as ke,P as Te,S as ht,a1 as et,a2 as tt,U as Be,cc as qt,X as Me,a0 as gt,Y as zt}from"./index-6502785b.js";import{U as rt,aZ as Xt,a1 as Yt}from"./index-e4d37dbe.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"],Zt=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 Jt(e){const{sx:t}=e,r=ae(e,_t),{systemProps:o,otherProps:n}=Zt(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"},Ke({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,Ke({theme:t},c,(i,f)=>e.useFlexGap?{gap:Qe(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Qe(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=Jt(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 K.jsx(a,T({as:h,ownerState:u,ref:f,className:Kt(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 Q(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function V(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function 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];!V(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},{});!V(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 J=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&&V(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Q(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 Le(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function 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((Q(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!V(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&V(e)){var o=q(e);if(o.position==="fixed")return null}var n=Pe(e);for(We(n)&&(n=n.host);V(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 Ve(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return J(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=Ve(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Le(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 Lr(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 Vr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Lr,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=J(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=J(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+=J(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:V(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)):Q(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&&V(e)?ve(e):e;return Q(o)?t.filter(function(n){return Q(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=J(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=J(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?Ve(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case 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(Q(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,L=[M,N].indexOf(S)>=0?"y":"x";R[S]+=k[L]*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,L=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=j?S?H:F:S?N:M;g[L]>y[L]&&(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 Zr={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 Jr(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 Kr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jr};function Qr(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]=Qr(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=Ve(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,L=u==="y"?N:H,D=u==="y"?"height":"width",B=y[u],z=B+m[j],G=B-m[L],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?Le(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ot(),se=X[j],ge=X[L],_=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?J(G,kt):G);y[u]=qe,k[u]=qe-B}if(s){var ze,Tt=u==="x"?M:F,Bt=u==="x"?N:H,Z=y[g],ye=g==="y"?"height":"width",Xe=Z+m[Tt],Ye=Z-m[Bt],Re=[M,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:Z-P[ye]-A[ye]-Ge+R.altAxis,Ze=Re?Z+P[ye]+A[ye]-Ge-R.altAxis:Ye,Je=p&&Re?$r(_e,Z,Ze):ce(p?_e:Xe,Z,p?Ze:Ye);y[g]=Je,k[g]=Je-Z}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)||!V(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=V(t),n=V(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)),V(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function 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=et(w,r),b=E.useRef(null),u=et(b,h),g=E.useRef(u);tt(()=>{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]),tt(()=>{if(!C||!f)return;const L=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})=>{L(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 K.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)?rt(R).body:rt(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return K.jsx(Xt,{disablePortal:s,container:P,children:K.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 K.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 L=Se(j,["Select"])?j.props.input:j;L&&ko(L.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 K.jsx(St.Provider,{value:k,children:K.jsx(Fo,T({as:s,ownerState:O,className:zt(b.root,a),ref:r},w,{children:n}))})}),Xo=Wo,Lo=lr({createStyledComponent:Be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Yo=Lo;export{Xo as F,Uo as P,Yo as S,Ho as a,zo as b,St as c,Jt as e,qo as f,mt as i,Io as u}; diff --git a/build/assets/Streamable-cd5ce4ab.js b/build/assets/Streamable-95283471.js similarity index 95% rename from build/assets/Streamable-cd5ce4ab.js rename to build/assets/Streamable-95283471.js index 44b8528ab..6092b3a75 100644 --- a/build/assets/Streamable-cd5ce4ab.js +++ b/build/assets/Streamable-95283471.js @@ -1 +1 @@ -import{J as m,r as f}from"./index-f22e6e13.js";import{u as _,p as b}from"./index-9ddac9de.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{J as m,r as f}from"./index-6502785b.js";import{u as _,p as b}from"./index-a40552ce.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-a3278039.js b/build/assets/Tabs-1c82bd38.js similarity index 98% rename from build/assets/Tabs-a3278039.js rename to build/assets/Tabs-1c82bd38.js index 47c68fdf4..6b842a87b 100644 --- a/build/assets/Tabs-a3278039.js +++ b/build/assets/Tabs-1c82bd38.js @@ -1 +1 @@ -import{S as ft,P as pt,U as O,$ as Pt,a0 as Lt,y as b,r as c,X as ht,L as rt,Y as L,j as S,Z as St,a2 as Qt,a6 as Nt,a5 as ut}from"./index-f22e6e13.js";import{Y as $t,W as kt,a1 as lt,U as te}from"./index-8304ea06.js";import{c as Ft}from"./createSvgIcon-9d40ff73.js";let Y;function At(){if(Y)return Y;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),Y="reverse",t.scrollLeft>0?Y="default":(t.scrollLeft=1,t.scrollLeft===0&&(Y="negative")),document.body.removeChild(t),Y}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Lt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Pt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Lt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=a,X=rt(a,re),_=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),D=ne(_),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(D.iconWrapper,u.props.className)}):u,Z=R=>{!I&&y&&y(R,C),x&&x(R)},U=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:Z,onFocus:U,ownerState:_,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=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Qt(()=>{const h=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Pt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Nt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Nt(),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:_={},TabIndicatorProps:D={},TabScrollButtonProps:N={},textColor:Z="primary",value:U,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",J=B?"top":"left",Q=B?"bottom":"right",at=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:Z,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:_.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:X.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:$}),[vt,Xt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Dt]=c.useState(!1),[gt,Ut]=c.useState(!1),[yt,Yt]=c.useState(!1),[Ct,_t]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let i;if(o&&U!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(U)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(B)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Tt=o=>{let l=z.current[K];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{_t({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon: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=i?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:i}=wt();if(!(!i||!l)){if(i[J]l[Q]){const s=l[K]+(i[Q]-l[Q]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Yt(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Dt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{Ut(!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 Zt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const i=l===U;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!vt&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:Z,value:l},et===1&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Jt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Jt,ref:F,role:"tablist",children:Zt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; +import{S as ft,P as pt,U as O,$ as Pt,a0 as Lt,y as b,r as c,X as ht,L as rt,Y as L,j as S,Z as St,a2 as Qt,a6 as Nt,a5 as ut}from"./index-6502785b.js";import{Y as $t,W as kt,a1 as lt,U as te}from"./index-e4d37dbe.js";import{c as Ft}from"./createSvgIcon-6b5253a6.js";let Y;function At(){if(Y)return Y;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),Y="reverse",t.scrollLeft>0?Y="default":(t.scrollLeft=1,t.scrollLeft===0&&(Y="negative")),document.body.removeChild(t),Y}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Lt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Pt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Lt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=a,X=rt(a,re),_=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),D=ne(_),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(D.iconWrapper,u.props.className)}):u,Z=R=>{!I&&y&&y(R,C),x&&x(R)},U=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:Z,onFocus:U,ownerState:_,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=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Qt(()=>{const h=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Pt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Nt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Nt(),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:_={},TabIndicatorProps:D={},TabScrollButtonProps:N={},textColor:Z="primary",value:U,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",J=B?"top":"left",Q=B?"bottom":"right",at=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:Z,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:_.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:X.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:$}),[vt,Xt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Dt]=c.useState(!1),[gt,Ut]=c.useState(!1),[yt,Yt]=c.useState(!1),[Ct,_t]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let i;if(o&&U!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(U)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(B)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Tt=o=>{let l=z.current[K];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{_t({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon: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=i?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:i}=wt();if(!(!i||!l)){if(i[J]l[Q]){const s=l[K]+(i[Q]-l[Q]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Yt(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Dt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{Ut(!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 Zt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const i=l===U;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!vt&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:Z,value:l},et===1&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Jt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Jt,ref:F,role:"tablist",children:Zt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; diff --git a/build/assets/TextareaAutosize-5da8bada.js b/build/assets/TextareaAutosize-a343ed23.js similarity index 97% rename from build/assets/TextareaAutosize-5da8bada.js rename to build/assets/TextareaAutosize-a343ed23.js index 942f1ba75..8bb886fe6 100644 --- a/build/assets/TextareaAutosize-5da8bada.js +++ b/build/assets/TextareaAutosize-a343ed23.js @@ -1,2 +1,2 @@ -import{r as o,L as _,a1 as I,a2 as T,j as v,y as b,a4 as D}from"./index-f22e6e13.js";import{W as F,Y as P}from"./index-8304ea06.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 q=o.forwardRef(function(l,O){const{onChange:R,maxRows:y,minRows:h=1,style:S,value:x}=l,k=_(l,U),{current:A}=o.useRef(x!=null),p=o.useRef(null),L=I(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` +import{r as o,L as _,a1 as I,a2 as T,j as v,y as b,a4 as D}from"./index-6502785b.js";import{W as F,Y as P}from"./index-e4d37dbe.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 q=o.forwardRef(function(l,O){const{onChange:R,maxRows:y,minRows:h=1,style:S,value:x}=l,k=_(l,U),{current:A}=o.useRef(x!=null),p=o.useRef(null),L=I(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` `&&(t.value+=" ");const g=n.boxSizing,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 j=s+(g==="border-box"?w+a:0),B=Math.abs(s-u)<=1;return{outerHeightStyle:j,overflow:B}},[y,h,l.placeholder]),W=(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},C=o.useCallback(()=>{const e=f();M(e)||E(i=>W(i,e))},[f]);T(()=>{const e=()=>{const u=f();M(u)||D.flushSync(()=>{E(d=>W(d,u))})},i=()=>{c.current=0,e()};let n;const t=P(i),g=p.current,w=F(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]),T(()=>{C()}),o.useEffect(()=>{c.current=0},[x]);const N=e=>{c.current=0,A||C(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",b({value:x,onChange:N,ref:L,rows:h,style:b({height:z.outerHeightStyle,overflow:z.overflow?"hidden":void 0},S)},k)),v.jsx("textarea",{"aria-hidden":!0,className:l.className,readOnly:!0,ref:H,tabIndex:-1,style:b({},V.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{q as T}; diff --git a/build/assets/Twitch-aec2ecb5.js b/build/assets/Twitch-08f0d123.js similarity index 95% rename from build/assets/Twitch-aec2ecb5.js rename to build/assets/Twitch-08f0d123.js index bfa203517..7cbe01dcc 100644 --- a/build/assets/Twitch-aec2ecb5.js +++ b/build/assets/Twitch-08f0d123.js @@ -1 +1 @@ -import{J as w,r as D}from"./index-f22e6e13.js";import{u as C,p as N}from"./index-9ddac9de.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:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),J=I({__proto__:null,default:W},[f]);export{J as T}; +import{J as w,r as D}from"./index-6502785b.js";import{u as C,p as N}from"./index-a40552ce.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:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),J=I({__proto__:null,default:W},[f]);export{J as T}; diff --git a/build/assets/Typography-1355ab6c.js b/build/assets/Typography-04aa1062.js similarity index 93% rename from build/assets/Typography-1355ab6c.js rename to build/assets/Typography-04aa1062.js index 8c7c0d5f6..4f149e2d6 100644 --- a/build/assets/Typography-1355ab6c.js +++ b/build/assets/Typography-04aa1062.js @@ -1 +1 @@ -import{P as b,S as B,U as W,a0 as u,y as s,r as C,X as M,L as P,j as R,Y as U,Z as j}from"./index-f22e6e13.js";import{e as L}from"./Stack-e2486c11.js";function N(a){return b("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"],$=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:e,variant:o,classes:p}=a,i={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return j(i,N,p)},E=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"}),e=A(n.color),o=L(s({},n,{color:e})),{align:p="inherit",className:i,component:g,gutterBottom:d=!1,noWrap:f=!1,paragraph:l=!1,variant:h="body1",variantMapping:c=y}=o,x=P(o,_),m=s({},o,{align:p,color:e,className:i,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",T=$(m);return R.jsx(E,s({as:v,ref:r,ownerState:m,className:U(T.root,i)},x))}),V=D;export{V as T}; +import{P as b,S as B,U as W,a0 as u,y as s,r as C,X as M,L as P,j as R,Y as U,Z as j}from"./index-6502785b.js";import{e as L}from"./Stack-72c38e89.js";function N(a){return b("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"],$=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:e,variant:o,classes:p}=a,i={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return j(i,N,p)},E=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"}),e=A(n.color),o=L(s({},n,{color:e})),{align:p="inherit",className:i,component:g,gutterBottom:d=!1,noWrap:f=!1,paragraph:l=!1,variant:h="body1",variantMapping:c=y}=o,x=P(o,_),m=s({},o,{align:p,color:e,className:i,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",T=$(m);return R.jsx(E,s({as:v,ref:r,ownerState:m,className:U(T.root,i)},x))}),V=D;export{V as T}; diff --git a/build/assets/Vidyard-4f6bd9bc.js b/build/assets/Vidyard-9844bf9a.js similarity index 95% rename from build/assets/Vidyard-4f6bd9bc.js rename to build/assets/Vidyard-9844bf9a.js index 7152823d5..557267a76 100644 --- a/build/assets/Vidyard-4f6bd9bc.js +++ b/build/assets/Vidyard-9844bf9a.js @@ -1 +1 @@ -import{J as g,r as v}from"./index-f22e6e13.js";import{u as b,p as O}from"./index-9ddac9de.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{J as g,r as v}from"./index-6502785b.js";import{u as b,p as O}from"./index-a40552ce.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-f6437316.js b/build/assets/Vimeo-243898e0.js similarity index 96% rename from build/assets/Vimeo-f6437316.js rename to build/assets/Vimeo-243898e0.js index af3c559d8..112e73a6a 100644 --- a/build/assets/Vimeo-f6437316.js +++ b/build/assets/Vimeo-243898e0.js @@ -1 +1 @@ -import{J as d,r as f}from"./index-f22e6e13.js";import{u as m,p as _}from"./index-9ddac9de.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{J as d,r as f}from"./index-6502785b.js";import{u as m,p as _}from"./index-a40552ce.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-6dd78255.js b/build/assets/Wistia-29053790.js similarity index 96% rename from build/assets/Wistia-6dd78255.js rename to build/assets/Wistia-29053790.js index f2239f377..59f9bf21f 100644 --- a/build/assets/Wistia-6dd78255.js +++ b/build/assets/Wistia-29053790.js @@ -1 +1 @@ -import{J as m,r as g}from"./index-f22e6e13.js";import{u as v,p as w}from"./index-9ddac9de.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{J as m,r as g}from"./index-6502785b.js";import{u as v,p as w}from"./index-a40552ce.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-000135bc.js b/build/assets/YouTube-a514479d.js similarity index 97% rename from build/assets/YouTube-000135bc.js rename to build/assets/YouTube-a514479d.js index ef78ef841..d262fd4ca 100644 --- a/build/assets/YouTube-000135bc.js +++ b/build/assets/YouTube-a514479d.js @@ -1 +1 @@ -import{J as U,r as I}from"./index-f22e6e13.js";import{u as L,p as Y}from"./index-9ddac9de.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_-]+)\/?/,J=/youtube-nocookie\.com/,Q="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:J.test(e)?Q: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 Z=U(S),W=k({__proto__:null,default:Z},[S]);export{W as Y}; +import{J as U,r as I}from"./index-6502785b.js";import{u as L,p as Y}from"./index-a40552ce.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_-]+)\/?/,J=/youtube-nocookie\.com/,Q="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:J.test(e)?Q: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 Z=U(S),W=k({__proto__:null,default:Z},[S]);export{W as Y}; diff --git a/build/assets/constants-9dc70933.js b/build/assets/constants-2ca2bfc7.js similarity index 80% rename from build/assets/constants-9dc70933.js rename to build/assets/constants-2ca2bfc7.js index e306d7a0f..cb366b21b 100644 --- a/build/assets/constants-9dc70933.js +++ b/build/assets/constants-2ca2bfc7.js @@ -1,4 +1,4 @@ -import{s,b0 as t,a_ as a,a$ as o,b1 as n}from"./index-f22e6e13.js";import{e as c}from"./index-8304ea06.js";const i={[t]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},r="Sources Table",E="Queued Sources",I="Topics",S="View Content",u="date",p="edge_count",_="alphabetically",l="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",b=s(c)` +import{s,b0 as t,a_ as a,a$ as o,b1 as n}from"./index-6502785b.js";import{f as c}from"./index-e4d37dbe.js";const i={[t]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},r="Sources Table",E="Queued Sources",I="Topics",S="View Content",u="date",p="edge_count",_="alphabetically",l="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",b=s(c)` && { vertical-align: middle; margin: 5px 0 0 4px; diff --git a/build/assets/createSvgIcon-9d40ff73.js b/build/assets/createSvgIcon-6b5253a6.js similarity index 97% rename from build/assets/createSvgIcon-9d40ff73.js rename to build/assets/createSvgIcon-6b5253a6.js index fde431d6f..b28aafa0e 100644 --- a/build/assets/createSvgIcon-9d40ff73.js +++ b/build/assets/createSvgIcon-6b5253a6.js @@ -1 +1 @@ -import{P as I,S as C,U as w,a0 as f,r as v,X as R,L as b,y as S,j as g,Y as j,Z as N}from"./index-f22e6e13.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=S({},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 g.jsxs(T,S({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?g.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function E(o,e){function t(i,n){return g.jsx($,S({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{E as c}; +import{P as I,S as C,U as w,a0 as f,r as v,X as R,L as b,y as S,j as g,Y as j,Z as N}from"./index-6502785b.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=S({},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 g.jsxs(T,S({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?g.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function E(o,e){function t(i,n){return g.jsx($,S({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{E as c}; diff --git a/build/assets/index-ac87045f.js b/build/assets/index-0544338d.js similarity index 97% rename from build/assets/index-ac87045f.js rename to build/assets/index-0544338d.js index 23af1c83b..0bd54b6d0 100644 --- a/build/assets/index-ac87045f.js +++ b/build/assets/index-0544338d.js @@ -1,4 +1,4 @@ -import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0,C as e0,l as o0,b as Z,d as m0,e as n0,g as c0,f as l0,h as h0,i as p0,m as d0,k as a0,n as i0,o as f0,T as L,B as y0,Q as G0,p as b0,q as u0,t as E0,v as A0,w as B0,x as D0}from"./index-f22e6e13.js";import{P as V0,T as N,u as t0,B as S0,I as g0,N as F0,a as j0,L as w0,O as v0,A as P0}from"./index-8304ea06.js";function _0(i){return i===null?"?":i.toLocaleString("en-US").split(",").join(" ")}const M0=x0` +import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0,C as e0,l as o0,b as Z,d as m0,e as n0,g as c0,f as l0,h as h0,i as p0,m as d0,k as a0,n as i0,o as f0,T as L,B as y0,Q as G0,p as b0,q as u0,t as E0,v as A0,w as B0,x as D0}from"./index-6502785b.js";import{P as V0,T as N,u as t0,B as S0,I as g0,N as F0,a as j0,L as w0,O as v0,A as P0}from"./index-e4d37dbe.js";function _0(i){return i===null?"?":i.toLocaleString("en-US").split(",").join(" ")}const M0=x0` html { box-sizing: border-box; } @@ -50,7 +50,7 @@ import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0, border-collapse: collapse; border-spacing: 0; } -`,C0={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},T0=s0(i=>({...C0,setAskedQuestion:t=>i(e=>({askedQuestions:[...e.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>i(e=>({askedQuestionsAnswers:[...e.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>i({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>i({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>i({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>i({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var e,n,o,G;(e=t==null?void 0:t.instagraph)!=null&&e.edges&&((n=t==null?void 0:t.instagraph)!=null&&n.nodes)&&i({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=t==null?void 0:t.instagraph)==null?void 0:o.edges,nodes:(G=t==null?void 0:t.instagraph)==null?void 0:G.nodes}})}})),I0="0.1.106",z0=x.lazy(()=>h(()=>import("./index-fd6ba406.js"),["assets/index-fd6ba406.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-8304ea06.js","assets/ClipLoader-1ce39797.js","assets/Tabs-a3278039.js","assets/createSvgIcon-9d40ff73.js"]).then(({SettingsModal:i})=>({default:i}))),L0=x.lazy(()=>h(()=>import("./index-3f746971.js"),["assets/index-3f746971.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-8304ea06.js","assets/ClipLoader-1ce39797.js"]).then(({AddContentModal:i})=>({default:i}))),N0=x.lazy(()=>h(()=>import("./index-09c4547e.js"),["assets/index-09c4547e.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-8304ea06.js","assets/ClipLoader-1ce39797.js","assets/index-83069401.js","assets/three.module-9c942ca6.js","assets/index-45d79f14.js","assets/Stack-e2486c11.js","assets/createSvgIcon-9d40ff73.js","assets/TextareaAutosize-5da8bada.js","assets/index-64f1c910.js"]).then(({AddItemModal:i})=>({default:i}))),R0=x.lazy(()=>h(()=>import("./index-d0335f3f.js"),["assets/index-d0335f3f.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-8304ea06.js","assets/constants-9dc70933.js","assets/ClipLoader-1ce39797.js","assets/index-45d79f14.js","assets/Stack-e2486c11.js","assets/createSvgIcon-9d40ff73.js","assets/TextareaAutosize-5da8bada.js","assets/index-91503fb3.js","assets/Typography-1355ab6c.js","assets/Tabs-a3278039.js"]).then(({SourcesTableModal:i})=>({default:i}))),O0=x.lazy(()=>h(()=>import("./index-e9140c21.js"),["assets/index-e9140c21.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-8304ea06.js","assets/Skeleton-6d9b0e62.js","assets/ClipLoader-1ce39797.js"]).then(({EditNodeNameModal:i})=>({default:i}))),$0=x.lazy(()=>h(()=>import("./index-0ae50e4a.js"),["assets/index-0ae50e4a.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-8304ea06.js","assets/Skeleton-6d9b0e62.js","assets/ClipLoader-1ce39797.js"]).then(({RemoveNodeModal:i})=>({default:i}))),q0=x.lazy(()=>h(()=>import("./index-7536c6b1.js"),["assets/index-7536c6b1.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-8304ea06.js","assets/index-45d79f14.js","assets/Stack-e2486c11.js","assets/createSvgIcon-9d40ff73.js","assets/TextareaAutosize-5da8bada.js","assets/constants-9dc70933.js","assets/ClipLoader-1ce39797.js"]).then(({AddNodeEdgeModal:i})=>({default:i}))),Q0=x.lazy(()=>h(()=>import("./index-1d70286e.js"),["assets/index-1d70286e.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-8304ea06.js","assets/index-91503fb3.js","assets/constants-9dc70933.js","assets/index-45d79f14.js","assets/Stack-e2486c11.js","assets/createSvgIcon-9d40ff73.js","assets/TextareaAutosize-5da8bada.js","assets/ClipLoader-1ce39797.js"]).then(({MergeNodeModal:i})=>({default:i}))),U0=x.lazy(()=>h(()=>import("./index-97e22265.js"),["assets/index-97e22265.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-83069401.js","assets/three.module-9c942ca6.js","assets/ClipLoader-1ce39797.js","assets/index-8304ea06.js","assets/index-45d79f14.js","assets/Stack-e2486c11.js","assets/createSvgIcon-9d40ff73.js","assets/TextareaAutosize-5da8bada.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:i})=>({default:i}))),W0=x.lazy(()=>h(()=>import("./index-cf87648e.js"),["assets/index-cf87648e.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-45d79f14.js","assets/index-8304ea06.js","assets/Stack-e2486c11.js","assets/createSvgIcon-9d40ff73.js","assets/TextareaAutosize-5da8bada.js","assets/ClipLoader-1ce39797.js","assets/isPlainObject-212517ba.js","assets/Typography-1355ab6c.js","assets/Tabs-a3278039.js","assets/index-83069401.js","assets/three.module-9c942ca6.js","assets/index-d3e0dfea.js"]).then(({BlueprintModal:i})=>({default:i}))),H0=x.lazy(()=>h(()=>import("./index-d1a251fa.js"),["assets/index-d1a251fa.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-8304ea06.js"]).then(({UserFeedBackModal:i})=>({default:i}))),Y0=x.lazy(()=>h(()=>import("./index-443d99db.js"),["assets/index-443d99db.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-8304ea06.js","assets/index-45d79f14.js","assets/Stack-e2486c11.js","assets/createSvgIcon-9d40ff73.js","assets/TextareaAutosize-5da8bada.js"]).then(({CreateBountyModal:i})=>({default:i}))),J0=x.lazy(()=>h(()=>import("./index-f22e6e13.js").then(i=>i.cd),["assets/index-f22e6e13.js","assets/index-b4d03b7b.css"]).then(({OnboardingModal:i})=>({default:i}))),K0=x.lazy(()=>h(()=>import("./index-a1115826.js"),["assets/index-a1115826.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-8304ea06.js"]).then(({BriefDescription:i})=>({default:i}))),X0=()=>a.jsxs(a.Fragment,{children:[a.jsx(N0,{}),a.jsx(L0,{}),a.jsx(z0,{}),a.jsx(O0,{}),a.jsx($0,{}),a.jsx(R0,{}),a.jsx(q0,{}),a.jsx(U0,{}),a.jsx(W0,{}),a.jsx(Q0,{}),a.jsx(H0,{}),a.jsx(Y0,{}),a.jsx(J0,{}),a.jsx(K0,{})]}),Z0=()=>{const[i,t]=x.useState(null),{runningProjectMessages:e}=P(m=>m),n=m=>{t(m.currentTarget)},o=()=>{t(null)},G=!!i,u=G?"simple-popover":void 0;return e.length?a.jsxs(aa,{ml:8,children:[a.jsx(ta,{onClick:n,children:a.jsxs(N,{content:"Messages",margin:"18px",children:[a.jsx("div",{className:"icon",children:a.jsx(r0,{})}),a.jsx("div",{className:"text",children:a.jsx("p",{children:e.length})})]})}),a.jsxs(ka,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:u,onClose:o,open:G,children:[a.jsx(k0,{onClick:o,children:a.jsx(e0,{})}),a.jsx(ia,{p:16,children:e.map(m=>a.jsx("p",{className:"item",children:m},m))})]})]}):null},aa=c(d).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,ia=c(d)` +`,C0={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},T0=s0(i=>({...C0,setAskedQuestion:t=>i(e=>({askedQuestions:[...e.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>i(e=>({askedQuestionsAnswers:[...e.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>i({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>i({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>i({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>i({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var e,n,o,G;(e=t==null?void 0:t.instagraph)!=null&&e.edges&&((n=t==null?void 0:t.instagraph)!=null&&n.nodes)&&i({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=t==null?void 0:t.instagraph)==null?void 0:o.edges,nodes:(G=t==null?void 0:t.instagraph)==null?void 0:G.nodes}})}})),I0="0.1.106",z0=x.lazy(()=>h(()=>import("./index-2257fc16.js"),["assets/index-2257fc16.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-e4d37dbe.js","assets/ClipLoader-2e8a2039.js","assets/Tabs-1c82bd38.js","assets/createSvgIcon-6b5253a6.js"]).then(({SettingsModal:i})=>({default:i}))),L0=x.lazy(()=>h(()=>import("./index-219ecc6b.js"),["assets/index-219ecc6b.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-e4d37dbe.js","assets/ClipLoader-2e8a2039.js"]).then(({AddContentModal:i})=>({default:i}))),N0=x.lazy(()=>h(()=>import("./index-7a95f74f.js"),["assets/index-7a95f74f.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-e4d37dbe.js","assets/ClipLoader-2e8a2039.js","assets/index-83069401.js","assets/three.module-9c942ca6.js","assets/index-8c0315a7.js","assets/Stack-72c38e89.js","assets/createSvgIcon-6b5253a6.js","assets/TextareaAutosize-a343ed23.js","assets/index-64f1c910.js"]).then(({AddItemModal:i})=>({default:i}))),R0=x.lazy(()=>h(()=>import("./index-ec92de7c.js"),["assets/index-ec92de7c.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-e4d37dbe.js","assets/constants-2ca2bfc7.js","assets/ClipLoader-2e8a2039.js","assets/index-8c0315a7.js","assets/Stack-72c38e89.js","assets/createSvgIcon-6b5253a6.js","assets/TextareaAutosize-a343ed23.js","assets/index-db32d3e5.js","assets/Typography-04aa1062.js","assets/Tabs-1c82bd38.js"]).then(({SourcesTableModal:i})=>({default:i}))),O0=x.lazy(()=>h(()=>import("./index-9e93bdd8.js"),["assets/index-9e93bdd8.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-e4d37dbe.js","assets/Skeleton-e8200c96.js","assets/ClipLoader-2e8a2039.js"]).then(({EditNodeNameModal:i})=>({default:i}))),$0=x.lazy(()=>h(()=>import("./index-702820bf.js"),["assets/index-702820bf.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-e4d37dbe.js","assets/Skeleton-e8200c96.js","assets/ClipLoader-2e8a2039.js"]).then(({RemoveNodeModal:i})=>({default:i}))),q0=x.lazy(()=>h(()=>import("./index-c9441fc5.js"),["assets/index-c9441fc5.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-e4d37dbe.js","assets/index-8c0315a7.js","assets/Stack-72c38e89.js","assets/createSvgIcon-6b5253a6.js","assets/TextareaAutosize-a343ed23.js","assets/constants-2ca2bfc7.js","assets/ClipLoader-2e8a2039.js"]).then(({AddNodeEdgeModal:i})=>({default:i}))),Q0=x.lazy(()=>h(()=>import("./index-23b710dd.js"),["assets/index-23b710dd.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-e4d37dbe.js","assets/index-db32d3e5.js","assets/constants-2ca2bfc7.js","assets/index-8c0315a7.js","assets/Stack-72c38e89.js","assets/createSvgIcon-6b5253a6.js","assets/TextareaAutosize-a343ed23.js","assets/ClipLoader-2e8a2039.js"]).then(({MergeNodeModal:i})=>({default:i}))),U0=x.lazy(()=>h(()=>import("./index-e6a0e064.js"),["assets/index-e6a0e064.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-83069401.js","assets/three.module-9c942ca6.js","assets/ClipLoader-2e8a2039.js","assets/index-e4d37dbe.js","assets/index-8c0315a7.js","assets/Stack-72c38e89.js","assets/createSvgIcon-6b5253a6.js","assets/TextareaAutosize-a343ed23.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:i})=>({default:i}))),W0=x.lazy(()=>h(()=>import("./index-5993f045.js"),["assets/index-5993f045.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-8c0315a7.js","assets/index-e4d37dbe.js","assets/Stack-72c38e89.js","assets/createSvgIcon-6b5253a6.js","assets/TextareaAutosize-a343ed23.js","assets/ClipLoader-2e8a2039.js","assets/isPlainObject-886127ee.js","assets/Typography-04aa1062.js","assets/Tabs-1c82bd38.js","assets/index-83069401.js","assets/three.module-9c942ca6.js","assets/index-73fbdc56.js"]).then(({BlueprintModal:i})=>({default:i}))),H0=x.lazy(()=>h(()=>import("./index-82e7d88e.js"),["assets/index-82e7d88e.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-e4d37dbe.js"]).then(({UserFeedBackModal:i})=>({default:i}))),Y0=x.lazy(()=>h(()=>import("./index-a1f46db3.js"),["assets/index-a1f46db3.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-e4d37dbe.js","assets/index-8c0315a7.js","assets/Stack-72c38e89.js","assets/createSvgIcon-6b5253a6.js","assets/TextareaAutosize-a343ed23.js"]).then(({CreateBountyModal:i})=>({default:i}))),J0=x.lazy(()=>h(()=>import("./index-6502785b.js").then(i=>i.cd),["assets/index-6502785b.js","assets/index-b4d03b7b.css"]).then(({OnboardingModal:i})=>({default:i}))),K0=x.lazy(()=>h(()=>import("./index-ac06168d.js"),["assets/index-ac06168d.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-e4d37dbe.js"]).then(({BriefDescription:i})=>({default:i}))),X0=()=>a.jsxs(a.Fragment,{children:[a.jsx(N0,{}),a.jsx(L0,{}),a.jsx(z0,{}),a.jsx(O0,{}),a.jsx($0,{}),a.jsx(R0,{}),a.jsx(q0,{}),a.jsx(U0,{}),a.jsx(W0,{}),a.jsx(Q0,{}),a.jsx(H0,{}),a.jsx(Y0,{}),a.jsx(J0,{}),a.jsx(K0,{})]}),Z0=()=>{const[i,t]=x.useState(null),{runningProjectMessages:e}=P(m=>m),n=m=>{t(m.currentTarget)},o=()=>{t(null)},G=!!i,u=G?"simple-popover":void 0;return e.length?a.jsxs(aa,{ml:8,children:[a.jsx(ta,{onClick:n,children:a.jsxs(N,{content:"Messages",margin:"18px",children:[a.jsx("div",{className:"icon",children:a.jsx(r0,{})}),a.jsx("div",{className:"text",children:a.jsx("p",{children:e.length})})]})}),a.jsxs(ka,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:u,onClose:o,open:G,children:[a.jsx(k0,{onClick:o,children:a.jsx(e0,{})}),a.jsx(ia,{p:16,children:e.map(m=>a.jsx("p",{className:"item",children:m},m))})]})]}):null},aa=c(d).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,ia=c(d)` max-height: 50vh; max-width: 30vw; background: transparent; @@ -360,4 +360,4 @@ import{W as x0,c as s0,r as x,_ as h,j as a,s as c,a as r,F as d,u as P,I as r0, color: ${r.white}; font-size: 12px; opacity: 0.5; -`,Ma=x.lazy(()=>h(()=>import("./index-90e6cc61.js"),["assets/index-90e6cc61.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-8304ea06.js"]).then(({MainToolbar:i})=>({default:i}))),Ca=x.lazy(()=>h(()=>import("./index-0d511f35.js"),["assets/index-0d511f35.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-d3e0dfea.js","assets/three.module-9c942ca6.js","assets/index-8304ea06.js","assets/TextareaAutosize-5da8bada.js","assets/index-e36d8aa5.js","assets/ClipLoader-1ce39797.js"]).then(({Universe:i})=>({default:i}))),Ta=x.lazy(()=>h(()=>import("./index-9ddac9de.js").then(i=>i.i),["assets/index-9ddac9de.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css","assets/index-8304ea06.js","assets/ClipLoader-1ce39797.js","assets/Skeleton-6d9b0e62.js","assets/Stack-e2486c11.js","assets/isPlainObject-212517ba.js","assets/Typography-1355ab6c.js","assets/createSvgIcon-9d40ff73.js","assets/index-a1115826.js","assets/index-e36d8aa5.js"]).then(({SideBar:i})=>({default:i}))),Ia=()=>{const[i]=b0(),t=i.get("q"),{setBudget:e,setNodeCount:n}=Z(k=>k),o=x.useRef(null),G=x.useRef(null),{setSidebarOpen:u,currentSearch:m,setCurrentSearch:V,setRelevanceSelected:_,setTranscriptOpen:M,universeQuestionIsOpen:C,setUniverseQuestionIsOpen:S}=a0(k=>k),T=T0(k=>k.setTeachMeAnswer),{fetchData:g,setCategoryFilter:F,setAbortRequests:j,addNewNode:s,splashDataLoading:p,runningProjectId:f,setRunningProjectMessages:B,isFetching:D}=P(k=>k),{setAiSummaryAnswer:y,getKeyExist:R,aiRefId:I}=i0(k=>k),w=t0(),[O,E]=u0(k=>[k.realtimeGraphFeatureFlag,k.chatInterfaceFeatureFlag]),l=j0(),$=E0({mode:"onChange"}),{setValue:q}=$;x.useEffect(()=>{q("search",t??""),M(!1),w(null),_(!1),V(t??""),T(""),F(null)},[t,F,V,_,w,T,M,q]),x.useEffect(()=>{(async()=>{await g(e,j),u(!0),m?await D0(e):w(null)})()},[m,g,e,j,u,w]);const Q=x.useCallback(()=>{n("INCREMENT")},[n]),U=x.useCallback(k=>{D||(o.current||(o.current={nodes:[],edges:[]}),k.edges&&o.current.edges.push(...k.edges),k.nodes&&o.current.nodes.push(...k.nodes),G.current&&clearTimeout(G.current),G.current=setTimeout(()=>{if(o.current){const{nodes:b,edges:A}=o.current,v={nodes:b,edges:A};o.current={nodes:[],edges:[]},s(v)}},3e3))},[s,D]),W=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{answer:k.answer,answerLoading:!1})},[y]),H=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{audio_en:k.audio_EN})},[y]),Y=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{questions:k.relevant_questions.map(b=>b.question),questionsLoading:!1})},[y]),J=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{sources:k.sources.map(b=>b.ref_id),sourcesLoading:!1})},[y]),K=x.useCallback(k=>{k.question&&R(I)&&y(I,{answerLoading:!1,entities:k.entities})},[y,R,I]);return x.useEffect(()=>(l&&(l.connect(),l.on("connect_error",k=>{console.error("Socket connection error:",k)}),l.on("newnode",Q),E&&l.on("extractedentitieshook",K),E&&l.on("askquestionhook",W),E&&l.on("relevantquestionshook",Y),E&&l.on("answersourceshook",J),O&&l.on("new_node_created",U),E&&l.on("answeraudiohook",H)),()=>{l&&l.off()}),[l,Q,U,O,W,E,Y,J,K,H]),x.useEffect(()=>{},[f,B]),x.useEffect(()=>{if(f)try{l==null||l.emit("update_project_id",{id:f})}catch(k){console.error(k)}},[f,l]),x.useEffect(()=>{p||E&&S()},[S,p,E]),a.jsxs(a.Fragment,{children:[a.jsx(M0,{}),a.jsx(ja,{}),a.jsx(w0,{hidden:!A0||!0,isRoot:!0}),a.jsx(x.Suspense,{fallback:a.jsx("div",{children:"Loading..."}),children:p?null:a.jsxs(Pa,{direction:"row",children:[a.jsxs(B0,{...$,children:[a.jsx(Ma,{}),!C&&a.jsx(Ta,{}),a.jsx(Ca,{}),a.jsx(v0,{}),a.jsx(Da,{}),a.jsxs(_a,{children:["v",I0]}),a.jsx(P0,{})]}),a.jsx(X0,{}),a.jsx(va,{})]})})]})},Na=Object.freeze(Object.defineProperty({__proto__:null,App:Ia},Symbol.toStringTag,{value:"Module"}));export{_0 as f,Na as i}; +`,Ma=x.lazy(()=>h(()=>import("./index-8710fc73.js"),["assets/index-8710fc73.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-e4d37dbe.js"]).then(({MainToolbar:i})=>({default:i}))),Ca=x.lazy(()=>h(()=>import("./index-f104c89b.js"),["assets/index-f104c89b.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-73fbdc56.js","assets/three.module-9c942ca6.js","assets/index-e4d37dbe.js","assets/TextareaAutosize-a343ed23.js","assets/index-0c4fb1ee.js","assets/ClipLoader-2e8a2039.js"]).then(({Universe:i})=>({default:i}))),Ta=x.lazy(()=>h(()=>import("./index-a40552ce.js").then(i=>i.i),["assets/index-a40552ce.js","assets/index-6502785b.js","assets/index-b4d03b7b.css","assets/index-e4d37dbe.js","assets/ClipLoader-2e8a2039.js","assets/Skeleton-e8200c96.js","assets/Stack-72c38e89.js","assets/isPlainObject-886127ee.js","assets/Typography-04aa1062.js","assets/createSvgIcon-6b5253a6.js","assets/index-ac06168d.js","assets/index-0c4fb1ee.js"]).then(({SideBar:i})=>({default:i}))),Ia=()=>{const[i]=b0(),t=i.get("q"),{setBudget:e,setNodeCount:n}=Z(k=>k),o=x.useRef(null),G=x.useRef(null),{setSidebarOpen:u,currentSearch:m,setCurrentSearch:V,setRelevanceSelected:_,setTranscriptOpen:M,universeQuestionIsOpen:C,setUniverseQuestionIsOpen:S}=a0(k=>k),T=T0(k=>k.setTeachMeAnswer),{fetchData:g,setCategoryFilter:F,setAbortRequests:j,addNewNode:s,splashDataLoading:p,runningProjectId:f,setRunningProjectMessages:B,isFetching:D}=P(k=>k),{setAiSummaryAnswer:y,getKeyExist:R,aiRefId:I}=i0(k=>k),w=t0(),[O,E]=u0(k=>[k.realtimeGraphFeatureFlag,k.chatInterfaceFeatureFlag]),l=j0(),$=E0({mode:"onChange"}),{setValue:q}=$;x.useEffect(()=>{q("search",t??""),M(!1),w(null),_(!1),V(t??""),T(""),F(null)},[t,F,V,_,w,T,M,q]),x.useEffect(()=>{(async()=>{await g(e,j),u(!0),m?await D0(e):w(null)})()},[m,g,e,j,u,w]);const Q=x.useCallback(()=>{n("INCREMENT")},[n]),U=x.useCallback(k=>{D||(o.current||(o.current={nodes:[],edges:[]}),k.edges&&o.current.edges.push(...k.edges),k.nodes&&o.current.nodes.push(...k.nodes),G.current&&clearTimeout(G.current),G.current=setTimeout(()=>{if(o.current){const{nodes:b,edges:A}=o.current,v={nodes:b,edges:A};o.current={nodes:[],edges:[]},s(v)}},3e3))},[s,D]),W=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{answer:k.answer,answerLoading:!1})},[y]),H=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{audio_en:k.audio_EN})},[y]),Y=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{questions:k.relevant_questions.map(b=>b.question),questionsLoading:!1})},[y]),J=x.useCallback(k=>{k.ref_id&&y(k.ref_id,{sources:k.sources.map(b=>b.ref_id),sourcesLoading:!1})},[y]),K=x.useCallback(k=>{k.question&&R(I)&&y(I,{answerLoading:!1,entities:k.entities})},[y,R,I]);return x.useEffect(()=>(l&&(l.connect(),l.on("connect_error",k=>{console.error("Socket connection error:",k)}),l.on("newnode",Q),E&&l.on("extractedentitieshook",K),E&&l.on("askquestionhook",W),E&&l.on("relevantquestionshook",Y),E&&l.on("answersourceshook",J),O&&l.on("new_node_created",U),E&&l.on("answeraudiohook",H)),()=>{l&&l.off()}),[l,Q,U,O,W,E,Y,J,K,H]),x.useEffect(()=>{},[f,B]),x.useEffect(()=>{if(f)try{l==null||l.emit("update_project_id",{id:f})}catch(k){console.error(k)}},[f,l]),x.useEffect(()=>{p||E&&S()},[S,p,E]),a.jsxs(a.Fragment,{children:[a.jsx(M0,{}),a.jsx(ja,{}),a.jsx(w0,{hidden:!A0||!0,isRoot:!0}),a.jsx(x.Suspense,{fallback:a.jsx("div",{children:"Loading..."}),children:p?null:a.jsxs(Pa,{direction:"row",children:[a.jsxs(B0,{...$,children:[a.jsx(Ma,{}),!C&&a.jsx(Ta,{}),a.jsx(Ca,{}),a.jsx(v0,{}),a.jsx(Da,{}),a.jsxs(_a,{children:["v",I0]}),a.jsx(P0,{})]}),a.jsx(X0,{}),a.jsx(va,{})]})})]})},Na=Object.freeze(Object.defineProperty({__proto__:null,App:Ia},Symbol.toStringTag,{value:"Module"}));export{_0 as f,Na as i}; diff --git a/build/assets/index-e36d8aa5.js b/build/assets/index-0c4fb1ee.js similarity index 69% rename from build/assets/index-e36d8aa5.js rename to build/assets/index-0c4fb1ee.js index dfa6d51d0..08a8783cc 100644 --- a/build/assets/index-e36d8aa5.js +++ b/build/assets/index-0c4fb1ee.js @@ -1 +1 @@ -import"./index-f22e6e13.js";import{h as o}from"./index-8304ea06.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-6502785b.js";import{i as o}from"./index-e4d37dbe.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-152cb873.js b/build/assets/index-152cb873.js new file mode 100644 index 000000000..dab78c99b --- /dev/null +++ b/build/assets/index-152cb873.js @@ -0,0 +1,388 @@ +import{r as c,y as de,c as ue,j as e,s as h,a as j,F as _,T as V,u as D,d as te,z as fe,A as xe,N as Y,D as he,E as ge,G as re,H as me}from"./index-6502785b.js";import{Universe as ye}from"./index-f104c89b.js";import{b as se,c as W,d as we,e as je,f as Ce,g as be,h as ve,i as Ee,a as _e}from"./index-e4d37dbe.js";import{S as Se,R as Te,s as X,M as Re}from"./index-a40552ce.js";import{u as H,a as ne,m as $e,T as Pe,f as ze,H as Ie,C as Me}from"./index-73fbdc56.js";import{W as ke,L as Q,H as He,D as We,F as Ae,V as M,S as Fe}from"./three.module-9c942ca6.js";import"./TextareaAutosize-a343ed23.js";import"./index-0c4fb1ee.js";import"./ClipLoader-2e8a2039.js";import"./Skeleton-e8200c96.js";import"./Stack-72c38e89.js";import"./isPlainObject-886127ee.js";import"./Typography-04aa1062.js";import"./createSvgIcon-6b5253a6.js";import"./index-ac06168d.js";function Be(t,r,s){const{gl:o,size:i,viewport:p}=H(),g=typeof t=="number"?t:i.width*p.dpr,l=typeof r=="number"?r:i.height*p.dpr,n=(typeof t=="number"?s:t)||{},{samples:a=0,depth:f,...x}=n,m=c.useMemo(()=>{let y;return y=new ke(g,l,{minFilter:Q,magFilter:Q,encoding:o.outputEncoding,type:He,...x}),f&&(y.depthTexture=new We(g,l,Ae)),y.samples=a,y},[]);return c.useLayoutEffect(()=>{m.setSize(g,l),a&&(m.samples=a)},[a,m,g,l]),c.useEffect(()=>()=>m.dispose(),[]),m}const Le=t=>typeof t=="function",De=c.forwardRef(({envMap:t,resolution:r=256,frames:s=1/0,children:o,makeDefault:i,...p},g)=>{const l=H(({set:d})=>d),n=H(({camera:d})=>d),a=H(({size:d})=>d),f=c.useRef(null),x=c.useRef(null),m=Be(r);c.useLayoutEffect(()=>{p.manual||f.current.updateProjectionMatrix()},[a,p]),c.useLayoutEffect(()=>{f.current.updateProjectionMatrix()}),c.useLayoutEffect(()=>{if(i){const d=n;return l(()=>({camera:f.current})),()=>l(()=>({camera:d}))}},[f,i,l]);let y=0,C=null;const u=Le(o);return ne(d=>{u&&(s===1/0||y({...Ge,setSelectedEpisodeId:r=>t({selectedEpisodeId:r}),setSelectedEpisodeLink:r=>t({selectedEpisodeLink:r}),setSelectedEpisode:r=>t({selectedEpisode:r})})),Ze=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 30 28",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M7.2998 2.55199C7.2998 1.51094 8.11675 0.666992 9.1245 0.666992H12.1299C13.1376 0.666992 13.9546 1.51094 13.9546 2.55199C13.9546 3.59305 13.1376 4.43699 12.1299 4.43699H9.1245C8.11675 4.43699 7.2998 3.59305 7.2998 2.55199Z",fill:"currentColor"}),e.jsx("path",{d:"M7.2998 25.449C7.2998 26.49 8.11675 27.334 9.1245 27.334H12.1299C13.1376 27.334 13.9546 26.49 13.9546 25.449C13.9546 24.4079 13.1376 23.564 12.1299 23.564H9.1245C8.11675 23.564 7.2998 24.4079 7.2998 25.449Z",fill:"currentColor"}),e.jsx("path",{d:"M2.79102 8.29613C2.79102 7.25508 3.60796 6.41113 4.61571 6.41113H12.1292C13.1369 6.41113 13.9539 7.25508 13.9539 8.29613C13.9539 9.33719 13.1369 10.1811 12.1292 10.1811H4.61571C3.60796 10.1811 2.79102 9.33719 2.79102 8.29613Z",fill:"currentColor"}),e.jsx("path",{d:"M2.79102 19.7039C2.79102 20.7449 3.60796 21.5889 4.61571 21.5889H12.1292C13.1369 21.5889 13.9539 20.7449 13.9539 19.7039C13.9539 18.6628 13.1369 17.8189 12.1292 17.8189H4.61571C3.60796 17.8189 2.79102 18.6628 2.79102 19.7039Z",fill:"currentColor"}),e.jsx("path",{d:"M0 14.094C0 13.0529 0.816945 12.209 1.8247 12.209H12.1289C13.1366 12.209 13.9536 13.0529 13.9536 14.094C13.9536 15.135 13.1366 15.979 12.1289 15.979H1.8247C0.816946 15.979 0 15.135 0 14.094Z",fill:"currentColor"}),e.jsx("path",{d:"M22.7002 25.448C22.7002 26.4891 21.8833 27.333 20.8755 27.333H17.8701C16.8624 27.333 16.0454 26.4891 16.0454 25.448C16.0454 24.407 16.8624 23.563 17.8701 23.563H20.8755C21.8832 23.563 22.7002 24.407 22.7002 25.448Z",fill:"currentColor"}),e.jsx("path",{d:"M22.7002 2.55199C22.7002 1.51094 21.8833 0.666992 20.8755 0.666992H17.8701C16.8624 0.666992 16.0454 1.51094 16.0454 2.55199C16.0454 3.59305 16.8624 4.43699 17.8701 4.43699H20.8755C21.8832 4.43699 22.7002 3.59305 22.7002 2.55199Z",fill:"currentColor"}),e.jsx("path",{d:"M27.209 19.7029C27.209 20.7439 26.392 21.5879 25.3843 21.5879H17.8708C16.8631 21.5879 16.0461 20.7439 16.0461 19.7029C16.0461 18.6618 16.8631 17.8179 17.8708 17.8179H25.3843C26.392 17.8179 27.209 18.6618 27.209 19.7029Z",fill:"currentColor"}),e.jsx("path",{d:"M27.209 8.29613C27.209 7.25508 26.392 6.41113 25.3843 6.41113H17.8708C16.8631 6.41113 16.0461 7.25508 16.0461 8.29613C16.0461 9.33719 16.8631 10.1811 17.8708 10.1811H25.3843C26.392 10.1811 27.209 9.33719 27.209 8.29613Z",fill:"currentColor"}),e.jsx("path",{d:"M30 14.093C30 13.052 29.1831 12.208 28.1753 12.208H17.8711C16.8634 12.208 16.0464 13.052 16.0464 14.093C16.0464 15.1341 16.8634 15.978 17.8711 15.978H28.1753C29.1831 15.978 30 15.1341 30 14.093Z",fill:"currentColor"})]}),Ne=()=>e.jsxs(Ve,{children:[e.jsx(Oe,{children:e.jsx(Ue,{children:e.jsx(Ze,{})})}),e.jsx(qe,{children:"Graph Mindset"})]}),Ve=h(_).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` + height: 64px; + box-sizing: border-box; + padding: 20px 23px; + gap: 0px; + z-index: 50; + position: relative; +`,Oe=h(_)` + align-items: center; + justify-content: center; + cursor: pointer; +`,Ue=h.div` + display: flex; + align-items: center; + justify-content: center; + + svg { + width: 30px; + height: 27px; + color: ${j.white}; + } +`,qe=h(V)` + width: 127px; + height: 24px; + color: ${j.white}; + font-family: Barlow; + font-size: 22px; + font-style: normal; + font-weight: 700; + line-height: 24px; + letter-spacing: 0.22px; + margin-left: 16px; + white-space: nowrap; +`,Ye=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 7 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4.77978 6.00243L0.706705 1.92933C0.568239 1.79088 0.497405 1.61684 0.494205 1.40723C0.490989 1.19763 0.561822 1.02039 0.706705 0.875528C0.851572 0.730645 1.02721 0.658203 1.23361 0.658203C1.44001 0.658203 1.61564 0.730645 1.7605 0.875528L6.25473 5.36975C6.34833 5.46334 6.41436 5.56205 6.45281 5.6659C6.49127 5.76974 6.51051 5.88191 6.51051 6.00243C6.51051 6.12294 6.49127 6.23512 6.45281 6.33895C6.41436 6.4428 6.34833 6.54152 6.25473 6.6351L1.7605 11.1293C1.62205 11.2678 1.44802 11.3386 1.2384 11.3418C1.0288 11.345 0.851572 11.2742 0.706705 11.1293C0.561822 10.9845 0.48938 10.8088 0.48938 10.6024C0.48938 10.396 0.561822 10.2204 0.706705 10.0755L4.77978 6.00243Z",fill:"currentColor"})}),Xe=({imageUrl:t,title:r,subtitle:s,onClick:o})=>{const i=r.length>35?`${r.substring(0,32)}...`:r,p=s.length>50?`${s.substring(0,47)}...`:s;return e.jsxs(Qe,{onClick:o,children:[e.jsx(Je,{children:e.jsx(se,{height:140,src:t,type:"Episode",width:170})}),e.jsxs(Ke,{children:[e.jsx(et,{children:i}),e.jsx(tt,{children:p})]})]})},Qe=h(_)` + background: ${j.BG1}; + width: 170px; + height: 200px; + color: ${j.white}; + padding: 16px; + border-radius: 8px; + cursor: pointer; + display: flex; + flex-direction: column; + align-items: center; + &:hover { + background: ${j.SEEDQUESTION_HOVER}; + } + &:active { + background: ${j.SEEDQUESTION}; + } +`,Je=h.div` + width: 100%; + height: 140px; /* Fixed height for images */ + border-radius: 6px; + overflow: hidden; + margin-bottom: 12px; + display: flex; + justify-content: center; + align-items: center; +`,Ke=h(_)` + flex-direction: column; + justify-content: flex-start; + gap: 8px; +`,et=h.p` + font-size: 16px; + font-weight: 500; + line-height: 19px; + color: ${j.white}; + margin: 0; + white-space: wrap; + overflow: hidden; + text-overflow: ellipsis; +`,tt=h.p` + font-family: Inter; + font-size: 14px; + font-weight: 400; + line-height: 17px; + color: ${j.GRAY6}; + margin: 0; + white-space: wrap; + overflow: hidden; + text-overflow: ellipsis; +`,rt=/^(https?:\/\/)/,st=/(www\.)?/,nt=/[\w-]+(\.[\w-]+)*/,ot=/(?:\.[a-zA-Z0-9][a-zA-Z0-9-]{0,61})[a-zA-Z0-9](?:\.[a-zA-Z]{2,})/,it=/(\/[^\s?]*)?/,at=/(\?[^\s]*)?/,ct=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,lt=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,pt=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,dt=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,ut=new RegExp(`${rt.source}${st.source}${nt.source}${ot.source}?${it.source}${at.source}$`,"i"),ft=t=>{try{if(!(t==null?void 0:t.match(ut)))return!1;const o=new URL(t).hostname;return o!=null&&o.startsWith("www.")?((o==null?void 0:o.match(/\./g))||[]).length>=2:((o==null?void 0:o.match(/\./g))||[]).length>=1}catch{return!1}},J=t=>ft(t)?[ct,lt,pt,dt].some(s=>s.test(t)):!1,xt=async t=>{const r="add_node",s={};s.media_url=t.source,s.content_type="audio_video";const o=await he.post(`/${r}`,JSON.stringify(s));if(o.error){const{message:i}=o.error;throw new Error(i)}return o},ht=()=>{const[t,r]=c.useState(""),[s,o]=c.useState(!1),[i,p]=c.useState(""),[g,l]=c.useState([]),{setRunningProjectId:n}=D(u=>u),{setSelectedEpisodeId:a,setSelectedEpisodeLink:f}=G(u=>u),{setSchemas:x}=te(u=>u),m=u=>u.nodes.filter(d=>{var v;return d.node_type.toLowerCase()==="episode"&&((v=d.properties)==null?void 0:v.date)}).slice(0,3);c.useEffect(()=>{(async()=>{try{const d=await fe(),v=m(d);l(v);const R=await xe();x(R.schemas.filter(w=>!w.is_deleted))}catch(d){console.error("Error fetching schema:",d)}})()},[x]);const y=u=>{const{value:d}=u.target;r(d),o(d!==""&&!J(d))},C=async u=>{const d=u||t;if(J(d))try{const v=await xt({source:d});v.data.project_id&&n(v.data.project_id),v.data.ref_id&&(a(v.data.ref_id),f(d))}catch(v){let R=Y;if((v==null?void 0:v.status)===400){const w=await v.json();R=w.errorCode||(w==null?void 0:w.status)||Y,w.data.ref_id&&(a(w.data.ref_id),f(d))}else v instanceof Error&&(R=v.message);p(String(R))}};return e.jsxs(gt,{children:[e.jsx(mt,{children:"Ideas have shapes"}),e.jsxs(wt,{children:[e.jsx(yt,{error:s,onChange:y,onKeyDown:u=>u.key==="Enter"&&C(),placeholder:"Paste podcast or video link",value:t}),e.jsx(jt,{error:s,onClick:s?void 0:()=>C(),children:e.jsx(Ye,{})})]}),i&&e.jsx("div",{children:i}),e.jsx(Ct,{children:g.map(u=>{var d,v;return e.jsx(Xe,{imageUrl:((d=u==null?void 0:u.properties)==null?void 0:d.image_url)||"",onClick:()=>{var R;return C((R=u==null?void 0:u.properties)==null?void 0:R.source_link)},subtitle:"",title:((v=u==null?void 0:u.properties)==null?void 0:v.episode_title)||""},u==null?void 0:u.ref_id)})})]})},gt=h(_)` + background: #16161de3; + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 0; + color: #fff; + align-items: center; + justify-content: center; + font-size: 32px; + font-style: normal; + font-weight: 700; + line-height: 16px; + font-family: 'Barlow'; + z-index: 40; +`,mt=h(_)` + color: ${j.white}; + font-family: Barlow; + font-size: 32px; + font-weight: 700; + margin-bottom: 40px; + text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25); +`,yt=h.input` + width: 100%; + max-width: 648px; + padding: 12px 28px 12px 16px; + border-radius: 100px; + border: 1px solid ${t=>t.error?"red":j.DIVIDER_4}; + background: ${j.INPUT_BG}; + color: ${j.white}; + font-family: Barlow; + font-size: 16px; + &::placeholder { + color: ${j.INPUT_PLACEHOLDER}; + } + &:focus { + outline: none; + border-color: ${t=>t.error?"red":j.primaryBlue}; + } +`,wt=h.div` + position: relative; + width: 648px; + display: flex; + align-items: center; +`,jt=h.div` + position: absolute; + right: 16px; + top: 50%; + transform: translateY(-50%); + color: ${j.white}; + font-size: 20px; + cursor: ${t=>t.error?"not-allowed":"pointer"}; + svg { + width: 8px; + height: 17px; + color: ${j.GRAY6}; + } +`,Ct=h.div` + display: flex; + align-items: center; + justify-content: center; + gap: 16px; + margin-top: 20px; + max-width: 648px; + height: 237px; +`,oe=c.memo(()=>{const{isPlaying:t,playerRef:r}=W(p=>p),s=()=>{if(r){const p=r.getCurrentTime()-15;r.seekTo(p,"seconds")}},o=()=>{if(r){const p=r.getCurrentTime()+15;r.seekTo(p,"seconds")}},i=()=>{if(r){if(t){r.getInternalPlayer().pauseVideo();return}r.getInternalPlayer().playVideo()}};return e.jsxs(bt,{children:[e.jsx(Et,{onClick:s,children:e.jsx("img",{alt:"",src:"RewindIcon.svg"})}),e.jsx(vt,{"data-testid":"play-pause-button",onClick:i,size:"small",children:t?e.jsx(we,{"data-testid":"pause-icon"}):e.jsx(je,{"data-testid":"play-icon"})}),e.jsx(_t,{onClick:o,children:e.jsx("img",{alt:"",src:"ForwardIcon.svg"})})]})});oe.displayName="Controls";const bt=h(_).attrs({direction:"row",align:"center",justify:"flex-start"})` + width: 142px; + height: 54px; + background: ${j.BG1}; + border-radius: 40px; + margin-right: 54px; + color: ${j.white}; + font-size: 20px; + padding: 12px; + justify-content: space-between; + box-sizing: border-box; +`,vt=h(Ce)` + && { + font-size: 36px; + padding: 2px; + overflow: hidden; + } +`,Et=h.div` + display: flex; + align-items: center; + justify-content: center; + margin: 1px 0 0 1px; + cursor: pointer; + img { + width: 20px; + height: auto; + } +`,_t=h.div` + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + img { + width: 24px; + height: auto; + } +`,ie=c.memo(({type:t,left:r,img:s})=>{var n,a;const[o]=te(f=>[f.normalizedSchemasByType]),i=(n=o[t])==null?void 0:n.primary_color,p=(a=o[t])==null?void 0:a.icon,g=p?`svg-icons/${p}.svg`:"",l={iconStart:s||g,color:i??j.THING};return e.jsx(Tt,{style:{left:`${r}%`},children:e.jsx(ae,{...l,label:t})})});ie.displayName="Marker";const ae=c.memo(({iconStart:t,color:r,label:s})=>e.jsx(St,{color:r,children:t&&e.jsx("img",{alt:s,className:"badge__img",src:t})}));ae.displayName="Badge";const St=h(_).attrs({direction:"row"})` + cursor: pointer; + background: ${({color:t})=>t}; + border-radius: 3px; + overflow: hidden; + justify-content: center; + align-items: center; + + .badge__img { + width: 10px; + height: 10px; + object-fit: contain; + } +`,Tt=h.div` + position: absolute; + top: -6px; + width: 12px; + height: 12px; + border-radius: 4px; + background-color: ${j.white}; + transform: translateX(-50%); + transform: translateX(-50%) translateY(-50%); + top: 50%; + display: flex; + align-items: center; + justify-content: center; +`,ce=c.memo(({markers:t,duration:r})=>e.jsx(e.Fragment,{children:t.map(s=>{var g;const o=((s==null?void 0:s.start)||0)/r*100,i=(s==null?void 0:s.node_type)||"",p=((g=s==null?void 0:s.properties)==null?void 0:g.image_url)||"";return e.jsx(ie,{img:p,left:o,type:i},s.ref_id)})}));ce.displayName="Markers";const Rt=({duration:t,markers:r,handleProgressChange:s,playingTIme:o})=>{const i=10/t*100;return e.jsxs($t,{children:[e.jsx(Pt,{max:t,onChange:s,value:o,width:i}),e.jsx(ce,{duration:t,markers:r})]})},$t=h(_)` + position: relative; + flex: 1 1 100%; +`,Pt=h(Se)` + && { + z-index: 20; + color: ${j.white}; + height: 3px; + width: calc(100% - 12px); + box-sizing: border-box; + .MuiSlider-track { + border: none; + } + .MuiSlider-thumb { + width: ${({width:t})=>`${t}%`}; + height: 54px; + border-radius: 8px; + background-color: ${j.primaryBlue}; + opacity: 0.2; + &:before { + box-shadow: '0 4px 8px rgba(0,0,0,0.4)'; + } + &:hover, + &.Mui-focusVisible, + &.Mui-active { + box-shadow: none; + } + } + } +`,zt=({markers:t})=>{const{playingNode:r,playerRef:s}=W(n=>n),[o,i]=c.useState(0),p=r,g=c.useCallback((n,a)=>{const f=Array.isArray(a)?a[0]:a;s&&s.seekTo(f,"seconds")},[s]);c.useEffect(()=>{const n=setInterval(()=>{if(s&&i){const a=s.getCurrentTime();i(a)}},500);return()=>clearInterval(n)},[s,i]);const l=(s==null?void 0:s.getDuration())||0;return p?e.jsxs(It,{children:[e.jsx(oe,{}),e.jsx(Rt,{duration:l,handleProgressChange:g,markers:t,playingTIme:o})]}):null},It=h(_).attrs({direction:"row",align:"center",justify:"space-between"})` + padding: 20px; + background: ${j.BG2}; + height: 96px; + margin-top: 16px; + border-radius: 8px; + box-sizing: border-box; +`,Mt=({sourcePosition:t,targetPosition:r,color:s="white",arrowSize:o=1,label:i="label"})=>{const{points:p,textPosition:g}=c.useMemo(()=>{const l=new M(t.x,t.y,t.z),n=new M(r.x,r.y,r.z),a=new M().subVectors(n,l).normalize(),f=new M().addVectors(l,n).multiplyScalar(.5),x=new M().copy(a).multiplyScalar(-o).applyAxisAngle(new M(0,0,1),Math.PI/6),m=new M().copy(a).multiplyScalar(-o).applyAxisAngle(new M(0,0,1),-Math.PI/6);return{points:[l,n,n.clone(),n.clone().add(x),n.clone(),n.clone().add(m)],textPosition:f}},[t,r,o]);return e.jsxs(e.Fragment,{children:[e.jsxs("line",{children:[e.jsx("bufferGeometry",{children:e.jsx("bufferAttribute",{array:new Float32Array(p.flatMap(l=>[l.x,l.y,l.z])),attach:"attributes-position",count:p.length,itemSize:3})}),e.jsx("lineBasicMaterial",{color:s})]}),i&&e.jsx(Pe,{anchorX:"center",anchorY:"middle",color:s,...ze,position:g,children:i})]})},kt=({title:t,description:r})=>e.jsx(Ht,{children:e.jsx(Wt,{children:e.jsxs(At,{children:[e.jsx(Ft,{children:t}),r&&e.jsx(Bt,{children:r})]})})}),Ht=h.div` + position: fixed; + width: 100%; + height: 100%; + pointer-events: none; + z-index: 1000; +`,Wt=h(_)` + width: 390px; + min-height: 100px; + background: ${j.HOVER_CARD_BG}; + border-radius: 8px; + padding: 15px; + padding-bottom: 3px !important; + position: fixed; + flex-direction: column; + gap: 4px; + top: calc(-230px); + left: 100%; + z-index: 1000; + margin-left: 450px; + pointer-events: auto; +`,At=h(_)` + margin-top: 0; + flex-direction: column; + gap: 4px; +`,Ft=h(V)` + font-family: Barlow; + font-size: 20px; + font-weight: 600; + line-height: 24px; + color: ${j.white}; + margin: 0; +`,Bt=h(V)` + font-family: Barlow; + font-size: 14px; + font-weight: 400; + line-height: 20px; + color: ${j.white}; + margin: 0; + opacity: 0.8; +`,Lt=(t,r,s)=>{const o=new Fe;return o.moveTo(-t/2+s,-r/2),o.lineTo(t/2-s,-r/2),o.quadraticCurveTo(t/2,-r/2,t/2,-r/2+s),o.lineTo(t/2,r/2-s),o.quadraticCurveTo(t/2,r/2,t/2-s,r/2),o.lineTo(-t/2+s,r/2),o.quadraticCurveTo(-t/2,r/2,-t/2,r/2-s),o.lineTo(-t/2,-r/2+s),o.quadraticCurveTo(-t/2,-r/2,-t/2+s,-r/2),o},Dt=({width:t,height:r,radius:s,color:o})=>{const i=Lt(t,r,s);return e.jsxs("mesh",{children:[e.jsx("shapeGeometry",{args:[i]}),e.jsx("meshBasicMaterial",{color:o,opacity:.9,transparent:!0})]})},Gt=({name:t,url:r,type:s})=>e.jsxs(Zt,{children:[r&&e.jsx("img",{alt:"",className:"image",src:r}),e.jsx("div",{className:"title",children:t}),e.jsx("div",{className:"badge",children:e.jsx(be,{type:s})}),e.jsx("div",{className:"action-btn",children:e.jsx(ve,{})})]}),Zt=h(_)` + position: relative; + padding: 14px; + padding-right: 28px; + flex: 1; + width: 100%; + box-sizing: border-box; + + .title { + margin-top: 8px; + } + + .badge { + position: absolute; + top: 0; + left: 50%; + transform: translateX(-50%); + } + + .image { + width: 32px; + height: 32px; + border-radius: 50%; + margin-bottom: 8px; + object-fit: cover; + } + + .action-btn { + top: 14px; + right: 14px; + color: ${j.GRAY6}; + position: absolute; + } +`,N=c.memo(({width:t,height:r,position:s,url:o,onButtonClick:i,name:p,type:g,color:l,description:n})=>{const{camera:a}=H(),[f,x]=c.useState(!1);return e.jsxs("group",{position:s,children:[e.jsx(Dt,{color:l,height:r,radius:1.5,width:t}),!1,e.jsx(Ie,{position:[-t/2,r/2,0],children:e.jsxs(_,{onClick:()=>i(),onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),style:{fontSize:"12px",color:"white",fontWeight:600,width:`${t*a.zoom}px`,height:`${r*a.zoom}px`,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"8px",pointerEvents:"auto"},children:[e.jsx(Gt,{name:`${p}`,type:g||"",url:o}),f&&e.jsx(kt,{description:n,title:p})]})})]})});N.displayName="Node";const K=144/10,Z=84/10,Nt=()=>{const t=H(),{dataInitial:r}=D(i=>i),{viewport:s}=t,o=c.useMemo(()=>{if(!r)return{nodes:[],edges:[],relatedNodes:{}};const i=r.links.filter(n=>{var a;return(a=n==null?void 0:n.properties)==null?void 0:a.start}).map(n=>{var a;return{source:n.source,target:n.target,start:(a=n.properties)==null?void 0:a.start}}),p=r.nodes.filter(n=>r.links.some(a=>a.source===n.ref_id||a.target===n.ref_id)).map(n=>{const a=i.find(y=>n.ref_id===y.source||n.ref_id===y.target),f=((a==null?void 0:a.start)||0)*(s.width/10);return{...n,x:f,y:0,z:0,start:(a==null?void 0:a.start)||0}}).filter(n=>n.node_type!=="Clip"&&n.node_type!=="Episode"&&n.node_type!=="Show"),g=p.reduce((n,a)=>{const f=r.links.filter(C=>{var u;return!((u=C==null?void 0:C.properties)!=null&&u.start)&&[C.target,C.source].includes(a.ref_id)}),m=r.nodes.filter(C=>C.node_type!=="Episode"&&C.node_type!=="Clip"&&C.ref_id!==a.ref_id&&f.some(u=>[u.source,u.target].includes(C.ref_id))).map((C,u)=>{const{x:d}=a,v=(Math.floor(u/2)+1)*Z*2*(u%2===0?1:-1);return{...C,x:d,y:v,z:0}}),y=f.map(C=>{if(C.source===a.ref_id){const d=m.find(v=>v.ref_id===C.target);return{...C,sourcePositions:{x:a.x,y:a.y,z:a.z},targetPositions:{x:d==null?void 0:d.x,y:d==null?void 0:d.y,z:d==null?void 0:d.z}}}const u=m.find(d=>d.ref_id===C.source);return{...C,sourcePositions:{x:u==null?void 0:u.x,y:u==null?void 0:u.y,z:u==null?void 0:u.z},targetPositions:{x:a.x,y:a.y,z:a.z}}});return n[a.ref_id]={nodes:m,edges:y},n},{}),l=Object.values(g).flatMap(n=>n.edges).filter(n=>{var a;return(a=n==null?void 0:n.sourcePositions)==null?void 0:a.x});return{nodes:p,edges:l,relatedNodes:Object.fromEntries(Object.entries(g).map(([n,a])=>[n,a.nodes]))}},[r,s.width]);return e.jsxs(e.Fragment,{children:[o.nodes.map(i=>{var p,g,l;return e.jsxs(c.Fragment,{children:[e.jsx(N,{color:"#353A46",description:(p=i==null?void 0:i.properties)==null?void 0:p.description,height:Z,name:((g=i==null?void 0:i.properties)==null?void 0:g.name)||"",onButtonClick:console.log,position:[i.x,i.y,i.z],type:i.node_type,url:((l=i==null?void 0:i.properties)==null?void 0:l.image_url)||"logo.png",width:K}),(o.relatedNodes[i.ref_id]||[]).map(n=>{var a,f,x;return e.jsx(N,{color:"#353A46",description:(a=n==null?void 0:n.properties)==null?void 0:a.description,height:Z,name:((f=n==null?void 0:n.properties)==null?void 0:f.name)||"",onButtonClick:console.log,position:[n.x,n.y,n.z],type:n.node_type,url:((x=n==null?void 0:n.properties)==null?void 0:x.image_url)||"logo.png",width:K},`${n.ref_id}-${i.ref_id}`)})]},i.ref_id)}),o.edges.map((i,p)=>i!=null&&i.sourcePositions&&(i!=null&&i.targetPositions)?e.jsx(Mt,{label:i.edge_type||"",sourcePosition:new M(i.sourcePositions.x,i.sourcePositions.y,i.sourcePositions.z),targetPosition:new M(i.targetPositions.x,i.targetPositions.y,i.targetPositions.z)},`edge-${p}`):null)]})},Vt=()=>{const{camera:t,viewport:r}=H(),s=W(o=>o.playerRef);return ne(()=>{if(s){const o=s.getCurrentTime();t.position.x=o*r.width/10}}),null},Ot=()=>{const{camera:t,gl:r}=H();return c.useEffect(()=>{const s=t,o=p=>{p.preventDefault(),p.ctrlKey&&(s.zoom+=p.deltaY*-.1,s.zoom=Math.max(2,Math.min(s.zoom,20))),s.position.x+=p.deltaX*.1,s.updateProjectionMatrix()},i=r.domElement;return i.addEventListener("wheel",o,{passive:!1}),()=>{i.removeEventListener("wheel",o)}},[t,r]),null},le=c.memo(()=>(console.log("rerender"),e.jsx("div",{style:{width:"100%",height:"100%",position:"relative"},children:e.jsxs(Me,{orthographic:!0,children:[e.jsx(Vt,{}),e.jsx(De,{far:2e3,makeDefault:!0,near:1,position:[0,0,20],zoom:10}),e.jsx(Nt,{}),e.jsx(Ot,{})]})})));le.displayName="Scene";const Ut=(t,r)=>{let s=0,o=t.length-1;for(;s<=o;){const i=Math.floor((s+o)/2),p=t[i],{start:g,end:l}=p.properties;if(r>=g&&r<=l)return p;r{const r=c.useRef(null),[s,o]=c.useState("ready"),[i,p]=c.useState(!1),{setActiveEdge:g}=Ee($=>$),{dataInitial:l}=D($=>$),{isPlaying:n,playingTime:a,setIsPlaying:f,setPlayingTime:x,setDuration:m,playingNode:y,volume:C,setHasError:u,resetPlayer:d,isSeeking:v,setIsSeeking:R,setPlayerRef:w,playerRef:E}=W($=>$);c.useEffect(()=>()=>d(),[d]),c.useEffect(()=>{y&&!i&&(x(0),m(0),p(!1))},[y,x,m,p,i]),c.useEffect(()=>{v&&E&&(E.seekTo(a,"seconds"),R(!1))},[a,v,R,E]);const b=()=>{f(!n)},T=c.useCallback(()=>{f(!0)},[f]),k=c.useCallback(()=>{f(!1)},[f]),B=()=>{u(!0),o("error")},L=c.useMemo(()=>((l==null?void 0:l.links.filter(I=>{var F;return(F=I==null?void 0:I.properties)==null?void 0:F.start}))||[]).slice().sort((I,F)=>{var U,q;return((U=I==null?void 0:I.properties)==null?void 0:U.start)-((q=F==null?void 0:F.properties)==null?void 0:q.start)}),[l]),P=$=>{if(!v){const O=$.playedSeconds,I=Ut(L,O);g(I||null)}},z=()=>{E&&o("ready")},S=()=>{b()},A=c.useCallback($=>{!E&&$&&w($)},[w,E]);return t?e.jsxs(Yt,{ref:r,tabIndex:0,children:[e.jsx(Xt,{isFullScreen:!1,children:e.jsx(se,{size:120,src:(y==null?void 0:y.image_url)||"",type:"clip"})}),e.jsx(Jt,{isFullScreen:!1,onClick:S,children:e.jsx(Te,{ref:A,height:"219px",onBuffer:()=>o("buffering"),onBufferEnd:()=>o("ready"),onError:B,onPause:k,onPlay:T,onProgress:P,onReady:z,playing:n,url:t||"",volume:C,width:"100%"})}),s==="error"?e.jsx(Qt,{className:"error-wrapper",children:"Error happened, please try later"}):null]}):null},Yt=h(_)` + border-bottom: 1px solid rgba(0, 0, 0, 0.25); + background: rgba(0, 0, 0, 0.2); + position: relative; + overflow: hidden; + height: auto; + &:focus { + outline: none; + } +`,Xt=h(_)` + position: absolute; + top: ${t=>t.isFullScreen?"38%":"18%"}; + left: 50%; + transform: translateX(-50%); + z-index: -1; +`,Qt=h(_)` + height: 60px; + padding: 12px 16px; + color: ${j.primaryRed}; +`,Jt=h.div` + margin: ${t=>t.isFullScreen?"80px auto":"0"}; + width: 100%; + cursor: pointer; +`,Kt=c.memo(qt),pe=c.forwardRef(({active:t,start:r,text:s},o)=>e.jsxs(er,{ref:o,className:ge({active:t}),children:[e.jsx(tr,{children:r}),e.jsx(rr,{children:e.jsx("span",{children:s})})]}));pe.displayName="ParagraphComponent";const ee=c.memo(pe,(t,r)=>t.active===r.active),er=h(_)` + flex-direction: row; + align-items: flex-start; + font-size: 14px; + padding: 8px 24px; + &.active { + background: ${j.AI_HIGHLIGHT}; + } +`,tr=h.span` + background: ${j.lightBlue100}; + color: ${j.lightBlue500}; + padding: 2px; + margin-right: 8px; + border-radius: 4px; +`,rr=h.div` + margin: 0 2px; + word-break: break-word; + + &.active { + background: ${j.AI_HIGHLIGHT}; + } +`,sr=({transcriptString:t})=>{const[r,s]=c.useState(0),[o,i]=c.useState(!1),{playerRef:p}=W(x=>x),g=t.replace(/^["']|["']$/g,""),l=JSON.parse(g),n=c.useRef(null),a=c.useRef(null),f=c.useRef(null);return c.useEffect(()=>{const x=setInterval(()=>{if(p&&s){const m=p.getCurrentTime();s(m)}},100);return()=>clearInterval(x)},[p,s]),c.useEffect(()=>{const x=()=>{i(!0),f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{i(!1)},1e3)},m=a.current;return m&&m.addEventListener("scroll",x),()=>{m&&m.removeEventListener("scroll",x)}},[]),c.useEffect(()=>{!o&&n.current&&n.current.scrollIntoView({behavior:"smooth",block:"center"})},[r,o]),e.jsx(nr,{ref:a,children:l[0].start>r?e.jsx(ee,{active:!1,start:X(l[0].start),text:l[0].text}):e.jsx(e.Fragment,{children:l.map(x=>{const m=X(x.start),y=x.start{const{selectedEpisodeId:r}=G(l=>l),{playerRef:s}=W(l=>l),[o,i]=c.useState(0),[p,g]=c.useState([]);return c.useEffect(()=>{r&&(async()=>{try{const n=await re(r,0,50,{nodeType:["Clip"],useSubGraph:!1});n!=null&&n.nodes&&g(n.nodes)}catch(n){console.error(n)}})()},[r]),c.useEffect(()=>{const l=setInterval(()=>{if(s&&i){const n=s.getCurrentTime();i(n)}},100);return()=>clearInterval(l)},[s,i]),e.jsxs(ir,{children:[e.jsx(_,{className:"heading",children:t}),p.map(l=>{var x,m,y;const n=(x=l==null?void 0:l.properties)==null?void 0:x.timestamp,[a,f]=n?n.split("-").map(Number):[0,0];return a<=o*1e3&&o*1e3{const{selectedEpisodeLink:t,selectedEpisode:r}=G(s=>s);return e.jsxs(lr,{align:"stretch",basis:"100%",grow:1,shrink:1,children:[e.jsx(pr,{children:t&&e.jsx(Kt,{mediaUrl:t})}),e.jsx(or,{name:(r==null?void 0:r.name)||""})]})},lr=h(_)(({theme:t})=>({position:"relative",display:"flex",padding:"0 20px 20px 20px",background:"transparent",width:"100%",[t.breakpoints.up("sm")]:{width:Re}})),pr=h(_)(({theme:t})=>({width:"100%",margin:"0 auto 16px",[t.breakpoints.up("sm")]:{width:"390px"}})),Sr=()=>{const{addNewNode:t,isFetching:r,runningProjectId:s}=D(w=>w),[o,i]=c.useState(null),[p,g]=c.useState(!1),{selectedEpisodeId:l,setSelectedEpisode:n}=G(w=>w),a=_e(),f=c.useRef(null),x=c.useRef(null),m=c.useRef(null),y=c.useRef(null),C=c.useRef(null),{setPlayingNode:u}=W(w=>w),d=c.useCallback(w=>{r||(y.current||(y.current={nodes:[],edges:[]}),w.edges&&y.current.edges.push(...w.edges),w.nodes&&y.current.nodes.push(...w.nodes),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{if(y.current){const{nodes:E,edges:b}=y.current,T={nodes:E,edges:b};y.current={nodes:[],edges:[]},t(T)}},3e3))},[t,r]),v=c.useCallback(w=>{console.log(w,"uuuuuupdate")},[]);c.useEffect(()=>{l&&(async()=>{try{const E=await re(l,0,50);i(E);const[b,T]=((E==null?void 0:E.nodes)||[]).reduce(([P,z],S)=>(["Episode","Show","Host","Guest"].includes(S.node_type)?P.push(S):z.push(S),[P,z]),[[],[]]),k=new Set(b.map(P=>P.ref_id)),[B,L]=((E==null?void 0:E.edges)||[]).reduce(([P,z],S)=>(k.has(S.source)&&k.has(S.target)?P.push(S):z.push(S),[P,z]),[[],[]]);m.current={nodes:T||[],edges:L||[]},d({nodes:b,edges:B})}catch(E){console.error(E)}})()},[l,d]),c.useEffect(()=>{l&&(async()=>{try{const E=await me(l);E&&(u(E),n(E))}catch(E){console.error(E)}})()},[l,u,n]),c.useEffect(()=>(a&&(a.connect(),a.on("connect_error",w=>{console.error("Socket connection error:",w)}),s&&(a.on("new_node_created",d),a.on("node_updated",v))),()=>{a&&a.off()}),[a,v,d,s]),c.useEffect(()=>{const w=E=>{const{playerRef:b}=W.getState();if(x.current!==null){if(E-x.current>2e3){if(m.current&&b){const{nodes:k,edges:B}=m.current,L=b==null?void 0:b.getCurrentTime(),P=B.filter(S=>{var A,$;return((A=S==null?void 0:S.properties)==null?void 0:A.start)!==void 0&&(($=S==null?void 0:S.properties)==null?void 0:$.start)P.some(A=>A.target===S.ref_id||A.source===S.ref_id));(z.length||P.length)&&t({nodes:z,edges:P})}x.current=E}}else x.current=E;f.current=requestAnimationFrame(w)};return f.current=requestAnimationFrame(w),()=>{f.current&&cancelAnimationFrame(f.current)}},[m,t]),c.useEffect(()=>{if(s)try{a==null||a.emit("update_project_id",{id:s})}catch(w){console.error(w)}},[s,a]);const R=c.useMemo(()=>{if(o){const w=o.edges.filter(b=>{var T;return(T=b==null?void 0:b.properties)==null?void 0:T.start}).map(b=>{var T;return{source:b.source,target:b.target,start:(T=b.properties)==null?void 0:T.start}});return o.nodes.filter(b=>o.edges.some(T=>T.source===b.ref_id||T.target===b.ref_id)).map(b=>{const T=w.find(k=>b.ref_id===k.source||b.ref_id===k.target);return{...b,start:(T==null?void 0:T.start)||0}}).filter(b=>b&&b.node_type!=="Clip"&&b.node_type!=="Episode"&&b.node_type!=="Show")}return[]},[o]);return e.jsx(_,{direction:"row",style:{height:"100%"},children:l?e.jsxs(e.Fragment,{children:[e.jsxs(_,{children:[e.jsx(_,{onClick:()=>g(!p),children:e.jsx(Ne,{})}),e.jsx(cr,{})]}),e.jsxs(_,{basis:"100%",grow:1,p:16,shrink:1,children:[e.jsx(_,{basis:"100%",grow:1,shrink:1,children:p?e.jsx(le,{}):e.jsx(ye,{})}),e.jsx(zt,{markers:R})]})]}):e.jsx(ht,{})})};export{Sr as MindSet}; diff --git a/build/assets/index-3f746971.js b/build/assets/index-219ecc6b.js similarity index 98% rename from build/assets/index-3f746971.js rename to build/assets/index-219ecc6b.js index 73b30852b..e3799debd 100644 --- a/build/assets/index-3f746971.js +++ b/build/assets/index-219ecc6b.js @@ -1,4 +1,4 @@ -import{a_ as j,a$ as E,b0 as y,b1 as R,b2 as T,b3 as D,b4 as U,b5 as O,s as x,a as u,b as Z,r as f,j as e,F as r,B as C,aY as J,T as z,b6 as K,aW as X,aX as Q,e as ee,u as te,t as se,aV as ne,N as m,aZ as oe,w as re,b7 as ae,ah as ie,b8 as ce,b9 as le,D as de,x as ue,ba as xe}from"./index-f22e6e13.js";import{ai as pe}from"./index-8304ea06.js";import{f as he}from"./index-ac87045f.js";import{C as fe}from"./ClipLoader-1ce39797.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_-]+)/,be=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,ye=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,Se=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss\.xml|.*\?(feed|format)=rss)(\/.*)?$/,_e=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(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,be,je].some(n=>n.test(t))?T:_e.test(t)?E:A.test(t)?j:ye.test(t)?D:Se.test(t)?y:Re.test(t)?R:ve.test(t)?await Ce(t)?y:U:O}const $e=(t,s="")=>{const o=(s===j?A:/@(\w+)/).exec(t);return o?o[1]:null},v=t=>!!t&&[j,E,y,R].includes(t),Be=({onClick:t,loading:s,type:n,error:o})=>{const b=Z(i=>i.budget),[a,p]=f.useState(10),d=v(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await K(d);p(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(Te,{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:[he(b)," sats"]})]})]}),e.jsx(r,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(L,{children:e.jsx(fe,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(pe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(J,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},Te=x(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{a_ as j,a$ as E,b0 as y,b1 as R,b2 as T,b3 as D,b4 as U,b5 as O,s as x,a as u,b as Z,r as f,j as e,F as r,B as C,aY as J,T as z,b6 as K,aW as X,aX as Q,e as ee,u as te,t as se,aV as ne,N as m,aZ as oe,w as re,b7 as ae,ah as ie,b8 as ce,b9 as le,D as de,x as ue,ba as xe}from"./index-6502785b.js";import{ai as pe}from"./index-e4d37dbe.js";import{f as he}from"./index-0544338d.js";import{C as fe}from"./ClipLoader-2e8a2039.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_-]+)/,be=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,ye=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,Se=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss\.xml|.*\?(feed|format)=rss)(\/.*)?$/,_e=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(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,be,je].some(n=>n.test(t))?T:_e.test(t)?E:A.test(t)?j:ye.test(t)?D:Se.test(t)?y:Re.test(t)?R:ve.test(t)?await Ce(t)?y:U:O}const $e=(t,s="")=>{const o=(s===j?A:/@(\w+)/).exec(t);return o?o[1]:null},v=t=>!!t&&[j,E,y,R].includes(t),Be=({onClick:t,loading:s,type:n,error:o})=>{const b=Z(i=>i.budget),[a,p]=f.useState(10),d=v(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await K(d);p(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(Te,{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:[he(b)," sats"]})]})]}),e.jsx(r,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(L,{children:e.jsx(fe,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(pe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(J,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},Te=x(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-2257fc16.js b/build/assets/index-2257fc16.js new file mode 100644 index 000000000..8b6070f18 --- /dev/null +++ b/build/assets/index-2257fc16.js @@ -0,0 +1,185 @@ +import{s as t,a as o,F as n,T as S,r as b,j as e,B as v,t as C,k as $,b as T,aU as G,aV as k,N as y,w as z,aW as w,aX as M,aY as D,e as j,aZ as I}from"./index-6502785b.js";import{i as A,q as R}from"./index-e4d37dbe.js";import{C as B}from"./ClipLoader-2e8a2039.js";import{T as E,a as L}from"./Tabs-1c82bd38.js";import"./createSvgIcon-6b5253a6.js";const V=()=>(A(R(a=>[a.graphStyle,a.setGraphStyle])),null);t(n).attrs({direction:"row",align:"center",justify:"space-between"})` + width: 447px; + height: 48px; + background: ${o.appearanceBg}; + border-radius: 6px; + .icon { + color: ${o.GRAY6}; + font-size: 20px; + cursor: pointer; + padding: 12px 20px; + + &:hover { + color: ${o.GRAY3}; + } + + &:active { + color: ${o.white}; + } + + &.active { + color: ${o.white}; + background: ${o.primaryBlue}; + padding: 12px 20px; + border-radius: 6px; + } + } + + .icon + .icon { + margin-left: 20px; + } +`;const W=({onClose:a})=>{const[d]=A(x=>[x.graphStyle]),[l,r]=b.useState(!1),p=()=>{r(!0),localStorage.setItem("graphStyle",d),r(!1),a()};return e.jsxs(F,{direction:"column",children:[e.jsx(P,{children:"Default graph view:"}),e.jsx(V,{}),e.jsx(n,{mt:308,py:8,children:e.jsx(v,{color:"secondary",disabled:l,id:"add-node-submit-cta",onClick:p,size:"large",startIcon:l&&e.jsx(U,{children:e.jsx(B,{color:o.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"})})]})},F=t(n)` + display: flex; + gap: 10px; + padding: 36px; +`,P=t(S)` + font-family: Barlow; + font-size: 13px; + font-weight: 400; + color: ${o.lightGray}; +`,U=t.span` + display: inline-flex; + align-items: center; + justify-content: center; + margin-top: 2px; + + svg { + width: 16px; + height: 16px; + } +`,Y=({initialValues:a,onClose:d})=>{const l=C({defaultValues:a,mode:"onSubmit"}),{isSubmitting:r}=l.formState,p=$(s=>s.setAppMetaData),{swarmUiUrl:x}=T(s=>s),[h,u]=b.useState(""),m=l.handleSubmit(async s=>{try{(await G(s)).status==="success"&&(k("Changes Saved"),p(s),d())}catch(c){let f=y;if((c==null?void 0:c.status)===400){const g=await c.json();f=g.errorCode||(g==null?void 0:g.status)||y}else c instanceof Error&&(f=c.message);u(String(f))}}),i=s=>{s.preventDefault(),m()};return e.jsx(z,{...l,children:e.jsx(N,{id:"add-node-form",onSubmit:i,children:e.jsxs(q,{children:[e.jsxs(n,{children:[x&&e.jsx(_,{children:e.jsx(H,{href:x,children:"View Swarm UI"})}),e.jsx(n,{pt:20,children:e.jsx(w,{id:"cy-about-title-id",label:"Graph Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...M}})}),e.jsx(n,{pt:20,children:e.jsx(w,{id:"cy-about-id",label:"Graph Description",maxLength:100,name:"description",placeholder:"Type graph description here..."})})]}),e.jsxs(n,{mt:210,py:h?0:24,children:[e.jsx(v,{color:"secondary",disabled:r,id:"add-node-submit-cta",size:"large",startIcon:r&&e.jsx(O,{children:e.jsx(B,{color:o.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"}),h?e.jsx(K,{children:e.jsxs(X,{children:[e.jsx(D,{className:"errorIcon"}),e.jsx("span",{children:h})]})}):null]})]})})})},N=t.form` + padding: 36px; + height: 100%; +`,O=t.span` + display: inline-flex; + align-items: center; + justify-content: center; + margin-top: 2px; + + svg { + width: 16px; + height: 16px; + } +`,_=t(n)` + display: flex; + align-items: flex-end; +`,q=t(n)` + display: flex; + direction: column; + justify-content: space-between; + height: 100%; +`,H=t.a` + font-family: 'Barlow'; + font-size: 16px; + color: ${o.PRIMARY_BLUE}; + text-decoration: underline; + font-weight: 500; +`,K=t(n)` + display: flex; + align-items: center; + color: ${o.primaryRed}; + position: relative; + margin-top: 10px; +`,X=t(n)` + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + gap: 2px; + + .errorIcon { + display: block; + font-size: 13px; + min-height: 13px; + min-width: 13px; + } + + span { + display: -webkit-box; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; + overflow: hidden; + white-space: normal; + letter-spacing: 0.2px; + cursor: pointer; + padding-left: 4px; + font-size: 13px; + font-family: Barlow; + line-height: 18px; + } +`,Z=a=>{const{children:d,value:l,index:r,...p}=a;return l===r?e.jsx(ie,{"aria-labelledby":`simple-tab-${r}`,hidden:l!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...p,children:d}):null};function J(a){return{id:`simple-tab-${a}`,"aria-controls":`simple-tabpanel-${a}`}}const Q=({onClose:a})=>{const[d,l]=b.useState(0),[r]=T(i=>[i.isAdmin,i.setPubKey]),p=$(i=>i.appMetaData),x=()=>r?"Admin Settings":"Settings",h=({children:i})=>e.jsxs(te,{children:[e.jsx(n,{direction:"row",pt:3,children:e.jsx(se,{"data-testid":"setting-label",children:x()})}),i]}),u=(i,s)=>{l(s)},m=[...r?[{label:"General",component:Y}]:[],{label:"Appearance",component:W}];return e.jsxs(ne,{"data-testid":"settings-modal",direction:"column",children:[e.jsx(h,{children:e.jsx(ee,{"aria-label":"settings tabs",onChange:u,value:d,children:m.map((i,s)=>e.jsx(ae,{disableRipple:!0,label:i.label,...J(s)},i.label))})}),m.map((i,s)=>e.jsx(Z,{index:s,value:d,children:p&&e.jsx(i.component,{initialValues:p,onClose:a})},i.label))]})},ee=t(E)` + && { + .MuiTabs-indicator { + background: ${o.primaryBlue}; + } + padding-left: 34px; + } +`,te=t(n)` + border-radius: 9px 9px 0 0; + background: rgb(22, 24, 30); + padding: 40px 36px 0 0; +`,ae=t(L)` + && { + min-width: 0; + width: auto; + padding: 30px 0 19px; + color: ${o.GRAY6}; + margin-right: 87px; + font-family: Barlow; + font-size: 16px; + font-style: normal; + font-weight: 500; + text-align: left; + + &.Mui-selected { + color: ${o.white}; + } + } +`,ie=t(n)` + display: flex; + flex: 1; + min-height: 495px; + max-height: 495px; + height: fit-content; + min-width: 480px; + overflow: hidden; + border-radius: 9px; + + @media (max-width: 1024px) { + min-height: auto; + overflow: auto; + max-height: 400px; + min-width: 480px; + } + + @media (max-width: 768px) { + min-height: auto; + overflow: auto; + max-height: 300px; + min-width: 380px; + } + + @media (max-width: 480px) { + min-height: auto; + overflow: auto; + max-height: 200px; + min-width: 280px; + } +`,ne=t(n)` + min-height: 0; + flex: 1; + overflow: hidden; +`,se=t(S)` + font-size: 22px; + font-weight: 600; + font-family: Barlow; + padding: 0 0 0 36px; + + @media (max-width: 1024px) { + font-size: 20px; + } + + @media (max-width: 768px) { + font-size: 18px; + } +`,ce=()=>{const{close:a}=j("settings"),{visible:d}=j("addItem");return d?null:e.jsx(I,{background:"BG1",id:"settings",noWrap:!0,onClose:a,preventOutsideClose:!0,children:e.jsx(Q,{onClose:a})})};export{ce as SettingsModal}; diff --git a/build/assets/index-1d70286e.js b/build/assets/index-23b710dd.js similarity index 77% rename from build/assets/index-1d70286e.js rename to build/assets/index-23b710dd.js index d801a6bdb..6ff4c46c8 100644 --- a/build/assets/index-1d70286e.js +++ b/build/assets/index-23b710dd.js @@ -1,10 +1,10 @@ -import{r as p,i as T,j as e,F as x,C as I,be as _,bq as L,s as n,T as C,e as A,t as B,aZ as E,w as F,a as M,bt as N,B as k}from"./index-f22e6e13.js";import{aI as O,aJ as z,aK as D,p as P}from"./index-8304ea06.js";import{u as w}from"./index-91503fb3.js";import{S as Y,A as R,I as X}from"./constants-9dc70933.js";import{A as H,T as W}from"./index-45d79f14.js";import{C as q}from"./ClipLoader-1ce39797.js";import"./Stack-e2486c11.js";import"./createSvgIcon-9d40ff73.js";import"./TextareaAutosize-5da8bada.js";const J=({topicId:s,onSelect:a,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[m,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const g={is_muted:"False",sort_by:R,search:i,skip:"0",limit:"1000"};f(!0);try{const v=(await L(g.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(v)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),r=o=>{const i=o.trim();if(!i){h([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(g=>g.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(Y,{onClick:()=>a(null),size:"medium",children:e.jsx(I,{})})]}):e.jsx(H,{dataId:c,handleInputChange:r,isLoading:m,onSelect:b,options:S(u)||_,selectedValue:d?t(d):null})},K=({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(U,{children:"Merge topic"})})}),e.jsxs(G,{swap:c,children:[e.jsx(Z,{children:e.jsx(Q,{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(C,{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(J,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs($,{children:[e.jsx(oe,{children:e.jsx(O,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(z,{})}),e.jsx(ne,{children:e.jsx(D,{})})]})]})]}),U=n(C)` +import{r as p,i as T,j as e,F as x,C as I,be as _,bq as L,s as n,T as C,e as A,t as E,aZ as F,w as B,a as M,bt as N,B as k}from"./index-6502785b.js";import{aE as O,aF as z,aG as D,p as P}from"./index-e4d37dbe.js";import{u as w}from"./index-db32d3e5.js";import{S as Y,A as R,I as X}from"./constants-2ca2bfc7.js";import{A as H,T as W}from"./index-8c0315a7.js";import{C as q}from"./ClipLoader-2e8a2039.js";import"./Stack-72c38e89.js";import"./createSvgIcon-6b5253a6.js";import"./TextareaAutosize-a343ed23.js";const G=({topicId:s,onSelect:a,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[m,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const g={is_muted:"False",sort_by:R,search:i,skip:"0",limit:"1000"};f(!0);try{const v=(await L(g.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(v)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),r=o=>{const i=o.trim();if(!i){h([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(g=>g.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(Y,{onClick:()=>a(null),size:"medium",children:e.jsx(I,{})})]}):e.jsx(H,{dataId:c,handleInputChange:r,isLoading:m,onSelect:b,options:S(u)||_,selectedValue:d?t(d):null})},U=({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(Z,{children:"Merge topic"})})}),e.jsxs(K,{swap:c,children:[e.jsx($,{children:e.jsx(Q,{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(C,{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(G,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(J,{children:[e.jsx(oe,{children:e.jsx(O,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(z,{})}),e.jsx(ne,{children:e.jsx(D,{})})]})]})]}),Z=n(C)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Z=n(x)` +`,$=n(x)` flex: 1 1 100%; -`,$=n.div` +`,J=n.div` position: absolute; top: 26px; bottom: 26px; @@ -14,7 +14,7 @@ import{r as p,i as T,j as e,F as x,C as I,be as _,bq as L,s as n,T as C,e as A,t border-top: 1.5px solid #6b7a8d4d; border-bottom: 1.5px solid #6b7a8d4d; border-radius: 12px 0 0 12px; -`,G=n.div` +`,K=n.div` position: relative; color: white; font-family: 'Barlow'; @@ -87,7 +87,7 @@ import{r as p,i as T,j as e,F as x,C as I,be as _,bq as L,s as n,T as C,e as A,t transform: translateY(10px) translateX(3px); color: #6b7a8d; line-height: 1; -`,ge=()=>{const{close:s}=A("mergeToNode"),[a,d,c]=w(l=>[l.data,l.ids,l.total]),u=B({mode:"onChange"}),[h,m]=p.useState(!1),[f,j]=p.useState(!1),[r,b]=p.useState(null),[t,S]=p.useState(),o=P();p.useEffect(()=>{o&&S(o)},[o]);const i=()=>{b(null),s()},g=async()=>{if(!(!r||!a)){m(!0);try{await N({from:t==null?void 0:t.ref_id,to:r==null?void 0:r.ref_id}),t!=null&&t.ref_id&&(a[t==null?void 0:t.ref_id]={...a[t==null?void 0:t.ref_id],edgeList:[X],edgeCount:a[t==null?void 0:t.ref_id].edgeCount-1},w.setState({ids:d.filter(l=>l!==r.ref_id),total:c-1})),i()}catch(l){console.warn(l)}finally{m(!1)}}};return e.jsx(E,{id:"mergeToNode",kind:"small",onClose:i,preventOutsideClose:!0,children:e.jsxs(F,{...u,children:[e.jsx(K,{from:t,isSwapped:f,onSelect:b,selectedToNode:r,setIsSwapped:()=>j(!f)}),e.jsxs(ae,{color:"secondary","data-testid":"merge-topics-button",disabled:h||!r,onClick:g,size:"large",variant:"contained",children:["Merge topics",h&&e.jsx(re,{children:e.jsx(q,{color:M.BLUE_PRESS_STATE,size:12})})]})]})})},ae=n(k)` +`,ge=()=>{const{close:s}=A("mergeToNode"),[a,d,c]=w(l=>[l.data,l.ids,l.total]),u=E({mode:"onChange"}),[h,m]=p.useState(!1),[f,j]=p.useState(!1),[r,b]=p.useState(null),[t,S]=p.useState(),o=P();p.useEffect(()=>{o&&S(o)},[o]);const i=()=>{b(null),s()},g=async()=>{if(!(!r||!a)){m(!0);try{await N({from:t==null?void 0:t.ref_id,to:r==null?void 0:r.ref_id}),t!=null&&t.ref_id&&(a[t==null?void 0:t.ref_id]={...a[t==null?void 0:t.ref_id],edgeList:[X],edgeCount:a[t==null?void 0:t.ref_id].edgeCount-1},w.setState({ids:d.filter(l=>l!==r.ref_id),total:c-1})),i()}catch(l){console.warn(l)}finally{m(!1)}}};return e.jsx(F,{id:"mergeToNode",kind:"small",onClose:i,preventOutsideClose:!0,children:e.jsxs(B,{...u,children:[e.jsx(U,{from:t,isSwapped:f,onSelect:b,selectedToNode:r,setIsSwapped:()=>j(!f)}),e.jsxs(ae,{color:"secondary","data-testid":"merge-topics-button",disabled:h||!r,onClick:g,size:"large",variant:"contained",children:["Merge topics",h&&e.jsx(re,{children:e.jsx(q,{color:M.BLUE_PRESS_STATE,size:12})})]})]})})},ae=n(k)` width: 293px !important; margin: 0 0 10px auto !important; `,re=n.span` diff --git a/build/assets/index-cf87648e.js b/build/assets/index-5993f045.js similarity index 99% rename from build/assets/index-cf87648e.js rename to build/assets/index-5993f045.js index 876acb5d6..0ae0bb828 100644 --- a/build/assets/index-cf87648e.js +++ b/build/assets/index-5993f045.js @@ -1,4 +1,4 @@ -import{r as y,P as _o,S as jo,U as Wt,y as oe,X as Oo,a6 as Ei,L as Po,j as p,Y as To,bz as En,bA as gr,Z as $o,a0 as bt,V as Zr,al as Ci,am as Si,s as O,a as j,t as br,be as _i,bd as xr,T as _e,F as $,aW as hn,aX as gn,bb as ji,B as Cn,bB as Oi,bC as Hn,w as Ao,bD as Pi,C as mr,bE as Ti,M as c,k as vr,ao as Qr,bF as $i,ap as Ai,bG as Jr,bH as Mo,bc as ko,e as Ro,bI as Mi,N as gt,D as ar,d as yr,v as ki,A as ea,aZ as Ri}from"./index-f22e6e13.js";import{A as Dt}from"./index-45d79f14.js";import{C as Ie}from"./ClipLoader-1ce39797.js";import{m as E,I as or,e as Bi,D as Fi,g as Bo,aU as Ni,v as ta,aV as na,aW as ra,w as aa,t as Ii,aX as Di,aY as Hi}from"./index-8304ea06.js";import{S as zi,j as Li,p as Gi,q as Wi,r as Ui,m as Vi,F as Yi}from"./isPlainObject-212517ba.js";import{T as Xi,a as Ki}from"./Tabs-a3278039.js";import{p as ir,c as qi,g as Zi}from"./index-83069401.js";import{e as Qi}from"./Stack-e2486c11.js";import{g as Ji,m as es,u as me,a as Sn,t as sr,T as Fo,f as No,l as ts,H as ns,i as oa,C as rs,j as as,k as os}from"./index-d3e0dfea.js";import{R as is,y as ss,z as ls,V as G,A as qe,I as Ze,Q as ia,J as ln,O as cn,K as sa,e as de,N as cs,r as us,C as ps}from"./three.module-9c942ca6.js";import"./createSvgIcon-9d40ff73.js";import"./TextareaAutosize-5da8bada.js";import"./Typography-1355ab6c.js";const ds=y.createContext(),la=ds;function fs(t){return _o("MuiGrid",t)}const hs=[0,1,2,3,4,5,6,7,8,9,10],gs=["column-reverse","column","row-reverse","row"],bs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],xs=jo("MuiGrid",["root","container","item","zeroMinWidth",...hs.map(t=>`spacing-xs-${t}`),...gs.map(t=>`direction-xs-${t}`),...bs.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=xs,ms=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function vs({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} + ${xt(d)})`;u={flexBasis:f,maxWidth:f}}}o=oe({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 ys({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 ws({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:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingTop:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function Es({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% + ${xt(d)})`,marginLeft:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingLeft:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Cs(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 Ss=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=Cs(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})=>oe({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}),ys,ws,Es,vs);function _s(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 js=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=_s(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,fs,e)},Os=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,ms),_=g||x,B=l||x,P=y.useContext(la),T=d?i||12:P,M={},L=oe({},w);a.keys.forEach(S=>{w[S]!=null&&(M[S]=w[S],delete L[S])});const H=oe({},o,{columns:T,container:d,direction:f,item:h,rowSpacing:_,columnSpacing:B,wrap:m,zeroMinWidth:v,spacing:x},M,{breakpoints:a.keys}),V=js(H);return p.jsx(la.Provider,{value:T,children:p.jsx(Ss,oe({ownerState:H,className:To(V.root,s),as:u,ref:n},L))})}),je=Os;function Ps(t){return _o("MuiSwitch",t)}const Ts=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),J=Ts,$s=["className","color","edge","size","sx"],As=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${bt(n)}`,`size${bt(r)}`],switchBase:["switchBase",`color${bt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Ps,e);return oe({},e,l)},Ms=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${bt(n.edge)}`],e[`size${bt(n.size)}`]]}})(({ownerState:t})=>oe({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)"}}})),ks=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${bt(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})=>oe({"&: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}})),Rs=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}`})),Bs=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%"})),Fs=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,$s),d=oe({},r,{color:o,edge:s,size:i}),f=As(d),h=p.jsx(Bs,{className:f.thumb,ownerState:d});return p.jsxs(Ms,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(ks,oe({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:oe({},f,{root:f.switchBase})})),p.jsx(Rs,{className:f.track,ownerState:d})]})}),Do=Fs;var Ns=Object.defineProperty,Is=(t,e,n)=>e in t?Ns(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e,n)=>(Is(t,typeof e!="symbol"?e+"":e,n),n);const un=new is,ca=new ss,Ds=Math.cos(70*(Math.PI/180)),ua=(t,e)=>(t%e+e)%e;let Hs=class extends ls{constructor(e,n){super(),R(this,"object"),R(this,"domElement"),R(this,"enabled",!0),R(this,"target",new G),R(this,"minDistance",0),R(this,"maxDistance",1/0),R(this,"minZoom",0),R(this,"maxZoom",1/0),R(this,"minPolarAngle",0),R(this,"maxPolarAngle",Math.PI),R(this,"minAzimuthAngle",-1/0),R(this,"maxAzimuthAngle",1/0),R(this,"enableDamping",!1),R(this,"dampingFactor",.05),R(this,"enableZoom",!0),R(this,"zoomSpeed",1),R(this,"enableRotate",!0),R(this,"rotateSpeed",1),R(this,"enablePan",!0),R(this,"panSpeed",1),R(this,"screenSpacePanning",!0),R(this,"keyPanSpeed",7),R(this,"zoomToCursor",!1),R(this,"autoRotate",!1),R(this,"autoRotateSpeed",2),R(this,"reverseOrbit",!1),R(this,"reverseHorizontalOrbit",!1),R(this,"reverseVerticalOrbit",!1),R(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),R(this,"mouseButtons",{LEFT:qe.ROTATE,MIDDLE:qe.DOLLY,RIGHT:qe.PAN}),R(this,"touches",{ONE:Ze.ROTATE,TWO:Ze.DOLLY_PAN}),R(this,"target0"),R(this,"position0"),R(this,"zoom0"),R(this,"_domElementKeyEvents",null),R(this,"getPolarAngle"),R(this,"getAzimuthalAngle"),R(this,"setPolarAngle"),R(this,"setAzimuthalAngle"),R(this,"getDistance"),R(this,"listenToKeyEvents"),R(this,"stopListenToKeyEvents"),R(this,"saveState"),R(this,"reset"),R(this,"update"),R(this,"connect"),R(this,"dispose"),this.object=e,this.domElement=n,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>d.phi,this.getAzimuthalAngle=()=>d.theta,this.setPolarAngle=b=>{let C=ua(b,2*Math.PI),F=d.phi;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-U{let C=ua(b,2*Math.PI),F=d.theta;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-Ur.object.position.distanceTo(r.target),this.listenToKeyEvents=b=>{b.addEventListener("keydown",jt),this._domElementKeyEvents=b},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",jt),this._domElementKeyEvents=null},this.saveState=()=>{r.target0.copy(r.target),r.position0.copy(r.object.position),r.zoom0=r.object.zoom},this.reset=()=>{r.target.copy(r.target0),r.object.position.copy(r.position0),r.object.zoom=r.zoom0,r.object.updateProjectionMatrix(),r.dispatchEvent(a),r.update(),l=i.NONE},this.update=(()=>{const b=new G,C=new G(0,1,0),F=new ia().setFromUnitVectors(e.up,C),U=F.clone().invert(),Z=new G,we=new ia,Me=2*Math.PI;return function(){const qr=r.object.position;F.setFromUnitVectors(e.up,C),U.copy(F).invert(),b.copy(qr).sub(r.target),b.applyQuaternion(F),d.setFromVector3(b),r.autoRotate&&l===i.NONE&&K(X()),r.enableDamping?(d.theta+=f.theta*r.dampingFactor,d.phi+=f.phi*r.dampingFactor):(d.theta+=f.theta,d.phi+=f.phi);let Ee=r.minAzimuthAngle,Ce=r.maxAzimuthAngle;isFinite(Ee)&&isFinite(Ce)&&(Ee<-Math.PI?Ee+=Me:Ee>Math.PI&&(Ee-=Me),Ce<-Math.PI?Ce+=Me:Ce>Math.PI&&(Ce-=Me),Ee<=Ce?d.theta=Math.max(Ee,Math.min(Ce,d.theta)):d.theta=d.theta>(Ee+Ce)/2?Math.max(Ee,d.theta):Math.min(Ce,d.theta)),d.phi=Math.max(r.minPolarAngle,Math.min(r.maxPolarAngle,d.phi)),d.makeSafe(),r.enableDamping===!0?r.target.addScaledVector(g,r.dampingFactor):r.target.add(g),r.zoomToCursor&&V||r.object.isOrthographicCamera?d.radius=Fe(d.radius):d.radius=Fe(d.radius*h),b.setFromSpherical(d),b.applyQuaternion(U),qr.copy(r.target).add(b),r.object.matrixAutoUpdate||r.object.updateMatrix(),r.object.lookAt(r.target),r.enableDamping===!0?(f.theta*=1-r.dampingFactor,f.phi*=1-r.dampingFactor,g.multiplyScalar(1-r.dampingFactor)):(f.set(0,0,0),g.set(0,0,0));let on=!1;if(r.zoomToCursor&&V){let $t=null;if(r.object instanceof ln&&r.object.isPerspectiveCamera){const At=b.length();$t=Fe(At*h);const sn=At-$t;r.object.position.addScaledVector(L,sn),r.object.updateMatrixWorld()}else if(r.object.isOrthographicCamera){const At=new G(H.x,H.y,0);At.unproject(r.object),r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/h)),r.object.updateProjectionMatrix(),on=!0;const sn=new G(H.x,H.y,0);sn.unproject(r.object),r.object.position.sub(sn).add(At),r.object.updateMatrixWorld(),$t=b.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),r.zoomToCursor=!1;$t!==null&&(r.screenSpacePanning?r.target.set(0,0,-1).transformDirection(r.object.matrix).multiplyScalar($t).add(r.object.position):(un.origin.copy(r.object.position),un.direction.set(0,0,-1).transformDirection(r.object.matrix),Math.abs(r.object.up.dot(un.direction))u||8*(1-we.dot(r.object.quaternion))>u?(r.dispatchEvent(a),Z.copy(r.object.position),we.copy(r.object.quaternion),on=!1,!0):!1}})(),this.connect=b=>{b===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),r.domElement=b,r.domElement.style.touchAction="none",r.domElement.addEventListener("contextmenu",Ot),r.domElement.addEventListener("pointerdown",Xe),r.domElement.addEventListener("pointercancel",z),r.domElement.addEventListener("wheel",le)},this.dispose=()=>{var b,C,F,U,Z,we;(b=r.domElement)==null||b.removeEventListener("contextmenu",Ot),(C=r.domElement)==null||C.removeEventListener("pointerdown",Xe),(F=r.domElement)==null||F.removeEventListener("pointercancel",z),(U=r.domElement)==null||U.removeEventListener("wheel",le),(Z=r.domElement)==null||Z.ownerDocument.removeEventListener("pointermove",Ke),(we=r.domElement)==null||we.ownerDocument.removeEventListener("pointerup",k),r._domElementKeyEvents!==null&&r._domElementKeyEvents.removeEventListener("keydown",jt)};const r=this,a={type:"change"},o={type:"start"},s={type:"end"},i={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=i.NONE;const u=1e-6,d=new sa,f=new sa;let h=1;const g=new G,x=new de,m=new de,v=new de,w=new de,_=new de,B=new de,P=new de,T=new de,M=new de,L=new G,H=new de;let V=!1;const S=[],D={};function X(){return 2*Math.PI/60/60*r.autoRotateSpeed}function I(){return Math.pow(.95,r.zoomSpeed)}function K(b){r.reverseOrbit||r.reverseHorizontalOrbit?f.theta+=b:f.theta-=b}function re(b){r.reverseOrbit||r.reverseVerticalOrbit?f.phi+=b:f.phi-=b}const xe=(()=>{const b=new G;return function(F,U){b.setFromMatrixColumn(U,0),b.multiplyScalar(-F),g.add(b)}})(),Te=(()=>{const b=new G;return function(F,U){r.screenSpacePanning===!0?b.setFromMatrixColumn(U,1):(b.setFromMatrixColumn(U,0),b.crossVectors(r.object.up,b)),b.multiplyScalar(F),g.add(b)}})(),pe=(()=>{const b=new G;return function(F,U){const Z=r.domElement;if(Z&&r.object instanceof ln&&r.object.isPerspectiveCamera){const we=r.object.position;b.copy(we).sub(r.target);let Me=b.length();Me*=Math.tan(r.object.fov/2*Math.PI/180),xe(2*F*Me/Z.clientHeight,r.object.matrix),Te(2*U*Me/Z.clientHeight,r.object.matrix)}else Z&&r.object instanceof cn&&r.object.isOrthographicCamera?(xe(F*(r.object.right-r.object.left)/r.object.zoom/Z.clientWidth,r.object.matrix),Te(U*(r.object.top-r.object.bottom)/r.object.zoom/Z.clientHeight,r.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),r.enablePan=!1)}})();function Et(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h/=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function Ue(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h*=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function $e(b){if(!r.zoomToCursor||!r.domElement)return;V=!0;const C=r.domElement.getBoundingClientRect(),F=b.clientX-C.left,U=b.clientY-C.top,Z=C.width,we=C.height;H.x=F/Z*2-1,H.y=-(U/we)*2+1,L.set(H.x,H.y,1).unproject(r.object).sub(r.object.position).normalize()}function Fe(b){return Math.max(r.minDistance,Math.min(r.maxDistance,b))}function ye(b){x.set(b.clientX,b.clientY)}function Ct(b){$e(b),P.set(b.clientX,b.clientY)}function St(b){w.set(b.clientX,b.clientY)}function kn(b){m.set(b.clientX,b.clientY),v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m),r.update()}function Qt(b){T.set(b.clientX,b.clientY),M.subVectors(T,P),M.y>0?Et(I()):M.y<0&&Ue(I()),P.copy(T),r.update()}function Rn(b){_.set(b.clientX,b.clientY),B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_),r.update()}function ee(b){$e(b),b.deltaY<0?Ue(I()):b.deltaY>0&&Et(I()),r.update()}function Bn(b){let C=!1;switch(b.code){case r.keys.UP:pe(0,r.keyPanSpeed),C=!0;break;case r.keys.BOTTOM:pe(0,-r.keyPanSpeed),C=!0;break;case r.keys.LEFT:pe(r.keyPanSpeed,0),C=!0;break;case r.keys.RIGHT:pe(-r.keyPanSpeed,0),C=!0;break}C&&(b.preventDefault(),r.update())}function Ve(){if(S.length==1)x.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);x.set(b,C)}}function Ae(){if(S.length==1)w.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);w.set(b,C)}}function Jt(){const b=S[0].pageX-S[1].pageX,C=S[0].pageY-S[1].pageY,F=Math.sqrt(b*b+C*C);P.set(0,F)}function Fn(){r.enableZoom&&Jt(),r.enablePan&&Ae()}function Nn(){r.enableZoom&&Jt(),r.enableRotate&&Ve()}function _t(b){if(S.length==1)m.set(b.pageX,b.pageY);else{const F=Dn(b),U=.5*(b.pageX+F.x),Z=.5*(b.pageY+F.y);m.set(U,Z)}v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m)}function en(b){if(S.length==1)_.set(b.pageX,b.pageY);else{const C=Dn(b),F=.5*(b.pageX+C.x),U=.5*(b.pageY+C.y);_.set(F,U)}B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_)}function tn(b){const C=Dn(b),F=b.pageX-C.x,U=b.pageY-C.y,Z=Math.sqrt(F*F+U*U);T.set(0,Z),M.set(0,Math.pow(T.y/P.y,r.zoomSpeed)),Et(M.y),P.copy(T)}function Ye(b){r.enableZoom&&tn(b),r.enablePan&&en(b)}function In(b){r.enableZoom&&tn(b),r.enableRotate&&_t(b)}function Xe(b){var C,F;r.enabled!==!1&&(S.length===0&&((C=r.domElement)==null||C.ownerDocument.addEventListener("pointermove",Ke),(F=r.domElement)==null||F.ownerDocument.addEventListener("pointerup",k)),an(b),b.pointerType==="touch"?nn(b):Q(b))}function Ke(b){r.enabled!==!1&&(b.pointerType==="touch"?rn(b):se(b))}function k(b){var C,F,U;Pt(b),S.length===0&&((C=r.domElement)==null||C.releasePointerCapture(b.pointerId),(F=r.domElement)==null||F.ownerDocument.removeEventListener("pointermove",Ke),(U=r.domElement)==null||U.ownerDocument.removeEventListener("pointerup",k)),r.dispatchEvent(s),l=i.NONE}function z(b){Pt(b)}function Q(b){let C;switch(b.button){case 0:C=r.mouseButtons.LEFT;break;case 1:C=r.mouseButtons.MIDDLE;break;case 2:C=r.mouseButtons.RIGHT;break;default:C=-1}switch(C){case qe.DOLLY:if(r.enableZoom===!1)return;Ct(b),l=i.DOLLY;break;case qe.ROTATE:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enablePan===!1)return;St(b),l=i.PAN}else{if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}break;case qe.PAN:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}else{if(r.enablePan===!1)return;St(b),l=i.PAN}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function se(b){if(r.enabled!==!1)switch(l){case i.ROTATE:if(r.enableRotate===!1)return;kn(b);break;case i.DOLLY:if(r.enableZoom===!1)return;Qt(b);break;case i.PAN:if(r.enablePan===!1)return;Rn(b);break}}function le(b){r.enabled===!1||r.enableZoom===!1||l!==i.NONE&&l!==i.ROTATE||(b.preventDefault(),r.dispatchEvent(o),ee(b),r.dispatchEvent(s))}function jt(b){r.enabled===!1||r.enablePan===!1||Bn(b)}function nn(b){switch(Tt(b),S.length){case 1:switch(r.touches.ONE){case Ze.ROTATE:if(r.enableRotate===!1)return;Ve(),l=i.TOUCH_ROTATE;break;case Ze.PAN:if(r.enablePan===!1)return;Ae(),l=i.TOUCH_PAN;break;default:l=i.NONE}break;case 2:switch(r.touches.TWO){case Ze.DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Fn(),l=i.TOUCH_DOLLY_PAN;break;case Ze.DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;Nn(),l=i.TOUCH_DOLLY_ROTATE;break;default:l=i.NONE}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function rn(b){switch(Tt(b),l){case i.TOUCH_ROTATE:if(r.enableRotate===!1)return;_t(b),r.update();break;case i.TOUCH_PAN:if(r.enablePan===!1)return;en(b),r.update();break;case i.TOUCH_DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Ye(b),r.update();break;case i.TOUCH_DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;In(b),r.update();break;default:l=i.NONE}}function Ot(b){r.enabled!==!1&&b.preventDefault()}function an(b){S.push(b)}function Pt(b){delete D[b.pointerId];for(let C=0;Cnew cs(void 0,void 0,void 0)),u=y.useCallback((f,h,g,x=20)=>(f instanceof G?l.v0.copy(f):l.v0.set(...f),h instanceof G?l.v2.copy(h):l.v2.set(...h),g instanceof G?l.v1.copy(g):l.v1.copy(l.v0.clone().add(l.v2.clone().sub(l.v0)).add(zs.set(0,l.v0.y-l.v2.y,0))),l.getPoints(x)),[]);y.useLayoutEffect(()=>{i.current.setPoints=(f,h,g)=>{const x=u(f,h,g);i.current.geometry&&i.current.geometry.setPositions(x.map(m=>m.toArray()).flat())}},[]);const d=y.useMemo(()=>u(e,n,r,a),[e,n,r,a]);return y.createElement(Ji,oe({ref:es([i,s]),points:d},o))}),Ls=y.forwardRef(({makeDefault:t,camera:e,regress:n,domElement:r,enableDamping:a=!0,onChange:o,onStart:s,onEnd:i,...l},u)=>{const d=me(T=>T.invalidate),f=me(T=>T.camera),h=me(T=>T.gl),g=me(T=>T.events),x=me(T=>T.setEvents),m=me(T=>T.set),v=me(T=>T.get),w=me(T=>T.performance),_=e||f,B=r||g.connected||h.domElement,P=y.useMemo(()=>new Hs(_),[_]);return Sn(()=>{P.enabled&&P.update()},-1),y.useEffect(()=>(P.connect(B),()=>void P.dispose()),[B,n,P,d]),y.useEffect(()=>{const T=H=>{d(),n&&w.regress(),o&&o(H)},M=H=>{s&&s(H)},L=H=>{i&&i(H)};return P.addEventListener("change",T),P.addEventListener("start",M),P.addEventListener("end",L),()=>{P.removeEventListener("start",M),P.removeEventListener("end",L),P.removeEventListener("change",T)}},[o,s,i,P,d,x]),y.useEffect(()=>{if(t){const T=v().controls;return m({controls:P}),()=>m({controls:T})}},[t,P]),y.createElement("primitive",oe({ref:u,object:P,enableDamping:a},l))}),Gs={type:"",parent:""},da=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=br({mode:"onChange",defaultValues:Gs}),{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 xr()).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(Ws,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||_i,placeholder:a,selectedValue:m()})},Ws=O(Dt)` +import{r as y,P as _o,S as jo,U as Wt,y as oe,X as Oo,a6 as Ei,L as Po,j as p,Y as To,bz as En,bA as gr,Z as $o,a0 as bt,V as Zr,al as Ci,am as Si,s as O,a as j,t as br,be as _i,bd as xr,T as _e,F as $,aW as hn,aX as gn,bb as ji,B as Cn,bB as Oi,bC as Hn,w as Ao,bD as Pi,C as mr,bE as Ti,M as c,k as vr,ao as Qr,bF as $i,ap as Ai,bG as Jr,bH as Mo,bc as ko,e as Ro,bI as Mi,N as gt,D as ar,d as yr,v as ki,A as ea,aZ as Ri}from"./index-6502785b.js";import{A as Dt}from"./index-8c0315a7.js";import{C as Ie}from"./ClipLoader-2e8a2039.js";import{m as E,I as or,f as Bi,D as Fi,h as Bo,aQ as Ni,t as ta,aR as na,aS as ra,v as aa,s as Ii,aT as Di,aU as Hi}from"./index-e4d37dbe.js";import{S as zi,j as Li,p as Gi,q as Wi,r as Ui,m as Vi,F as Yi}from"./isPlainObject-886127ee.js";import{T as Xi,a as Ki}from"./Tabs-1c82bd38.js";import{p as ir,c as qi,g as Zi}from"./index-83069401.js";import{e as Qi}from"./Stack-72c38e89.js";import{g as Ji,m as es,u as me,a as Sn,t as sr,T as Fo,f as No,l as ts,H as ns,i as oa,C as rs,j as as,k as os}from"./index-73fbdc56.js";import{R as is,y as ss,z as ls,V as G,A as qe,I as Ze,Q as ia,J as ln,O as cn,K as sa,e as de,N as cs,r as us,C as ps}from"./three.module-9c942ca6.js";import"./createSvgIcon-6b5253a6.js";import"./TextareaAutosize-a343ed23.js";import"./Typography-04aa1062.js";const ds=y.createContext(),la=ds;function fs(t){return _o("MuiGrid",t)}const hs=[0,1,2,3,4,5,6,7,8,9,10],gs=["column-reverse","column","row-reverse","row"],bs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],xs=jo("MuiGrid",["root","container","item","zeroMinWidth",...hs.map(t=>`spacing-xs-${t}`),...gs.map(t=>`direction-xs-${t}`),...bs.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=xs,ms=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function vs({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} + ${xt(d)})`;u={flexBasis:f,maxWidth:f}}}o=oe({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 ys({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 ws({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:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingTop:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function Es({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% + ${xt(d)})`,marginLeft:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingLeft:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Cs(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 Ss=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=Cs(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})=>oe({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}),ys,ws,Es,vs);function _s(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 js=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=_s(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,fs,e)},Os=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,ms),_=g||x,B=l||x,P=y.useContext(la),T=d?i||12:P,M={},L=oe({},w);a.keys.forEach(S=>{w[S]!=null&&(M[S]=w[S],delete L[S])});const H=oe({},o,{columns:T,container:d,direction:f,item:h,rowSpacing:_,columnSpacing:B,wrap:m,zeroMinWidth:v,spacing:x},M,{breakpoints:a.keys}),V=js(H);return p.jsx(la.Provider,{value:T,children:p.jsx(Ss,oe({ownerState:H,className:To(V.root,s),as:u,ref:n},L))})}),je=Os;function Ps(t){return _o("MuiSwitch",t)}const Ts=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),J=Ts,$s=["className","color","edge","size","sx"],As=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${bt(n)}`,`size${bt(r)}`],switchBase:["switchBase",`color${bt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Ps,e);return oe({},e,l)},Ms=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${bt(n.edge)}`],e[`size${bt(n.size)}`]]}})(({ownerState:t})=>oe({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)"}}})),ks=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${bt(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})=>oe({"&: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}})),Rs=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}`})),Bs=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%"})),Fs=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,$s),d=oe({},r,{color:o,edge:s,size:i}),f=As(d),h=p.jsx(Bs,{className:f.thumb,ownerState:d});return p.jsxs(Ms,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(ks,oe({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:oe({},f,{root:f.switchBase})})),p.jsx(Rs,{className:f.track,ownerState:d})]})}),Do=Fs;var Ns=Object.defineProperty,Is=(t,e,n)=>e in t?Ns(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e,n)=>(Is(t,typeof e!="symbol"?e+"":e,n),n);const un=new is,ca=new ss,Ds=Math.cos(70*(Math.PI/180)),ua=(t,e)=>(t%e+e)%e;let Hs=class extends ls{constructor(e,n){super(),R(this,"object"),R(this,"domElement"),R(this,"enabled",!0),R(this,"target",new G),R(this,"minDistance",0),R(this,"maxDistance",1/0),R(this,"minZoom",0),R(this,"maxZoom",1/0),R(this,"minPolarAngle",0),R(this,"maxPolarAngle",Math.PI),R(this,"minAzimuthAngle",-1/0),R(this,"maxAzimuthAngle",1/0),R(this,"enableDamping",!1),R(this,"dampingFactor",.05),R(this,"enableZoom",!0),R(this,"zoomSpeed",1),R(this,"enableRotate",!0),R(this,"rotateSpeed",1),R(this,"enablePan",!0),R(this,"panSpeed",1),R(this,"screenSpacePanning",!0),R(this,"keyPanSpeed",7),R(this,"zoomToCursor",!1),R(this,"autoRotate",!1),R(this,"autoRotateSpeed",2),R(this,"reverseOrbit",!1),R(this,"reverseHorizontalOrbit",!1),R(this,"reverseVerticalOrbit",!1),R(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),R(this,"mouseButtons",{LEFT:qe.ROTATE,MIDDLE:qe.DOLLY,RIGHT:qe.PAN}),R(this,"touches",{ONE:Ze.ROTATE,TWO:Ze.DOLLY_PAN}),R(this,"target0"),R(this,"position0"),R(this,"zoom0"),R(this,"_domElementKeyEvents",null),R(this,"getPolarAngle"),R(this,"getAzimuthalAngle"),R(this,"setPolarAngle"),R(this,"setAzimuthalAngle"),R(this,"getDistance"),R(this,"listenToKeyEvents"),R(this,"stopListenToKeyEvents"),R(this,"saveState"),R(this,"reset"),R(this,"update"),R(this,"connect"),R(this,"dispose"),this.object=e,this.domElement=n,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>d.phi,this.getAzimuthalAngle=()=>d.theta,this.setPolarAngle=b=>{let C=ua(b,2*Math.PI),F=d.phi;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-U{let C=ua(b,2*Math.PI),F=d.theta;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-Ur.object.position.distanceTo(r.target),this.listenToKeyEvents=b=>{b.addEventListener("keydown",jt),this._domElementKeyEvents=b},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",jt),this._domElementKeyEvents=null},this.saveState=()=>{r.target0.copy(r.target),r.position0.copy(r.object.position),r.zoom0=r.object.zoom},this.reset=()=>{r.target.copy(r.target0),r.object.position.copy(r.position0),r.object.zoom=r.zoom0,r.object.updateProjectionMatrix(),r.dispatchEvent(a),r.update(),l=i.NONE},this.update=(()=>{const b=new G,C=new G(0,1,0),F=new ia().setFromUnitVectors(e.up,C),U=F.clone().invert(),Z=new G,we=new ia,Me=2*Math.PI;return function(){const qr=r.object.position;F.setFromUnitVectors(e.up,C),U.copy(F).invert(),b.copy(qr).sub(r.target),b.applyQuaternion(F),d.setFromVector3(b),r.autoRotate&&l===i.NONE&&K(X()),r.enableDamping?(d.theta+=f.theta*r.dampingFactor,d.phi+=f.phi*r.dampingFactor):(d.theta+=f.theta,d.phi+=f.phi);let Ee=r.minAzimuthAngle,Ce=r.maxAzimuthAngle;isFinite(Ee)&&isFinite(Ce)&&(Ee<-Math.PI?Ee+=Me:Ee>Math.PI&&(Ee-=Me),Ce<-Math.PI?Ce+=Me:Ce>Math.PI&&(Ce-=Me),Ee<=Ce?d.theta=Math.max(Ee,Math.min(Ce,d.theta)):d.theta=d.theta>(Ee+Ce)/2?Math.max(Ee,d.theta):Math.min(Ce,d.theta)),d.phi=Math.max(r.minPolarAngle,Math.min(r.maxPolarAngle,d.phi)),d.makeSafe(),r.enableDamping===!0?r.target.addScaledVector(g,r.dampingFactor):r.target.add(g),r.zoomToCursor&&V||r.object.isOrthographicCamera?d.radius=Fe(d.radius):d.radius=Fe(d.radius*h),b.setFromSpherical(d),b.applyQuaternion(U),qr.copy(r.target).add(b),r.object.matrixAutoUpdate||r.object.updateMatrix(),r.object.lookAt(r.target),r.enableDamping===!0?(f.theta*=1-r.dampingFactor,f.phi*=1-r.dampingFactor,g.multiplyScalar(1-r.dampingFactor)):(f.set(0,0,0),g.set(0,0,0));let on=!1;if(r.zoomToCursor&&V){let $t=null;if(r.object instanceof ln&&r.object.isPerspectiveCamera){const At=b.length();$t=Fe(At*h);const sn=At-$t;r.object.position.addScaledVector(L,sn),r.object.updateMatrixWorld()}else if(r.object.isOrthographicCamera){const At=new G(H.x,H.y,0);At.unproject(r.object),r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/h)),r.object.updateProjectionMatrix(),on=!0;const sn=new G(H.x,H.y,0);sn.unproject(r.object),r.object.position.sub(sn).add(At),r.object.updateMatrixWorld(),$t=b.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),r.zoomToCursor=!1;$t!==null&&(r.screenSpacePanning?r.target.set(0,0,-1).transformDirection(r.object.matrix).multiplyScalar($t).add(r.object.position):(un.origin.copy(r.object.position),un.direction.set(0,0,-1).transformDirection(r.object.matrix),Math.abs(r.object.up.dot(un.direction))u||8*(1-we.dot(r.object.quaternion))>u?(r.dispatchEvent(a),Z.copy(r.object.position),we.copy(r.object.quaternion),on=!1,!0):!1}})(),this.connect=b=>{b===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),r.domElement=b,r.domElement.style.touchAction="none",r.domElement.addEventListener("contextmenu",Ot),r.domElement.addEventListener("pointerdown",Xe),r.domElement.addEventListener("pointercancel",z),r.domElement.addEventListener("wheel",le)},this.dispose=()=>{var b,C,F,U,Z,we;(b=r.domElement)==null||b.removeEventListener("contextmenu",Ot),(C=r.domElement)==null||C.removeEventListener("pointerdown",Xe),(F=r.domElement)==null||F.removeEventListener("pointercancel",z),(U=r.domElement)==null||U.removeEventListener("wheel",le),(Z=r.domElement)==null||Z.ownerDocument.removeEventListener("pointermove",Ke),(we=r.domElement)==null||we.ownerDocument.removeEventListener("pointerup",k),r._domElementKeyEvents!==null&&r._domElementKeyEvents.removeEventListener("keydown",jt)};const r=this,a={type:"change"},o={type:"start"},s={type:"end"},i={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=i.NONE;const u=1e-6,d=new sa,f=new sa;let h=1;const g=new G,x=new de,m=new de,v=new de,w=new de,_=new de,B=new de,P=new de,T=new de,M=new de,L=new G,H=new de;let V=!1;const S=[],D={};function X(){return 2*Math.PI/60/60*r.autoRotateSpeed}function I(){return Math.pow(.95,r.zoomSpeed)}function K(b){r.reverseOrbit||r.reverseHorizontalOrbit?f.theta+=b:f.theta-=b}function re(b){r.reverseOrbit||r.reverseVerticalOrbit?f.phi+=b:f.phi-=b}const xe=(()=>{const b=new G;return function(F,U){b.setFromMatrixColumn(U,0),b.multiplyScalar(-F),g.add(b)}})(),Te=(()=>{const b=new G;return function(F,U){r.screenSpacePanning===!0?b.setFromMatrixColumn(U,1):(b.setFromMatrixColumn(U,0),b.crossVectors(r.object.up,b)),b.multiplyScalar(F),g.add(b)}})(),pe=(()=>{const b=new G;return function(F,U){const Z=r.domElement;if(Z&&r.object instanceof ln&&r.object.isPerspectiveCamera){const we=r.object.position;b.copy(we).sub(r.target);let Me=b.length();Me*=Math.tan(r.object.fov/2*Math.PI/180),xe(2*F*Me/Z.clientHeight,r.object.matrix),Te(2*U*Me/Z.clientHeight,r.object.matrix)}else Z&&r.object instanceof cn&&r.object.isOrthographicCamera?(xe(F*(r.object.right-r.object.left)/r.object.zoom/Z.clientWidth,r.object.matrix),Te(U*(r.object.top-r.object.bottom)/r.object.zoom/Z.clientHeight,r.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),r.enablePan=!1)}})();function Et(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h/=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function Ue(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h*=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function $e(b){if(!r.zoomToCursor||!r.domElement)return;V=!0;const C=r.domElement.getBoundingClientRect(),F=b.clientX-C.left,U=b.clientY-C.top,Z=C.width,we=C.height;H.x=F/Z*2-1,H.y=-(U/we)*2+1,L.set(H.x,H.y,1).unproject(r.object).sub(r.object.position).normalize()}function Fe(b){return Math.max(r.minDistance,Math.min(r.maxDistance,b))}function ye(b){x.set(b.clientX,b.clientY)}function Ct(b){$e(b),P.set(b.clientX,b.clientY)}function St(b){w.set(b.clientX,b.clientY)}function kn(b){m.set(b.clientX,b.clientY),v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m),r.update()}function Qt(b){T.set(b.clientX,b.clientY),M.subVectors(T,P),M.y>0?Et(I()):M.y<0&&Ue(I()),P.copy(T),r.update()}function Rn(b){_.set(b.clientX,b.clientY),B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_),r.update()}function ee(b){$e(b),b.deltaY<0?Ue(I()):b.deltaY>0&&Et(I()),r.update()}function Bn(b){let C=!1;switch(b.code){case r.keys.UP:pe(0,r.keyPanSpeed),C=!0;break;case r.keys.BOTTOM:pe(0,-r.keyPanSpeed),C=!0;break;case r.keys.LEFT:pe(r.keyPanSpeed,0),C=!0;break;case r.keys.RIGHT:pe(-r.keyPanSpeed,0),C=!0;break}C&&(b.preventDefault(),r.update())}function Ve(){if(S.length==1)x.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);x.set(b,C)}}function Ae(){if(S.length==1)w.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);w.set(b,C)}}function Jt(){const b=S[0].pageX-S[1].pageX,C=S[0].pageY-S[1].pageY,F=Math.sqrt(b*b+C*C);P.set(0,F)}function Fn(){r.enableZoom&&Jt(),r.enablePan&&Ae()}function Nn(){r.enableZoom&&Jt(),r.enableRotate&&Ve()}function _t(b){if(S.length==1)m.set(b.pageX,b.pageY);else{const F=Dn(b),U=.5*(b.pageX+F.x),Z=.5*(b.pageY+F.y);m.set(U,Z)}v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m)}function en(b){if(S.length==1)_.set(b.pageX,b.pageY);else{const C=Dn(b),F=.5*(b.pageX+C.x),U=.5*(b.pageY+C.y);_.set(F,U)}B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_)}function tn(b){const C=Dn(b),F=b.pageX-C.x,U=b.pageY-C.y,Z=Math.sqrt(F*F+U*U);T.set(0,Z),M.set(0,Math.pow(T.y/P.y,r.zoomSpeed)),Et(M.y),P.copy(T)}function Ye(b){r.enableZoom&&tn(b),r.enablePan&&en(b)}function In(b){r.enableZoom&&tn(b),r.enableRotate&&_t(b)}function Xe(b){var C,F;r.enabled!==!1&&(S.length===0&&((C=r.domElement)==null||C.ownerDocument.addEventListener("pointermove",Ke),(F=r.domElement)==null||F.ownerDocument.addEventListener("pointerup",k)),an(b),b.pointerType==="touch"?nn(b):Q(b))}function Ke(b){r.enabled!==!1&&(b.pointerType==="touch"?rn(b):se(b))}function k(b){var C,F,U;Pt(b),S.length===0&&((C=r.domElement)==null||C.releasePointerCapture(b.pointerId),(F=r.domElement)==null||F.ownerDocument.removeEventListener("pointermove",Ke),(U=r.domElement)==null||U.ownerDocument.removeEventListener("pointerup",k)),r.dispatchEvent(s),l=i.NONE}function z(b){Pt(b)}function Q(b){let C;switch(b.button){case 0:C=r.mouseButtons.LEFT;break;case 1:C=r.mouseButtons.MIDDLE;break;case 2:C=r.mouseButtons.RIGHT;break;default:C=-1}switch(C){case qe.DOLLY:if(r.enableZoom===!1)return;Ct(b),l=i.DOLLY;break;case qe.ROTATE:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enablePan===!1)return;St(b),l=i.PAN}else{if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}break;case qe.PAN:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}else{if(r.enablePan===!1)return;St(b),l=i.PAN}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function se(b){if(r.enabled!==!1)switch(l){case i.ROTATE:if(r.enableRotate===!1)return;kn(b);break;case i.DOLLY:if(r.enableZoom===!1)return;Qt(b);break;case i.PAN:if(r.enablePan===!1)return;Rn(b);break}}function le(b){r.enabled===!1||r.enableZoom===!1||l!==i.NONE&&l!==i.ROTATE||(b.preventDefault(),r.dispatchEvent(o),ee(b),r.dispatchEvent(s))}function jt(b){r.enabled===!1||r.enablePan===!1||Bn(b)}function nn(b){switch(Tt(b),S.length){case 1:switch(r.touches.ONE){case Ze.ROTATE:if(r.enableRotate===!1)return;Ve(),l=i.TOUCH_ROTATE;break;case Ze.PAN:if(r.enablePan===!1)return;Ae(),l=i.TOUCH_PAN;break;default:l=i.NONE}break;case 2:switch(r.touches.TWO){case Ze.DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Fn(),l=i.TOUCH_DOLLY_PAN;break;case Ze.DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;Nn(),l=i.TOUCH_DOLLY_ROTATE;break;default:l=i.NONE}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function rn(b){switch(Tt(b),l){case i.TOUCH_ROTATE:if(r.enableRotate===!1)return;_t(b),r.update();break;case i.TOUCH_PAN:if(r.enablePan===!1)return;en(b),r.update();break;case i.TOUCH_DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Ye(b),r.update();break;case i.TOUCH_DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;In(b),r.update();break;default:l=i.NONE}}function Ot(b){r.enabled!==!1&&b.preventDefault()}function an(b){S.push(b)}function Pt(b){delete D[b.pointerId];for(let C=0;Cnew cs(void 0,void 0,void 0)),u=y.useCallback((f,h,g,x=20)=>(f instanceof G?l.v0.copy(f):l.v0.set(...f),h instanceof G?l.v2.copy(h):l.v2.set(...h),g instanceof G?l.v1.copy(g):l.v1.copy(l.v0.clone().add(l.v2.clone().sub(l.v0)).add(zs.set(0,l.v0.y-l.v2.y,0))),l.getPoints(x)),[]);y.useLayoutEffect(()=>{i.current.setPoints=(f,h,g)=>{const x=u(f,h,g);i.current.geometry&&i.current.geometry.setPositions(x.map(m=>m.toArray()).flat())}},[]);const d=y.useMemo(()=>u(e,n,r,a),[e,n,r,a]);return y.createElement(Ji,oe({ref:es([i,s]),points:d},o))}),Ls=y.forwardRef(({makeDefault:t,camera:e,regress:n,domElement:r,enableDamping:a=!0,onChange:o,onStart:s,onEnd:i,...l},u)=>{const d=me(T=>T.invalidate),f=me(T=>T.camera),h=me(T=>T.gl),g=me(T=>T.events),x=me(T=>T.setEvents),m=me(T=>T.set),v=me(T=>T.get),w=me(T=>T.performance),_=e||f,B=r||g.connected||h.domElement,P=y.useMemo(()=>new Hs(_),[_]);return Sn(()=>{P.enabled&&P.update()},-1),y.useEffect(()=>(P.connect(B),()=>void P.dispose()),[B,n,P,d]),y.useEffect(()=>{const T=H=>{d(),n&&w.regress(),o&&o(H)},M=H=>{s&&s(H)},L=H=>{i&&i(H)};return P.addEventListener("change",T),P.addEventListener("start",M),P.addEventListener("end",L),()=>{P.removeEventListener("start",M),P.removeEventListener("end",L),P.removeEventListener("change",T)}},[o,s,i,P,d,x]),y.useEffect(()=>{if(t){const T=v().controls;return m({controls:P}),()=>m({controls:T})}},[t,P]),y.createElement("primitive",oe({ref:u,object:P,enableDamping:a},l))}),Gs={type:"",parent:""},da=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=br({mode:"onChange",defaultValues:Gs}),{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 xr()).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(Ws,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||_i,placeholder:a,selectedValue:m()})},Ws=O(Dt)` .MuiInputBase-input { font-family: Barlow; font-size: 14px; diff --git a/build/assets/index-f22e6e13.js b/build/assets/index-6502785b.js similarity index 99% rename from build/assets/index-f22e6e13.js rename to build/assets/index-6502785b.js index ec3938f64..18b74c825 100644 --- a/build/assets/index-f22e6e13.js +++ b/build/assets/index-6502785b.js @@ -69,7 +69,7 @@ Error generating stack: `+st.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function createSearchParams(et){return et===void 0&&(et=""),new URLSearchParams(typeof et=="string"||Array.isArray(et)||et instanceof URLSearchParams?et:Object.keys(et).reduce((tt,rt)=>{let nt=et[rt];return tt.concat(Array.isArray(nt)?nt.map(it=>[rt,it]):[[rt,nt]])},[]))}function getSearchParamsForLocation(et,tt){let rt=createSearchParams(et);return tt&&tt.forEach((nt,it)=>{rt.has(it)||tt.getAll(it).forEach(st=>{rt.append(it,st)})}),rt}const REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch{}const START_TRANSITION="startTransition",startTransitionImpl=$2AODx$react[START_TRANSITION];function BrowserRouter(et){let{basename:tt,children:rt,future:nt,window:it}=et,st=reactExports.useRef();st.current==null&&(st.current=createBrowserHistory({window:it,v5Compat:!0}));let at=st.current,[ot,lt]=reactExports.useState({action:at.action,location:at.location}),{v7_startTransition:ut}=nt||{},dt=reactExports.useCallback(bt=>{ut&&startTransitionImpl?startTransitionImpl(()=>lt(bt)):lt(bt)},[lt,ut]);return reactExports.useLayoutEffect(()=>at.listen(dt),[at,dt]),reactExports.createElement(Router,{basename:tt,children:rt,location:ot.location,navigationType:ot.action,navigator:at,future:nt})}var DataRouterHook;(function(et){et.UseScrollRestoration="useScrollRestoration",et.UseSubmit="useSubmit",et.UseSubmitFetcher="useSubmitFetcher",et.UseFetcher="useFetcher",et.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(et){et.UseFetcher="useFetcher",et.UseFetchers="useFetchers",et.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useSearchParams(et){let tt=reactExports.useRef(createSearchParams(et)),rt=reactExports.useRef(!1),nt=useLocation(),it=reactExports.useMemo(()=>getSearchParamsForLocation(nt.search,rt.current?null:tt.current),[nt.search]),st=useNavigate(),at=reactExports.useCallback((ot,lt)=>{const ut=createSearchParams(typeof ot=="function"?ot(it):ot);rt.current=!0,st("?"+ut,lt)},[st,it]);return[it,at]}const assertNever=et=>{throw new Error(`Unexpected object: ${et}`)};var dist$3={exports:{}},lib$2={},postMessage$1={};Object.defineProperty(postMessage$1,"__esModule",{value:!0});postMessage$1.removeEventer=postMessage$1.addEventer=postMessage$1.postMessage=void 0;function postMessage(et){var tt=window;if(tt.sendToElectron)return tt.sendToElectron("sphinx-bridge",et);tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?tt.ReactNativeWebView.postMessage(JSON.stringify(et)):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx?tt.webkit.messageHandlers.sphinx.postMessage(et):tt.Android?tt.Android.receiveMessage(JSON.stringify(et)):tt.parent.postMessage(et,"*")}postMessage$1.postMessage=postMessage;function addEventer(et){var tt=window;if(tt.sendToElectron){tt.EE&&tt.EE.once("sphinx-bridge",et);return}else tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?document.addEventListener("message",function(rt){var nt={};try{nt=JSON.parse(rt.data)}catch{}et({data:nt})}):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx?tt.sphinxMessage=function(rt){var nt={};try{nt=JSON.parse(rt)}catch{}et({data:nt})}:tt.Android?tt.sphinxMessage=function(rt){var nt={};try{nt=JSON.parse(rt)}catch{}et({data:nt})}:tt.addEventListener("message",et)}postMessage$1.addEventer=addEventer;function removeEventer(et){var tt=window;tt.sendToElectron||(tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?document.removeEventListener("message",et):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx||tt.Android?tt.sphinxMessage=null:tt.removeEventListener("message",et))}postMessage$1.removeEventer=removeEventer;(function(et){var tt=commonjsGlobal&&commonjsGlobal.__assign||function(){return tt=Object.assign||function(lt){for(var ut,dt=1,bt=arguments.length;dt0&&kt[kt.length-1])&&(mt[0]===6||mt[0]===2)){dt=0;continue}if(mt[0]===3&&(!kt||mt[1]>kt[0]&&mt[1] ENABLE!"),this.isEnabled)return[2,{budget:this.budget,pubkey:this.pubkey,application:at}];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.AUTHORIZE)];case 2:return dt=gt.sent(),dt.pubkey?(this.isEnabled=!0,this.pubkey=dt.pubkey,[2,dt]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[3,4];case 4:return[2,null]}})})},lt.prototype.authorize=function(ut,dt,bt){return rt(this,void 0,void 0,function(){var gt,kt,pt,yt;return nt(this,function($t){switch($t.label){case 0:bt&&(this.logging=!0),this.logging&&console.log("=> AUTHORIZE!"),$t.label=1;case 1:return $t.trys.push([1,3,,4]),gt=dt||!1,[4,this.postMsg(st.AUTHORIZE,{challenge:ut,noBudget:gt})];case 2:return kt=$t.sent(),pt=kt.budget||kt.budget===0,(gt||pt)&&kt.pubkey?(this.isEnabled=!0,this.budget=kt.budget||0,this.pubkey=kt.pubkey,[2,kt]):[3,4];case 3:return yt=$t.sent(),this.logging&&console.log(yt),[3,4];case 4:return[2,null]}})})},lt.prototype.topup=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:this.logging&&console.log("=> TOP UP"),gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[3,4];case 4:return[2,null]}})})},lt.prototype.keysend=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt,kt;return nt(this,function(pt){switch(pt.label){case 0:if(this.logging&&console.log("=> KEYSEND"),!this.isEnabled)return[2,null];if(!ut||!dt)return[2,null];if(ut.length!==66)return[2,null];if(dt<1)return[2,null];if(dt>this.budget)return[2,null];pt.label=1;case 1:return pt.trys.push([1,3,,4]),bt={dest:ut,amt:dt},[4,this.postMsg(st.KEYSEND,bt)];case 2:return gt=pt.sent(),gt&>.success&&(this.budget=this.budget-dt,gt.budget=this.budget),[2,gt];case 3:return kt=pt.sent(),this.logging&&console.log(kt),[2,null];case 4:return[2]}})})},lt.prototype.updated=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> UDPATED"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.UPDATED)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.sendPayment=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SEND PAYMENT"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.PAYMENT,{paymentRequest:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.saveLsat=function(ut,dt,bt){return rt(this,void 0,void 0,function(){var gt,kt;return nt(this,function(pt){switch(pt.label){case 0:this.logging&&console.log("=> SAVE LSAT"),pt.label=1;case 1:return pt.trys.push([1,3,,4]),[4,this.postMsg(st.LSAT,{paymentRequest:ut,macaroon:dt,issuer:bt})];case 2:return gt=pt.sent(),[2,gt];case 3:return kt=pt.sent(),this.logging&&console.log(kt),[2,kt];case 4:return[2]}})})},lt.prototype.getLsat=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> GET LSAT"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.GETLSAT,{issuer:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,bt];case 4:return[2]}})})},lt.prototype.updateLsat=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> UPDATE LSAT"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.UPDATELSAT,{identifier:ut,status:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,gt];case 4:return[2]}})})},lt.prototype.makeInvoice=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> MAKE INVOICE"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.INVOICE,{amt:ut,memo:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,null];case 4:return[2]}})})},lt.prototype.signMessage=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SIGN MESSAGE"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SIGN,{message:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.verifyMessage=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> VERIFY MESSAGE"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.SIGN,{signature:ut,message:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,null];case 4:return[2]}})})},lt.prototype.reload=function(ut){return rt(this,void 0,void 0,function(){var dt,bt,gt;return nt(this,function(kt){switch(kt.label){case 0:this.logging&&console.log("=> RELOAD"),kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.RELOAD,{password:ut})];case 2:return dt=kt.sent(),bt=dt.budget||dt.budget===0,bt&&dt.pubkey?(this.isEnabled=!0,this.budget=dt.budget,this.pubkey=dt.pubkey,[2,dt]):[3,4];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[3,4];case 4:return[2,null]}})})},lt.prototype.saveGraphData=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SAVEDATA"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SAVEDATA,{data:{type:ut.type,metaData:ut.metaData}})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.getPersonData=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> GETPERSONDATA"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.GETPERSONDATA)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.getBudget=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> GETBUDGET"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.GETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.setBudget=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SETBUDGET"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.getSignedToken=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> GETSIGNEDTOKEN"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.GETSIGNEDTOKEN)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.postMsg=function(ut,dt){var bt,gt=this;gt.active&&Promise.reject(new Error("User is busy")),gt.active=ut;var kt=window;return!((bt=kt.kmpJsBridge)===null||bt===void 0)&&bt.callNative?new Promise(function(pt,yt){kt.kmpJsBridge.callNative("sphinx-bridge",JSON.stringify(tt({application:at,type:ut},dt||{})),function($t){var mt={};try{mt=JSON.parse($t)}catch{}Object.keys(mt).length===0||mt.application!==at||(gt.active=null,mt.error?yt(mt.error):pt(mt))})}):new Promise(function(pt,yt){it.postMessage(tt({application:at,type:ut},dt||{}));function $t(mt){!mt.data||mt.data.application!==at||(mt.data.error?(gt.active=null,yt(mt.data.error)):(gt.active=null,pt(mt.data)),it.removeEventer($t))}it.addEventer($t)})},lt}();et.default=ot})(lib$2);var dist$2=dist$3.exports;Object.defineProperty(dist$2,"__esModule",{value:!0});var lib_1=lib$2,sphinx=new lib_1.default;dist$3.exports=sphinx;var distExports$1=dist$3.exports;const sphinx$1=getDefaultExportFromCjs(distExports$1),{origin:origin$1,host}=window.location,getUrlFormEnv=()=>({}).VITE_APP_API_URL,API_URL=getUrlFormEnv()||apiUrlFromSwarmHost()||"https://bitcoin.sphinx.chat";function apiUrlFromSwarmHost(){let tt=window.location.origin;if(host.includes("swarm")){if(host.startsWith("nav")){const rt=host.split(".");rt[0]="boltwall",tt=`https://${rt.join(".")}`}}else origin$1.includes("localhost")&&(tt="https://bitcoin.sphinx.chat");return`${tt}/api`}function removeApi(et){const tt=/\/api$/;return et.replace(tt,"")}const request=async(et,tt,rt)=>{let nt=et;const it=new URL(et),st=new URLSearchParams(it.search),at=await getSignedMessageFromRelay();st.append("sig",at.signature),st.append("msg",at.message),it.search=st.toString(),nt=it.toString();const ot=new AbortController,lt=rt||ot.signal,ut=await fetch(nt,{...tt,signal:lt});if(!ut.ok)throw ut;return ut.json()},api$1={delete:(et,tt,rt)=>request(`${API_URL}${et}`,{headers:{...tt,"Content-Type":"application/json"},method:"DELETE"},rt),get:(et,tt,rt)=>request(`${API_URL}${et}`,tt?{headers:tt}:void 0,rt),post:(et,tt,rt,nt)=>request(`${API_URL}${et}`,{body:tt,headers:{...rt,"Content-Type":"application/json"},method:"POST"},nt),put:(et,tt,rt,nt)=>request(`${API_URL}${et}`,{body:tt,headers:{...rt,"Content-Type":"application/json"},method:"PUT"},nt)},colors={black:"rgb(0, 0, 0)",appearanceBg:"rgba(60, 64, 83, 0.3)",disableBtn:"rgba(35, 37, 47, 0.8)",bluePressState:"rgb(57, 97, 220)",addAttributeBtn:"rgba(107, 122, 141, 0.25)",blueTextAccent:"rgb(130, 180, 255)",colorPickerThing:"rgba(255, 158, 239, 1)",body:"rgb(21, 30, 39)",boostBg1:"rgb(32, 63, 62)",budgetExplanationModalBg:"rgb(21, 28, 35)",dashboardHeader:"rgba(26, 36, 46, 0.3)",dashboardSearch:"rgb(21, 30, 39)",dashboardWashedoutText:"rgb(107, 122, 141)",divider1:"rgb(21, 30, 39)",divider2:"rgb(16, 19, 23)",divider3:"rgb(71, 81, 94)",gray100:"rgba(51, 51, 51, 0.2)",gray200:"rgba(51, 51, 51, 0.4)",gray300:"rgba(51, 51, 51, 0.6)",gray400:"rgba(51, 51, 51, 0.8)",gray500:"rgb(51, 51, 51)",green100:"rgba(73, 201, 152, 0.2)",green200:"rgba(73, 201, 152, 0.4)",green300:"rgba(73, 201, 152, 0.6)",green400:"rgba(73, 201, 152, 0.8)",greenBorder:"rgb(47, 179, 121)",headerBackground:"rgb(26, 36, 46)",inputBg1:"rgb(32, 39, 47)",inputBg2:"rgb(20, 22, 26)",inputOutline1:"rgb(71, 81, 94)",inputPlaceholder:"rgb(76, 86, 101)",lightBlue100:"rgba(93, 143, 221, 0.2)",lightBlue200:"rgba(93, 143, 221, 0.4)",lightBlue300:"rgba(93, 143, 221, 0.6)",lightBlue400:"rgba(93, 143, 221, 0.8)",lightBlue500:"rgb(93, 143, 221)",lightGray:"rgb(187, 187, 187)",listBg:"rgb(21, 30, 39)",mainBottomIcons:"rgb(144, 155, 170)",modalAuth:"#909baa",modalBg:"rgb(25, 33, 40)",modalShield:"#618aff",modalWhiteOverlayBg:"rgba(255, 255, 255, 0.2)",placeholderText:"rgb(85, 97, 113)",primaryBlueBorder:"rgb(80, 120, 242)",primaryBlue:"rgba(97, 138, 255, 1)",primaryButton:"rgb(130, 180, 255)",primaryGreen:"rgb(73, 201, 152)",primaryRed:"rgb(237, 116, 116)",primaryText1:"rgb(255, 255, 255)",receivedIcon:"rgb(130, 180, 255)",receivedMsgBg:"rgb(34, 46, 58)",secondaryRed:"rgb(255, 143, 128)",secondaryText4:"rgb(107, 122, 141)",sentMsgBg:"rgb(62, 97, 137)",sentMsgBgPress:"rgb(44, 66, 91)",text2:"rgb(255, 255, 255)",textMessages:"rgb(255, 255, 255)",transactionBg:"rgb(30, 41, 52)",transactionBgBorder:"rgb(21, 30, 39)",transactionBlueText:"rgb(130, 180, 255)",unreadMsgText:"rgb(186, 193, 198)",washedOutGreen:"rgb(47, 116, 96)",washedOutReceivedText:"rgb(85, 97, 113)",washedOutSentText:"rgb(130, 156, 185)",white:"rgb(255, 255, 255)",transparentWhite:"#ffffff88",transparentBlack:"#000000bb",BG1:"rgba(35, 37, 47, 1)",BG1_NORMAL:"rgba(28, 30, 38, 1)",BG1_HOVER:"rgba(21, 22, 28, 1)",BG1_PRESS:"#0E0F13",BG2:"rgba(22, 23, 29, 1)",BG2_ACTIVE_INPUT:"rgba(16, 17, 22, 1)",BG3:"rgba(28, 30, 38, 1)",BG4:"rgba(30, 30, 35, 0.9)",GRAY3:"rgba(186, 193, 198, 1)",GRAY6:"#909BAA",GRAY7:"rgba(107, 122, 141, 1)",SECONDARY_BLUE:"rgba(130, 180, 255, 1)",PRIMARY_BLUE:"rgba(97, 138, 255, 1)",BUTTON1:"rgba(48, 51, 66, 1)",BUTTON1_HOVER:"rgba(44, 47, 60, 1)",BUTTON1_PRESS:"rgba(41, 44, 56, 1)",PRIMARY_BLUE_BORDER:"rgba(80, 120, 242, 1)",BLUE_PRESS_STATE:"rgba(57, 97, 220, 1)",DROPDOWN_SELECTED:"rgba(97, 138, 255, 0.2)",DROPDOWN_HOVER:"rgba(0, 0, 0, 0.07)",DROPDOWN_BG:"rgba(48, 51, 66, 1)",SCROLL_BAR:"rgba(255, 255, 255, 0.1)",CLIP:"rgba(143, 38, 44, 1)",TEXT:"rgba(40, 74, 178, 1)",SHOW:"rgba(79, 111, 24, 1)",EPISODE:"rgba(109, 33, 151, 1)",ORGANIZATION:"rgba(153, 62, 19, 1)",TWEET:"rgba(22, 23, 29, 1)",PERSON:"rgba(7, 105, 82, 1)",EVENT:"rgba(137, 107, 0, 1)",TOPIC:"rgba(255, 255, 255, 0.85)",THING:"rgba(150, 39, 119, 1)",SUCESS:"rgba(73, 201, 152, 1)",SEEDQUESTION:"rgba(47, 58, 89, 1)",SEEDQUESTION_HOVER:"rgba(38, 42, 58, 1)",COLLAPSE_BUTTON:"rgba(48, 51, 66, 1)",SOURCE_TABLE_LINK:"rgba(171, 204, 254, 1)",AI_HIGHLIGHT:"rgba(0, 123, 255, 0.1)",createTestButton:"rgb(178, 255, 102)",MESSAGE_BG:"rgba(22, 22, 29, 0.89)",MESSAGE_BG_HOVER:"rgba(35, 37, 47, 0.3)",DIVIDER_4:"rgba(46, 55, 67, 1)",INPUT_BG:"rgba(255, 255, 255, 0.05)",INPUT_PLACEHOLDER:"rgba(255, 255, 255, 0.5)"};//! moment.js + */function createSearchParams(et){return et===void 0&&(et=""),new URLSearchParams(typeof et=="string"||Array.isArray(et)||et instanceof URLSearchParams?et:Object.keys(et).reduce((tt,rt)=>{let nt=et[rt];return tt.concat(Array.isArray(nt)?nt.map(it=>[rt,it]):[[rt,nt]])},[]))}function getSearchParamsForLocation(et,tt){let rt=createSearchParams(et);return tt&&tt.forEach((nt,it)=>{rt.has(it)||tt.getAll(it).forEach(st=>{rt.append(it,st)})}),rt}const REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch{}const START_TRANSITION="startTransition",startTransitionImpl=$2AODx$react[START_TRANSITION];function BrowserRouter(et){let{basename:tt,children:rt,future:nt,window:it}=et,st=reactExports.useRef();st.current==null&&(st.current=createBrowserHistory({window:it,v5Compat:!0}));let at=st.current,[ot,lt]=reactExports.useState({action:at.action,location:at.location}),{v7_startTransition:ut}=nt||{},dt=reactExports.useCallback(bt=>{ut&&startTransitionImpl?startTransitionImpl(()=>lt(bt)):lt(bt)},[lt,ut]);return reactExports.useLayoutEffect(()=>at.listen(dt),[at,dt]),reactExports.createElement(Router,{basename:tt,children:rt,location:ot.location,navigationType:ot.action,navigator:at,future:nt})}var DataRouterHook;(function(et){et.UseScrollRestoration="useScrollRestoration",et.UseSubmit="useSubmit",et.UseSubmitFetcher="useSubmitFetcher",et.UseFetcher="useFetcher",et.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(et){et.UseFetcher="useFetcher",et.UseFetchers="useFetchers",et.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useSearchParams(et){let tt=reactExports.useRef(createSearchParams(et)),rt=reactExports.useRef(!1),nt=useLocation(),it=reactExports.useMemo(()=>getSearchParamsForLocation(nt.search,rt.current?null:tt.current),[nt.search]),st=useNavigate(),at=reactExports.useCallback((ot,lt)=>{const ut=createSearchParams(typeof ot=="function"?ot(it):ot);rt.current=!0,st("?"+ut,lt)},[st,it]);return[it,at]}const assertNever=et=>{throw new Error(`Unexpected object: ${et}`)};var dist$3={exports:{}},lib$2={},postMessage$1={};Object.defineProperty(postMessage$1,"__esModule",{value:!0});postMessage$1.removeEventer=postMessage$1.addEventer=postMessage$1.postMessage=void 0;function postMessage(et){var tt=window;if(tt.sendToElectron)return tt.sendToElectron("sphinx-bridge",et);tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?tt.ReactNativeWebView.postMessage(JSON.stringify(et)):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx?tt.webkit.messageHandlers.sphinx.postMessage(et):tt.Android?tt.Android.receiveMessage(JSON.stringify(et)):tt.parent.postMessage(et,"*")}postMessage$1.postMessage=postMessage;function addEventer(et){var tt=window;if(tt.sendToElectron){tt.EE&&tt.EE.once("sphinx-bridge",et);return}else tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?document.addEventListener("message",function(rt){var nt={};try{nt=JSON.parse(rt.data)}catch{}et({data:nt})}):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx?tt.sphinxMessage=function(rt){var nt={};try{nt=JSON.parse(rt)}catch{}et({data:nt})}:tt.Android?tt.sphinxMessage=function(rt){var nt={};try{nt=JSON.parse(rt)}catch{}et({data:nt})}:tt.addEventListener("message",et)}postMessage$1.addEventer=addEventer;function removeEventer(et){var tt=window;tt.sendToElectron||(tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?document.removeEventListener("message",et):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx||tt.Android?tt.sphinxMessage=null:tt.removeEventListener("message",et))}postMessage$1.removeEventer=removeEventer;(function(et){var tt=commonjsGlobal&&commonjsGlobal.__assign||function(){return tt=Object.assign||function(lt){for(var ut,dt=1,bt=arguments.length;dt0&&kt[kt.length-1])&&(mt[0]===6||mt[0]===2)){dt=0;continue}if(mt[0]===3&&(!kt||mt[1]>kt[0]&&mt[1] ENABLE!"),this.isEnabled)return[2,{budget:this.budget,pubkey:this.pubkey,application:at}];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.AUTHORIZE)];case 2:return dt=gt.sent(),dt.pubkey?(this.isEnabled=!0,this.pubkey=dt.pubkey,[2,dt]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[3,4];case 4:return[2,null]}})})},lt.prototype.authorize=function(ut,dt,bt){return rt(this,void 0,void 0,function(){var gt,kt,pt,yt;return nt(this,function($t){switch($t.label){case 0:bt&&(this.logging=!0),this.logging&&console.log("=> AUTHORIZE!"),$t.label=1;case 1:return $t.trys.push([1,3,,4]),gt=dt||!1,[4,this.postMsg(st.AUTHORIZE,{challenge:ut,noBudget:gt})];case 2:return kt=$t.sent(),pt=kt.budget||kt.budget===0,(gt||pt)&&kt.pubkey?(this.isEnabled=!0,this.budget=kt.budget||0,this.pubkey=kt.pubkey,[2,kt]):[3,4];case 3:return yt=$t.sent(),this.logging&&console.log(yt),[3,4];case 4:return[2,null]}})})},lt.prototype.topup=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:this.logging&&console.log("=> TOP UP"),gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[3,4];case 4:return[2,null]}})})},lt.prototype.keysend=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt,kt;return nt(this,function(pt){switch(pt.label){case 0:if(this.logging&&console.log("=> KEYSEND"),!this.isEnabled)return[2,null];if(!ut||!dt)return[2,null];if(ut.length!==66)return[2,null];if(dt<1)return[2,null];if(dt>this.budget)return[2,null];pt.label=1;case 1:return pt.trys.push([1,3,,4]),bt={dest:ut,amt:dt},[4,this.postMsg(st.KEYSEND,bt)];case 2:return gt=pt.sent(),gt&>.success&&(this.budget=this.budget-dt,gt.budget=this.budget),[2,gt];case 3:return kt=pt.sent(),this.logging&&console.log(kt),[2,null];case 4:return[2]}})})},lt.prototype.updated=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> UDPATED"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.UPDATED)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.sendPayment=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SEND PAYMENT"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.PAYMENT,{paymentRequest:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.saveLsat=function(ut,dt,bt){return rt(this,void 0,void 0,function(){var gt,kt;return nt(this,function(pt){switch(pt.label){case 0:this.logging&&console.log("=> SAVE LSAT"),pt.label=1;case 1:return pt.trys.push([1,3,,4]),[4,this.postMsg(st.LSAT,{paymentRequest:ut,macaroon:dt,issuer:bt})];case 2:return gt=pt.sent(),[2,gt];case 3:return kt=pt.sent(),this.logging&&console.log(kt),[2,kt];case 4:return[2]}})})},lt.prototype.getLsat=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> GET LSAT"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.GETLSAT,{issuer:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,bt];case 4:return[2]}})})},lt.prototype.updateLsat=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> UPDATE LSAT"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.UPDATELSAT,{identifier:ut,status:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,gt];case 4:return[2]}})})},lt.prototype.makeInvoice=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> MAKE INVOICE"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.INVOICE,{amt:ut,memo:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,null];case 4:return[2]}})})},lt.prototype.signMessage=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SIGN MESSAGE"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SIGN,{message:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.verifyMessage=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> VERIFY MESSAGE"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.SIGN,{signature:ut,message:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,null];case 4:return[2]}})})},lt.prototype.reload=function(ut){return rt(this,void 0,void 0,function(){var dt,bt,gt;return nt(this,function(kt){switch(kt.label){case 0:this.logging&&console.log("=> RELOAD"),kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.RELOAD,{password:ut})];case 2:return dt=kt.sent(),bt=dt.budget||dt.budget===0,bt&&dt.pubkey?(this.isEnabled=!0,this.budget=dt.budget,this.pubkey=dt.pubkey,[2,dt]):[3,4];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[3,4];case 4:return[2,null]}})})},lt.prototype.saveGraphData=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SAVEDATA"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SAVEDATA,{data:{type:ut.type,metaData:ut.metaData}})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.getPersonData=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> GETPERSONDATA"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.GETPERSONDATA)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.getBudget=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> GETBUDGET"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.GETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.setBudget=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SETBUDGET"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.getSignedToken=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> GETSIGNEDTOKEN"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.GETSIGNEDTOKEN)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.postMsg=function(ut,dt){var bt,gt=this;gt.active&&Promise.reject(new Error("User is busy")),gt.active=ut;var kt=window;return!((bt=kt.kmpJsBridge)===null||bt===void 0)&&bt.callNative?new Promise(function(pt,yt){kt.kmpJsBridge.callNative("sphinx-bridge",JSON.stringify(tt({application:at,type:ut},dt||{})),function($t){var mt={};try{mt=JSON.parse($t)}catch{}Object.keys(mt).length===0||mt.application!==at||(gt.active=null,mt.error?yt(mt.error):pt(mt))})}):new Promise(function(pt,yt){it.postMessage(tt({application:at,type:ut},dt||{}));function $t(mt){!mt.data||mt.data.application!==at||(mt.data.error?(gt.active=null,yt(mt.data.error)):(gt.active=null,pt(mt.data)),it.removeEventer($t))}it.addEventer($t)})},lt}();et.default=ot})(lib$2);var dist$2=dist$3.exports;Object.defineProperty(dist$2,"__esModule",{value:!0});var lib_1=lib$2,sphinx=new lib_1.default;dist$3.exports=sphinx;var distExports$1=dist$3.exports;const sphinx$1=getDefaultExportFromCjs(distExports$1),{origin:origin$1,host}=window.location,getUrlFormEnv=()=>({}).VITE_APP_API_URL,API_URL=getUrlFormEnv()||apiUrlFromSwarmHost()||"https://bitcoin.sphinx.chat";function apiUrlFromSwarmHost(){let tt=window.location.origin;if(host.includes("swarm")){if(host.startsWith("nav")){const rt=host.split(".");rt[0]="boltwall",tt=`https://${rt.join(".")}`}}else origin$1.includes("localhost")&&(tt="https://bitcoin.sphinx.chat");return`${tt}/api`}function removeApi(et){const tt=/\/api$/;return et.replace(tt,"")}const request=async(et,tt,rt)=>{let nt=et;const it=new URL(et),st=new URLSearchParams(it.search),at=await getSignedMessageFromRelay();st.append("sig",at.signature),st.append("msg",at.message),it.search=st.toString(),nt=it.toString();const ot=new AbortController,lt=rt||ot.signal,ut=await fetch(nt,{...tt,signal:lt});if(!ut.ok)throw ut;return ut.json()},api$1={delete:(et,tt,rt)=>request(`${API_URL}${et}`,{headers:{...tt,"Content-Type":"application/json"},method:"DELETE"},rt),get:(et,tt,rt)=>request(`${API_URL}${et}`,tt?{headers:tt}:void 0,rt),post:(et,tt,rt,nt)=>request(`${API_URL}${et}`,{body:tt,headers:{...rt,"Content-Type":"application/json"},method:"POST"},nt),put:(et,tt,rt,nt)=>request(`${API_URL}${et}`,{body:tt,headers:{...rt,"Content-Type":"application/json"},method:"PUT"},nt)},colors={black:"rgb(0, 0, 0)",appearanceBg:"rgba(60, 64, 83, 0.3)",disableBtn:"rgba(35, 37, 47, 0.8)",bluePressState:"rgb(57, 97, 220)",addAttributeBtn:"rgba(107, 122, 141, 0.25)",blueTextAccent:"rgb(130, 180, 255)",colorPickerThing:"rgba(255, 158, 239, 1)",body:"rgb(21, 30, 39)",boostBg1:"rgb(32, 63, 62)",budgetExplanationModalBg:"rgb(21, 28, 35)",dashboardHeader:"rgba(26, 36, 46, 0.3)",dashboardSearch:"rgb(21, 30, 39)",dashboardWashedoutText:"rgb(107, 122, 141)",divider1:"rgb(21, 30, 39)",divider2:"rgb(16, 19, 23)",divider3:"rgb(71, 81, 94)",gray100:"rgba(51, 51, 51, 0.2)",gray200:"rgba(51, 51, 51, 0.4)",gray300:"rgba(51, 51, 51, 0.6)",gray400:"rgba(51, 51, 51, 0.8)",gray500:"rgb(51, 51, 51)",green100:"rgba(73, 201, 152, 0.2)",green200:"rgba(73, 201, 152, 0.4)",green300:"rgba(73, 201, 152, 0.6)",green400:"rgba(73, 201, 152, 0.8)",greenBorder:"rgb(47, 179, 121)",headerBackground:"rgb(26, 36, 46)",inputBg1:"rgb(32, 39, 47)",inputBg2:"rgb(20, 22, 26)",inputOutline1:"rgb(71, 81, 94)",inputPlaceholder:"rgb(76, 86, 101)",lightBlue100:"rgba(93, 143, 221, 0.2)",lightBlue200:"rgba(93, 143, 221, 0.4)",lightBlue300:"rgba(93, 143, 221, 0.6)",lightBlue400:"rgba(93, 143, 221, 0.8)",lightBlue500:"rgb(93, 143, 221)",lightGray:"rgb(187, 187, 187)",listBg:"rgb(21, 30, 39)",mainBottomIcons:"rgb(144, 155, 170)",modalAuth:"#909baa",modalBg:"rgb(25, 33, 40)",modalShield:"#618aff",modalWhiteOverlayBg:"rgba(255, 255, 255, 0.2)",placeholderText:"rgb(85, 97, 113)",primaryBlueBorder:"rgb(80, 120, 242)",primaryBlue:"rgba(97, 138, 255, 1)",primaryButton:"rgb(130, 180, 255)",primaryGreen:"rgb(73, 201, 152)",primaryRed:"rgb(237, 116, 116)",primaryText1:"rgb(255, 255, 255)",receivedIcon:"rgb(130, 180, 255)",receivedMsgBg:"rgb(34, 46, 58)",secondaryRed:"rgb(255, 143, 128)",secondaryText4:"rgb(107, 122, 141)",sentMsgBg:"rgb(62, 97, 137)",sentMsgBgPress:"rgb(44, 66, 91)",text2:"rgb(255, 255, 255)",textMessages:"rgb(255, 255, 255)",transactionBg:"rgb(30, 41, 52)",transactionBgBorder:"rgb(21, 30, 39)",transactionBlueText:"rgb(130, 180, 255)",unreadMsgText:"rgb(186, 193, 198)",washedOutGreen:"rgb(47, 116, 96)",washedOutReceivedText:"rgb(85, 97, 113)",washedOutSentText:"rgb(130, 156, 185)",white:"rgb(255, 255, 255)",transparentWhite:"#ffffff88",transparentBlack:"#000000bb",BG1:"rgba(35, 37, 47, 1)",BG1_NORMAL:"rgba(28, 30, 38, 1)",BG1_HOVER:"rgba(21, 22, 28, 1)",BG1_PRESS:"#0E0F13",BG2:"rgba(22, 23, 29, 1)",BG2_ACTIVE_INPUT:"rgba(16, 17, 22, 1)",BG3:"rgba(28, 30, 38, 1)",BG4:"rgba(30, 30, 35, 0.9)",GRAY3:"rgba(186, 193, 198, 1)",GRAY6:"#909BAA",GRAY7:"rgba(107, 122, 141, 1)",SECONDARY_BLUE:"rgba(130, 180, 255, 1)",PRIMARY_BLUE:"rgba(97, 138, 255, 1)",BUTTON1:"rgba(48, 51, 66, 1)",BUTTON1_HOVER:"rgba(44, 47, 60, 1)",BUTTON1_PRESS:"rgba(41, 44, 56, 1)",PRIMARY_BLUE_BORDER:"rgba(80, 120, 242, 1)",BLUE_PRESS_STATE:"rgba(57, 97, 220, 1)",DROPDOWN_SELECTED:"rgba(97, 138, 255, 0.2)",DROPDOWN_HOVER:"rgba(0, 0, 0, 0.07)",DROPDOWN_BG:"rgba(48, 51, 66, 1)",SCROLL_BAR:"rgba(255, 255, 255, 0.1)",CLIP:"rgba(143, 38, 44, 1)",TEXT:"rgba(40, 74, 178, 1)",SHOW:"rgba(79, 111, 24, 1)",EPISODE:"rgba(109, 33, 151, 1)",ORGANIZATION:"rgba(153, 62, 19, 1)",TWEET:"rgba(22, 23, 29, 1)",PERSON:"rgba(7, 105, 82, 1)",EVENT:"rgba(137, 107, 0, 1)",TOPIC:"rgba(255, 255, 255, 0.85)",THING:"rgba(150, 39, 119, 1)",SUCESS:"rgba(73, 201, 152, 1)",SEEDQUESTION:"rgba(47, 58, 89, 1)",SEEDQUESTION_HOVER:"rgba(38, 42, 58, 1)",COLLAPSE_BUTTON:"rgba(48, 51, 66, 1)",SOURCE_TABLE_LINK:"rgba(171, 204, 254, 1)",AI_HIGHLIGHT:"rgba(0, 123, 255, 0.1)",createTestButton:"rgb(178, 255, 102)",MESSAGE_BG:"rgba(22, 22, 29, 0.89)",MESSAGE_BG_HOVER:"rgba(35, 37, 47, 0.3)",DIVIDER_4:"rgba(46, 55, 67, 1)",INPUT_BG:"rgba(255, 255, 255, 0.05)",INPUT_PLACEHOLDER:"rgba(255, 255, 255, 0.5)",HOVER_CARD_BG:"rgba(41, 44, 54, 1)"};//! moment.js //! version : 2.29.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT @@ -711,7 +711,7 @@ PROCEED WITH CAUTION! [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const wt=mt.state[ot];if(wt==null)return;JSON.stringify(it.getState())!==JSON.stringify(wt)&&kt(wt);return}it.dispatchFromDevtools&&typeof it.dispatch=="function"&&it.dispatch(mt)});case"DISPATCH":switch(yt.payload.type){case"RESET":return kt(pt),ot===void 0?dt==null?void 0:dt.init(it.getState()):dt==null?void 0:dt.init(getTrackedConnectionState(lt.name));case"COMMIT":if(ot===void 0){dt==null||dt.init(it.getState());return}return dt==null?void 0:dt.init(getTrackedConnectionState(lt.name));case"ROLLBACK":return parseJsonThen(yt.state,mt=>{if(ot===void 0){kt(mt),dt==null||dt.init(it.getState());return}kt(mt[ot]),dt==null||dt.init(getTrackedConnectionState(lt.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return parseJsonThen(yt.state,mt=>{if(ot===void 0){kt(mt);return}JSON.stringify(it.getState())!==JSON.stringify(mt[ot])&&kt(mt[ot])});case"IMPORT_STATE":{const{nextLiftedState:mt}=yt.payload,wt=($t=mt.computedStates.slice(-1)[0])==null?void 0:$t.state;if(!wt)return;kt(ot===void 0?wt:wt[ot]),dt==null||dt.send(null,mt);return}case"PAUSE_RECORDING":return gt=!gt}return}}),pt},devtools=devtoolsImpl,parseJsonThen=(et,tt)=>{let rt;try{rt=JSON.parse(et)}catch(nt){console.error("[zustand devtools middleware] Could not parse the received json",nt)}rt!==void 0&&tt(rt)},fetchGraphData=async(et,tt,rt=!1,nt,it)=>fetchNodes(et,tt,rt,nt),fetchNodes=async(et,tt,rt=!1,nt,it)=>{const st=new URLSearchParams(tt).toString(),at=rt?"/prediction/graph/search/latest?":`/prediction/graph/search?${st}`,ot=async()=>{const lt=await getLSat();try{const ut=await api$1.get(at,{Authorization:lt},nt);return updateBudget(et),ut}catch(ut){if(ut.status===402)return await payLsat(et),fetchNodes(et,tt,rt,nt);throw ut}};return!tt.word||isDevelopment&&!isE2E?api$1.get(`${at}&free=true`,void 0,nt):ot()},fetchNodeEdges=async(et,tt,rt=5,nt={})=>{try{const{sortBy:it="edge_count",includeProperties:st=!0,includeContent:at=!0,depth:ot=1,useSubGraph:lt=!0,nodeType:ut=[]}=nt,dt=new URLSearchParams({skip:tt.toString(),limit:rt.toString(),sort_by:it,include_properties:st.toString(),includeContent:at.toString(),depth:ot.toString(),use_sub_graph:lt.toString(),...ut.length>0&&{node_type:JSON.stringify(ut)}}).toString();return await api$1.get(`/prediction/graph/edges/${et}?${dt}`)}catch(it){return console.error(it),null}},defaultData$4={aiSummaryAnswers:{},aiRefId:"",newLoading:null},useAiSummaryStore=create()(devtools((et,tt)=>({...defaultData$4,setAiSummaryAnswer:(rt,nt)=>{const it=tt().aiSummaryAnswers;it[rt]={...it[rt]||{},...nt};const st=structuredClone(it);et({aiSummaryAnswers:st})},setNewLoading:rt=>{et({newLoading:rt})},resetAiSummaryAnswer:()=>{et({aiSummaryAnswers:{},aiRefId:""})},getAiSummaryAnswer:rt=>tt().aiSummaryAnswers[rt].answer||"",setAiRefId:rt=>et({aiRefId:rt}),getKeyExist:rt=>rt in tt().aiSummaryAnswers}))),useHasAiChats=()=>useAiSummaryStore(et=>Object.values(et.aiSummaryAnswers).filter(tt=>tt.shouldRender).length||!!et.newLoading),useHasAiChatsResponseLoading=()=>useAiSummaryStore(et=>{var rt;const tt=et.aiSummaryAnswers;return!!et.newLoading||((rt=Object.values(tt).at(-1))==null?void 0:rt.answerLoading)}),defaultData$3={currentSearch:"",searchFormValue:"",flagErrorIsOpen:!1,universeQuestionIsOpen:!1,hasBudgetExplanationModalBeSeen:!1,relevanceIsSelected:!1,secondarySidebarActiveTab:"",sidebarIsOpen:!0,theme:"light",transcriptIsOpen:!1,appMetaData:null,currentPlayingAudio:null,showCollapseButton:!0,selectedColor:"#962777",selectedIcon:"ConstructionIcon"},useAppStore=create((et,tt)=>({...defaultData$3,clearSearch:()=>et({currentSearch:""}),setCurrentSearch:rt=>et({currentSearch:rt}),setSearchFormValue:rt=>et({searchFormValue:rt}),setFlagErrorOpen:rt=>et({flagErrorIsOpen:rt}),setRelevanceSelected:rt=>et({relevanceIsSelected:rt}),setCurrentPlayingAudio:rt=>et({currentPlayingAudio:rt}),setSecondarySidebarActiveTab:rt=>et({secondarySidebarActiveTab:rt}),setSidebarOpen:rt=>et({sidebarIsOpen:rt,transcriptIsOpen:rt?tt().transcriptIsOpen:!1}),setTranscriptOpen:rt=>et({transcriptIsOpen:rt}),setUniverseQuestionIsOpen:()=>et({universeQuestionIsOpen:!tt().universeQuestionIsOpen}),setAppMetaData:rt=>et({appMetaData:rt}),setShowCollapseButton:rt=>et({showCollapseButton:rt}),setSelectedColor:rt=>et({selectedColor:rt}),setSelectedIcon:rt=>et({selectedIcon:rt})})),deduplicateByRefId=et=>{const tt=new Map;return et.forEach(rt=>{tt.has(rt.ref_id)||tt.set(rt.ref_id,rt)}),Array.from(tt.values())},defaultData$2={categoryFilter:null,dataInitial:null,runningProjectMessages:[],filters:{skip:0,limit:300,depth:"2",sort_by:"score",include_properties:"true",top_node_count:"50",includeContent:"true",node_type:[],search_method:"vector"},isFetching:!1,isLoadingNew:!1,queuedSources:null,selectedTimestamp:null,sources:null,sidebarFilter:"all",sidebarFilters:[],trendingTopics:[],sidebarFilterCounts:[],stats:null,splashDataLoading:!0,abortRequest:!1,dataNew:null,seedQuestions:null,runningProjectId:"",hideNodeDetails:!1,nodeTypes:[]};let abortController=null;const useDataStore=create()(devtools((et,tt)=>({...defaultData$2,fetchData:async(rt,nt,it="")=>{var Ft,Dt,zt,Ht;const{dataInitial:st,filters:at}=tt(),ot=at.skip,lt=at.limit,{currentSearch:ut}=useAppStore.getState(),{setAiSummaryAnswer:dt,setNewLoading:bt,aiRefId:gt}=useAiSummaryStore.getState();let kt={ai_summary:String(!!it)};it||et(ot?{isLoadingNew:!0}:{isFetching:!0}),it&&(kt={...kt,ai_summary:String(!0)},bt({question:it,answerLoading:!0})),abortController&&abortController.abort("abort");const pt=new AbortController,{signal:yt}=pt;abortController=pt;const{node_type:$t,...mt}=at,wt=it||ut,St=lodashExports.isEqual(at,defaultData$2.filters)&&!wt,Bt={...mt,...kt,skip:String(ot===0?ot*lt:ot*lt+1),limit:wt?"25":String(lt),...$t.length>0?{node_type:JSON.stringify($t)}:{},...wt?{word:wt}:{},...gt&&it?{previous_search_ref_id:gt}:{}};try{const Wt=await fetchGraphData(rt,Bt,St,yt,nt);if(!(Wt!=null&&Wt.nodes))return;if((Ft=Wt==null?void 0:Wt.query_data)!=null&&Ft.ref_id){useAiSummaryStore.setState({aiRefId:(Dt=Wt==null?void 0:Wt.query_data)==null?void 0:Dt.ref_id});const{aiSummaryAnswers:xt}=useAiSummaryStore.getState(),{answer:Lt}=xt[(zt=Wt==null?void 0:Wt.query_data)==null?void 0:zt.ref_id]||{};dt((Ht=Wt==null?void 0:Wt.query_data)==null?void 0:Ht.ref_id,{question:it,answer:Lt||"",answerLoading:!Lt,sourcesLoading:!Lt,shouldRender:!0}),bt(null)}const lr=ot===0&&!gt?[]:[...(st==null?void 0:st.nodes)||[]],qt=ot===0&&!gt?[]:[...(st==null?void 0:st.links)||[]],Ot=((Wt==null?void 0:Wt.nodes)||[]).filter(xt=>!lr.some(Lt=>Lt.ref_id===xt.ref_id));lr.push(...Ot);const Mt=((Wt==null?void 0:Wt.edges)||[]).filter(xt=>!qt.some(Lt=>Lt.ref_id===xt.ref_id)).filter(xt=>{const{target:Lt,source:tr}=xt;return lr.some(pr=>pr.ref_id===Lt)&&lr.some(pr=>pr.ref_id===tr)});qt.push(...Mt);const ht=[...new Set(lr.map(xt=>xt.node_type))],Et=["all",...ht.map(xt=>xt.toLowerCase())],Tt=Et.map(xt=>({name:xt,count:lr.filter(Lt=>{var tr;return xt==="all"||((tr=Lt.node_type)==null?void 0:tr.toLowerCase())===xt}).length})),Rt=1,At=4,Pt=Math.min(...lr.map(xt=>xt.edge_count)),It=Math.max(...lr.map(xt=>xt.edge_count)),Ct=lr.map(xt=>{const{edge_count:Lt}=xt,pr=Math.round(((Lt||1)-Pt)/(It-Pt)*(At-Rt)+Rt);return{...xt,scale:pr}});et({dataInitial:{nodes:Ct,links:qt},dataNew:{nodes:Ot,links:Mt},isFetching:!1,isLoadingNew:!1,splashDataLoading:!1,nodeTypes:ht,sidebarFilters:Et,sidebarFilterCounts:Tt})}catch(Wt){console.error(Wt),Wt!=="abort"&&et({isLoadingNew:!1,isFetching:!1})}},abortFetchData:()=>{abortController&&abortController.abort("abort")},resetGraph:()=>{const{setAbortRequests:rt}=tt(),{setBudget:nt}=useUserStore.getState();et({filters:defaultData$2.filters,dataInitial:null,dataNew:null}),tt().fetchData(nt,rt)},resetData:()=>{et({dataNew:{nodes:[],links:[]},dataInitial:{nodes:[],links:[]},nodeTypes:[]})},nextPage:()=>{const{filters:rt,fetchData:nt,setAbortRequests:it}=tt(),{setBudget:st}=useUserStore.getState();et({filters:{...rt,skip:rt.skip+1}}),nt(st,it)},resetDataNew:()=>null,setFilters:rt=>{const{setBudget:nt}=useUserStore.getState();et(it=>({filters:{...it.filters,...rt,skip:0}})),tt().fetchData(nt,tt().setAbortRequests)},setSidebarFilterCounts:rt=>et({sidebarFilterCounts:rt}),setTrendingTopics:rt=>et({trendingTopics:rt}),setStats:rt=>et({stats:rt}),setIsFetching:rt=>et({isFetching:rt}),setCategoryFilter:rt=>et({categoryFilter:rt}),setQueuedSources:rt=>et({queuedSources:rt}),setSidebarFilter:rt=>et({sidebarFilter:rt}),setSelectedTimestamp:rt=>et({selectedTimestamp:rt}),setSources:rt=>et({sources:rt}),setHideNodeDetails:rt=>et({hideNodeDetails:rt}),setSeedQuestions:rt=>et({seedQuestions:rt}),updateNode:rt=>{console.info(rt)},addNewNode:rt=>{const{dataInitial:nt,filters:it}=tt();if(!(rt!=null&&rt.nodes))return;const st=it.node_type.length?rt.nodes.filter(St=>it.node_type.some(Bt=>Bt===St.node_type)):rt.nodes,at=deduplicateByRefId(st||[]),ot=deduplicateByRefId(rt.edges||[]),lt=nt!=null&&nt.nodes?[...nt.nodes]:[],ut=nt!=null&&nt.links?[...nt.links]:[],dt=new Set(lt.map(St=>St.ref_id)),bt=new Set(ut.map(St=>St.ref_id)),gt=at.filter(St=>!dt.has(St.ref_id)),kt=[...lt,...gt];gt.forEach(St=>dt.add(St.ref_id));const pt=ot.filter(St=>!bt.has(St.ref_id)).filter(St=>{const{source:Bt,target:Ft}=St;return dt.has(Bt)&&dt.has(Ft)}),yt=[...ut,...pt],$t=[...new Set(kt.map(St=>St.node_type))],mt=["all",...$t.map(St=>St.toLowerCase())],wt=mt.map(St=>({name:St,count:kt.filter(Bt=>{var Ft;return St==="all"||((Ft=Bt.node_type)==null?void 0:Ft.toLowerCase())===St}).length}));et({dataInitial:{nodes:kt,links:yt},dataNew:{nodes:gt,links:pt},nodeTypes:$t,sidebarFilters:mt,sidebarFilterCounts:wt})},removeNode:rt=>{console.log(rt)},setRunningProjectId:rt=>et({runningProjectId:rt,runningProjectMessages:[]}),setRunningProjectMessages:rt=>{const{runningProjectMessages:nt}=tt();et({runningProjectMessages:[...nt,rt]})},resetRunningProjectMessages:()=>et({runningProjectMessages:[]}),setAbortRequests:rt=>et({abortRequest:rt})}))),useFilteredNodes=()=>useDataStore(et=>{var tt,rt;return et.sidebarFilter==="all"?((tt=et.dataInitial)==null?void 0:tt.nodes)||[]:(((rt=et.dataInitial)==null?void 0:rt.nodes)||[]).filter(nt=>{var it;return((it=nt.node_type)==null?void 0:it.toLowerCase())===et.sidebarFilter.toLowerCase()})}),useNodeTypes=()=>useDataStore(et=>et.nodeTypes),defaultData$1={trendingTopicsFeatureFlag:!0,queuedSourcesFeatureFlag:!1,v2FeatureFlag:!1,customSchemaFeatureFlag:!1,graphBluePrintFeatureFlag:!1,changeNodeTypeFeatureFlag:!1,realtimeGraphFeatureFlag:!1,userFeedbackFeatureFlag:!1,chatInterfaceFeatureFlag:!1,fastFiltersFeatureFlag:!1},useFeatureFlagStore=create(et=>({...defaultData$1,setTrendingTopicsFeatureFlag:tt=>et({trendingTopicsFeatureFlag:tt}),setV2FeatureFlag:tt=>et({v2FeatureFlag:tt}),setQueuedSourcesFeatureFlag:tt=>et({queuedSourcesFeatureFlag:tt}),setCustomSchemaFeatureFlag:tt=>et({customSchemaFeatureFlag:tt}),setGraphBluePrintFeatureFlag:tt=>et({graphBluePrintFeatureFlag:tt}),setChangeNodeTypeFeatureFlag:tt=>et({changeNodeTypeFeatureFlag:tt}),setRealtimeGraphFeatureFlag:tt=>et({realtimeGraphFeatureFlag:tt}),setUserFeedbackFeatureFlag:tt=>et({userFeedbackFeatureFlag:tt}),setChatInterfaceFeatureFlag:tt=>et({chatInterfaceFeatureFlag:tt}),setFastFiltersFeatureFlag:tt=>et({fastFiltersFeatureFlag:tt})})),isWebView=()=>(navigator.userAgent||navigator.vendor||window.opera)==="Sphinx",isAndroid=()=>navigator.userAgent.includes("Android"),defaultData={schemas:[],links:[],normalizedSchemasByType:{}},useSchemaStore=create()(devtools((et,tt)=>({...defaultData,setSchemas:rt=>{const nt=rt.reduce((it,st)=>(it[st.type]=st,it),{});et({schemas:rt.map(it=>({...it})),normalizedSchemasByType:nt})},setSchemaLinks:rt=>{et({links:rt})},getPrimaryColorByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.primary_color:void 0},getIndexByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.index:"name"},getNodeKeysByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.node_key:void 0},getSchemaByType:rt=>tt().normalizedSchemasByType[rt]})));function r(et){var tt,rt,nt="";if(typeof et=="string"||typeof et=="number")nt+=et;else if(typeof et=="object")if(Array.isArray(et))for(tt=0;tt{const[tt,rt]=reactExports.useState(0),nt=et.filter(it=>it.value!=="0");return reactExports.useEffect(()=>{const it=setInterval(()=>rt(st=>(st+1)%et.length),1e3);return()=>clearInterval(it)},[tt]),jsxRuntimeExports.jsxs(TextWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"loading",children:"LOADING"}),jsxRuntimeExports.jsx(Flex,{className:"value-wrapper",children:nt.map(({key:it,value:st},at)=>jsxRuntimeExports.jsx("div",{className:clsx("value",{show:tt===at}),children:st},it))}),jsxRuntimeExports.jsx(Flex,{children:nt.map(({key:it,label:st},at)=>jsxRuntimeExports.jsx(Flex,{className:clsx("label-wrapper",{show:tt===at}),children:jsxRuntimeExports.jsx("div",{className:"label",children:st})},it))})]})},TextWrapper=styled$3.div` + `);const wt=mt.state[ot];if(wt==null)return;JSON.stringify(it.getState())!==JSON.stringify(wt)&&kt(wt);return}it.dispatchFromDevtools&&typeof it.dispatch=="function"&&it.dispatch(mt)});case"DISPATCH":switch(yt.payload.type){case"RESET":return kt(pt),ot===void 0?dt==null?void 0:dt.init(it.getState()):dt==null?void 0:dt.init(getTrackedConnectionState(lt.name));case"COMMIT":if(ot===void 0){dt==null||dt.init(it.getState());return}return dt==null?void 0:dt.init(getTrackedConnectionState(lt.name));case"ROLLBACK":return parseJsonThen(yt.state,mt=>{if(ot===void 0){kt(mt),dt==null||dt.init(it.getState());return}kt(mt[ot]),dt==null||dt.init(getTrackedConnectionState(lt.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return parseJsonThen(yt.state,mt=>{if(ot===void 0){kt(mt);return}JSON.stringify(it.getState())!==JSON.stringify(mt[ot])&&kt(mt[ot])});case"IMPORT_STATE":{const{nextLiftedState:mt}=yt.payload,wt=($t=mt.computedStates.slice(-1)[0])==null?void 0:$t.state;if(!wt)return;kt(ot===void 0?wt:wt[ot]),dt==null||dt.send(null,mt);return}case"PAUSE_RECORDING":return gt=!gt}return}}),pt},devtools=devtoolsImpl,parseJsonThen=(et,tt)=>{let rt;try{rt=JSON.parse(et)}catch(nt){console.error("[zustand devtools middleware] Could not parse the received json",nt)}rt!==void 0&&tt(rt)},fetchGraphData=async(et,tt,rt=!1,nt,it)=>fetchNodes(et,tt,rt,nt),fetchNodes=async(et,tt,rt=!1,nt,it)=>{const st=new URLSearchParams(tt).toString(),at=rt?"/prediction/graph/search/latest?":`/prediction/graph/search?${st}`,ot=async()=>{const lt=await getLSat();try{const ut=await api$1.get(at,{Authorization:lt},nt);return updateBudget(et),ut}catch(ut){if(ut.status===402)return await payLsat(et),fetchNodes(et,tt,rt,nt);throw ut}};return!tt.word||isDevelopment&&!isE2E?api$1.get(`${at}&free=true`,void 0,nt):ot()},fetchNodeEdges=async(et,tt,rt=5,nt={})=>{try{const{sortBy:it="edge_count",includeProperties:st=!0,includeContent:at=!0,depth:ot=1,useSubGraph:lt=!0,nodeType:ut=[]}=nt,dt=new URLSearchParams({skip:tt.toString(),limit:rt.toString(),sort_by:it,include_properties:st.toString(),includeContent:at.toString(),depth:ot.toString(),use_sub_graph:lt.toString(),...ut.length>0&&{node_type:JSON.stringify(ut)}}).toString();return await api$1.get(`/prediction/graph/edges/${et}?${dt}`)}catch(it){return console.error(it),null}},defaultData$4={aiSummaryAnswers:{},aiRefId:"",newLoading:null},useAiSummaryStore=create()(devtools((et,tt)=>({...defaultData$4,setAiSummaryAnswer:(rt,nt)=>{const it=tt().aiSummaryAnswers;it[rt]={...it[rt]||{},...nt};const st=structuredClone(it);et({aiSummaryAnswers:st})},setNewLoading:rt=>{et({newLoading:rt})},resetAiSummaryAnswer:()=>{et({aiSummaryAnswers:{},aiRefId:""})},getAiSummaryAnswer:rt=>tt().aiSummaryAnswers[rt].answer||"",setAiRefId:rt=>et({aiRefId:rt}),getKeyExist:rt=>rt in tt().aiSummaryAnswers}))),useHasAiChats=()=>useAiSummaryStore(et=>Object.values(et.aiSummaryAnswers).filter(tt=>tt.shouldRender).length||!!et.newLoading),useHasAiChatsResponseLoading=()=>useAiSummaryStore(et=>{var rt;const tt=et.aiSummaryAnswers;return!!et.newLoading||((rt=Object.values(tt).at(-1))==null?void 0:rt.answerLoading)}),defaultData$3={currentSearch:"",searchFormValue:"",flagErrorIsOpen:!1,universeQuestionIsOpen:!1,hasBudgetExplanationModalBeSeen:!1,relevanceIsSelected:!1,secondarySidebarActiveTab:"",sidebarIsOpen:!0,theme:"light",transcriptIsOpen:!1,appMetaData:null,currentPlayingAudio:null,showCollapseButton:!0,selectedColor:"#962777",selectedIcon:"ConstructionIcon"},useAppStore=create((et,tt)=>({...defaultData$3,clearSearch:()=>et({currentSearch:""}),setCurrentSearch:rt=>et({currentSearch:rt}),setSearchFormValue:rt=>et({searchFormValue:rt}),setFlagErrorOpen:rt=>et({flagErrorIsOpen:rt}),setRelevanceSelected:rt=>et({relevanceIsSelected:rt}),setCurrentPlayingAudio:rt=>et({currentPlayingAudio:rt}),setSecondarySidebarActiveTab:rt=>et({secondarySidebarActiveTab:rt}),setSidebarOpen:rt=>et({sidebarIsOpen:rt,transcriptIsOpen:rt?tt().transcriptIsOpen:!1}),setTranscriptOpen:rt=>et({transcriptIsOpen:rt}),setUniverseQuestionIsOpen:()=>et({universeQuestionIsOpen:!tt().universeQuestionIsOpen}),setAppMetaData:rt=>et({appMetaData:rt}),setShowCollapseButton:rt=>et({showCollapseButton:rt}),setSelectedColor:rt=>et({selectedColor:rt}),setSelectedIcon:rt=>et({selectedIcon:rt})})),deduplicateByRefId=et=>{const tt=new Map;return et.forEach(rt=>{tt.has(rt.ref_id)||tt.set(rt.ref_id,rt)}),Array.from(tt.values())},defaultData$2={categoryFilter:null,dataInitial:null,runningProjectMessages:[],filters:{skip:0,limit:300,depth:"2",sort_by:"score",include_properties:"true",top_node_count:"50",includeContent:"true",node_type:[],search_method:"vector"},isFetching:!1,isLoadingNew:!1,queuedSources:null,selectedTimestamp:null,sources:null,sidebarFilter:"all",sidebarFilters:[],trendingTopics:[],sidebarFilterCounts:[],stats:null,splashDataLoading:!0,abortRequest:!1,dataNew:null,seedQuestions:null,runningProjectId:"",hideNodeDetails:!1,nodeTypes:[]};let abortController=null;const useDataStore=create()(devtools((et,tt)=>({...defaultData$2,fetchData:async(rt,nt,it="")=>{var Ft,Dt,zt,Ht;const{dataInitial:st,filters:at}=tt(),ot=at.skip,lt=at.limit,{currentSearch:ut}=useAppStore.getState(),{setAiSummaryAnswer:dt,setNewLoading:bt,aiRefId:gt}=useAiSummaryStore.getState();let kt={ai_summary:String(!!it)};it||et(ot?{isLoadingNew:!0}:{isFetching:!0}),it&&(kt={...kt,ai_summary:String(!0)},bt({question:it,answerLoading:!0})),abortController&&abortController.abort("abort");const pt=new AbortController,{signal:yt}=pt;abortController=pt;const{node_type:$t,...mt}=at,wt=it||ut,St=lodashExports.isEqual(at,defaultData$2.filters)&&!wt,Bt={...mt,...kt,skip:String(ot===0?ot*lt:ot*lt+1),limit:wt?"25":String(lt),...$t.length>0?{node_type:JSON.stringify($t)}:{},...wt?{word:wt}:{},...gt&&it?{previous_search_ref_id:gt}:{}};try{const Wt=await fetchGraphData(rt,Bt,St,yt,nt);if(!(Wt!=null&&Wt.nodes))return;if((Ft=Wt==null?void 0:Wt.query_data)!=null&&Ft.ref_id){useAiSummaryStore.setState({aiRefId:(Dt=Wt==null?void 0:Wt.query_data)==null?void 0:Dt.ref_id});const{aiSummaryAnswers:xt}=useAiSummaryStore.getState(),{answer:Lt}=xt[(zt=Wt==null?void 0:Wt.query_data)==null?void 0:zt.ref_id]||{};dt((Ht=Wt==null?void 0:Wt.query_data)==null?void 0:Ht.ref_id,{question:it,answer:Lt||"",answerLoading:!Lt,sourcesLoading:!Lt,shouldRender:!0}),bt(null)}const lr=ot===0&&!gt?[]:[...(st==null?void 0:st.nodes)||[]],qt=ot===0&&!gt?[]:[...(st==null?void 0:st.links)||[]],Ot=((Wt==null?void 0:Wt.nodes)||[]).filter(xt=>!lr.some(Lt=>Lt.ref_id===xt.ref_id));lr.push(...Ot);const Mt=((Wt==null?void 0:Wt.edges)||[]).filter(xt=>!qt.some(Lt=>Lt.ref_id===xt.ref_id)).filter(xt=>{const{target:Lt,source:tr}=xt;return lr.some(pr=>pr.ref_id===Lt)&&lr.some(pr=>pr.ref_id===tr)});qt.push(...Mt);const ht=[...new Set(lr.map(xt=>xt.node_type))],Et=["all",...ht.map(xt=>xt.toLowerCase())],Tt=Et.map(xt=>({name:xt,count:lr.filter(Lt=>{var tr;return xt==="all"||((tr=Lt.node_type)==null?void 0:tr.toLowerCase())===xt}).length})),Rt=1,At=4,Pt=Math.min(...lr.map(xt=>xt.edge_count)),It=Math.max(...lr.map(xt=>xt.edge_count)),Ct=lr.map(xt=>{const{edge_count:Lt}=xt,pr=Math.round(((Lt||1)-Pt)/(It-Pt)*(At-Rt)+Rt);return{...xt,scale:pr}});et({dataInitial:{nodes:Ct,links:qt},dataNew:{nodes:Ot,links:Mt},isFetching:!1,isLoadingNew:!1,splashDataLoading:!1,nodeTypes:ht,sidebarFilters:Et,sidebarFilterCounts:Tt})}catch(Wt){console.error(Wt),Wt!=="abort"&&et({isLoadingNew:!1,isFetching:!1})}},abortFetchData:()=>{abortController&&abortController.abort("abort")},resetGraph:()=>{const{setAbortRequests:rt}=tt(),{setBudget:nt}=useUserStore.getState();et({filters:defaultData$2.filters,dataInitial:null,dataNew:null}),tt().fetchData(nt,rt)},resetData:()=>{et({dataNew:{nodes:[],links:[]},dataInitial:{nodes:[],links:[]},nodeTypes:[]})},nextPage:()=>{const{filters:rt,fetchData:nt,setAbortRequests:it}=tt(),{setBudget:st}=useUserStore.getState();et({filters:{...rt,skip:rt.skip+1}}),nt(st,it)},resetDataNew:()=>null,setFilters:rt=>{const{setBudget:nt}=useUserStore.getState();et(it=>({filters:{...it.filters,...rt,skip:0}})),tt().fetchData(nt,tt().setAbortRequests)},setSidebarFilterCounts:rt=>et({sidebarFilterCounts:rt}),setTrendingTopics:rt=>et({trendingTopics:rt}),setStats:rt=>et({stats:rt}),setIsFetching:rt=>et({isFetching:rt}),setCategoryFilter:rt=>et({categoryFilter:rt}),setQueuedSources:rt=>et({queuedSources:rt}),setSidebarFilter:rt=>et({sidebarFilter:rt}),setSelectedTimestamp:rt=>et({selectedTimestamp:rt}),setSources:rt=>et({sources:rt}),setHideNodeDetails:rt=>et({hideNodeDetails:rt}),setSeedQuestions:rt=>et({seedQuestions:rt}),updateNode:rt=>{console.info(rt)},addNewNode:rt=>{const{dataInitial:nt,filters:it}=tt();if(!(rt!=null&&rt.nodes))return;const st=it.node_type.length?rt.nodes.filter(St=>it.node_type.some(Bt=>Bt===St.node_type)):rt.nodes,at=deduplicateByRefId(st||[]),ot=deduplicateByRefId(rt.edges||[]),lt=nt!=null&&nt.nodes?[...nt.nodes]:[],ut=nt!=null&&nt.links?[...nt.links]:[],dt=new Set(lt.map(St=>St.ref_id)),bt=new Set(ut.map(St=>St.ref_id)),gt=at.filter(St=>!dt.has(St.ref_id)),kt=[...lt,...gt];gt.forEach(St=>dt.add(St.ref_id));const pt=ot.filter(St=>!bt.has(St.ref_id)).filter(St=>{const{source:Bt,target:Ft}=St;return dt.has(Bt)&&dt.has(Ft)}),yt=[...ut,...pt],$t=[...new Set(kt.map(St=>St.node_type))],mt=["all",...$t.map(St=>St.toLowerCase())],wt=mt.map(St=>({name:St,count:kt.filter(Bt=>{var Ft;return St==="all"||((Ft=Bt.node_type)==null?void 0:Ft.toLowerCase())===St}).length}));et({dataInitial:{nodes:kt,links:yt},dataNew:{nodes:gt,links:pt},nodeTypes:$t,sidebarFilters:mt,sidebarFilterCounts:wt})},removeNode:rt=>{console.log(rt)},setRunningProjectId:rt=>et({runningProjectId:rt,runningProjectMessages:[]}),setRunningProjectMessages:rt=>{const{runningProjectMessages:nt}=tt();et({runningProjectMessages:[...nt,rt]})},resetRunningProjectMessages:()=>et({runningProjectMessages:[]}),setAbortRequests:rt=>et({abortRequest:rt})}))),useFilteredNodes=()=>useDataStore(et=>{var tt,rt;return et.sidebarFilter==="all"?((tt=et.dataInitial)==null?void 0:tt.nodes)||[]:(((rt=et.dataInitial)==null?void 0:rt.nodes)||[]).filter(nt=>{var it;return((it=nt.node_type)==null?void 0:it.toLowerCase())===et.sidebarFilter.toLowerCase()})}),useNodeTypes=()=>useDataStore(et=>et.nodeTypes),defaultData$1={trendingTopicsFeatureFlag:!0,queuedSourcesFeatureFlag:!1,v2FeatureFlag:!1,customSchemaFeatureFlag:!1,graphBluePrintFeatureFlag:!1,changeNodeTypeFeatureFlag:!1,realtimeGraphFeatureFlag:!1,userFeedbackFeatureFlag:!1,chatInterfaceFeatureFlag:!1,fastFiltersFeatureFlag:!1},useFeatureFlagStore=create(et=>({...defaultData$1,setTrendingTopicsFeatureFlag:tt=>et({trendingTopicsFeatureFlag:tt}),setV2FeatureFlag:tt=>et({v2FeatureFlag:tt}),setQueuedSourcesFeatureFlag:tt=>et({queuedSourcesFeatureFlag:tt}),setCustomSchemaFeatureFlag:tt=>et({customSchemaFeatureFlag:tt}),setGraphBluePrintFeatureFlag:tt=>et({graphBluePrintFeatureFlag:tt}),setChangeNodeTypeFeatureFlag:tt=>et({changeNodeTypeFeatureFlag:tt}),setRealtimeGraphFeatureFlag:tt=>et({realtimeGraphFeatureFlag:tt}),setUserFeedbackFeatureFlag:tt=>et({userFeedbackFeatureFlag:tt}),setChatInterfaceFeatureFlag:tt=>et({chatInterfaceFeatureFlag:tt}),setFastFiltersFeatureFlag:tt=>et({fastFiltersFeatureFlag:tt})})),isWebView=()=>(navigator.userAgent||navigator.vendor||window.opera)==="Sphinx",isAndroid=()=>navigator.userAgent.includes("Android"),defaultData={schemas:[],links:[],normalizedSchemasByType:{}},useSchemaStore=create()(devtools((et,tt)=>({...defaultData,setSchemas:rt=>{const nt=rt.reduce((it,st)=>(it[st.type]=st,it),{});et({schemas:rt.map(it=>({...it})),normalizedSchemasByType:nt})},setSchemaLinks:rt=>{et({links:rt})},getPrimaryColorByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.primary_color:void 0},getIndexByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.index:"name"},getNodeKeysByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.index||nt.node_key:void 0},getSchemaByType:rt=>tt().normalizedSchemasByType[rt]})));function r(et){var tt,rt,nt="";if(typeof et=="string"||typeof et=="number")nt+=et;else if(typeof et=="object")if(Array.isArray(et))for(tt=0;tt{const[tt,rt]=reactExports.useState(0),nt=et.filter(it=>it.value!=="0");return reactExports.useEffect(()=>{const it=setInterval(()=>rt(st=>(st+1)%et.length),1e3);return()=>clearInterval(it)},[tt]),jsxRuntimeExports.jsxs(TextWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"loading",children:"LOADING"}),jsxRuntimeExports.jsx(Flex,{className:"value-wrapper",children:nt.map(({key:it,value:st},at)=>jsxRuntimeExports.jsx("div",{className:clsx("value",{show:tt===at}),children:st},it))}),jsxRuntimeExports.jsx(Flex,{children:nt.map(({key:it,label:st},at)=>jsxRuntimeExports.jsx(Flex,{className:clsx("label-wrapper",{show:tt===at}),children:jsxRuntimeExports.jsx("div",{className:"label",children:st})},it))})]})},TextWrapper=styled$3.div` height: 16px; display: flex; justify-content: space-between; @@ -831,4 +831,4 @@ PROCEED WITH CAUTION! align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-ac87045f.js").then(et=>et.i),["assets/index-ac87045f.js","assets/index-8304ea06.js"]).then(({App:et})=>({default:et}))),LazyMindSet=reactExports.lazy(()=>__vitePreload(()=>import("./index-e0a6bd37.js"),["assets/index-e0a6bd37.js","assets/index-0d511f35.js","assets/index-d3e0dfea.js","assets/three.module-9c942ca6.js","assets/index-8304ea06.js","assets/TextareaAutosize-5da8bada.js","assets/index-e36d8aa5.js","assets/ClipLoader-1ce39797.js","assets/index-9ddac9de.js","assets/Skeleton-6d9b0e62.js","assets/Stack-e2486c11.js","assets/isPlainObject-212517ba.js","assets/Typography-1355ab6c.js","assets/createSvgIcon-9d40ff73.js","assets/index-a1115826.js"]).then(({MindSet:et})=>({default:et}))),AppContainer=()=>{var nt;const et=jsxRuntimeExports.jsx(LazyApp,{}),tt=jsxRuntimeExports.jsx(LazyMindSet,{}),rt=((nt=window.location)==null?void 0:nt.hostname)==="graphmindset.sphinx.chat"?"/":"/mindset";return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:tt,path:rt}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:et}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:et}),path:"/search"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:et}),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{ButtonBase$1 as $,getSchemaAll as A,Button$1 as B,ClearIcon as C,api$1 as D,clsx as E,Flex as F,fetchNodeEdges as G,getNode as H,InfoIcon as I,getDefaultExportFromCjs as J,_inheritsLoose as K,_objectWithoutPropertiesLoose as L,React as M,NODE_ADD_ERROR as N,TransitionGroupContext as O,generateUtilityClass as P,Q,ReactDOM as R,generateUtilityClasses as S,Text as T,styled$1 as U,alpha as V,We as W,useThemeProps as X,clsx$2 as Y,composeClasses as Z,__vitePreload as _,colors as a,YOUTUBE_CHANNEL as a$,capitalize as a0,useForkRef as a1,useEnhancedEffect$1 as a2,setRef as a3,reactDomExports as a4,useEventCallback as a5,useTheme as a6,$2AODx$react as a7,devtools as a8,LinearProgress$1 as a9,_Set as aA,_Symbol as aB,isArguments_1 as aC,isArray_1 as aD,_arrayPush as aE,_baseUnary as aF,_defineProperty as aG,eq_1 as aH,isArrayLike_1 as aI,_isIndex as aJ,isObject_1 as aK,_root as aL,_baseAssignValue as aM,keys_1 as aN,MdBolt as aO,getFullTranscript as aP,MdPlayArrow as aQ,MdAccessTime as aR,getAugmentedNamespace as aS,useHasAiChats as aT,postAboutData as aU,SuccessNotify as aV,TextInput as aW,requiredRule as aX,MdError as aY,BaseModal as aZ,TWITTER_HANDLE as a_,SocketContext as aa,isSphinx as ab,useNodeTypes as ac,NODE_RELATIVE_HIGHLIGHT_COLORS as ad,MdViewInAr as ae,MdClose as af,addToGlobalForE2e as ag,distExports$1 as ah,executeIfProd as ai,useIsFocusVisible as aj,rootShouldForwardProp as ak,lighten as al,darken as am,slotShouldForwardProp as an,Ce as ao,useFormContext as ap,useHasAiChatsResponseLoading as aq,Ue as ar,hooks as as,commonjsGlobal as at,commonjsRequire as au,useFilteredNodes as av,_baseGetTag as aw,isObjectLike_1 as ax,isObject$8 as ay,isFunction$4 as az,useUserStore as b,useTheme$2 as b$,RSS as b0,GITHUB_REPOSITORY as b1,LINK as b2,TWITTER_SOURCE as b3,WEB_PAGE as b4,DOCUMENT as b5,getPriceData as b6,isE2E as b7,sphinxBridge as b8,getLSat as b9,handleBreakpoints as bA,updateEdgeType as bB,postBluePrintType as bC,deleteEdgeType as bD,cloneDeep_1 as bE,useFieldArray as bF,OptionTypes as bG,NoParent as bH,editNodeSchemaUpdate as bI,createRoot as bJ,react as bK,GRAPH_GROUND_COLOR as bL,GRAPH_LIGHT_INTENSITY as bM,GRAPH_FOG_COLOR as bN,_MapCache as bO,_Uint8Array as bP,_getAllKeys as bQ,_Stack as bR,_getTag as bS,isBufferExports as bT,isTypedArray_1 as bU,isLength_1 as bV,_getPrototype as bW,request as bX,buffer$2 as bY,sphinx$1 as bZ,Global as b_,payLsat as ba,noSpacePattern as bb,getNodeType as bc,getNodeSchemaTypes as bd,OPTIONS as be,initialValue as bf,getNodeContent as bg,MdCheckCircle as bh,MdCancel as bi,approveRadarData as bj,deleteRadarData as bk,getRadarData as bl,BaseTextInput as bm,MdCheck as bn,putRadarData as bo,getEdgeTypes as bp,getEdges as bq,postEdgeType as br,putNodeData as bs,postMergeTopics as bt,getTopicsData as bu,deleteNode as bv,keyframes as bw,css as bx,changeNodeType as by,resolveBreakpointValues as bz,create as c,defaultTheme$1 as c0,THEME_ID as c1,formatMuiErrorMessage as c2,deepmerge as c3,defaultSxConfig$1 as c4,isPlainObject$1 as c5,createStyled as c6,createTheme$1 as c7,useThemeProps$1 as c8,createUnarySpacing as c9,mergeBreakpointsInOrder as ca,getValue as cb,useTheme$3 as cc,index$1 as cd,useSchemaStore as d,useModal as e,getStats as f,getTotalProcessing as g,formatStatsResponse as h,lodashExports as i,jsxRuntimeExports as j,useAppStore as k,lottie as l,media as m,useAiSummaryStore as n,useNavigate as o,useSearchParams as p,useFeatureFlagStore as q,reactExports as r,styled$3 as s,useForm as t,useDataStore as u,isDevelopment as v,FormProvider as w,updateBudget as x,_extends as y,getNodes as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-0544338d.js").then(et=>et.i),["assets/index-0544338d.js","assets/index-e4d37dbe.js"]).then(({App:et})=>({default:et}))),LazyMindSet=reactExports.lazy(()=>__vitePreload(()=>import("./index-152cb873.js"),["assets/index-152cb873.js","assets/index-f104c89b.js","assets/index-73fbdc56.js","assets/three.module-9c942ca6.js","assets/index-e4d37dbe.js","assets/TextareaAutosize-a343ed23.js","assets/index-0c4fb1ee.js","assets/ClipLoader-2e8a2039.js","assets/index-a40552ce.js","assets/Skeleton-e8200c96.js","assets/Stack-72c38e89.js","assets/isPlainObject-886127ee.js","assets/Typography-04aa1062.js","assets/createSvgIcon-6b5253a6.js","assets/index-ac06168d.js"]).then(({MindSet:et})=>({default:et}))),AppContainer=()=>{var tt;const et=((tt=window.location)==null?void 0:tt.hostname)==="graphmindset.sphinx.chat"||window.location.hostname==="localhost";return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsxs(Routes,{children:[et&&jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(LazyMindSet,{}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"/search"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),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{ButtonBase$1 as $,getSchemaAll as A,Button$1 as B,ClearIcon as C,api$1 as D,clsx as E,Flex as F,fetchNodeEdges as G,getNode as H,InfoIcon as I,getDefaultExportFromCjs as J,_inheritsLoose as K,_objectWithoutPropertiesLoose as L,React as M,NODE_ADD_ERROR as N,TransitionGroupContext as O,generateUtilityClass as P,Q,ReactDOM as R,generateUtilityClasses as S,Text as T,styled$1 as U,alpha as V,We as W,useThemeProps as X,clsx$2 as Y,composeClasses as Z,__vitePreload as _,colors as a,YOUTUBE_CHANNEL as a$,capitalize as a0,useForkRef as a1,useEnhancedEffect$1 as a2,setRef as a3,reactDomExports as a4,useEventCallback as a5,useTheme as a6,$2AODx$react as a7,devtools as a8,LinearProgress$1 as a9,_Set as aA,_Symbol as aB,isArguments_1 as aC,isArray_1 as aD,_arrayPush as aE,_baseUnary as aF,_defineProperty as aG,eq_1 as aH,isArrayLike_1 as aI,_isIndex as aJ,isObject_1 as aK,_root as aL,_baseAssignValue as aM,keys_1 as aN,MdBolt as aO,getFullTranscript as aP,MdPlayArrow as aQ,MdAccessTime as aR,getAugmentedNamespace as aS,useHasAiChats as aT,postAboutData as aU,SuccessNotify as aV,TextInput as aW,requiredRule as aX,MdError as aY,BaseModal as aZ,TWITTER_HANDLE as a_,SocketContext as aa,isSphinx as ab,useNodeTypes as ac,NODE_RELATIVE_HIGHLIGHT_COLORS as ad,MdViewInAr as ae,MdClose as af,addToGlobalForE2e as ag,distExports$1 as ah,executeIfProd as ai,useIsFocusVisible as aj,rootShouldForwardProp as ak,lighten as al,darken as am,slotShouldForwardProp as an,Ce as ao,useFormContext as ap,useHasAiChatsResponseLoading as aq,Ue as ar,hooks as as,commonjsGlobal as at,commonjsRequire as au,useFilteredNodes as av,_baseGetTag as aw,isObjectLike_1 as ax,isObject$8 as ay,isFunction$4 as az,useUserStore as b,useTheme$2 as b$,RSS as b0,GITHUB_REPOSITORY as b1,LINK as b2,TWITTER_SOURCE as b3,WEB_PAGE as b4,DOCUMENT as b5,getPriceData as b6,isE2E as b7,sphinxBridge as b8,getLSat as b9,handleBreakpoints as bA,updateEdgeType as bB,postBluePrintType as bC,deleteEdgeType as bD,cloneDeep_1 as bE,useFieldArray as bF,OptionTypes as bG,NoParent as bH,editNodeSchemaUpdate as bI,createRoot as bJ,react as bK,GRAPH_GROUND_COLOR as bL,GRAPH_LIGHT_INTENSITY as bM,GRAPH_FOG_COLOR as bN,_MapCache as bO,_Uint8Array as bP,_getAllKeys as bQ,_Stack as bR,_getTag as bS,isBufferExports as bT,isTypedArray_1 as bU,isLength_1 as bV,_getPrototype as bW,request as bX,buffer$2 as bY,sphinx$1 as bZ,Global as b_,payLsat as ba,noSpacePattern as bb,getNodeType as bc,getNodeSchemaTypes as bd,OPTIONS as be,initialValue as bf,getNodeContent as bg,MdCheckCircle as bh,MdCancel as bi,approveRadarData as bj,deleteRadarData as bk,getRadarData as bl,BaseTextInput as bm,MdCheck as bn,putRadarData as bo,getEdgeTypes as bp,getEdges as bq,postEdgeType as br,putNodeData as bs,postMergeTopics as bt,getTopicsData as bu,deleteNode as bv,keyframes as bw,css as bx,changeNodeType as by,resolveBreakpointValues as bz,create as c,defaultTheme$1 as c0,THEME_ID as c1,formatMuiErrorMessage as c2,deepmerge as c3,defaultSxConfig$1 as c4,isPlainObject$1 as c5,createStyled as c6,createTheme$1 as c7,useThemeProps$1 as c8,createUnarySpacing as c9,mergeBreakpointsInOrder as ca,getValue as cb,useTheme$3 as cc,index$1 as cd,useSchemaStore as d,useModal as e,getStats as f,getTotalProcessing as g,formatStatsResponse as h,lodashExports as i,jsxRuntimeExports as j,useAppStore as k,lottie as l,media as m,useAiSummaryStore as n,useNavigate as o,useSearchParams as p,useFeatureFlagStore as q,reactExports as r,styled$3 as s,useForm as t,useDataStore as u,isDevelopment as v,FormProvider as w,updateBudget as x,_extends as y,getNodes as z}; diff --git a/build/assets/index-0ae50e4a.js b/build/assets/index-702820bf.js similarity index 66% rename from build/assets/index-0ae50e4a.js rename to build/assets/index-702820bf.js index e29287d21..63540441d 100644 --- a/build/assets/index-0ae50e4a.js +++ b/build/assets/index-702820bf.js @@ -1,4 +1,4 @@ -import{s as i,a as t,F as c,j as e,e as j,r as l,u as $,B as w,bu as C,bv as R,aZ as I}from"./index-f22e6e13.js";import{aT as T,h as z,p as D}from"./index-8304ea06.js";import{S as E}from"./Skeleton-6d9b0e62.js";import{C as L}from"./ClipLoader-1ce39797.js";const G=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(A,{children:e.jsx(T,{})}),e.jsxs(M,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),M=i(c)` +import{s as i,a as t,F as c,j as e,e as j,r as l,u as $,B as w,bu as C,bv as R,aZ as I}from"./index-6502785b.js";import{aP as z,i as D,p as E}from"./index-e4d37dbe.js";import{S as L}from"./Skeleton-e8200c96.js";import{C as T}from"./ClipLoader-2e8a2039.js";const G=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(A,{children:e.jsx(z,{})}),e.jsxs(M,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),M=i(c)` color: ${t.white}; font-family: 'Barlow'; font-size: 20px; @@ -19,7 +19,7 @@ import{s as i,a as t,F as c,j as e,e as j,r as l,u as $,B as w,bu as C,bv as R,a path:nth-child(3) { color: #6b7a8d; } -`,W=()=>{const{close:p}=j("removeNode"),{close:m}=j("editNodeName"),[x,d]=l.useState(!1),[g]=z(s=>[s.setSelectedNode]),[v]=$(s=>[s.removeNode]),[N,y]=l.useState(!1),[n,b]=l.useState(),[a,S]=l.useState(),o=D(),u=()=>{p()};l.useEffect(()=>{(async()=>{if(o){y(!0);try{if(o.type==="topic"){const{data:r}=await C({search:o==null?void 0:o.name}),f=r.find(h=>h.name===o.name);S(f)}else b(o)}catch(r){console.error(r)}finally{y(!1)}}})()},[o]);const k=async()=>{d(!0);try{g(null),u(),m()}catch(s){console.warn(s)}finally{d(!1)}},B=async()=>{let s="";const r=n||a;if(!r)return;r!=null&&r.ref_id&&(s=r.ref_id),d(!0);const f=o==null?void 0:o.ref_id;try{await R(s),v(f),g(null),u(),m()}catch(h){console.warn(h)}finally{d(!1)}};return e.jsxs(_,{children:[e.jsx(G,{nodeName:(n==null?void 0:n.name)||(a==null?void 0:a.name)||""}),N?e.jsx(E,{}):e.jsxs(c,{direction:"row",mt:34,children:[e.jsx(F,{color:"secondary",onClick:u,size:"large",style:{flex:1,marginRight:20},variant:"contained",children:"Cancel"}),e.jsxs(H,{color:"secondary",disabled:x||!n&&!a,onClick:n||a?B:k,size:"large",style:{flex:1},variant:"contained",children:["Delete",x&&e.jsx(O,{children:e.jsx(L,{color:t.lightGray,size:12})})]})]})]})},_=i(c)` +`,W=()=>{const{close:p}=j("removeNode"),{close:h}=j("editNodeName"),[x,d]=l.useState(!1),[g]=D(s=>[s.setSelectedNode]),[v]=$(s=>[s.removeNode]),[N,y]=l.useState(!1),[n,b]=l.useState(),[a,S]=l.useState(),o=E(),u=()=>{p()};l.useEffect(()=>{(async()=>{if(o){y(!0);try{if(o.type==="topic"){const{data:r}=await C({search:o==null?void 0:o.name}),f=r.find(m=>m.name===o.name);S(f)}else b(o)}catch(r){console.error(r)}finally{y(!1)}}})()},[o]);const k=async()=>{d(!0);try{g(null),u(),h()}catch(s){console.warn(s)}finally{d(!1)}},B=async()=>{let s="";const r=n||a;if(!r)return;r!=null&&r.ref_id&&(s=r.ref_id),d(!0);const f=o==null?void 0:o.ref_id;try{await R(s),v(f),g(null),u(),h()}catch(m){console.warn(m)}finally{d(!1)}};return e.jsxs(_,{children:[e.jsx(G,{nodeName:(n==null?void 0:n.name)||(a==null?void 0:a.name)||""}),N?e.jsx(L,{}):e.jsxs(c,{direction:"row",mt:34,children:[e.jsx(F,{color:"secondary",onClick:u,size:"large",style:{flex:1,marginRight:20},variant:"contained",children:"Cancel"}),e.jsxs(H,{color:"secondary",disabled:x||!n&&!a,onClick:n||a?B:k,size:"large",style:{flex:1},variant:"contained",children:["Delete",x&&e.jsx(O,{children:e.jsx(T,{color:t.lightGray,size:12})})]})]})]})},_=i(c)` padding: 4px 12px 16px; `,F=i(w)` && { @@ -47,4 +47,4 @@ import{s as i,a as t,F as c,j as e,e as j,r as l,u as $,B as w,bu as C,bv as R,a } `,O=i.span` margin-top: 2px; -`,P=()=>e.jsx(I,{id:"removeNode",kind:"small",preventOutsideClose:!0,children:e.jsx(W,{})});export{P as RemoveNodeModal}; +`,K=()=>e.jsx(I,{id:"removeNode",kind:"small",preventOutsideClose:!0,children:e.jsx(W,{})});export{K as RemoveNodeModal}; diff --git a/build/assets/index-d3e0dfea.js b/build/assets/index-73fbdc56.js similarity index 99% rename from build/assets/index-d3e0dfea.js rename to build/assets/index-73fbdc56.js index a91faef52..64990971c 100644 --- a/build/assets/index-d3e0dfea.js +++ b/build/assets/index-73fbdc56.js @@ -1,4 +1,4 @@ -import{r as k,J as Cc,y as Nr,bJ as _c,bK as td,j as L,M as nd,a as Ji,bL as rd,bM as id,bN as od}from"./index-f22e6e13.js";import{U as fl,X as Vl,Y as ad,Z as ld,g as Ec,n as sd,C as ro,_ as ud,O as Zl,J as Ql,$ as da,a0 as dl,a1 as cd,a2 as fd,a3 as dd,a4 as hd,a5 as pd,a6 as vd,a7 as md,V as st,e as Gr,a8 as gd,k as yd,j as Xl,w as pa,a9 as Tc,h as Ul,aa as Rl,ab as vi,ac as xd,x as Yl,ad as wd,ae as Fl,af as Fu,ag as Sd,ah as xi,m as Mc,ai as Cd,o as io,s as kc,aj as _d,ak as Ed,al as Td,am as Md,an as kd,L as Au,ao as Pd,ap as Ld,M as Ud,v as Rd,aq as Jl,ar as Du,as as Ir,at as Fd,l as hl}from"./three.module-9c942ca6.js";import{aZ as _t,K as Ad,h as Dd}from"./index-8304ea06.js";var Pc={exports:{}},Wr={};/** +import{r as k,J as Cc,y as Nr,bJ as _c,bK as td,j as L,M as nd,a as Ji,bL as rd,bM as id,bN as od}from"./index-6502785b.js";import{U as fl,X as Vl,Y as ad,Z as ld,g as Ec,n as sd,C as ro,_ as ud,O as Zl,J as Ql,$ as da,a0 as dl,a1 as cd,a2 as fd,a3 as dd,a4 as hd,a5 as pd,a6 as vd,a7 as md,V as st,e as Gr,a8 as gd,k as yd,j as Xl,w as pa,a9 as Tc,h as Ul,aa as Rl,ab as vi,ac as xd,x as Yl,ad as wd,ae as Fl,af as Fu,ag as Sd,ah as xi,m as Mc,ai as Cd,o as io,s as kc,aj as _d,ak as Ed,al as Td,am as Md,an as kd,L as Au,ao as Pd,ap as Ld,M as Ud,v as Rd,aq as Jl,ar as Du,as as Ir,at as Fd,l as hl}from"./three.module-9c942ca6.js";import{aV as _t,K as Ad,i as Dd}from"./index-e4d37dbe.js";var Pc={exports:{}},Wr={};/** * @license React * react-reconciler-constants.production.min.js * diff --git a/build/assets/index-09c4547e.js b/build/assets/index-7a95f74f.js similarity index 96% rename from build/assets/index-09c4547e.js rename to build/assets/index-7a95f74f.js index 63888d41f..8b19e85a5 100644 --- a/build/assets/index-09c4547e.js +++ b/build/assets/index-7a95f74f.js @@ -1,4 +1,4 @@ -import{D as Q,s as g,a as b,F as t,T,b as V,r as y,j as e,B as C,aY as ee,b6 as te,ap as se,aW as L,aX as F,bb as B,bc as ne,q as oe,bd as re,be as ie,bf as ae,e as O,t as ce,u as le,aV as de,N as I,aZ as pe,w as xe,ai as me,ah as ue,b9 as he}from"./index-f22e6e13.js";import{ai as fe,h as ye}from"./index-8304ea06.js";import{f as ge}from"./index-ac87045f.js";import{C as W}from"./ClipLoader-1ce39797.js";import{p as q}from"./index-83069401.js";import{A as je}from"./index-45d79f14.js";import{c as we}from"./index-64f1c910.js";import"./three.module-9c942ca6.js";import"./Stack-e2486c11.js";import"./createSvgIcon-9d40ff73.js";import"./TextareaAutosize-5da8bada.js";const be=async(o,a,c="")=>await Q.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,m,d,r)=>{const x=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:m,pubkey:r};return be(x,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const m=V(l=>l.budget),[d,r]=y.useState(10),x="node";return y.useEffect(()=>{(async()=>{try{const h=await te(x);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[x]),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:[ge(m)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(W,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(ee,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{D as Q,s as g,a as b,F as t,T,b as V,r as y,j as e,B as C,aY as ee,b6 as te,ap as se,aW as L,aX as F,bb as B,bc as ne,q as oe,bd as re,be as ie,bf as ae,e as O,t as ce,u as le,aV as de,N as I,aZ as pe,w as xe,ai as me,ah as ue,b9 as he}from"./index-6502785b.js";import{ai as fe,i as ye}from"./index-e4d37dbe.js";import{f as ge}from"./index-0544338d.js";import{C as W}from"./ClipLoader-2e8a2039.js";import{p as q}from"./index-83069401.js";import{A as je}from"./index-8c0315a7.js";import{c as we}from"./index-64f1c910.js";import"./three.module-9c942ca6.js";import"./Stack-72c38e89.js";import"./createSvgIcon-6b5253a6.js";import"./TextareaAutosize-a343ed23.js";const be=async(o,a,c="")=>await Q.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,m,d,r)=>{const x=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:m,pubkey:r};return be(x,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const m=V(l=>l.budget),[d,r]=y.useState(10),x="node";return y.useEffect(()=>{(async()=>{try{const h=await te(x);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[x]),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:[ge(m)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(W,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(ee,{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-d1a251fa.js b/build/assets/index-82e7d88e.js similarity index 81% rename from build/assets/index-d1a251fa.js rename to build/assets/index-82e7d88e.js index 1c385322c..d519e872e 100644 --- a/build/assets/index-d1a251fa.js +++ b/build/assets/index-82e7d88e.js @@ -1,8 +1,8 @@ -import{s as a,j as e,F as s,aW as g,aX as j,B as w,T as i,a as n,e as S,t as y,r as m,aV as k,aZ as F,w as v,D as B}from"./index-f22e6e13.js";import{a_ as T}from"./index-8304ea06.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(g,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:j})}),e.jsx(s,{children:e.jsx(w,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!r,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),z=a(i)` +import{s as a,j as e,F as s,aW as g,aX as j,B as w,T as i,a as n,e as S,t as y,r as m,aV as k,aZ as F,w as v,D as B}from"./index-6502785b.js";import{aW as T}from"./index-e4d37dbe.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(W,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(g,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:j})}),e.jsx(s,{children:e.jsx(w,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!r,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),W=a(i)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,C=()=>e.jsxs(s,{align:"center",direction:"column",justify:"center",p:40,children:[e.jsx(M,{children:e.jsx(T,{})}),e.jsx(W,{children:"We've Got Your Feedback"}),e.jsx($,{children:"Thank you for sharing your thoughts with us! We value your input."})]}),M=a.div` +`,z=()=>e.jsxs(s,{align:"center",direction:"column",justify:"center",p:40,children:[e.jsx(C,{children:e.jsx(T,{})}),e.jsx(M,{children:"We've Got Your Feedback"}),e.jsx($,{children:"Thank you for sharing your thoughts with us! We value your input."})]}),C=a.div` margin-bottom: 20px; width: 50px; height: 50px; @@ -17,7 +17,7 @@ import{s as a,j as e,F as s,aW as g,aX as j,B as w,T as i,a as n,e as S,t as y,r circle { color: ${n.SUCESS}; } -`,W=a(i)` +`,M=a(i)` font-size: 22px; font-weight: 700; font-family: 'Barlow'; @@ -31,4 +31,4 @@ import{s as a,j as e,F as s,aW as g,aX as j,B as w,T as i,a as n,e as S,t as y,r font-weight: 400; color: ${n.GRAY6}; padding-top: 10px; -`,I=async r=>{try{const t=await B.post("/prediction/feedback",JSON.stringify(r));if(t.error){const{message:o}=t.error;throw new Error(o)}}catch(t){throw new Error(t.message||"Error submitting feedback")}},A=()=>{const{close:r,visible:t}=S("feedback"),o=y({mode:"onChange"}),{watch:u,reset:c}=o,[x,d]=m.useState(!1);m.useEffect(()=>()=>{d(!1),c()},[t,c]);const l=u("message"),h=!!l&&l.trim().length>0,f=o.handleSubmit(async p=>{try{await I(p),k("Feedback Submitted"),d(!0)}catch(b){console.error(b.message)}});return e.jsx(F,{id:"feedback",kind:"small",onClose:r,preventOutsideClose:!0,children:e.jsx(v,{...o,children:e.jsx("form",{id:"feedback-form",onSubmit:f,children:x?e.jsx(C,{}):e.jsx(E,{allowNextStep:h})})})})};export{A as UserFeedBackModal}; +`,I=async r=>{try{const t=await B.post("/prediction/feedback",JSON.stringify(r));if(t.error){const{message:o}=t.error;throw new Error(o)}}catch(t){throw new Error(t.message||"Error submitting feedback")}},A=()=>{const{close:r,visible:t}=S("feedback"),o=y({mode:"onChange"}),{watch:u,reset:c}=o,[x,d]=m.useState(!1);m.useEffect(()=>()=>{d(!1),c()},[t,c]);const l=u("message"),h=!!l&&l.trim().length>0,f=o.handleSubmit(async p=>{try{await I(p),k("Feedback Submitted"),d(!0)}catch(b){console.error(b.message)}});return e.jsx(F,{id:"feedback",kind:"small",onClose:r,preventOutsideClose:!0,children:e.jsx(v,{...o,children:e.jsx("form",{id:"feedback-form",onSubmit:f,children:x?e.jsx(z,{}):e.jsx(E,{allowNextStep:h})})})})};export{A as UserFeedBackModal}; diff --git a/build/assets/index-90e6cc61.js b/build/assets/index-8710fc73.js similarity index 96% rename from build/assets/index-90e6cc61.js rename to build/assets/index-8710fc73.js index f5f74c40b..bf6838824 100644 --- a/build/assets/index-90e6cc61.js +++ b/build/assets/index-8710fc73.js @@ -1,4 +1,4 @@ -import{e as a,o as M,n as B,u as T,k as z,q as G,b as L,ab as N,j as e,T as t,s as c,a as n,F as l}from"./index-f22e6e13.js";import{M as O,j as D,k as E,S as R,C as U,l as W,F as Y}from"./index-8304ea06.js";const K=()=>{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:I}=G(o=>o),{isAdmin:d}=L(o=>o),v=N(),A=()=>{m(null),k(),j(),f(),g("/")},$=()=>{y(),w(!0),S(!0)};return e.jsxs(q,{children:[e.jsx(Q,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),I?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(R,{})}),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(U,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:h,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Settings"})]}),F&&v?e.jsxs(X,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(Y,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},q=c(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{e as a,o as M,n as B,u as T,k as z,q as G,b as L,ab as N,j as e,T as t,s as c,a as n,F as l}from"./index-6502785b.js";import{M as O,j as D,k as E,S as R,C as U,l as W,F as Y}from"./index-e4d37dbe.js";const K=()=>{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:I}=G(o=>o),{isAdmin:d}=L(o=>o),v=N(),A=()=>{m(null),k(),j(),f(),g("/")},$=()=>{y(),w(!0),S(!0)};return e.jsxs(q,{children:[e.jsx(Q,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),I?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(R,{})}),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(U,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:h,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Settings"})]}),F&&v?e.jsxs(X,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(Y,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},q=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-45d79f14.js b/build/assets/index-8c0315a7.js similarity index 99% rename from build/assets/index-45d79f14.js rename to build/assets/index-8c0315a7.js index 60c85d3c9..aed59a72c 100644 --- a/build/assets/index-45d79f14.js +++ b/build/assets/index-8c0315a7.js @@ -1,4 +1,4 @@ -import{r as u,j as f,b_ as kt,b$ as Rt,a5 as xo,a3 as Ot,y as a,P as ye,S as $e,U as w,a0 as L,X as Pe,L as ae,Y as ne,Z as Ie,V as Re,a1 as lo,$ as Uo,c0 as Lt,c1 as wt,a2 as st,c2 as it,bw as ct,bx as dt,ak as Xe,c3 as To,a6 as Mt,an as Ft,s as Tt,a as je,F as At}from"./index-f22e6e13.js";import{a0 as Ho,e as ut,aH as pt,a$ as Nt,U as Fo,P as zt,b0 as Dt,a1 as Vo,f as Et}from"./index-8304ea06.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-e2486c11.js";import{c as zo}from"./createSvgIcon-9d40ff73.js";import{T as _t}from"./TextareaAutosize-5da8bada.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 wo(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 Jt(e){const{unstable_isActiveElementInListbox:o=Zt,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=Yt,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:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:we=!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),Z=u.useRef(null),be=u.useRef(null),[Me,Y]=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&&Ye?"":_,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?Z.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?Z.current.removeAttribute("aria-activedescendant"):Z.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)Z.current.value=_;else{const ge=ee(j[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Z.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},Ze=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&&wo(S,x=>oe(n,x))!==-1)return;const g=wo(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=>{Ot(be,l),l&&Ze()});u.useEffect(()=>{Ze()},[Ze]);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;J&&J(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=wo(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)&&Z.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&&Z.current.setSelectionRange(Z.current.value.length,Z.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)){Z.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)},Lo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Z.current.focus(),we&&We.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.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:Lo,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:Z,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:Y,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${L(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Qt,o)},tn=w("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${L(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${L(r)}`,`color${L(s)}`,i&&"clickable",i&&`clickableColor${L(s)}`,d&&"deletable",d&&`deletableColor${L(s)}`,`${b}${L(s)}`],label:["label",`label${L(r)}`],avatar:["avatar",`avatar${L(r)}`,`avatarColor${L(s)}`],icon:["icon",`icon${L(r)}`,`iconColor${L(c)}`],deleteIcon:["deleteIcon",`deleteIcon${L(r)}`,`deleteIconColor${L(s)}`,`deleteIcon${L(b)}Color${L(s)}`]};return Ie(p,an,o)},dn=w("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${L(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${L(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${L(i)}`]},{[`& .${V.icon}`]:o[`iconColor${L(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${L(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(b)}Color${L(r)}`]},o.root,o[`size${L(i)}`],o[`color${L(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${L(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${L(r)}`],o[b],o[`${b}${L(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=w("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${L(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",J=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(J),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:J},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:Lt,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${L(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${L(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${L($)}`,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=w("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),Io=w("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),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:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:we}=s,ue=ae(s,hn),W=k.value!=null?k.value:we,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Z=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,u.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=u.useCallback(z=>{ft(z)?ze&&ze():_e&&_e()},[ze,_e]);st(()=>{ee&&te({value:W})},[W,te,ee]);const S=z=>{if(H.disabled){z.stopPropagation();return}oe&&oe(z),k.onFocus&&k.onFocus(z),Y&&Y.onFocus?Y.onFocus(z):Me(!0)},to=z=>{q&&q(z),k.onBlur&&k.onBlur(z),Y&&Y.onBlur?Y.onBlur(z):Me(!1)},_=(z,...j)=>{if(!ee){const he=z.target||fe.current;if(he==null)throw new Error(it(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(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:R,error:H.error,focused:H.focused,formControl:Y,fullWidth:M,hiddenLabel:H.hiddenLabel,multiline:N,size:H.size,startAdornment:ie,type:Se}),Ae=vn(me),Ye=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(Ye,a({},De,!Ho(Ye)&&{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:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,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"])),Le=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,Yo;const Ln=["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"],wn=["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${L(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=w("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${D.tag}`]:o.tag},{[`& .${D.tag}`]:o[`tagSize${L(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"}},[`& .${Le.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Le.input}`]:{padding:"7px 4px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Le.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${Le.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${Le.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Le.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=w("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=w(ut,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=w(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=w(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=w(pt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=w("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=w("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=w("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${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=w(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=w("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:J=!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:we,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=pt,PopperComponent:Me=No,popupIcon:Y=Yo||(Yo=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,Ln),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ne}=Jt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!J||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=we??{},go=Ee(),{ref:mo}=go,ho=ae(go,wn),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)),Lo=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 Lo(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:Ze,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({},Ye(),{"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:Z,title:y?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):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&&!J&&!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,we,{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,Zo,Jo,Qo,et;const Je=44,Gn=ct(Zo||(Zo=So` +import{r as u,j as f,b_ as kt,b$ as Rt,a5 as xo,a3 as Ot,y as a,P as ye,S as $e,U as w,a0 as L,X as Pe,L as ae,Y as ne,Z as Ie,V as Re,a1 as lo,$ as Uo,c0 as Lt,c1 as wt,a2 as st,c2 as it,bw as ct,bx as dt,ak as Xe,c3 as To,a6 as Mt,an as Ft,s as Tt,a as je,F as At}from"./index-6502785b.js";import{a0 as Ho,f as ut,aD as pt,aX as Nt,U as Fo,P as zt,aY as Dt,a1 as Vo,g as Et}from"./index-e4d37dbe.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-72c38e89.js";import{c as zo}from"./createSvgIcon-6b5253a6.js";import{T as _t}from"./TextareaAutosize-a343ed23.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 wo(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 Jt(e){const{unstable_isActiveElementInListbox:o=Zt,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=Yt,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:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:we=!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),Z=u.useRef(null),be=u.useRef(null),[Me,Y]=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&&Ye?"":_,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?Z.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?Z.current.removeAttribute("aria-activedescendant"):Z.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)Z.current.value=_;else{const ge=ee(j[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Z.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},Ze=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&&wo(S,x=>oe(n,x))!==-1)return;const g=wo(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=>{Ot(be,l),l&&Ze()});u.useEffect(()=>{Ze()},[Ze]);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;J&&J(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=wo(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)&&Z.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&&Z.current.setSelectionRange(Z.current.value.length,Z.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)){Z.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)},Lo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Z.current.focus(),we&&We.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.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:Lo,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:Z,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:Y,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${L(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Qt,o)},tn=w("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${L(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${L(r)}`,`color${L(s)}`,i&&"clickable",i&&`clickableColor${L(s)}`,d&&"deletable",d&&`deletableColor${L(s)}`,`${b}${L(s)}`],label:["label",`label${L(r)}`],avatar:["avatar",`avatar${L(r)}`,`avatarColor${L(s)}`],icon:["icon",`icon${L(r)}`,`iconColor${L(c)}`],deleteIcon:["deleteIcon",`deleteIcon${L(r)}`,`deleteIconColor${L(s)}`,`deleteIcon${L(b)}Color${L(s)}`]};return Ie(p,an,o)},dn=w("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${L(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${L(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${L(i)}`]},{[`& .${V.icon}`]:o[`iconColor${L(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${L(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(b)}Color${L(r)}`]},o.root,o[`size${L(i)}`],o[`color${L(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${L(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${L(r)}`],o[b],o[`${b}${L(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=w("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${L(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",J=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(J),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:J},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:Lt,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${L(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${L(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${L($)}`,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=w("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),Io=w("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),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:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:we}=s,ue=ae(s,hn),W=k.value!=null?k.value:we,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Z=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,u.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=u.useCallback(z=>{ft(z)?ze&&ze():_e&&_e()},[ze,_e]);st(()=>{ee&&te({value:W})},[W,te,ee]);const S=z=>{if(H.disabled){z.stopPropagation();return}oe&&oe(z),k.onFocus&&k.onFocus(z),Y&&Y.onFocus?Y.onFocus(z):Me(!0)},to=z=>{q&&q(z),k.onBlur&&k.onBlur(z),Y&&Y.onBlur?Y.onBlur(z):Me(!1)},_=(z,...j)=>{if(!ee){const he=z.target||fe.current;if(he==null)throw new Error(it(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(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:R,error:H.error,focused:H.focused,formControl:Y,fullWidth:M,hiddenLabel:H.hiddenLabel,multiline:N,size:H.size,startAdornment:ie,type:Se}),Ae=vn(me),Ye=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(Ye,a({},De,!Ho(Ye)&&{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:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,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"])),Le=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,Yo;const Ln=["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"],wn=["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${L(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=w("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${D.tag}`]:o.tag},{[`& .${D.tag}`]:o[`tagSize${L(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"}},[`& .${Le.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Le.input}`]:{padding:"7px 4px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Le.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${Le.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${Le.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Le.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=w("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=w(ut,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=w(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=w(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=w(pt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=w("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=w("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=w("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${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=w(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=w("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:J=!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:we,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=pt,PopperComponent:Me=No,popupIcon:Y=Yo||(Yo=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,Ln),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ne}=Jt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!J||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=we??{},go=Ee(),{ref:mo}=go,ho=ae(go,wn),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)),Lo=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 Lo(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:Ze,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({},Ye(),{"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:Z,title:y?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):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&&!J&&!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,we,{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,Zo,Jo,Qo,et;const Je=44,Gn=ct(Zo||(Zo=So` 0% { transform: rotate(0deg); } diff --git a/build/assets/index-e9140c21.js b/build/assets/index-9e93bdd8.js similarity index 82% rename from build/assets/index-e9140c21.js rename to build/assets/index-9e93bdd8.js index d8c9c0ca3..754d331fe 100644 --- a/build/assets/index-e9140c21.js +++ b/build/assets/index-9e93bdd8.js @@ -1,4 +1,4 @@ -import{s as c,a as b,T as E,F as s,e as x,q as A,r as l,j as e,aW as O,aX as P,t as V,w as k,B as F,bu as q,bs as G,u as H,aZ as X}from"./index-f22e6e13.js";import{p as I,f as Y,aS as Z}from"./index-8304ea06.js";import{S as J}from"./Skeleton-6d9b0e62.js";import{C as K}from"./ClipLoader-1ce39797.js";const Q=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function ee(r){return!!Q.test(r)}function te(r){return r.split("_").map(d=>d.charAt(0).toUpperCase()+d.slice(1)).join(" ")}const ae=()=>{const{open:r}=x("changeNodeType"),{close:d}=x("editNodeName"),{changeNodeTypeFeatureFlag:f}=A(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=I(),j=a==null?void 0:a.node_type,[m,u]=l.useState({});l.useEffect(()=>{a!=null&&a.properties&&u(a.properties)},[a]);const y=()=>{d(),r()},g=(o,n)=>{u(N=>({...N,[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(oe,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(Y,{type:j}),f&&e.jsx(re,{onClick:y,children:e.jsx(Z,{})})]})]})}),e.jsx(ie,{children:Object.keys(m).map(o=>e.jsxs(s,{mb:18,children:[e.jsx(ne,{style:{marginBottom:8},children:te(o)}),e.jsx(O,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>g(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...P}:{}})]},o))})]})},oe=c(E)` +import{s as c,a as b,T as E,F as s,e as x,q as W,r as l,j as e,aW as A,aX as P,t as V,w as k,B as F,bu as q,bs as G,u as H,aZ as X}from"./index-6502785b.js";import{p as I,g as Y,aO as Z}from"./index-e4d37dbe.js";import{S as J}from"./Skeleton-e8200c96.js";import{C as K}from"./ClipLoader-2e8a2039.js";const Q=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function ee(r){return!!Q.test(r)}function te(r){return r.split("_").map(d=>d.charAt(0).toUpperCase()+d.slice(1)).join(" ")}const ae=()=>{const{open:r}=x("changeNodeType"),{close:d}=x("editNodeName"),{changeNodeTypeFeatureFlag:f}=W(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=I(),j=a==null?void 0:a.node_type,[m,u]=l.useState({});l.useEffect(()=>{a!=null&&a.properties&&u(a.properties)},[a]);const y=()=>{d(),r()},g=(o,n)=>{u(N=>({...N,[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(oe,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(Y,{type:j}),f&&e.jsx(re,{onClick:y,children:e.jsx(Z,{})})]})]})}),e.jsx(ie,{children:Object.keys(m).map(o=>e.jsxs(s,{mb:18,children:[e.jsx(ne,{style:{marginBottom:8},children:te(o)}),e.jsx(A,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>g(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...P}:{}})]},o))})]})},oe=c(E)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -23,7 +23,7 @@ import{s as c,a as b,T as E,F as s,e as x,q as A,r as l,j as e,aW as O,aX as P,t overflow-y: auto; padding-right: 40px; width: calc(100% + 40px); -`,ce=()=>{var T,w,v;const{close:r}=x("editNodeName"),d=V({mode:"onChange"}),{watch:f,setValue:a,reset:j,getValues:m}=d,[u,y]=l.useState(!1),[g,o]=l.useState(!1),[n,N]=l.useState(),t=I(),{open:B}=x("removeNode");l.useEffect(()=>(n?Object.keys(n).forEach(i=>{a(i,n[i])}):t&&Object.keys(t).forEach(i=>{a(i,t[i])}),()=>{j()}),[n,a,j,t]),l.useEffect(()=>{(async()=>{if(!(!t||t.type!=="topic")){o(!0);try{const{data:p}=await q({search:t==null?void 0:t.name}),U=p.find(W=>W.name===t.name);N(U)}catch(p){console.error(p)}finally{o(!1)}}})()},[t]);const D=f("imageInputType"),C=f("image_url");l.useEffect(()=>{a("imageInputType",ee(C))},[C,a]);const L=()=>{r()},h=n||t,_=async()=>{y(!0);const i=m();try{await G((h==null?void 0:h.ref_id)||"",{node_data:i});const{updateNode:p}=H.getState();p({...h,...i}),L()}catch(p){console.warn(p)}finally{y(!1)}},R=async()=>{B()},S=(w=(T=m())==null?void 0:T.name)==null?void 0:w.trim(),$=S&&(n==null?void 0:n.name.trim())!==S,z=m().image_url&&(t==null?void 0:t.image_url)!==((v=m())==null?void 0:v.image_url),M=u||g||!!C&&!D||!$&&!z;return e.jsx(le,{children:e.jsxs(k,{...d,children:[g?e.jsx(s,{my:24,children:e.jsx(J,{})}):e.jsx(ae,{}),e.jsxs(s,{direction:"row",justify:"space-between",mt:20,children:[e.jsx(s,{direction:"column",children:e.jsx(de,{color:"secondary",disabled:g||!h,onClick:R,size:"large",variant:"contained",children:"Delete"})}),e.jsxs(me,{color:"secondary",disabled:M,onClick:_,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(pe,{children:e.jsx(K,{color:b.lightGray,size:12})})]})]})]})})},le=c(s)` +`,ce=()=>{var w,S,v;const{close:r}=x("editNodeName"),d=V({mode:"onChange"}),{watch:f,setValue:a,reset:j,getValues:m}=d,[u,y]=l.useState(!1),[g,o]=l.useState(!1),[n,N]=l.useState(),t=I(),{open:B}=x("removeNode");l.useEffect(()=>(n?Object.keys(n).forEach(i=>{a(i,n[i])}):t&&Object.keys(t).forEach(i=>{a(i,t[i])}),()=>{j()}),[n,a,j,t]),l.useEffect(()=>{(async()=>{if(!(!t||t.type!=="topic")){o(!0);try{const{data:p}=await q({search:t==null?void 0:t.name}),O=p.find(U=>U.name===t.name);N(O)}catch(p){console.error(p)}finally{o(!1)}}})()},[t]);const D=f("imageInputType"),C=f("image_url");l.useEffect(()=>{a("imageInputType",ee(C))},[C,a]);const L=()=>{r()},h=n||t,_=async()=>{y(!0);const i=m();try{await G((h==null?void 0:h.ref_id)||"",{node_data:i});const{updateNode:p}=H.getState();p({...h,...i}),L()}catch(p){console.warn(p)}finally{y(!1)}},R=async()=>{B()},T=(S=(w=m())==null?void 0:w.name)==null?void 0:S.trim(),$=T&&(n==null?void 0:n.name.trim())!==T,z=m().image_url&&(t==null?void 0:t.image_url)!==((v=m())==null?void 0:v.image_url),M=u||g||!!C&&!D||!$&&!z;return e.jsx(le,{children:e.jsxs(k,{...d,children:[g?e.jsx(s,{my:24,children:e.jsx(J,{})}):e.jsx(ae,{}),e.jsxs(s,{direction:"row",justify:"space-between",mt:20,children:[e.jsx(s,{direction:"column",children:e.jsx(de,{color:"secondary",disabled:g||!h,onClick:R,size:"large",variant:"contained",children:"Delete"})}),e.jsxs(me,{color:"secondary",disabled:M,onClick:_,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(pe,{children:e.jsx(K,{color:b.lightGray,size:12})})]})]})]})})},le=c(s)` padding: 20px; `,de=c(F)` && { diff --git a/build/assets/index-443d99db.js b/build/assets/index-a1f46db3.js similarity index 93% rename from build/assets/index-443d99db.js rename to build/assets/index-a1f46db3.js index 70fdd9df4..47a1a2e1a 100644 --- a/build/assets/index-443d99db.js +++ b/build/assets/index-a1f46db3.js @@ -1,4 +1,4 @@ -import{D as F,bX as C,bY as m,bZ as V,s as w,T as k,F as d,ap as M,r as x,b as $,j as n,aW as z,aX as R,B as S,e as E,t as _,w as A,aV as G,aZ as I}from"./index-f22e6e13.js";import{p as K}from"./index-8304ea06.js";import{A as N}from"./index-45d79f14.js";import"./Stack-e2486c11.js";import"./createSvgIcon-9d40ff73.js";import"./TextareaAutosize-5da8bada.js";const D="https://community.sphinx.chat",O=async e=>await F.post("/bounty",JSON.stringify(e)),W=async e=>await C(`${D}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),P=async e=>await C(`${D}/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"),o=await V.signMessage(r),a=L(o.signature),l=m.Buffer.concat([t,a],a.length+t.length);return X(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 X(e){let t="";const r=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&U.test(t))},v=({errMessage:e,handleClose:t})=>{const{setValue:r,watch:o}=M(),[a,l]=x.useState([]),{pubKey:c}=$();x.useEffect(()=>{async function s(){try{const i=await W(c);if(!i.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const p=await P(i.id);if(p.length>0){const B=[];for(let b=0;b{const i=(s==null?void 0:s.label)||"SecondBrain",p=(s==null?void 0:s.value)||"ck9drb84nncjnaefo090";r("nodeType",i,{shouldValidate:!0}),r("workspaceUuid",p)},y=Z(u)&&!!g,h=s=>{s.key===" "&&s.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(H,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(N,{autoFocus:!0,onSelect:f,options:a})]}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Set Budget"}),n.jsx(z,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...R,pattern:{value:U,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(J,{children:e})]})},T=w(k)` +import{D as F,bX as C,bY as m,bZ as V,s as w,T as k,F as d,ap as M,r as x,b as $,j as n,aW as z,aX as R,B as S,e as E,t as _,w as A,aV as G,aZ as I}from"./index-6502785b.js";import{p as K}from"./index-e4d37dbe.js";import{A as N}from"./index-8c0315a7.js";import"./Stack-72c38e89.js";import"./createSvgIcon-6b5253a6.js";import"./TextareaAutosize-a343ed23.js";const D="https://community.sphinx.chat",O=async e=>await F.post("/bounty",JSON.stringify(e)),W=async e=>await C(`${D}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),P=async e=>await C(`${D}/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"),o=await V.signMessage(r),a=L(o.signature),l=m.Buffer.concat([t,a],a.length+t.length);return X(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 X(e){let t="";const r=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&U.test(t))},v=({errMessage:e,handleClose:t})=>{const{setValue:r,watch:o}=M(),[a,l]=x.useState([]),{pubKey:c}=$();x.useEffect(()=>{async function s(){try{const i=await W(c);if(!i.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const p=await P(i.id);if(p.length>0){const B=[];for(let b=0;b{const i=(s==null?void 0:s.label)||"SecondBrain",p=(s==null?void 0:s.value)||"ck9drb84nncjnaefo090";r("nodeType",i,{shouldValidate:!0}),r("workspaceUuid",p)},y=Z(u)&&!!g,h=s=>{s.key===" "&&s.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(H,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(N,{autoFocus:!0,onSelect:f,options:a})]}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Set Budget"}),n.jsx(z,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...R,pattern:{value:U,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(J,{children:e})]})},T=w(k)` font-size: 14px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-9ddac9de.js b/build/assets/index-a40552ce.js similarity index 99% rename from build/assets/index-9ddac9de.js rename to build/assets/index-a40552ce.js index d18819e65..a34ca7f0a 100644 --- a/build/assets/index-9ddac9de.js +++ b/build/assets/index-a40552ce.js @@ -1,4 +1,4 @@ -import{D as qO,ah as xa,i as Lv,ai as GL,r as P,aj as HO,a1 as zs,a2 as zL,a5 as Ps,y as ce,j as h,S as pb,P as fb,U as Mr,ak as qL,a0 as Jt,V as Hi,X as gb,L as jl,Y as Cr,Z as hb,a6 as Fl,al as HL,am as WL,an as WO,s as B,a as M,ao as VO,ap as mb,o as Bl,F,t as VL,u as Pr,b as Ul,aq as YO,w as YL,T as mt,ar as KL,E as dn,k as Ct,d as KO,as as ei,at as Tt,au as XL,J as pt,B as Mt,n as XO,q as ZO,C as JO,A as ZL,av as QO,e as Mv,p as JL,aw as e1,ax as t1,ay as ti,az as Ne,M as U,aA as QL,aB as eM,aC as tM,aD as Gl,aE as rM,aF as nM,aG as aM,aH as iM,aI as r1,aJ as oM,aK as zl,aL as sM,aM as lM,aN as uM,aO as cM,af as dM,aP as Pv,l as pM,aQ as fM,aR as gM,I as hM,_ as ir,aS as mM,aT as bM}from"./index-f22e6e13.js";import{Q as na,U as $s,V as ac,W as n1,X as yM,Y as vM,Z as SM,$ as $v,a0 as js,a1 as Tn,a2 as jv,a3 as fs,a4 as a1,a5 as EM,g as bb,a6 as i1,i as $r,f as ri,a7 as vn,a8 as o1,h as s1,a9 as xM,u as Mo,aa as wM,ab as yb,ac as ql,ad as vb,ae as _M,af as l1,ag as u1,ah as TM,P as AM,ai as c1,aj as OM,ak as kM,al as RM,am as IM,c as Sb,d as Eb,an as NM,ao as CM,ap as DM,m as we,p as Pt,aq as d1,ar as LM,e as p1,as as MM,b as Po,at as PM,au as $M,av as jM,aw as FM,ax as BM,ay as UM,az as f1,aA as GM}from"./index-8304ea06.js";import{c as zM,a as ic,C as Hl}from"./ClipLoader-1ce39797.js";import{S as g1}from"./Skeleton-6d9b0e62.js";import{u as h1,P as xb,a as qM,F as HM}from"./Stack-e2486c11.js";import{S as WM,F as Fv,i as $o,g as yr,t as VM,_ as m1,a as YM,b as KM,c as ia,d as wb,e as XM,f as ZM,h as JM,j as jo,m as QM,k as eP,l as tP,n as b1,o as rP,p as nP}from"./isPlainObject-212517ba.js";import{c as _b}from"./createSvgIcon-9d40ff73.js";import{useBriefDescriptionStore as aP}from"./index-a1115826.js";import{u as y1}from"./index-e36d8aa5.js";const Bv="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",iP=async e=>{let t=await xa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await xa.keysend(Bv,e),!(t!=null&&t.success)){if(t=await xa.topup(),t||(t=await xa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const r=await iP(t),n={amount:t,refid:e};return await qO.post("/boost",JSON.stringify(n)),r},sP=e=>{const[t,r]=e.split("-")||["",""];return parseInt(r,10)!==0?`${t} - ${r}`:t},v1=(e,t)=>{if(!t)return null;const r=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),n=Lv.groupBy(r,i=>i.timestamp),a=Lv.values(n).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,g;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((g=o.timestamp)==null?void 0:g.split("-"))||[""],c=na(s),d=na(l);return c-d}),a},lP=async e=>{await GL(async()=>{try{await xa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},uP=e=>{const t=/((http|https):\/\/[^\s]+)/g,r=/@(\w+)/g;let n=e.replace(/\\/g,"");return n=n.replace(/'/g,"’"),n=n.replace(/\n/g,"
"),n=n.replace(t,'$1'),n=n.replace(r,'@$1'),n},cP={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},dP=cP;function pP(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const fP=2;function S1(e,t){return e-t}function hi(e,t,r){return e==null?t:Math.min(Math.max(t,e),r)}function Uv(e,t){var r;const{index:n}=(r=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}%`})}},yP=e=>e;let bs;function oc(){return bs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?bs=CSS.supports("touch-action","none"):bs=!0),bs}function vP(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:c,onChange:d,onChangeCommitted:p,orientation:g="horizontal",rootRef:m,scale:b=yP,step:v=1,tabIndex:S,value:O}=e,_=P.useRef(),[w,A]=P.useState(-1),[x,E]=P.useState(-1),[k,N]=P.useState(!1),I=P.useRef(0),[D,L]=h1({controlled:O,default:r??l,name:"Slider"}),j=d&&((te,de,ye)=>{const ve=te.nativeEvent||te,ge=new ve.constructor(ve.type,ve);Object.defineProperty(ge,"target",{writable:!0,value:{value:de,name:c}}),d(ge,de,ye)}),z=Array.isArray(D);let q=z?D.slice().sort(S1):[D];q=q.map(te=>hi(te,l,s));const H=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((te,de)=>({value:l+v*de})):o||[],V=H.map(te=>te.value),{isFocusVisibleRef:K,onBlur:G,onFocus:W,ref:J}=HO(),[ae,re]=P.useState(-1),ue=P.useRef(),Se=zs(J,ue),Q=zs(m,Se),Ie=te=>de=>{var ye;const ve=Number(de.currentTarget.getAttribute("data-index"));W(de),K.current===!0&&re(ve),E(ve),te==null||(ye=te.onFocus)==null||ye.call(te,de)},Ue=te=>de=>{var ye;G(de),K.current===!1&&re(-1),E(-1),te==null||(ye=te.onBlur)==null||ye.call(te,de)};zL(()=>{if(n&&ue.current.contains(document.activeElement)){var te;(te=document.activeElement)==null||te.blur()}},[n]),n&&w!==-1&&A(-1),n&&ae!==-1&&re(-1);const xe=te=>de=>{var ye;(ye=te.onChange)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index")),ge=q[ve],qe=V.indexOf(ge);let De=de.target.valueAsNumber;if(H&&v==null){const Ge=V[V.length-1];De>Ge?De=Ge:De{const{current:ye}=ue,{width:ve,height:ge,bottom:qe,left:De}=ye.getBoundingClientRect();let Ge;oe.indexOf("vertical")===0?Ge=(qe-te.y)/ge:Ge=(te.x-De)/ve,oe.indexOf("-reverse")!==-1&&(Ge=1-Ge);let Je;if(Je=gP(Ge,l,s),v)Je=mP(Je,v,l);else{const rr=Uv(V,Je);Je=V[rr]}Je=hi(Je,l,s);let jt=0;if(z){de?jt=ee.current:jt=Uv(q,Je),a&&(Je=hi(Je,q[jt-1]||-1/0,q[jt+1]||1/0));const rr=Je;Je=Gv({values:q,newValue:Je,index:jt}),a&&de||(jt=Je.indexOf(rr),ee.current=jt)}return{newValue:Je,activeIndex:jt}},X=Ps(te=>{const de=gs(te,_);if(!de)return;if(I.current+=1,te.type==="mousemove"&&te.buttons===0){Ee(te);return}const{newValue:ye,activeIndex:ve}=ie({finger:de,move:!0});hs({sliderRef:ue,activeIndex:ve,setActive:A}),L(ye),!k&&I.current>fP&&N(!0),j&&!ms(ye,D)&&j(te,ye,ve)}),Ee=Ps(te=>{const de=gs(te,_);if(N(!1),!de)return;const{newValue:ye}=ie({finger:de,move:!0});A(-1),te.type==="touchend"&&E(-1),p&&p(te,ye),_.current=void 0,he()}),fe=Ps(te=>{if(n)return;oc()||te.preventDefault();const de=te.changedTouches[0];de!=null&&(_.current=de.identifier);const ye=gs(te,_);if(ye!==!1){const{newValue:ge,activeIndex:qe}=ie({finger:ye});hs({sliderRef:ue,activeIndex:qe,setActive:A}),L(ge),j&&!ms(ge,D)&&j(te,ge,qe)}I.current=0;const ve=$s(ue.current);ve.addEventListener("touchmove",X),ve.addEventListener("touchend",Ee)}),he=P.useCallback(()=>{const te=$s(ue.current);te.removeEventListener("mousemove",X),te.removeEventListener("mouseup",Ee),te.removeEventListener("touchmove",X),te.removeEventListener("touchend",Ee)},[Ee,X]);P.useEffect(()=>{const{current:te}=ue;return te.addEventListener("touchstart",fe,{passive:oc()}),()=>{te.removeEventListener("touchstart",fe,{passive:oc()}),he()}},[he,fe]),P.useEffect(()=>{n&&he()},[n,he]);const je=te=>de=>{var ye;if((ye=te.onMouseDown)==null||ye.call(te,de),n||de.defaultPrevented||de.button!==0)return;de.preventDefault();const ve=gs(de,_);if(ve!==!1){const{newValue:qe,activeIndex:De}=ie({finger:ve});hs({sliderRef:ue,activeIndex:De,setActive:A}),L(qe),j&&!ms(qe,D)&&j(de,qe,De)}I.current=0;const ge=$s(ue.current);ge.addEventListener("mousemove",X),ge.addEventListener("mouseup",Ee)},nt=qs(z?q[0]:l,l,s),et=qs(q[q.length-1],l,s)-nt,tr=(te={})=>{const de=ac(te),ye={onMouseDown:je(de||{})},ve=ce({},de,ye);return ce({},te,{ref:Q},ve)},Pe=te=>de=>{var ye;(ye=te.onMouseOver)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index"));E(ve)},$e=te=>de=>{var ye;(ye=te.onMouseLeave)==null||ye.call(te,de),E(-1)};return{active:w,axis:oe,axisProps:bP,dragging:k,focusedThumbIndex:ae,getHiddenInputProps:(te={})=>{var de;const ye=ac(te),ve={onChange:xe(ye||{}),onFocus:Ie(ye||{}),onBlur:Ue(ye||{})},ge=ce({},ye,ve);return ce({tabIndex:S,"aria-labelledby":t,"aria-orientation":g,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(de=e.step)!=null?de:void 0,disabled:n},te,ge,{style:ce({},dP,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:tr,getThumbProps:(te={})=>{const de=ac(te),ye={onMouseOver:Pe(de||{}),onMouseLeave:$e(de||{})};return ce({},te,de,ye)},marks:H,open:x,range:z,rootRef:Q,trackLeap:et,trackOffset:nt,values:q,getThumbStyle:te=>({pointerEvents:w!==-1&&w!==te?"none":void 0})}}const SP=_b(h.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"),EP=_b(h.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"),xP=_b(h.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 wP(e){return fb("MuiCheckbox",e)}const _P=pb("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),sc=_P,TP=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],AP=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,i={root:["root",r&&"indeterminate",`color${Jt(n)}`,`size${Jt(a)}`]},o=hb(i,wP,t);return ce({},t,o)},OP=Mr(WM,{shouldForwardProp:e=>qL(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Jt(r.size)}`],r.color!=="default"&&t[`color${Jt(r.color)}`]]}})(({theme:e,ownerState:t})=>ce({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})`:Hi(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${sc.checked}, &.${sc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${sc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),kP=h.jsx(EP,{}),RP=h.jsx(SP,{}),IP=h.jsx(xP,{}),NP=P.forwardRef(function(t,r){var n,a;const i=gb({props:t,name:"MuiCheckbox"}),{checkedIcon:o=kP,color:s="primary",icon:l=RP,indeterminate:c=!1,indeterminateIcon:d=IP,inputProps:p,size:g="medium",className:m}=i,b=jl(i,TP),v=c?d:l,S=c?d:o,O=ce({},i,{color:s,indeterminate:c,size:g}),_=AP(O);return h.jsx(OP,ce({type:"checkbox",inputProps:ce({"data-indeterminate":c},p),icon:P.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:g}),checkedIcon:P.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:g}),ownerState:O,ref:r,className:Cr(_.root,m)},b,{classes:_}))}),CP=NP,DP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function LP(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=n1(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const c=i.getComputedStyle(t);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const c=o.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${i.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-n.top}px)`:`translateY(${i.innerHeight+l-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function MP(e){return typeof e=="function"?e():e}function ys(e,t,r){const n=MP(r),a=LP(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const PP=P.forwardRef(function(t,r){const n=Fl(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:c,direction:d="down",easing:p=a,in:g,onEnter:m,onEntered:b,onEntering:v,onExit:S,onExited:O,onExiting:_,style:w,timeout:A=i,TransitionComponent:x=yM}=t,E=jl(t,DP),k=P.useRef(null),N=zs(l.ref,k,r),I=G=>W=>{G&&(W===void 0?G(k.current):G(k.current,W))},D=I((G,W)=>{ys(d,G,c),SM(G),m&&m(G,W)}),L=I((G,W)=>{const J=$v({timeout:A,style:w,easing:p},{mode:"enter"});G.style.webkitTransition=n.transitions.create("-webkit-transform",ce({},J)),G.style.transition=n.transitions.create("transform",ce({},J)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,W)}),j=I(b),z=I(_),q=I(G=>{const W=$v({timeout:A,style:w,easing:p},{mode:"exit"});G.style.webkitTransition=n.transitions.create("-webkit-transform",W),G.style.transition=n.transitions.create("transform",W),ys(d,G,c),S&&S(G)}),H=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),V=G=>{o&&o(k.current,G)},K=P.useCallback(()=>{k.current&&ys(d,k.current,c)},[d,c]);return P.useEffect(()=>{if(g||d==="down"||d==="right")return;const G=vM(()=>{k.current&&ys(d,k.current,c)}),W=n1(k.current);return W.addEventListener("resize",G),()=>{G.clear(),W.removeEventListener("resize",G)}},[d,g,c]),P.useEffect(()=>{g||K()},[g,K]),h.jsx(x,ce({nodeRef:k,onEnter:D,onEntered:j,onEntering:L,onExit:q,onExited:H,onExiting:z,addEndListener:V,appear:s,in:g,timeout:A},E,{children:(G,W)=>P.cloneElement(l,ce({ref:N,style:ce({visibility:G==="exited"&&!g?"hidden":void 0},w,l.props.style)},W))}))}),Ca=PP,$P=e=>!e||!js(e),jP=$P;function FP(e){return fb("MuiSlider",e)}const BP=pb("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"]),Dr=BP,UP=e=>{const{open:t}=e;return{offset:Cr(t&&Dr.valueLabelOpen),circle:Dr.valueLabelCircle,label:Dr.valueLabelLabel}};function GP(e){const{children:t,className:r,value:n}=e,a=UP(e);return t?P.cloneElement(t,{className:Cr(t.props.className)},h.jsxs(P.Fragment,{children:[t.props.children,h.jsx("span",{className:Cr(a.offset,r),"aria-hidden":!0,children:h.jsx("span",{className:a.circle,children:h.jsx("span",{className:a.label,children:n})})})]})):null}const zP=["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 zv(e){return e}const qP=Mr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Jt(r.color)}`],r.size!=="medium"&&t[`size${Jt(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>ce({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"&&ce({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"&&ce({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"},[`&.${Dr.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Dr.dragging}`]:{[`& .${Dr.thumb}, & .${Dr.track}`]:{transition:"none"}}})),HP=Mr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ce({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})),WP=Mr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?HL(e.palette[t.color].main,.62):WL(e.palette[t.color].main,.5);return ce({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`]:r,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r})}),VP=Mr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Jt(r.color)}`],r.size!=="medium"&&t[`thumbSize${Jt(r.size)}`]]}})(({theme:e,ownerState:t})=>ce({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":ce({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, &.${Dr.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Dr.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`},[`&.${Dr.disabled}`]:{"&:hover":{boxShadow:"none"}}})),YP=Mr(GP,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ce({[`&.${Dr.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"})),KP=Mr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>WO(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e,ownerState:t,markActive:r})=>ce({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)"},r&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),XP=Mr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>WO(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:r})=>ce({},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}},r&&{color:(e.vars||e).palette.text.primary})),ZP=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:i,classes:o,color:s,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${Jt(s)}`,l&&`size${Jt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Jt(l)}`,s&&`thumbColor${Jt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return hb(c,FP,o)},JP=({children:e})=>e,QP=P.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,v,S,O,_,w,A,x,E,k,N,I,D;const L=gb({props:t,name:"MuiSlider"}),z=Fl().direction==="rtl",{"aria-label":q,"aria-valuetext":H,"aria-labelledby":V,component:K="span",components:G={},componentsProps:W={},color:J="primary",classes:ae,className:re,disableSwap:ue=!1,disabled:Se=!1,getAriaLabel:Q,getAriaValueText:Ie,marks:Ue=!1,max:xe=100,min:ee=0,orientation:oe="horizontal",size:ie="medium",step:X=1,scale:Ee=zv,slotProps:fe,slots:he,track:je="normal",valueLabelDisplay:nt="off",valueLabelFormat:et=zv}=L,tr=jl(L,zP),Pe=ce({},L,{isRtl:z,max:xe,min:ee,classes:ae,disabled:Se,disableSwap:ue,orientation:oe,marks:Ue,color:J,size:ie,step:X,scale:Ee,track:je,valueLabelDisplay:nt,valueLabelFormat:et}),{axisProps:$e,getRootProps:Ye,getHiddenInputProps:$t,getThumbProps:Kt,open:te,active:de,axis:ye,focusedThumbIndex:ve,range:ge,dragging:qe,marks:De,values:Ge,trackOffset:Je,trackLeap:jt,getThumbStyle:rr}=vP(ce({},Pe,{rootRef:r}));Pe.marked=De.length>0&&De.some(_e=>_e.label),Pe.dragging=qe,Pe.focusedThumbIndex=ve;const ze=ZP(Pe),Kr=(n=(a=he==null?void 0:he.root)!=null?a:G.Root)!=null?n:qP,Xr=(i=(o=he==null?void 0:he.rail)!=null?o:G.Rail)!=null?i:HP,Zr=(s=(l=he==null?void 0:he.track)!=null?l:G.Track)!=null?s:WP,He=(c=(d=he==null?void 0:he.thumb)!=null?d:G.Thumb)!=null?c:VP,Bn=(p=(g=he==null?void 0:he.valueLabel)!=null?g:G.ValueLabel)!=null?p:YP,Jr=(m=(b=he==null?void 0:he.mark)!=null?b:G.Mark)!=null?m:KP,xr=(v=(S=he==null?void 0:he.markLabel)!=null?S:G.MarkLabel)!=null?v:XP,Qr=(O=(_=he==null?void 0:he.input)!=null?_:G.Input)!=null?O:"input",wr=(w=fe==null?void 0:fe.root)!=null?w:W.root,_r=(A=fe==null?void 0:fe.rail)!=null?A:W.rail,Tr=(x=fe==null?void 0:fe.track)!=null?x:W.track,Un=(E=fe==null?void 0:fe.thumb)!=null?E:W.thumb,Fr=(k=fe==null?void 0:fe.valueLabel)!=null?k:W.valueLabel,li=(N=fe==null?void 0:fe.mark)!=null?N:W.mark,Ar=(I=fe==null?void 0:fe.markLabel)!=null?I:W.markLabel,En=(D=fe==null?void 0:fe.input)!=null?D:W.input,le=Tn({elementType:Kr,getSlotProps:Ye,externalSlotProps:wr,externalForwardedProps:tr,additionalProps:ce({},jP(Kr)&&{as:K}),ownerState:ce({},Pe,wr==null?void 0:wr.ownerState),className:[ze.root,re]}),Gn=Tn({elementType:Xr,externalSlotProps:_r,ownerState:Pe,className:ze.rail}),Ft=Tn({elementType:Zr,externalSlotProps:Tr,additionalProps:{style:ce({},$e[ye].offset(Je),$e[ye].leap(jt))},ownerState:ce({},Pe,Tr==null?void 0:Tr.ownerState),className:ze.track}),ut=Tn({elementType:He,getSlotProps:Kt,externalSlotProps:Un,ownerState:ce({},Pe,Un==null?void 0:Un.ownerState),className:ze.thumb}),zn=Tn({elementType:Bn,externalSlotProps:Fr,ownerState:ce({},Pe,Fr==null?void 0:Fr.ownerState),className:ze.valueLabel}),Oe=Tn({elementType:Jr,externalSlotProps:li,ownerState:Pe,className:ze.mark}),nr=Tn({elementType:xr,externalSlotProps:Ar,ownerState:Pe,className:ze.markLabel}),da=Tn({elementType:Qr,getSlotProps:$t,externalSlotProps:En,ownerState:Pe});return h.jsxs(Kr,ce({},le,{children:[h.jsx(Xr,ce({},Gn)),h.jsx(Zr,ce({},Ft)),De.filter(_e=>_e.value>=ee&&_e.value<=xe).map((_e,We)=>{const kt=qs(_e.value,ee,xe),tt=$e[ye].offset(kt);let ct;return je===!1?ct=Ge.indexOf(_e.value)!==-1:ct=je==="normal"&&(ge?_e.value>=Ge[0]&&_e.value<=Ge[Ge.length-1]:_e.value<=Ge[0])||je==="inverted"&&(ge?_e.value<=Ge[0]||_e.value>=Ge[Ge.length-1]:_e.value>=Ge[0]),h.jsxs(P.Fragment,{children:[h.jsx(Jr,ce({"data-index":We},Oe,!js(Jr)&&{markActive:ct},{style:ce({},tt,Oe.style),className:Cr(Oe.className,ct&&ze.markActive)})),_e.label!=null?h.jsx(xr,ce({"aria-hidden":!0,"data-index":We},nr,!js(xr)&&{markLabelActive:ct},{style:ce({},tt,nr.style),className:Cr(ze.markLabel,nr.className,ct&&ze.markLabelActive),children:_e.label})):null]},We)}),Ge.map((_e,We)=>{const kt=qs(_e,ee,xe),tt=$e[ye].offset(kt),ct=nt==="off"?JP:Bn;return h.jsx(ct,ce({},!js(ct)&&{valueLabelFormat:et,valueLabelDisplay:nt,value:typeof et=="function"?et(Ee(_e),We):et,index:We,open:te===We||de===We||nt==="on",disabled:Se},zn,{children:h.jsx(He,ce({"data-index":We},ut,{className:Cr(ze.thumb,ut.className,de===We&&ze.active,ve===We&&ze.focusVisible),style:ce({},tt,rr(We),ut.style),children:h.jsx(Qr,ce({"data-index":We,"aria-label":Q?Q(We):q,"aria-valuenow":Ee(_e),"aria-labelledby":V,"aria-valuetext":Ie?Ie(Ee(_e),We):H,value:Ge[We]},da))}))}),We)})]}))}),Wl=QP;function e$(e){return fb("MuiTooltip",e)}const t$=pb("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Nn=t$,r$=["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 n$(e){return Math.round(e*1e5)/1e5}const a$=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:i}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Jt(i.split("-")[0])}`],arrow:["arrow"]};return hb(o,e$,t)},i$=Mr(xb,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>ce({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Nn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Nn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Nn.arrow}`]:ce({},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"] .${Nn.arrow}`]:ce({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),o$=Mr("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Jt(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ce({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Hi(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:`${n$(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Nn.popper}[data-popper-placement*="left"] &`]:ce({transformOrigin:"right center"},t.isRtl?ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ce({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Nn.popper}[data-popper-placement*="right"] &`]:ce({transformOrigin:"left center"},t.isRtl?ce({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Nn.popper}[data-popper-placement*="top"] &`]:ce({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Nn.popper}[data-popper-placement*="bottom"] &`]:ce({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),s$=Mr("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:Hi(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let vs=!1,lc=null,mi={x:0,y:0};function Ss(e,t){return r=>{t&&t(r),e(r)}}const l$=P.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,v,S,O,_,w,A,x;const E=gb({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:N,components:I={},componentsProps:D={},describeChild:L=!1,disableFocusListener:j=!1,disableHoverListener:z=!1,disableInteractive:q=!1,disableTouchListener:H=!1,enterDelay:V=100,enterNextDelay:K=0,enterTouchDelay:G=700,followCursor:W=!1,id:J,leaveDelay:ae=0,leaveTouchDelay:re=1500,onClose:ue,onOpen:Se,open:Q,placement:Ie="bottom",PopperComponent:Ue,PopperProps:xe={},slotProps:ee={},slots:oe={},title:ie,TransitionComponent:X=jv,TransitionProps:Ee}=E,fe=jl(E,r$),he=P.isValidElement(N)?N:h.jsx("span",{children:N}),je=Fl(),nt=je.direction==="rtl",[et,tr]=P.useState(),[Pe,$e]=P.useState(null),Ye=P.useRef(!1),$t=q||W,Kt=P.useRef(),te=P.useRef(),de=P.useRef(),ye=P.useRef(),[ve,ge]=h1({controlled:Q,default:!1,name:"Tooltip",state:"open"});let qe=ve;const De=qM(J),Ge=P.useRef(),Je=P.useCallback(()=>{Ge.current!==void 0&&(document.body.style.WebkitUserSelect=Ge.current,Ge.current=void 0),clearTimeout(ye.current)},[]);P.useEffect(()=>()=>{clearTimeout(Kt.current),clearTimeout(te.current),clearTimeout(de.current),Je()},[Je]);const jt=ke=>{clearTimeout(lc),vs=!0,ge(!0),Se&&!qe&&Se(ke)},rr=Ps(ke=>{clearTimeout(lc),lc=setTimeout(()=>{vs=!1},800+ae),ge(!1),ue&&qe&&ue(ke),clearTimeout(Kt.current),Kt.current=setTimeout(()=>{Ye.current=!1},je.transitions.duration.shortest)}),ze=ke=>{Ye.current&&ke.type!=="touchstart"||(et&&et.removeAttribute("title"),clearTimeout(te.current),clearTimeout(de.current),V||vs&&K?te.current=setTimeout(()=>{jt(ke)},vs?K:V):jt(ke))},Kr=ke=>{clearTimeout(te.current),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},ae)},{isFocusVisibleRef:Xr,onBlur:Zr,onFocus:He,ref:Bn}=HO(),[,Jr]=P.useState(!1),xr=ke=>{Zr(ke),Xr.current===!1&&(Jr(!1),Kr(ke))},Qr=ke=>{et||tr(ke.currentTarget),He(ke),Xr.current===!0&&(Jr(!0),ze(ke))},wr=ke=>{Ye.current=!0;const Bt=he.props;Bt.onTouchStart&&Bt.onTouchStart(ke)},_r=ze,Tr=Kr,Un=ke=>{wr(ke),clearTimeout(de.current),clearTimeout(Kt.current),Je(),Ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ge.current,ze(ke)},G)},Fr=ke=>{he.props.onTouchEnd&&he.props.onTouchEnd(ke),Je(),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},re)};P.useEffect(()=>{if(!qe)return;function ke(Bt){(Bt.key==="Escape"||Bt.key==="Esc")&&rr(Bt)}return document.addEventListener("keydown",ke),()=>{document.removeEventListener("keydown",ke)}},[rr,qe]);const li=zs(he.ref,Bn,tr,r);!ie&&ie!==0&&(qe=!1);const Ar=P.useRef(),En=ke=>{const Bt=he.props;Bt.onMouseMove&&Bt.onMouseMove(ke),mi={x:ke.clientX,y:ke.clientY},Ar.current&&Ar.current.update()},le={},Gn=typeof ie=="string";L?(le.title=!qe&&Gn&&!z?ie:null,le["aria-describedby"]=qe?De:null):(le["aria-label"]=Gn?ie:null,le["aria-labelledby"]=qe&&!Gn?De:null);const Ft=ce({},le,fe,he.props,{className:Cr(fe.className,he.props.className),onTouchStart:wr,ref:li},W?{onMouseMove:En}:{}),ut={};H||(Ft.onTouchStart=Un,Ft.onTouchEnd=Fr),z||(Ft.onMouseOver=Ss(_r,Ft.onMouseOver),Ft.onMouseLeave=Ss(Tr,Ft.onMouseLeave),$t||(ut.onMouseOver=_r,ut.onMouseLeave=Tr)),j||(Ft.onFocus=Ss(Qr,Ft.onFocus),Ft.onBlur=Ss(xr,Ft.onBlur),$t||(ut.onFocus=Qr,ut.onBlur=xr));const zn=P.useMemo(()=>{var ke;let Bt=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(ke=xe.popperOptions)!=null&&ke.modifiers&&(Bt=Bt.concat(xe.popperOptions.modifiers)),ce({},xe.popperOptions,{modifiers:Bt})},[Pe,xe]),Oe=ce({},E,{isRtl:nt,arrow:k,disableInteractive:$t,placement:Ie,PopperComponentProp:Ue,touch:Ye.current}),nr=a$(Oe),da=(n=(a=oe.popper)!=null?a:I.Popper)!=null?n:i$,_e=(i=(o=(s=oe.transition)!=null?s:I.Transition)!=null?o:X)!=null?i:jv,We=(l=(c=oe.tooltip)!=null?c:I.Tooltip)!=null?l:o$,kt=(d=(p=oe.arrow)!=null?p:I.Arrow)!=null?d:s$,tt=fs(da,ce({},xe,(g=ee.popper)!=null?g:D.popper,{className:Cr(nr.popper,xe==null?void 0:xe.className,(m=(b=ee.popper)!=null?b:D.popper)==null?void 0:m.className)}),Oe),ct=fs(_e,ce({},Ee,(v=ee.transition)!=null?v:D.transition),Oe),Or=fs(We,ce({},(S=ee.tooltip)!=null?S:D.tooltip,{className:Cr(nr.tooltip,(O=(_=ee.tooltip)!=null?_:D.tooltip)==null?void 0:O.className)}),Oe),en=fs(kt,ce({},(w=ee.arrow)!=null?w:D.arrow,{className:Cr(nr.arrow,(A=(x=ee.arrow)!=null?x:D.arrow)==null?void 0:A.className)}),Oe);return h.jsxs(P.Fragment,{children:[P.cloneElement(he,Ft),h.jsx(da,ce({as:Ue??xb,placement:Ie,anchorEl:W?{getBoundingClientRect:()=>({top:mi.y,left:mi.x,right:mi.x,bottom:mi.y,width:0,height:0})}:et,popperRef:Ar,open:et?qe:!1,id:De,transition:!0},ut,tt,{popperOptions:zn,children:({TransitionProps:ke})=>h.jsx(_e,ce({timeout:je.transitions.duration.shorter},ke,ct,{children:h.jsxs(We,ce({},Or,{children:[ie,k?h.jsx(kt,ce({},en,{ref:$e})):null]}))}))}))]})}),u$=l$,c$=(e,t="down")=>{const r=Fl(),[n,a]=P.useState(!1),i=r.breakpoints[t](e).split("@media")[1].trim();return P.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),n},d$=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function p$(e){return e.tldr_topic??e.name}var Hs=globalThis&&globalThis.__assign||function(){return Hs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r({autoCorrect:"off",autoComplete:"off"}))` +import{D as qO,ah as xa,i as Lv,ai as GL,r as P,aj as HO,a1 as zs,a2 as zL,a5 as Ps,y as ce,j as h,S as pb,P as fb,U as Mr,ak as qL,a0 as Jt,V as Hi,X as gb,L as jl,Y as Cr,Z as hb,a6 as Fl,al as HL,am as WL,an as WO,s as B,a as M,ao as VO,ap as mb,o as Bl,F,t as VL,u as Pr,b as Ul,aq as YO,w as YL,T as mt,ar as KL,E as dn,k as Ct,d as KO,as as ei,at as Tt,au as XL,J as pt,B as Mt,n as XO,q as ZO,C as JO,A as ZL,av as QO,e as Mv,p as JL,aw as e1,ax as t1,ay as ti,az as Ne,M as U,aA as QL,aB as eM,aC as tM,aD as Gl,aE as rM,aF as nM,aG as aM,aH as iM,aI as r1,aJ as oM,aK as zl,aL as sM,aM as lM,aN as uM,aO as cM,af as dM,aP as Pv,l as pM,aQ as fM,aR as gM,I as hM,_ as ir,aS as mM,aT as bM}from"./index-6502785b.js";import{Q as na,U as $s,V as ac,W as n1,X as yM,Y as vM,Z as SM,$ as $v,a0 as js,a1 as Tn,a2 as jv,a3 as fs,a4 as a1,a5 as EM,h as bb,a6 as i1,b as $r,g as ri,a7 as vn,a8 as o1,i as s1,a9 as xM,u as Mo,aa as wM,ab as yb,ac as ql,ad as vb,ae as _M,af as l1,ag as u1,ah as TM,P as AM,ai as c1,aj as OM,ak as kM,al as RM,am as IM,d as Sb,e as Eb,an as NM,ao as CM,ap as DM,m as we,p as Pt,aq as d1,ar as LM,f as p1,as as MM,c as Po,at as PM,au as $M,av as jM,aw as FM,ax as BM,ay as UM,az as f1,aA as GM}from"./index-e4d37dbe.js";import{c as zM,a as ic,C as Hl}from"./ClipLoader-2e8a2039.js";import{S as g1}from"./Skeleton-e8200c96.js";import{u as h1,P as xb,a as qM,F as HM}from"./Stack-72c38e89.js";import{S as WM,F as Fv,i as $o,g as yr,t as VM,_ as m1,a as YM,b as KM,c as ia,d as wb,e as XM,f as ZM,h as JM,j as jo,m as QM,k as eP,l as tP,n as b1,o as rP,p as nP}from"./isPlainObject-886127ee.js";import{c as _b}from"./createSvgIcon-6b5253a6.js";import{useBriefDescriptionStore as aP}from"./index-ac06168d.js";import{u as y1}from"./index-0c4fb1ee.js";const Bv="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",iP=async e=>{let t=await xa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await xa.keysend(Bv,e),!(t!=null&&t.success)){if(t=await xa.topup(),t||(t=await xa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const r=await iP(t),n={amount:t,refid:e};return await qO.post("/boost",JSON.stringify(n)),r},sP=e=>{const[t,r]=e.split("-")||["",""];return parseInt(r,10)!==0?`${t} - ${r}`:t},v1=(e,t)=>{if(!t)return null;const r=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),n=Lv.groupBy(r,i=>i.timestamp),a=Lv.values(n).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,g;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((g=o.timestamp)==null?void 0:g.split("-"))||[""],c=na(s),d=na(l);return c-d}),a},lP=async e=>{await GL(async()=>{try{await xa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},uP=e=>{const t=/((http|https):\/\/[^\s]+)/g,r=/@(\w+)/g;let n=e.replace(/\\/g,"");return n=n.replace(/'/g,"’"),n=n.replace(/\n/g,"
"),n=n.replace(t,'$1'),n=n.replace(r,'@$1'),n},cP={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},dP=cP;function pP(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const fP=2;function S1(e,t){return e-t}function hi(e,t,r){return e==null?t:Math.min(Math.max(t,e),r)}function Uv(e,t){var r;const{index:n}=(r=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}%`})}},yP=e=>e;let bs;function oc(){return bs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?bs=CSS.supports("touch-action","none"):bs=!0),bs}function vP(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:c,onChange:d,onChangeCommitted:p,orientation:g="horizontal",rootRef:m,scale:b=yP,step:v=1,tabIndex:S,value:O}=e,_=P.useRef(),[w,A]=P.useState(-1),[x,E]=P.useState(-1),[k,N]=P.useState(!1),I=P.useRef(0),[D,L]=h1({controlled:O,default:r??l,name:"Slider"}),j=d&&((te,de,ye)=>{const ve=te.nativeEvent||te,ge=new ve.constructor(ve.type,ve);Object.defineProperty(ge,"target",{writable:!0,value:{value:de,name:c}}),d(ge,de,ye)}),z=Array.isArray(D);let q=z?D.slice().sort(S1):[D];q=q.map(te=>hi(te,l,s));const H=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((te,de)=>({value:l+v*de})):o||[],V=H.map(te=>te.value),{isFocusVisibleRef:K,onBlur:G,onFocus:W,ref:J}=HO(),[ae,re]=P.useState(-1),ue=P.useRef(),Se=zs(J,ue),Q=zs(m,Se),Ie=te=>de=>{var ye;const ve=Number(de.currentTarget.getAttribute("data-index"));W(de),K.current===!0&&re(ve),E(ve),te==null||(ye=te.onFocus)==null||ye.call(te,de)},Ue=te=>de=>{var ye;G(de),K.current===!1&&re(-1),E(-1),te==null||(ye=te.onBlur)==null||ye.call(te,de)};zL(()=>{if(n&&ue.current.contains(document.activeElement)){var te;(te=document.activeElement)==null||te.blur()}},[n]),n&&w!==-1&&A(-1),n&&ae!==-1&&re(-1);const xe=te=>de=>{var ye;(ye=te.onChange)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index")),ge=q[ve],qe=V.indexOf(ge);let De=de.target.valueAsNumber;if(H&&v==null){const Ge=V[V.length-1];De>Ge?De=Ge:De{const{current:ye}=ue,{width:ve,height:ge,bottom:qe,left:De}=ye.getBoundingClientRect();let Ge;oe.indexOf("vertical")===0?Ge=(qe-te.y)/ge:Ge=(te.x-De)/ve,oe.indexOf("-reverse")!==-1&&(Ge=1-Ge);let Je;if(Je=gP(Ge,l,s),v)Je=mP(Je,v,l);else{const rr=Uv(V,Je);Je=V[rr]}Je=hi(Je,l,s);let jt=0;if(z){de?jt=ee.current:jt=Uv(q,Je),a&&(Je=hi(Je,q[jt-1]||-1/0,q[jt+1]||1/0));const rr=Je;Je=Gv({values:q,newValue:Je,index:jt}),a&&de||(jt=Je.indexOf(rr),ee.current=jt)}return{newValue:Je,activeIndex:jt}},X=Ps(te=>{const de=gs(te,_);if(!de)return;if(I.current+=1,te.type==="mousemove"&&te.buttons===0){Ee(te);return}const{newValue:ye,activeIndex:ve}=ie({finger:de,move:!0});hs({sliderRef:ue,activeIndex:ve,setActive:A}),L(ye),!k&&I.current>fP&&N(!0),j&&!ms(ye,D)&&j(te,ye,ve)}),Ee=Ps(te=>{const de=gs(te,_);if(N(!1),!de)return;const{newValue:ye}=ie({finger:de,move:!0});A(-1),te.type==="touchend"&&E(-1),p&&p(te,ye),_.current=void 0,he()}),fe=Ps(te=>{if(n)return;oc()||te.preventDefault();const de=te.changedTouches[0];de!=null&&(_.current=de.identifier);const ye=gs(te,_);if(ye!==!1){const{newValue:ge,activeIndex:qe}=ie({finger:ye});hs({sliderRef:ue,activeIndex:qe,setActive:A}),L(ge),j&&!ms(ge,D)&&j(te,ge,qe)}I.current=0;const ve=$s(ue.current);ve.addEventListener("touchmove",X),ve.addEventListener("touchend",Ee)}),he=P.useCallback(()=>{const te=$s(ue.current);te.removeEventListener("mousemove",X),te.removeEventListener("mouseup",Ee),te.removeEventListener("touchmove",X),te.removeEventListener("touchend",Ee)},[Ee,X]);P.useEffect(()=>{const{current:te}=ue;return te.addEventListener("touchstart",fe,{passive:oc()}),()=>{te.removeEventListener("touchstart",fe,{passive:oc()}),he()}},[he,fe]),P.useEffect(()=>{n&&he()},[n,he]);const je=te=>de=>{var ye;if((ye=te.onMouseDown)==null||ye.call(te,de),n||de.defaultPrevented||de.button!==0)return;de.preventDefault();const ve=gs(de,_);if(ve!==!1){const{newValue:qe,activeIndex:De}=ie({finger:ve});hs({sliderRef:ue,activeIndex:De,setActive:A}),L(qe),j&&!ms(qe,D)&&j(de,qe,De)}I.current=0;const ge=$s(ue.current);ge.addEventListener("mousemove",X),ge.addEventListener("mouseup",Ee)},nt=qs(z?q[0]:l,l,s),et=qs(q[q.length-1],l,s)-nt,tr=(te={})=>{const de=ac(te),ye={onMouseDown:je(de||{})},ve=ce({},de,ye);return ce({},te,{ref:Q},ve)},Pe=te=>de=>{var ye;(ye=te.onMouseOver)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index"));E(ve)},$e=te=>de=>{var ye;(ye=te.onMouseLeave)==null||ye.call(te,de),E(-1)};return{active:w,axis:oe,axisProps:bP,dragging:k,focusedThumbIndex:ae,getHiddenInputProps:(te={})=>{var de;const ye=ac(te),ve={onChange:xe(ye||{}),onFocus:Ie(ye||{}),onBlur:Ue(ye||{})},ge=ce({},ye,ve);return ce({tabIndex:S,"aria-labelledby":t,"aria-orientation":g,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(de=e.step)!=null?de:void 0,disabled:n},te,ge,{style:ce({},dP,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:tr,getThumbProps:(te={})=>{const de=ac(te),ye={onMouseOver:Pe(de||{}),onMouseLeave:$e(de||{})};return ce({},te,de,ye)},marks:H,open:x,range:z,rootRef:Q,trackLeap:et,trackOffset:nt,values:q,getThumbStyle:te=>({pointerEvents:w!==-1&&w!==te?"none":void 0})}}const SP=_b(h.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"),EP=_b(h.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"),xP=_b(h.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 wP(e){return fb("MuiCheckbox",e)}const _P=pb("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),sc=_P,TP=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],AP=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,i={root:["root",r&&"indeterminate",`color${Jt(n)}`,`size${Jt(a)}`]},o=hb(i,wP,t);return ce({},t,o)},OP=Mr(WM,{shouldForwardProp:e=>qL(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Jt(r.size)}`],r.color!=="default"&&t[`color${Jt(r.color)}`]]}})(({theme:e,ownerState:t})=>ce({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})`:Hi(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${sc.checked}, &.${sc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${sc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),kP=h.jsx(EP,{}),RP=h.jsx(SP,{}),IP=h.jsx(xP,{}),NP=P.forwardRef(function(t,r){var n,a;const i=gb({props:t,name:"MuiCheckbox"}),{checkedIcon:o=kP,color:s="primary",icon:l=RP,indeterminate:c=!1,indeterminateIcon:d=IP,inputProps:p,size:g="medium",className:m}=i,b=jl(i,TP),v=c?d:l,S=c?d:o,O=ce({},i,{color:s,indeterminate:c,size:g}),_=AP(O);return h.jsx(OP,ce({type:"checkbox",inputProps:ce({"data-indeterminate":c},p),icon:P.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:g}),checkedIcon:P.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:g}),ownerState:O,ref:r,className:Cr(_.root,m)},b,{classes:_}))}),CP=NP,DP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function LP(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=n1(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const c=i.getComputedStyle(t);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const c=o.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${i.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-n.top}px)`:`translateY(${i.innerHeight+l-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function MP(e){return typeof e=="function"?e():e}function ys(e,t,r){const n=MP(r),a=LP(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const PP=P.forwardRef(function(t,r){const n=Fl(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:c,direction:d="down",easing:p=a,in:g,onEnter:m,onEntered:b,onEntering:v,onExit:S,onExited:O,onExiting:_,style:w,timeout:A=i,TransitionComponent:x=yM}=t,E=jl(t,DP),k=P.useRef(null),N=zs(l.ref,k,r),I=G=>W=>{G&&(W===void 0?G(k.current):G(k.current,W))},D=I((G,W)=>{ys(d,G,c),SM(G),m&&m(G,W)}),L=I((G,W)=>{const J=$v({timeout:A,style:w,easing:p},{mode:"enter"});G.style.webkitTransition=n.transitions.create("-webkit-transform",ce({},J)),G.style.transition=n.transitions.create("transform",ce({},J)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,W)}),j=I(b),z=I(_),q=I(G=>{const W=$v({timeout:A,style:w,easing:p},{mode:"exit"});G.style.webkitTransition=n.transitions.create("-webkit-transform",W),G.style.transition=n.transitions.create("transform",W),ys(d,G,c),S&&S(G)}),H=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),V=G=>{o&&o(k.current,G)},K=P.useCallback(()=>{k.current&&ys(d,k.current,c)},[d,c]);return P.useEffect(()=>{if(g||d==="down"||d==="right")return;const G=vM(()=>{k.current&&ys(d,k.current,c)}),W=n1(k.current);return W.addEventListener("resize",G),()=>{G.clear(),W.removeEventListener("resize",G)}},[d,g,c]),P.useEffect(()=>{g||K()},[g,K]),h.jsx(x,ce({nodeRef:k,onEnter:D,onEntered:j,onEntering:L,onExit:q,onExited:H,onExiting:z,addEndListener:V,appear:s,in:g,timeout:A},E,{children:(G,W)=>P.cloneElement(l,ce({ref:N,style:ce({visibility:G==="exited"&&!g?"hidden":void 0},w,l.props.style)},W))}))}),Ca=PP,$P=e=>!e||!js(e),jP=$P;function FP(e){return fb("MuiSlider",e)}const BP=pb("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"]),Dr=BP,UP=e=>{const{open:t}=e;return{offset:Cr(t&&Dr.valueLabelOpen),circle:Dr.valueLabelCircle,label:Dr.valueLabelLabel}};function GP(e){const{children:t,className:r,value:n}=e,a=UP(e);return t?P.cloneElement(t,{className:Cr(t.props.className)},h.jsxs(P.Fragment,{children:[t.props.children,h.jsx("span",{className:Cr(a.offset,r),"aria-hidden":!0,children:h.jsx("span",{className:a.circle,children:h.jsx("span",{className:a.label,children:n})})})]})):null}const zP=["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 zv(e){return e}const qP=Mr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Jt(r.color)}`],r.size!=="medium"&&t[`size${Jt(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>ce({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"&&ce({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"&&ce({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"},[`&.${Dr.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Dr.dragging}`]:{[`& .${Dr.thumb}, & .${Dr.track}`]:{transition:"none"}}})),HP=Mr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ce({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})),WP=Mr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?HL(e.palette[t.color].main,.62):WL(e.palette[t.color].main,.5);return ce({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`]:r,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r})}),VP=Mr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Jt(r.color)}`],r.size!=="medium"&&t[`thumbSize${Jt(r.size)}`]]}})(({theme:e,ownerState:t})=>ce({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":ce({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, &.${Dr.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Dr.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`},[`&.${Dr.disabled}`]:{"&:hover":{boxShadow:"none"}}})),YP=Mr(GP,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ce({[`&.${Dr.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"})),KP=Mr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>WO(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e,ownerState:t,markActive:r})=>ce({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)"},r&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),XP=Mr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>WO(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:r})=>ce({},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}},r&&{color:(e.vars||e).palette.text.primary})),ZP=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:i,classes:o,color:s,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${Jt(s)}`,l&&`size${Jt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Jt(l)}`,s&&`thumbColor${Jt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return hb(c,FP,o)},JP=({children:e})=>e,QP=P.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,v,S,O,_,w,A,x,E,k,N,I,D;const L=gb({props:t,name:"MuiSlider"}),z=Fl().direction==="rtl",{"aria-label":q,"aria-valuetext":H,"aria-labelledby":V,component:K="span",components:G={},componentsProps:W={},color:J="primary",classes:ae,className:re,disableSwap:ue=!1,disabled:Se=!1,getAriaLabel:Q,getAriaValueText:Ie,marks:Ue=!1,max:xe=100,min:ee=0,orientation:oe="horizontal",size:ie="medium",step:X=1,scale:Ee=zv,slotProps:fe,slots:he,track:je="normal",valueLabelDisplay:nt="off",valueLabelFormat:et=zv}=L,tr=jl(L,zP),Pe=ce({},L,{isRtl:z,max:xe,min:ee,classes:ae,disabled:Se,disableSwap:ue,orientation:oe,marks:Ue,color:J,size:ie,step:X,scale:Ee,track:je,valueLabelDisplay:nt,valueLabelFormat:et}),{axisProps:$e,getRootProps:Ye,getHiddenInputProps:$t,getThumbProps:Kt,open:te,active:de,axis:ye,focusedThumbIndex:ve,range:ge,dragging:qe,marks:De,values:Ge,trackOffset:Je,trackLeap:jt,getThumbStyle:rr}=vP(ce({},Pe,{rootRef:r}));Pe.marked=De.length>0&&De.some(_e=>_e.label),Pe.dragging=qe,Pe.focusedThumbIndex=ve;const ze=ZP(Pe),Kr=(n=(a=he==null?void 0:he.root)!=null?a:G.Root)!=null?n:qP,Xr=(i=(o=he==null?void 0:he.rail)!=null?o:G.Rail)!=null?i:HP,Zr=(s=(l=he==null?void 0:he.track)!=null?l:G.Track)!=null?s:WP,He=(c=(d=he==null?void 0:he.thumb)!=null?d:G.Thumb)!=null?c:VP,Bn=(p=(g=he==null?void 0:he.valueLabel)!=null?g:G.ValueLabel)!=null?p:YP,Jr=(m=(b=he==null?void 0:he.mark)!=null?b:G.Mark)!=null?m:KP,xr=(v=(S=he==null?void 0:he.markLabel)!=null?S:G.MarkLabel)!=null?v:XP,Qr=(O=(_=he==null?void 0:he.input)!=null?_:G.Input)!=null?O:"input",wr=(w=fe==null?void 0:fe.root)!=null?w:W.root,_r=(A=fe==null?void 0:fe.rail)!=null?A:W.rail,Tr=(x=fe==null?void 0:fe.track)!=null?x:W.track,Un=(E=fe==null?void 0:fe.thumb)!=null?E:W.thumb,Fr=(k=fe==null?void 0:fe.valueLabel)!=null?k:W.valueLabel,li=(N=fe==null?void 0:fe.mark)!=null?N:W.mark,Ar=(I=fe==null?void 0:fe.markLabel)!=null?I:W.markLabel,En=(D=fe==null?void 0:fe.input)!=null?D:W.input,le=Tn({elementType:Kr,getSlotProps:Ye,externalSlotProps:wr,externalForwardedProps:tr,additionalProps:ce({},jP(Kr)&&{as:K}),ownerState:ce({},Pe,wr==null?void 0:wr.ownerState),className:[ze.root,re]}),Gn=Tn({elementType:Xr,externalSlotProps:_r,ownerState:Pe,className:ze.rail}),Ft=Tn({elementType:Zr,externalSlotProps:Tr,additionalProps:{style:ce({},$e[ye].offset(Je),$e[ye].leap(jt))},ownerState:ce({},Pe,Tr==null?void 0:Tr.ownerState),className:ze.track}),ut=Tn({elementType:He,getSlotProps:Kt,externalSlotProps:Un,ownerState:ce({},Pe,Un==null?void 0:Un.ownerState),className:ze.thumb}),zn=Tn({elementType:Bn,externalSlotProps:Fr,ownerState:ce({},Pe,Fr==null?void 0:Fr.ownerState),className:ze.valueLabel}),Oe=Tn({elementType:Jr,externalSlotProps:li,ownerState:Pe,className:ze.mark}),nr=Tn({elementType:xr,externalSlotProps:Ar,ownerState:Pe,className:ze.markLabel}),da=Tn({elementType:Qr,getSlotProps:$t,externalSlotProps:En,ownerState:Pe});return h.jsxs(Kr,ce({},le,{children:[h.jsx(Xr,ce({},Gn)),h.jsx(Zr,ce({},Ft)),De.filter(_e=>_e.value>=ee&&_e.value<=xe).map((_e,We)=>{const kt=qs(_e.value,ee,xe),tt=$e[ye].offset(kt);let ct;return je===!1?ct=Ge.indexOf(_e.value)!==-1:ct=je==="normal"&&(ge?_e.value>=Ge[0]&&_e.value<=Ge[Ge.length-1]:_e.value<=Ge[0])||je==="inverted"&&(ge?_e.value<=Ge[0]||_e.value>=Ge[Ge.length-1]:_e.value>=Ge[0]),h.jsxs(P.Fragment,{children:[h.jsx(Jr,ce({"data-index":We},Oe,!js(Jr)&&{markActive:ct},{style:ce({},tt,Oe.style),className:Cr(Oe.className,ct&&ze.markActive)})),_e.label!=null?h.jsx(xr,ce({"aria-hidden":!0,"data-index":We},nr,!js(xr)&&{markLabelActive:ct},{style:ce({},tt,nr.style),className:Cr(ze.markLabel,nr.className,ct&&ze.markLabelActive),children:_e.label})):null]},We)}),Ge.map((_e,We)=>{const kt=qs(_e,ee,xe),tt=$e[ye].offset(kt),ct=nt==="off"?JP:Bn;return h.jsx(ct,ce({},!js(ct)&&{valueLabelFormat:et,valueLabelDisplay:nt,value:typeof et=="function"?et(Ee(_e),We):et,index:We,open:te===We||de===We||nt==="on",disabled:Se},zn,{children:h.jsx(He,ce({"data-index":We},ut,{className:Cr(ze.thumb,ut.className,de===We&&ze.active,ve===We&&ze.focusVisible),style:ce({},tt,rr(We),ut.style),children:h.jsx(Qr,ce({"data-index":We,"aria-label":Q?Q(We):q,"aria-valuenow":Ee(_e),"aria-labelledby":V,"aria-valuetext":Ie?Ie(Ee(_e),We):H,value:Ge[We]},da))}))}),We)})]}))}),Wl=QP;function e$(e){return fb("MuiTooltip",e)}const t$=pb("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Nn=t$,r$=["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 n$(e){return Math.round(e*1e5)/1e5}const a$=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:i}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Jt(i.split("-")[0])}`],arrow:["arrow"]};return hb(o,e$,t)},i$=Mr(xb,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>ce({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Nn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Nn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Nn.arrow}`]:ce({},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"] .${Nn.arrow}`]:ce({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),o$=Mr("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Jt(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ce({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Hi(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:`${n$(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Nn.popper}[data-popper-placement*="left"] &`]:ce({transformOrigin:"right center"},t.isRtl?ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ce({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Nn.popper}[data-popper-placement*="right"] &`]:ce({transformOrigin:"left center"},t.isRtl?ce({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Nn.popper}[data-popper-placement*="top"] &`]:ce({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Nn.popper}[data-popper-placement*="bottom"] &`]:ce({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),s$=Mr("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:Hi(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let vs=!1,lc=null,mi={x:0,y:0};function Ss(e,t){return r=>{t&&t(r),e(r)}}const l$=P.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,v,S,O,_,w,A,x;const E=gb({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:N,components:I={},componentsProps:D={},describeChild:L=!1,disableFocusListener:j=!1,disableHoverListener:z=!1,disableInteractive:q=!1,disableTouchListener:H=!1,enterDelay:V=100,enterNextDelay:K=0,enterTouchDelay:G=700,followCursor:W=!1,id:J,leaveDelay:ae=0,leaveTouchDelay:re=1500,onClose:ue,onOpen:Se,open:Q,placement:Ie="bottom",PopperComponent:Ue,PopperProps:xe={},slotProps:ee={},slots:oe={},title:ie,TransitionComponent:X=jv,TransitionProps:Ee}=E,fe=jl(E,r$),he=P.isValidElement(N)?N:h.jsx("span",{children:N}),je=Fl(),nt=je.direction==="rtl",[et,tr]=P.useState(),[Pe,$e]=P.useState(null),Ye=P.useRef(!1),$t=q||W,Kt=P.useRef(),te=P.useRef(),de=P.useRef(),ye=P.useRef(),[ve,ge]=h1({controlled:Q,default:!1,name:"Tooltip",state:"open"});let qe=ve;const De=qM(J),Ge=P.useRef(),Je=P.useCallback(()=>{Ge.current!==void 0&&(document.body.style.WebkitUserSelect=Ge.current,Ge.current=void 0),clearTimeout(ye.current)},[]);P.useEffect(()=>()=>{clearTimeout(Kt.current),clearTimeout(te.current),clearTimeout(de.current),Je()},[Je]);const jt=ke=>{clearTimeout(lc),vs=!0,ge(!0),Se&&!qe&&Se(ke)},rr=Ps(ke=>{clearTimeout(lc),lc=setTimeout(()=>{vs=!1},800+ae),ge(!1),ue&&qe&&ue(ke),clearTimeout(Kt.current),Kt.current=setTimeout(()=>{Ye.current=!1},je.transitions.duration.shortest)}),ze=ke=>{Ye.current&&ke.type!=="touchstart"||(et&&et.removeAttribute("title"),clearTimeout(te.current),clearTimeout(de.current),V||vs&&K?te.current=setTimeout(()=>{jt(ke)},vs?K:V):jt(ke))},Kr=ke=>{clearTimeout(te.current),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},ae)},{isFocusVisibleRef:Xr,onBlur:Zr,onFocus:He,ref:Bn}=HO(),[,Jr]=P.useState(!1),xr=ke=>{Zr(ke),Xr.current===!1&&(Jr(!1),Kr(ke))},Qr=ke=>{et||tr(ke.currentTarget),He(ke),Xr.current===!0&&(Jr(!0),ze(ke))},wr=ke=>{Ye.current=!0;const Bt=he.props;Bt.onTouchStart&&Bt.onTouchStart(ke)},_r=ze,Tr=Kr,Un=ke=>{wr(ke),clearTimeout(de.current),clearTimeout(Kt.current),Je(),Ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ge.current,ze(ke)},G)},Fr=ke=>{he.props.onTouchEnd&&he.props.onTouchEnd(ke),Je(),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},re)};P.useEffect(()=>{if(!qe)return;function ke(Bt){(Bt.key==="Escape"||Bt.key==="Esc")&&rr(Bt)}return document.addEventListener("keydown",ke),()=>{document.removeEventListener("keydown",ke)}},[rr,qe]);const li=zs(he.ref,Bn,tr,r);!ie&&ie!==0&&(qe=!1);const Ar=P.useRef(),En=ke=>{const Bt=he.props;Bt.onMouseMove&&Bt.onMouseMove(ke),mi={x:ke.clientX,y:ke.clientY},Ar.current&&Ar.current.update()},le={},Gn=typeof ie=="string";L?(le.title=!qe&&Gn&&!z?ie:null,le["aria-describedby"]=qe?De:null):(le["aria-label"]=Gn?ie:null,le["aria-labelledby"]=qe&&!Gn?De:null);const Ft=ce({},le,fe,he.props,{className:Cr(fe.className,he.props.className),onTouchStart:wr,ref:li},W?{onMouseMove:En}:{}),ut={};H||(Ft.onTouchStart=Un,Ft.onTouchEnd=Fr),z||(Ft.onMouseOver=Ss(_r,Ft.onMouseOver),Ft.onMouseLeave=Ss(Tr,Ft.onMouseLeave),$t||(ut.onMouseOver=_r,ut.onMouseLeave=Tr)),j||(Ft.onFocus=Ss(Qr,Ft.onFocus),Ft.onBlur=Ss(xr,Ft.onBlur),$t||(ut.onFocus=Qr,ut.onBlur=xr));const zn=P.useMemo(()=>{var ke;let Bt=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(ke=xe.popperOptions)!=null&&ke.modifiers&&(Bt=Bt.concat(xe.popperOptions.modifiers)),ce({},xe.popperOptions,{modifiers:Bt})},[Pe,xe]),Oe=ce({},E,{isRtl:nt,arrow:k,disableInteractive:$t,placement:Ie,PopperComponentProp:Ue,touch:Ye.current}),nr=a$(Oe),da=(n=(a=oe.popper)!=null?a:I.Popper)!=null?n:i$,_e=(i=(o=(s=oe.transition)!=null?s:I.Transition)!=null?o:X)!=null?i:jv,We=(l=(c=oe.tooltip)!=null?c:I.Tooltip)!=null?l:o$,kt=(d=(p=oe.arrow)!=null?p:I.Arrow)!=null?d:s$,tt=fs(da,ce({},xe,(g=ee.popper)!=null?g:D.popper,{className:Cr(nr.popper,xe==null?void 0:xe.className,(m=(b=ee.popper)!=null?b:D.popper)==null?void 0:m.className)}),Oe),ct=fs(_e,ce({},Ee,(v=ee.transition)!=null?v:D.transition),Oe),Or=fs(We,ce({},(S=ee.tooltip)!=null?S:D.tooltip,{className:Cr(nr.tooltip,(O=(_=ee.tooltip)!=null?_:D.tooltip)==null?void 0:O.className)}),Oe),en=fs(kt,ce({},(w=ee.arrow)!=null?w:D.arrow,{className:Cr(nr.arrow,(A=(x=ee.arrow)!=null?x:D.arrow)==null?void 0:A.className)}),Oe);return h.jsxs(P.Fragment,{children:[P.cloneElement(he,Ft),h.jsx(da,ce({as:Ue??xb,placement:Ie,anchorEl:W?{getBoundingClientRect:()=>({top:mi.y,left:mi.x,right:mi.x,bottom:mi.y,width:0,height:0})}:et,popperRef:Ar,open:et?qe:!1,id:De,transition:!0},ut,tt,{popperOptions:zn,children:({TransitionProps:ke})=>h.jsx(_e,ce({timeout:je.transitions.duration.shorter},ke,ct,{children:h.jsxs(We,ce({},Or,{children:[ie,k?h.jsx(kt,ce({},en,{ref:$e})):null]}))}))}))]})}),u$=l$,c$=(e,t="down")=>{const r=Fl(),[n,a]=P.useState(!1),i=r.breakpoints[t](e).split("@media")[1].trim();return P.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),n},d$=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function p$(e){return e.tldr_topic??e.name}var Hs=globalThis&&globalThis.__assign||function(){return Hs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -1900,7 +1900,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,boe=B.audio` height: 0; width: 0; -`,yoe=()=>{const e=Pt(),{setPlayingNode:t}=Po(r=>r);switch(P.useEffect(()=>{var n,a;if(!e)return;(e.media_url||e.link||((n=e.properties)==null?void 0:n.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 h.jsx(s7,{});case"data_series":return h.jsx(oX,{});case"tribe_message":return h.jsx(n7,{});case"Tweet":return h.jsx(b7,{});case"topic":return h.jsx(m7,{});case"show":return h.jsx(h7,{});case"video":case"podcast":case"clip":case"twitter_space":return h.jsx(XR,{});case"document":return h.jsx(poe,{});case"episode":return h.jsx(JX,{},e.ref_id);case"image":return h.jsx(r7,{});default:return h.jsx(eoe,{})}},voe=P.memo(yoe);var Soe=function(t,r,n){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof r=="function"&&(n=r,r={}),r=r||{},n=n||function(){},i.type=r.type||"text/javascript",i.charset=r.charset||"utf8",i.async="async"in r?!!r.async:!0,i.src=t,r.attrs&&Eoe(i,r.attrs),r.text&&(i.text=""+r.text);var o="onload"in i?PO:xoe;o(i,n),i.onload||PO(i,n),a.appendChild(i)};function Eoe(e,t){for(var r in t)e.setAttribute(r,t[r])}function PO(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 xoe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var woe=function(t){return _oe(t)&&!Toe(t)};function _oe(e){return!!e&&typeof e=="object"}function Toe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||koe(e)}var Aoe=typeof Symbol=="function"&&Symbol.for,Ooe=Aoe?Symbol.for("react.element"):60103;function koe(e){return e.$$typeof===Ooe}function Roe(e){return Array.isArray(e)?[]:{}}function Lo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Qa(Roe(e),e,t):e}function Ioe(e,t,r){return e.concat(t).map(function(n){return Lo(n,r)})}function Noe(e,t){if(!t.customMerge)return Qa;var r=t.customMerge(e);return typeof r=="function"?r:Qa}function Coe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function $O(e){return Object.keys(e).concat(Coe(e))}function DI(e,t){try{return t in e}catch{return!1}}function Doe(e,t){return DI(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Loe(e,t,r){var n={};return r.isMergeableObject(e)&&$O(e).forEach(function(a){n[a]=Lo(e[a],r)}),$O(t).forEach(function(a){Doe(e,a)||(DI(e,a)&&r.isMergeableObject(t[a])?n[a]=Noe(a,r)(e[a],t[a],r):n[a]=Lo(t[a],r))}),n}function Qa(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ioe,r.isMergeableObject=r.isMergeableObject||woe,r.cloneUnlessOtherwiseSpecified=Lo;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Loe(e,t,r):Lo(t,r)}Qa.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return Qa(n,a,r)},{})};var Moe=Qa,LI=Moe,Poe=Object.create,Pu=Object.defineProperty,$oe=Object.getOwnPropertyDescriptor,joe=Object.getOwnPropertyNames,Foe=Object.getPrototypeOf,Boe=Object.prototype.hasOwnProperty,Uoe=(e,t)=>{for(var r in t)Pu(e,r,{get:t[r],enumerable:!0})},MI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of joe(t))!Boe.call(e,a)&&a!==r&&Pu(e,a,{get:()=>t[a],enumerable:!(n=$oe(t,a))||n.enumerable});return e},Hy=(e,t,r)=>(r=e!=null?Poe(Foe(e)):{},MI(t||!e||!e.__esModule?Pu(r,"default",{value:e,enumerable:!0}):r,e)),Goe=e=>MI(Pu({},"__esModule",{value:!0}),e),PI={};Uoe(PI,{callPlayer:()=>ase,getConfig:()=>rse,getSDK:()=>tse,isBlobUrl:()=>ose,isMediaStream:()=>ise,lazy:()=>Woe,omit:()=>nse,parseEndTime:()=>Joe,parseStartTime:()=>Zoe,queryString:()=>ese,randomString:()=>Qoe,supportsWebKitPresentationMode:()=>sse});var $u=Goe(PI),zoe=Hy(P),qoe=Hy(Soe),Hoe=Hy(LI);const Woe=e=>zoe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),Voe=/[?&#](?:start|t)=([0-9hms]+)/,Yoe=/[?&#]end=([0-9hms]+)/,lb=/(\d+)(h|m|s)/g,Koe=/^\d+$/;function $I(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const n=r[1];if(n.match(lb))return Xoe(n);if(Koe.test(n))return parseInt(n)}}function Xoe(e){let t=0,r=lb.exec(e);for(;r!==null;){const[,n,a]=r;a==="h"&&(t+=parseInt(n,10)*60*60),a==="m"&&(t+=parseInt(n,10)*60),a==="s"&&(t+=parseInt(n,10)),r=lb.exec(e)}return t}function Zoe(e){return $I(e,Voe)}function Joe(e){return $I(e,Yoe)}function Qoe(){return Math.random().toString(36).substr(2,5)}function ese(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function qh(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 Sa={},tse=function(t,r,n=null,a=()=>!0,i=qoe.default){const o=qh(r);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(Sa[t]){Sa[t].push({resolve:s,reject:l});return}Sa[t]=[{resolve:s,reject:l}];const c=d=>{Sa[t].forEach(p=>p.resolve(d))};if(n){const d=window[n];window[n]=function(){d&&d(),c(qh(r))}}i(t,d=>{d?(Sa[t].forEach(p=>p.reject(d)),Sa[t]=null):n||c(qh(r))})})};function rse(e,t){return(0,Hoe.default)(t.config,e.config)}function nse(e,...t){const r=[].concat(...t),n={},a=Object.keys(e);for(const i of a)r.indexOf(i)===-1&&(n[i]=e[i]);return n}function ase(e,...t){if(!this.player||!this.player[e]){let r=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(r+="The method was not available"):r+="The player was not available",console.warn(r,"font-weight: bold",""),null}return this.player[e](...t)}function ise(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function ose(e){return/^blob:/.test(e)}function sse(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var Wy=Object.defineProperty,lse=Object.getOwnPropertyDescriptor,use=Object.getOwnPropertyNames,cse=Object.prototype.hasOwnProperty,dse=(e,t)=>{for(var r in t)Wy(e,r,{get:t[r],enumerable:!0})},pse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of use(t))!cse.call(e,a)&&a!==r&&Wy(e,a,{get:()=>t[a],enumerable:!(n=lse(t,a))||n.enumerable});return e},fse=e=>pse(Wy({},"__esModule",{value:!0}),e),jI={};dse(jI,{AUDIO_EXTENSIONS:()=>Vy,DASH_EXTENSIONS:()=>ZI,FLV_EXTENSIONS:()=>JI,HLS_EXTENSIONS:()=>Ky,MATCH_URL_DAILYMOTION:()=>VI,MATCH_URL_FACEBOOK:()=>UI,MATCH_URL_FACEBOOK_WATCH:()=>GI,MATCH_URL_KALTURA:()=>XI,MATCH_URL_MIXCLOUD:()=>YI,MATCH_URL_SOUNDCLOUD:()=>FI,MATCH_URL_STREAMABLE:()=>zI,MATCH_URL_TWITCH_CHANNEL:()=>WI,MATCH_URL_TWITCH_VIDEO:()=>HI,MATCH_URL_VIDYARD:()=>KI,MATCH_URL_VIMEO:()=>BI,MATCH_URL_WISTIA:()=>qI,MATCH_URL_YOUTUBE:()=>ub,VIDEO_EXTENSIONS:()=>Yy,canPlay:()=>hse});var gse=fse(jI),jO=$u;const ub=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,FI=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,BI=/vimeo\.com\/(?!progressive_redirect).+/,UI=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,GI=/^https?:\/\/fb\.watch\/.+$/,zI=/streamable\.com\/([a-z0-9]+)$/,qI=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,HI=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,WI=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,VI=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,YI=/mixcloud\.com\/([^/]+\/[^/]+)/,KI=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,XI=/^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-_].*)$/,Vy=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,Yy=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Ky=/\.(m3u8)($|\?)/i,ZI=/\.(mpd)($|\?)/i,JI=/\.(flv)($|\?)/i,cb=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&cb(t)||cb(t.src))return!0;return!1}return(0,jO.isMediaStream)(e)||(0,jO.isBlobUrl)(e)?!0:Vy.test(e)||Yy.test(e)||Ky.test(e)||ZI.test(e)||JI.test(e)},hse={youtube:e=>e instanceof Array?e.every(t=>ub.test(t)):ub.test(e),soundcloud:e=>FI.test(e)&&!Vy.test(e),vimeo:e=>BI.test(e)&&!Yy.test(e)&&!Ky.test(e),facebook:e=>UI.test(e)||GI.test(e),streamable:e=>zI.test(e),wistia:e=>qI.test(e),twitch:e=>HI.test(e)||WI.test(e),dailymotion:e=>VI.test(e),mixcloud:e=>YI.test(e),vidyard:e=>KI.test(e),kaltura:e=>XI.test(e),file:cb};var Xy=Object.defineProperty,mse=Object.getOwnPropertyDescriptor,bse=Object.getOwnPropertyNames,yse=Object.prototype.hasOwnProperty,vse=(e,t)=>{for(var r in t)Xy(e,r,{get:t[r],enumerable:!0})},Sse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of bse(t))!yse.call(e,a)&&a!==r&&Xy(e,a,{get:()=>t[a],enumerable:!(n=mse(t,a))||n.enumerable});return e},Ese=e=>Sse(Xy({},"__esModule",{value:!0}),e),QI={};vse(QI,{default:()=>wse});var xse=Ese(QI),ar=$u,Zt=gse,wse=[{key:"youtube",name:"YouTube",canPlay:Zt.canPlay.youtube,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./YouTube-000135bc.js").then(e=>e.Y),["assets/YouTube-000135bc.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Zt.canPlay.soundcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./SoundCloud-7f9276ba.js").then(e=>e.S),["assets/SoundCloud-7f9276ba.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Zt.canPlay.vimeo,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vimeo-f6437316.js").then(e=>e.V),["assets/Vimeo-f6437316.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css"]))},{key:"facebook",name:"Facebook",canPlay:Zt.canPlay.facebook,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Facebook-dc3f1ac8.js").then(e=>e.F),["assets/Facebook-dc3f1ac8.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css"]))},{key:"streamable",name:"Streamable",canPlay:Zt.canPlay.streamable,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Streamable-cd5ce4ab.js").then(e=>e.S),["assets/Streamable-cd5ce4ab.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css"]))},{key:"wistia",name:"Wistia",canPlay:Zt.canPlay.wistia,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Wistia-6dd78255.js").then(e=>e.W),["assets/Wistia-6dd78255.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css"]))},{key:"twitch",name:"Twitch",canPlay:Zt.canPlay.twitch,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Twitch-aec2ecb5.js").then(e=>e.T),["assets/Twitch-aec2ecb5.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Zt.canPlay.dailymotion,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./DailyMotion-fefb6197.js").then(e=>e.D),["assets/DailyMotion-fefb6197.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Zt.canPlay.mixcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Mixcloud-0939a087.js").then(e=>e.M),["assets/Mixcloud-0939a087.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Zt.canPlay.vidyard,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vidyard-4f6bd9bc.js").then(e=>e.V),["assets/Vidyard-4f6bd9bc.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Zt.canPlay.kaltura,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Kaltura-23fffe9c.js").then(e=>e.K),["assets/Kaltura-23fffe9c.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css"]))},{key:"file",name:"FilePlayer",canPlay:Zt.canPlay.file,canEnablePIP:e=>Zt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,ar.supportsWebKitPresentationMode)())&&!Zt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./FilePlayer-13e3db63.js").then(e=>e.F),["assets/FilePlayer-13e3db63.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css"]))}],FO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function _se(e,t){return!!(e===t||FO(e)&&FO(t))}function Tse(e,t){if(e.length!==t.length)return!1;for(var r=0;r{for(var r in t)ju(e,r,{get:t[r],enumerable:!0})},tN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Mse(t))!$se.call(e,a)&&a!==r&&ju(e,a,{get:()=>t[a],enumerable:!(n=Lse(t,a))||n.enumerable});return e},Fse=(e,t,r)=>(r=e!=null?Dse(Pse(e)):{},tN(t||!e||!e.__esModule?ju(r,"default",{value:e,enumerable:!0}):r,e)),Bse=e=>tN(ju({},"__esModule",{value:!0}),e),rN={};jse(rN,{defaultProps:()=>zse,propTypes:()=>Gse});var nN=Bse(rN),Use=Fse(PM);const{string:qt,bool:Ht,number:Ea,array:Hh,oneOfType:Ii,shape:gr,object:Wt,func:vt,node:BO}=Use.default,Gse={url:Ii([qt,Hh,Wt]),playing:Ht,loop:Ht,controls:Ht,volume:Ea,muted:Ht,playbackRate:Ea,width:Ii([qt,Ea]),height:Ii([qt,Ea]),style:Wt,progressInterval:Ea,playsinline:Ht,pip:Ht,stopOnUnmount:Ht,light:Ii([Ht,qt,Wt]),playIcon:BO,previewTabIndex:Ea,fallback:BO,oEmbedUrl:qt,wrapper:Ii([qt,vt,gr({render:vt.isRequired})]),config:gr({soundcloud:gr({options:Wt}),youtube:gr({playerVars:Wt,embedOptions:Wt,onUnstarted:vt}),facebook:gr({appId:qt,version:qt,playerId:qt,attributes:Wt}),dailymotion:gr({params:Wt}),vimeo:gr({playerOptions:Wt,title:qt}),file:gr({attributes:Wt,tracks:Hh,forceVideo:Ht,forceAudio:Ht,forceHLS:Ht,forceSafariHLS:Ht,forceDisableHls:Ht,forceDASH:Ht,forceFLV:Ht,hlsOptions:Wt,hlsVersion:qt,dashVersion:qt,flvVersion:qt}),wistia:gr({options:Wt,playerId:qt,customControls:Hh}),mixcloud:gr({options:Wt}),twitch:gr({options:Wt,playerId:qt}),vidyard:gr({options:Wt})}),onReady:vt,onStart:vt,onPlay:vt,onPause:vt,onBuffer:vt,onBufferEnd:vt,onEnded:vt,onError:vt,onDuration:vt,onSeek:vt,onPlaybackRateChange:vt,onPlaybackQualityChange:vt,onProgress:vt,onClickPreview:vt,onEnablePIP:vt,onDisablePIP:vt},Rt=()=>{},zse={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:Rt},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: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};var qse=Object.create,Jo=Object.defineProperty,Hse=Object.getOwnPropertyDescriptor,Wse=Object.getOwnPropertyNames,Vse=Object.getPrototypeOf,Yse=Object.prototype.hasOwnProperty,Kse=(e,t,r)=>t in e?Jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xse=(e,t)=>{for(var r in t)Jo(e,r,{get:t[r],enumerable:!0})},aN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Wse(t))!Yse.call(e,a)&&a!==r&&Jo(e,a,{get:()=>t[a],enumerable:!(n=Hse(t,a))||n.enumerable});return e},iN=(e,t,r)=>(r=e!=null?qse(Vse(e)):{},aN(t||!e||!e.__esModule?Jo(r,"default",{value:e,enumerable:!0}):r,e)),Zse=e=>aN(Jo({},"__esModule",{value:!0}),e),ht=(e,t,r)=>(Kse(e,typeof t!="symbol"?t+"":t,r),r),oN={};Xse(oN,{default:()=>Fu});var Jse=Zse(oN),UO=iN(P),Qse=iN(eN),sN=nN,ele=$u;const tle=5e3;class Fu extends UO.Component{constructor(){super(...arguments),ht(this,"mounted",!1),ht(this,"isReady",!1),ht(this,"isPlaying",!1),ht(this,"isLoading",!0),ht(this,"loadOnReady",null),ht(this,"startOnPlay",!0),ht(this,"seekOnPlay",null),ht(this,"onDurationCalled",!1),ht(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),ht(this,"getInternalPlayer",t=>this.player?this.player[t]:null),ht(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,r=this.getSecondsLoaded(),n=this.getDuration();if(n){const a={playedSeconds:t,played:t/n};r!==null&&(a.loadedSeconds=r,a.loaded=r/n),(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)}),ht(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:r,volume:n,muted:a}=this.props;t(),!a&&n!==null&&this.player.setVolume(n),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):r&&this.player.play(),this.handleDurationCheck()}),ht(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:r,playbackRate:n}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&n!==1&&this.player.setPlaybackRate(n),t(),this.startOnPlay=!1),r(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),ht(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),ht(this,"handleEnded",()=>{const{activePlayer:t,loop:r,onEnded:n}=this.props;t.loopOnEnded&&r&&this.seekTo(0),r||(this.isPlaying=!1,n())}),ht(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),ht(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)}),ht(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:r,playing:n,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:c,disableDeferredLoading:d}=this.props;if(!(0,Qse.default)(t.url,r)){if(this.isLoading&&!c.forceLoad&&!d&&!(0,ele.isMediaStream)(r)){console.warn(`ReactPlayer: the attempt to load ${r} is being deferred until the player has loaded`),this.loadOnReady=r;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}!t.playing&&n&&!this.isPlaying&&this.player.play(),t.playing&&!n&&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,r,n){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},tle));return}if(r?r==="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,n);return}this.player.seekTo(t,n)}render(){const t=this.props.activePlayer;return t?UO.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}}ht(Fu,"displayName","Player");ht(Fu,"propTypes",sN.propTypes);ht(Fu,"defaultProps",sN.defaultProps);var rle=Object.create,Qo=Object.defineProperty,nle=Object.getOwnPropertyDescriptor,ale=Object.getOwnPropertyNames,ile=Object.getPrototypeOf,ole=Object.prototype.hasOwnProperty,sle=(e,t,r)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lle=(e,t)=>{for(var r in t)Qo(e,r,{get:t[r],enumerable:!0})},lN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ale(t))!ole.call(e,a)&&a!==r&&Qo(e,a,{get:()=>t[a],enumerable:!(n=nle(t,a))||n.enumerable});return e},es=(e,t,r)=>(r=e!=null?rle(ile(e)):{},lN(t||!e||!e.__esModule?Qo(r,"default",{value:e,enumerable:!0}):r,e)),ule=e=>lN(Qo({},"__esModule",{value:!0}),e),gt=(e,t,r)=>(sle(e,typeof t!="symbol"?t+"":t,r),r),uN={};lle(uN,{createReactPlayer:()=>yle});var cle=ule(uN),_a=es(P),dle=es(LI),Wh=es(kse),GO=es(eN),$i=nN,cN=$u,ple=es(Jse);const fle=(0,cN.lazy)(()=>ir(()=>import("./Preview-66cc253f.js").then(e=>e.P),["assets/Preview-66cc253f.js","assets/index-f22e6e13.js","assets/index-b4d03b7b.css"])),gle=typeof window<"u"&&window.document,hle=typeof Tt<"u"&&Tt.window&&Tt.window.document,mle=Object.keys($i.propTypes),ble=gle||hle?_a.Suspense:()=>null,Ni=[],yle=(e,t)=>{var r;return r=class extends _a.Component{constructor(){super(...arguments),gt(this,"state",{showPreview:!!this.props.light}),gt(this,"references",{wrapper:n=>{this.wrapper=n},player:n=>{this.player=n}}),gt(this,"handleClickPreview",n=>{this.setState({showPreview:!1}),this.props.onClickPreview(n)}),gt(this,"showPreview",()=>{this.setState({showPreview:!0})}),gt(this,"getDuration",()=>this.player?this.player.getDuration():null),gt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),gt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),gt(this,"getInternalPlayer",(n="player")=>this.player?this.player.getInternalPlayer(n):null),gt(this,"seekTo",(n,a,i)=>{if(!this.player)return null;this.player.seekTo(n,a,i)}),gt(this,"handleReady",()=>{this.props.onReady(this)}),gt(this,"getActivePlayer",(0,Wh.default)(n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return a;return t||null})),gt(this,"getConfig",(0,Wh.default)((n,a)=>{const{config:i}=this.props;return dle.default.all([$i.defaultProps.config,$i.defaultProps.config[a]||{},i,i[a]||{}])})),gt(this,"getAttributes",(0,Wh.default)(n=>(0,cN.omit)(this.props,mle))),gt(this,"renderActivePlayer",n=>{if(!n)return null;const a=this.getActivePlayer(n);if(!a)return null;const i=this.getConfig(n,a.key);return _a.default.createElement(ple.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(n,a){return!(0,GO.default)(this.props,n)||!(0,GO.default)(this.state,a)}componentDidUpdate(n){const{light:a}=this.props;!n.light&&a&&this.setState({showPreview:!0}),n.light&&!a&&this.setState({showPreview:!1})}renderPreview(n){if(!n)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return _a.default.createElement(fle,{url:n,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:n,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:c}=this.state,d=this.getAttributes(n),p=typeof l=="string"?this.references.wrapper:void 0;return _a.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...d},_a.default.createElement(ble,{fallback:s},c?this.renderPreview(n):this.renderActivePlayer(n)))}},gt(r,"displayName","ReactPlayer"),gt(r,"propTypes",$i.propTypes),gt(r,"defaultProps",$i.defaultProps),gt(r,"addCustomPlayer",n=>{Ni.push(n)}),gt(r,"removeCustomPlayers",()=>{Ni.length=0}),gt(r,"canPlay",n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return!0;return!1}),gt(r,"canEnablePIP",n=>{for(const a of[...Ni,...e])if(a.canEnablePIP&&a.canEnablePIP(n))return!0;return!1}),r};var vle=Object.create,Bu=Object.defineProperty,Sle=Object.getOwnPropertyDescriptor,Ele=Object.getOwnPropertyNames,xle=Object.getPrototypeOf,wle=Object.prototype.hasOwnProperty,_le=(e,t)=>{for(var r in t)Bu(e,r,{get:t[r],enumerable:!0})},dN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ele(t))!wle.call(e,a)&&a!==r&&Bu(e,a,{get:()=>t[a],enumerable:!(n=Sle(t,a))||n.enumerable});return e},Tle=(e,t,r)=>(r=e!=null?vle(xle(e)):{},dN(t||!e||!e.__esModule?Bu(r,"default",{value:e,enumerable:!0}):r,e)),Ale=e=>dN(Bu({},"__esModule",{value:!0}),e),pN={};_le(pN,{default:()=>Ile});var Ole=Ale(pN),db=Tle(xse),kle=cle;const Rle=db.default[db.default.length-1];var Ile=(0,kle.createReactPlayer)(db.default,Rle);const Nle=pt(Ole),zO=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?r.toString().padStart(2,"0"):r.toString(),o=n.toString().padStart(2,"0");return`${a}${i}:${o}`},Cle=({isPlaying:e,isFullScreen:t,setIsPlaying:r,playingTime:n,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[c,d]=P.useState(.5),[p,g]=P.useState(!1),[m,b]=P.useState(.5),v=(O,_)=>{const w=Array.isArray(_)?_[0]:_;d(w),o(O,w),p&&g(!1)},S=()=>{p?(d(m),o(new Event("input"),m)):(b(c),d(0),o(new Event("input"),0)),g(!p)};return h.jsxs(F,{children:[(!l||t)&&h.jsx(Fle,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:n}),h.jsxs(Dle,{align:"center",direction:"row",showToolbar:l||t,children:[h.jsx(Ple,{onClick:r,size:"small",children:e?h.jsx(Sb,{}):h.jsx(Eb,{})}),h.jsxs(Ble,{direction:"row",children:[h.jsx("span",{children:zO(n)}),h.jsx("span",{className:"separator",children:"/"}),h.jsx("span",{className:"duration",children:zO(a)})]}),h.jsxs($le,{direction:"row",px:9,children:[h.jsx(Wl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:c}),h.jsx(Lle,{onClick:S,children:p?h.jsx(Mle,{children:h.jsx($M,{})}):h.jsx(jM,{})})]}),h.jsx(jle,{"data-testid":"fullscreen-button",onClick:s,children:t?h.jsx(BM,{}):h.jsx(FM,{})})]})]})},Dle=B(F)` +`,yoe=()=>{const e=Pt(),{setPlayingNode:t}=Po(r=>r);switch(P.useEffect(()=>{var n,a;if(!e)return;(e.media_url||e.link||((n=e.properties)==null?void 0:n.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 h.jsx(s7,{});case"data_series":return h.jsx(oX,{});case"tribe_message":return h.jsx(n7,{});case"Tweet":return h.jsx(b7,{});case"topic":return h.jsx(m7,{});case"show":return h.jsx(h7,{});case"video":case"podcast":case"clip":case"twitter_space":return h.jsx(XR,{});case"document":return h.jsx(poe,{});case"episode":return h.jsx(JX,{},e.ref_id);case"image":return h.jsx(r7,{});default:return h.jsx(eoe,{})}},voe=P.memo(yoe);var Soe=function(t,r,n){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof r=="function"&&(n=r,r={}),r=r||{},n=n||function(){},i.type=r.type||"text/javascript",i.charset=r.charset||"utf8",i.async="async"in r?!!r.async:!0,i.src=t,r.attrs&&Eoe(i,r.attrs),r.text&&(i.text=""+r.text);var o="onload"in i?PO:xoe;o(i,n),i.onload||PO(i,n),a.appendChild(i)};function Eoe(e,t){for(var r in t)e.setAttribute(r,t[r])}function PO(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 xoe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var woe=function(t){return _oe(t)&&!Toe(t)};function _oe(e){return!!e&&typeof e=="object"}function Toe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||koe(e)}var Aoe=typeof Symbol=="function"&&Symbol.for,Ooe=Aoe?Symbol.for("react.element"):60103;function koe(e){return e.$$typeof===Ooe}function Roe(e){return Array.isArray(e)?[]:{}}function Lo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Qa(Roe(e),e,t):e}function Ioe(e,t,r){return e.concat(t).map(function(n){return Lo(n,r)})}function Noe(e,t){if(!t.customMerge)return Qa;var r=t.customMerge(e);return typeof r=="function"?r:Qa}function Coe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function $O(e){return Object.keys(e).concat(Coe(e))}function DI(e,t){try{return t in e}catch{return!1}}function Doe(e,t){return DI(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Loe(e,t,r){var n={};return r.isMergeableObject(e)&&$O(e).forEach(function(a){n[a]=Lo(e[a],r)}),$O(t).forEach(function(a){Doe(e,a)||(DI(e,a)&&r.isMergeableObject(t[a])?n[a]=Noe(a,r)(e[a],t[a],r):n[a]=Lo(t[a],r))}),n}function Qa(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ioe,r.isMergeableObject=r.isMergeableObject||woe,r.cloneUnlessOtherwiseSpecified=Lo;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Loe(e,t,r):Lo(t,r)}Qa.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return Qa(n,a,r)},{})};var Moe=Qa,LI=Moe,Poe=Object.create,Pu=Object.defineProperty,$oe=Object.getOwnPropertyDescriptor,joe=Object.getOwnPropertyNames,Foe=Object.getPrototypeOf,Boe=Object.prototype.hasOwnProperty,Uoe=(e,t)=>{for(var r in t)Pu(e,r,{get:t[r],enumerable:!0})},MI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of joe(t))!Boe.call(e,a)&&a!==r&&Pu(e,a,{get:()=>t[a],enumerable:!(n=$oe(t,a))||n.enumerable});return e},Hy=(e,t,r)=>(r=e!=null?Poe(Foe(e)):{},MI(t||!e||!e.__esModule?Pu(r,"default",{value:e,enumerable:!0}):r,e)),Goe=e=>MI(Pu({},"__esModule",{value:!0}),e),PI={};Uoe(PI,{callPlayer:()=>ase,getConfig:()=>rse,getSDK:()=>tse,isBlobUrl:()=>ose,isMediaStream:()=>ise,lazy:()=>Woe,omit:()=>nse,parseEndTime:()=>Joe,parseStartTime:()=>Zoe,queryString:()=>ese,randomString:()=>Qoe,supportsWebKitPresentationMode:()=>sse});var $u=Goe(PI),zoe=Hy(P),qoe=Hy(Soe),Hoe=Hy(LI);const Woe=e=>zoe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),Voe=/[?&#](?:start|t)=([0-9hms]+)/,Yoe=/[?&#]end=([0-9hms]+)/,lb=/(\d+)(h|m|s)/g,Koe=/^\d+$/;function $I(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const n=r[1];if(n.match(lb))return Xoe(n);if(Koe.test(n))return parseInt(n)}}function Xoe(e){let t=0,r=lb.exec(e);for(;r!==null;){const[,n,a]=r;a==="h"&&(t+=parseInt(n,10)*60*60),a==="m"&&(t+=parseInt(n,10)*60),a==="s"&&(t+=parseInt(n,10)),r=lb.exec(e)}return t}function Zoe(e){return $I(e,Voe)}function Joe(e){return $I(e,Yoe)}function Qoe(){return Math.random().toString(36).substr(2,5)}function ese(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function qh(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 Sa={},tse=function(t,r,n=null,a=()=>!0,i=qoe.default){const o=qh(r);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(Sa[t]){Sa[t].push({resolve:s,reject:l});return}Sa[t]=[{resolve:s,reject:l}];const c=d=>{Sa[t].forEach(p=>p.resolve(d))};if(n){const d=window[n];window[n]=function(){d&&d(),c(qh(r))}}i(t,d=>{d?(Sa[t].forEach(p=>p.reject(d)),Sa[t]=null):n||c(qh(r))})})};function rse(e,t){return(0,Hoe.default)(t.config,e.config)}function nse(e,...t){const r=[].concat(...t),n={},a=Object.keys(e);for(const i of a)r.indexOf(i)===-1&&(n[i]=e[i]);return n}function ase(e,...t){if(!this.player||!this.player[e]){let r=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(r+="The method was not available"):r+="The player was not available",console.warn(r,"font-weight: bold",""),null}return this.player[e](...t)}function ise(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function ose(e){return/^blob:/.test(e)}function sse(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var Wy=Object.defineProperty,lse=Object.getOwnPropertyDescriptor,use=Object.getOwnPropertyNames,cse=Object.prototype.hasOwnProperty,dse=(e,t)=>{for(var r in t)Wy(e,r,{get:t[r],enumerable:!0})},pse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of use(t))!cse.call(e,a)&&a!==r&&Wy(e,a,{get:()=>t[a],enumerable:!(n=lse(t,a))||n.enumerable});return e},fse=e=>pse(Wy({},"__esModule",{value:!0}),e),jI={};dse(jI,{AUDIO_EXTENSIONS:()=>Vy,DASH_EXTENSIONS:()=>ZI,FLV_EXTENSIONS:()=>JI,HLS_EXTENSIONS:()=>Ky,MATCH_URL_DAILYMOTION:()=>VI,MATCH_URL_FACEBOOK:()=>UI,MATCH_URL_FACEBOOK_WATCH:()=>GI,MATCH_URL_KALTURA:()=>XI,MATCH_URL_MIXCLOUD:()=>YI,MATCH_URL_SOUNDCLOUD:()=>FI,MATCH_URL_STREAMABLE:()=>zI,MATCH_URL_TWITCH_CHANNEL:()=>WI,MATCH_URL_TWITCH_VIDEO:()=>HI,MATCH_URL_VIDYARD:()=>KI,MATCH_URL_VIMEO:()=>BI,MATCH_URL_WISTIA:()=>qI,MATCH_URL_YOUTUBE:()=>ub,VIDEO_EXTENSIONS:()=>Yy,canPlay:()=>hse});var gse=fse(jI),jO=$u;const ub=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,FI=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,BI=/vimeo\.com\/(?!progressive_redirect).+/,UI=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,GI=/^https?:\/\/fb\.watch\/.+$/,zI=/streamable\.com\/([a-z0-9]+)$/,qI=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,HI=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,WI=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,VI=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,YI=/mixcloud\.com\/([^/]+\/[^/]+)/,KI=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,XI=/^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-_].*)$/,Vy=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,Yy=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Ky=/\.(m3u8)($|\?)/i,ZI=/\.(mpd)($|\?)/i,JI=/\.(flv)($|\?)/i,cb=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&cb(t)||cb(t.src))return!0;return!1}return(0,jO.isMediaStream)(e)||(0,jO.isBlobUrl)(e)?!0:Vy.test(e)||Yy.test(e)||Ky.test(e)||ZI.test(e)||JI.test(e)},hse={youtube:e=>e instanceof Array?e.every(t=>ub.test(t)):ub.test(e),soundcloud:e=>FI.test(e)&&!Vy.test(e),vimeo:e=>BI.test(e)&&!Yy.test(e)&&!Ky.test(e),facebook:e=>UI.test(e)||GI.test(e),streamable:e=>zI.test(e),wistia:e=>qI.test(e),twitch:e=>HI.test(e)||WI.test(e),dailymotion:e=>VI.test(e),mixcloud:e=>YI.test(e),vidyard:e=>KI.test(e),kaltura:e=>XI.test(e),file:cb};var Xy=Object.defineProperty,mse=Object.getOwnPropertyDescriptor,bse=Object.getOwnPropertyNames,yse=Object.prototype.hasOwnProperty,vse=(e,t)=>{for(var r in t)Xy(e,r,{get:t[r],enumerable:!0})},Sse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of bse(t))!yse.call(e,a)&&a!==r&&Xy(e,a,{get:()=>t[a],enumerable:!(n=mse(t,a))||n.enumerable});return e},Ese=e=>Sse(Xy({},"__esModule",{value:!0}),e),QI={};vse(QI,{default:()=>wse});var xse=Ese(QI),ar=$u,Zt=gse,wse=[{key:"youtube",name:"YouTube",canPlay:Zt.canPlay.youtube,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./YouTube-a514479d.js").then(e=>e.Y),["assets/YouTube-a514479d.js","assets/index-6502785b.js","assets/index-b4d03b7b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Zt.canPlay.soundcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./SoundCloud-d853b11d.js").then(e=>e.S),["assets/SoundCloud-d853b11d.js","assets/index-6502785b.js","assets/index-b4d03b7b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Zt.canPlay.vimeo,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vimeo-243898e0.js").then(e=>e.V),["assets/Vimeo-243898e0.js","assets/index-6502785b.js","assets/index-b4d03b7b.css"]))},{key:"facebook",name:"Facebook",canPlay:Zt.canPlay.facebook,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Facebook-d9966750.js").then(e=>e.F),["assets/Facebook-d9966750.js","assets/index-6502785b.js","assets/index-b4d03b7b.css"]))},{key:"streamable",name:"Streamable",canPlay:Zt.canPlay.streamable,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Streamable-95283471.js").then(e=>e.S),["assets/Streamable-95283471.js","assets/index-6502785b.js","assets/index-b4d03b7b.css"]))},{key:"wistia",name:"Wistia",canPlay:Zt.canPlay.wistia,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Wistia-29053790.js").then(e=>e.W),["assets/Wistia-29053790.js","assets/index-6502785b.js","assets/index-b4d03b7b.css"]))},{key:"twitch",name:"Twitch",canPlay:Zt.canPlay.twitch,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Twitch-08f0d123.js").then(e=>e.T),["assets/Twitch-08f0d123.js","assets/index-6502785b.js","assets/index-b4d03b7b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Zt.canPlay.dailymotion,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./DailyMotion-261e157a.js").then(e=>e.D),["assets/DailyMotion-261e157a.js","assets/index-6502785b.js","assets/index-b4d03b7b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Zt.canPlay.mixcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Mixcloud-742af2ad.js").then(e=>e.M),["assets/Mixcloud-742af2ad.js","assets/index-6502785b.js","assets/index-b4d03b7b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Zt.canPlay.vidyard,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vidyard-9844bf9a.js").then(e=>e.V),["assets/Vidyard-9844bf9a.js","assets/index-6502785b.js","assets/index-b4d03b7b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Zt.canPlay.kaltura,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Kaltura-fabf841f.js").then(e=>e.K),["assets/Kaltura-fabf841f.js","assets/index-6502785b.js","assets/index-b4d03b7b.css"]))},{key:"file",name:"FilePlayer",canPlay:Zt.canPlay.file,canEnablePIP:e=>Zt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,ar.supportsWebKitPresentationMode)())&&!Zt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./FilePlayer-5645f3f0.js").then(e=>e.F),["assets/FilePlayer-5645f3f0.js","assets/index-6502785b.js","assets/index-b4d03b7b.css"]))}],FO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function _se(e,t){return!!(e===t||FO(e)&&FO(t))}function Tse(e,t){if(e.length!==t.length)return!1;for(var r=0;r{for(var r in t)ju(e,r,{get:t[r],enumerable:!0})},tN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Mse(t))!$se.call(e,a)&&a!==r&&ju(e,a,{get:()=>t[a],enumerable:!(n=Lse(t,a))||n.enumerable});return e},Fse=(e,t,r)=>(r=e!=null?Dse(Pse(e)):{},tN(t||!e||!e.__esModule?ju(r,"default",{value:e,enumerable:!0}):r,e)),Bse=e=>tN(ju({},"__esModule",{value:!0}),e),rN={};jse(rN,{defaultProps:()=>zse,propTypes:()=>Gse});var nN=Bse(rN),Use=Fse(PM);const{string:qt,bool:Ht,number:Ea,array:Hh,oneOfType:Ii,shape:gr,object:Wt,func:vt,node:BO}=Use.default,Gse={url:Ii([qt,Hh,Wt]),playing:Ht,loop:Ht,controls:Ht,volume:Ea,muted:Ht,playbackRate:Ea,width:Ii([qt,Ea]),height:Ii([qt,Ea]),style:Wt,progressInterval:Ea,playsinline:Ht,pip:Ht,stopOnUnmount:Ht,light:Ii([Ht,qt,Wt]),playIcon:BO,previewTabIndex:Ea,fallback:BO,oEmbedUrl:qt,wrapper:Ii([qt,vt,gr({render:vt.isRequired})]),config:gr({soundcloud:gr({options:Wt}),youtube:gr({playerVars:Wt,embedOptions:Wt,onUnstarted:vt}),facebook:gr({appId:qt,version:qt,playerId:qt,attributes:Wt}),dailymotion:gr({params:Wt}),vimeo:gr({playerOptions:Wt,title:qt}),file:gr({attributes:Wt,tracks:Hh,forceVideo:Ht,forceAudio:Ht,forceHLS:Ht,forceSafariHLS:Ht,forceDisableHls:Ht,forceDASH:Ht,forceFLV:Ht,hlsOptions:Wt,hlsVersion:qt,dashVersion:qt,flvVersion:qt}),wistia:gr({options:Wt,playerId:qt,customControls:Hh}),mixcloud:gr({options:Wt}),twitch:gr({options:Wt,playerId:qt}),vidyard:gr({options:Wt})}),onReady:vt,onStart:vt,onPlay:vt,onPause:vt,onBuffer:vt,onBufferEnd:vt,onEnded:vt,onError:vt,onDuration:vt,onSeek:vt,onPlaybackRateChange:vt,onPlaybackQualityChange:vt,onProgress:vt,onClickPreview:vt,onEnablePIP:vt,onDisablePIP:vt},Rt=()=>{},zse={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:Rt},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: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};var qse=Object.create,Jo=Object.defineProperty,Hse=Object.getOwnPropertyDescriptor,Wse=Object.getOwnPropertyNames,Vse=Object.getPrototypeOf,Yse=Object.prototype.hasOwnProperty,Kse=(e,t,r)=>t in e?Jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xse=(e,t)=>{for(var r in t)Jo(e,r,{get:t[r],enumerable:!0})},aN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Wse(t))!Yse.call(e,a)&&a!==r&&Jo(e,a,{get:()=>t[a],enumerable:!(n=Hse(t,a))||n.enumerable});return e},iN=(e,t,r)=>(r=e!=null?qse(Vse(e)):{},aN(t||!e||!e.__esModule?Jo(r,"default",{value:e,enumerable:!0}):r,e)),Zse=e=>aN(Jo({},"__esModule",{value:!0}),e),ht=(e,t,r)=>(Kse(e,typeof t!="symbol"?t+"":t,r),r),oN={};Xse(oN,{default:()=>Fu});var Jse=Zse(oN),UO=iN(P),Qse=iN(eN),sN=nN,ele=$u;const tle=5e3;class Fu extends UO.Component{constructor(){super(...arguments),ht(this,"mounted",!1),ht(this,"isReady",!1),ht(this,"isPlaying",!1),ht(this,"isLoading",!0),ht(this,"loadOnReady",null),ht(this,"startOnPlay",!0),ht(this,"seekOnPlay",null),ht(this,"onDurationCalled",!1),ht(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),ht(this,"getInternalPlayer",t=>this.player?this.player[t]:null),ht(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,r=this.getSecondsLoaded(),n=this.getDuration();if(n){const a={playedSeconds:t,played:t/n};r!==null&&(a.loadedSeconds=r,a.loaded=r/n),(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)}),ht(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:r,volume:n,muted:a}=this.props;t(),!a&&n!==null&&this.player.setVolume(n),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):r&&this.player.play(),this.handleDurationCheck()}),ht(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:r,playbackRate:n}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&n!==1&&this.player.setPlaybackRate(n),t(),this.startOnPlay=!1),r(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),ht(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),ht(this,"handleEnded",()=>{const{activePlayer:t,loop:r,onEnded:n}=this.props;t.loopOnEnded&&r&&this.seekTo(0),r||(this.isPlaying=!1,n())}),ht(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),ht(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)}),ht(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:r,playing:n,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:c,disableDeferredLoading:d}=this.props;if(!(0,Qse.default)(t.url,r)){if(this.isLoading&&!c.forceLoad&&!d&&!(0,ele.isMediaStream)(r)){console.warn(`ReactPlayer: the attempt to load ${r} is being deferred until the player has loaded`),this.loadOnReady=r;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}!t.playing&&n&&!this.isPlaying&&this.player.play(),t.playing&&!n&&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,r,n){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},tle));return}if(r?r==="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,n);return}this.player.seekTo(t,n)}render(){const t=this.props.activePlayer;return t?UO.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}}ht(Fu,"displayName","Player");ht(Fu,"propTypes",sN.propTypes);ht(Fu,"defaultProps",sN.defaultProps);var rle=Object.create,Qo=Object.defineProperty,nle=Object.getOwnPropertyDescriptor,ale=Object.getOwnPropertyNames,ile=Object.getPrototypeOf,ole=Object.prototype.hasOwnProperty,sle=(e,t,r)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lle=(e,t)=>{for(var r in t)Qo(e,r,{get:t[r],enumerable:!0})},lN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ale(t))!ole.call(e,a)&&a!==r&&Qo(e,a,{get:()=>t[a],enumerable:!(n=nle(t,a))||n.enumerable});return e},es=(e,t,r)=>(r=e!=null?rle(ile(e)):{},lN(t||!e||!e.__esModule?Qo(r,"default",{value:e,enumerable:!0}):r,e)),ule=e=>lN(Qo({},"__esModule",{value:!0}),e),gt=(e,t,r)=>(sle(e,typeof t!="symbol"?t+"":t,r),r),uN={};lle(uN,{createReactPlayer:()=>yle});var cle=ule(uN),_a=es(P),dle=es(LI),Wh=es(kse),GO=es(eN),$i=nN,cN=$u,ple=es(Jse);const fle=(0,cN.lazy)(()=>ir(()=>import("./Preview-579339c7.js").then(e=>e.P),["assets/Preview-579339c7.js","assets/index-6502785b.js","assets/index-b4d03b7b.css"])),gle=typeof window<"u"&&window.document,hle=typeof Tt<"u"&&Tt.window&&Tt.window.document,mle=Object.keys($i.propTypes),ble=gle||hle?_a.Suspense:()=>null,Ni=[],yle=(e,t)=>{var r;return r=class extends _a.Component{constructor(){super(...arguments),gt(this,"state",{showPreview:!!this.props.light}),gt(this,"references",{wrapper:n=>{this.wrapper=n},player:n=>{this.player=n}}),gt(this,"handleClickPreview",n=>{this.setState({showPreview:!1}),this.props.onClickPreview(n)}),gt(this,"showPreview",()=>{this.setState({showPreview:!0})}),gt(this,"getDuration",()=>this.player?this.player.getDuration():null),gt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),gt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),gt(this,"getInternalPlayer",(n="player")=>this.player?this.player.getInternalPlayer(n):null),gt(this,"seekTo",(n,a,i)=>{if(!this.player)return null;this.player.seekTo(n,a,i)}),gt(this,"handleReady",()=>{this.props.onReady(this)}),gt(this,"getActivePlayer",(0,Wh.default)(n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return a;return t||null})),gt(this,"getConfig",(0,Wh.default)((n,a)=>{const{config:i}=this.props;return dle.default.all([$i.defaultProps.config,$i.defaultProps.config[a]||{},i,i[a]||{}])})),gt(this,"getAttributes",(0,Wh.default)(n=>(0,cN.omit)(this.props,mle))),gt(this,"renderActivePlayer",n=>{if(!n)return null;const a=this.getActivePlayer(n);if(!a)return null;const i=this.getConfig(n,a.key);return _a.default.createElement(ple.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(n,a){return!(0,GO.default)(this.props,n)||!(0,GO.default)(this.state,a)}componentDidUpdate(n){const{light:a}=this.props;!n.light&&a&&this.setState({showPreview:!0}),n.light&&!a&&this.setState({showPreview:!1})}renderPreview(n){if(!n)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return _a.default.createElement(fle,{url:n,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:n,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:c}=this.state,d=this.getAttributes(n),p=typeof l=="string"?this.references.wrapper:void 0;return _a.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...d},_a.default.createElement(ble,{fallback:s},c?this.renderPreview(n):this.renderActivePlayer(n)))}},gt(r,"displayName","ReactPlayer"),gt(r,"propTypes",$i.propTypes),gt(r,"defaultProps",$i.defaultProps),gt(r,"addCustomPlayer",n=>{Ni.push(n)}),gt(r,"removeCustomPlayers",()=>{Ni.length=0}),gt(r,"canPlay",n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return!0;return!1}),gt(r,"canEnablePIP",n=>{for(const a of[...Ni,...e])if(a.canEnablePIP&&a.canEnablePIP(n))return!0;return!1}),r};var vle=Object.create,Bu=Object.defineProperty,Sle=Object.getOwnPropertyDescriptor,Ele=Object.getOwnPropertyNames,xle=Object.getPrototypeOf,wle=Object.prototype.hasOwnProperty,_le=(e,t)=>{for(var r in t)Bu(e,r,{get:t[r],enumerable:!0})},dN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ele(t))!wle.call(e,a)&&a!==r&&Bu(e,a,{get:()=>t[a],enumerable:!(n=Sle(t,a))||n.enumerable});return e},Tle=(e,t,r)=>(r=e!=null?vle(xle(e)):{},dN(t||!e||!e.__esModule?Bu(r,"default",{value:e,enumerable:!0}):r,e)),Ale=e=>dN(Bu({},"__esModule",{value:!0}),e),pN={};_le(pN,{default:()=>Ile});var Ole=Ale(pN),db=Tle(xse),kle=cle;const Rle=db.default[db.default.length-1];var Ile=(0,kle.createReactPlayer)(db.default,Rle);const Nle=pt(Ole),zO=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?r.toString().padStart(2,"0"):r.toString(),o=n.toString().padStart(2,"0");return`${a}${i}:${o}`},Cle=({isPlaying:e,isFullScreen:t,setIsPlaying:r,playingTime:n,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[c,d]=P.useState(.5),[p,g]=P.useState(!1),[m,b]=P.useState(.5),v=(O,_)=>{const w=Array.isArray(_)?_[0]:_;d(w),o(O,w),p&&g(!1)},S=()=>{p?(d(m),o(new Event("input"),m)):(b(c),d(0),o(new Event("input"),0)),g(!p)};return h.jsxs(F,{children:[(!l||t)&&h.jsx(Fle,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:n}),h.jsxs(Dle,{align:"center",direction:"row",showToolbar:l||t,children:[h.jsx(Ple,{onClick:r,size:"small",children:e?h.jsx(Sb,{}):h.jsx(Eb,{})}),h.jsxs(Ble,{direction:"row",children:[h.jsx("span",{children:zO(n)}),h.jsx("span",{className:"separator",children:"/"}),h.jsx("span",{className:"duration",children:zO(a)})]}),h.jsxs($le,{direction:"row",px:9,children:[h.jsx(Wl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:c}),h.jsx(Lle,{onClick:S,children:p?h.jsx(Mle,{children:h.jsx($M,{})}):h.jsx(jM,{})})]}),h.jsx(jle,{"data-testid":"fullscreen-button",onClick:s,children:t?h.jsx(BM,{}):h.jsx(FM,{})})]})]})},Dle=B(F)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` diff --git a/build/assets/index-a1115826.js b/build/assets/index-ac06168d.js similarity index 99% rename from build/assets/index-a1115826.js rename to build/assets/index-ac06168d.js index 823b8460b..95be46088 100644 --- a/build/assets/index-a1115826.js +++ b/build/assets/index-ac06168d.js @@ -1,4 +1,4 @@ -import{at as He,J as Tr,j as V,s as zn,a as Bn,r as Un,e as vt,k as zr,b as Lr,u as Or,E as Dr,F as fe,T as Ft,B as vr,c as Fr,aZ as Rr}from"./index-f22e6e13.js";import{c as Br,b2 as Nr,aD as Mr}from"./index-8304ea06.js";function _r(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const jr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ur={};function Ue(n,e){return((e||Ur).jsx?Hr:jr).test(n)}const Vr=/[ \t\n\f\r]/g;function qr(n){return typeof n=="object"?n.type==="text"?Ve(n.value):!1:Ve(n)}function Ve(n){return n.replace(Vr,"")===""}class jn{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}jn.prototype.property={};jn.prototype.normal={};jn.prototype.space=null;function Rt(n,e){const t={},r={};let i=-1;for(;++i4&&t.slice(0,4)==="data"&&Yr.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace($e,Zr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!$e.test(l)){let o=l.replace(Kr,Jr);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=Se}return new i(r,e)}function Jr(n){return"-"+n.toLowerCase()}function Zr(n){return n.charAt(1).toUpperCase()}const ni={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ei=Rt([Mt,Nt,Ht,Ut,Qr],"html"),Ce=Rt([Mt,Nt,Ht,Ut,Xr],"svg");function ti(n){return n.join(" ").trim()}var Vt={},We=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ri=/\n/g,ii=/^\s*/,li=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,oi=/^:\s*/,ai=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ui=/^[;\s]*/,si=/^\s+|\s+$/g,ci=` +import{at as He,J as Tr,j as V,s as zn,a as Bn,r as Un,e as vt,k as zr,b as Lr,u as Or,E as Dr,F as fe,T as Ft,B as vr,c as Fr,aZ as Rr}from"./index-6502785b.js";import{d as Br,a_ as Nr,a$ as Mr}from"./index-e4d37dbe.js";function _r(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const jr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ur={};function Ue(n,e){return((e||Ur).jsx?Hr:jr).test(n)}const Vr=/[ \t\n\f\r]/g;function qr(n){return typeof n=="object"?n.type==="text"?Ve(n.value):!1:Ve(n)}function Ve(n){return n.replace(Vr,"")===""}class jn{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}jn.prototype.property={};jn.prototype.normal={};jn.prototype.space=null;function Rt(n,e){const t={},r={};let i=-1;for(;++i4&&t.slice(0,4)==="data"&&Yr.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace($e,Zr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!$e.test(l)){let o=l.replace(Kr,Jr);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=Se}return new i(r,e)}function Jr(n){return"-"+n.toLowerCase()}function Zr(n){return n.charAt(1).toUpperCase()}const ni={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ei=Rt([Mt,Nt,Ht,Ut,Qr],"html"),Ce=Rt([Mt,Nt,Ht,Ut,Xr],"svg");function ti(n){return n.join(" ").trim()}var Vt={},We=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ri=/\n/g,ii=/^\s*/,li=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,oi=/^:\s*/,ai=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ui=/^[;\s]*/,si=/^\s+|\s+$/g,ci=` `,Qe="/",Xe="*",Sn="",pi="comment",fi="declaration",hi=function(n,e){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];e=e||{};var t=1,r=1;function i(y){var k=y.match(ri);k&&(t+=k.length);var I=y.lastIndexOf(ci);r=~I?y.length-I:r+y.length}function l(){var y={line:t,column:r};return function(k){return k.position=new o(y),s(),k}}function o(y){this.start=y,this.end={line:t,column:r},this.source=e.source}o.prototype.content=n;function a(y){var k=new Error(e.source+":"+t+":"+r+": "+y);if(k.reason=y,k.filename=e.source,k.line=t,k.column=r,k.source=n,!e.silent)throw k}function u(y){var k=y.exec(n);if(k){var I=k[0];return i(I),n=n.slice(I.length),k}}function s(){u(ii)}function c(y){var k;for(y=y||[];k=f();)k!==!1&&y.push(k);return y}function f(){var y=l();if(!(Qe!=n.charAt(0)||Xe!=n.charAt(1))){for(var k=2;Sn!=n.charAt(k)&&(Xe!=n.charAt(k)||Qe!=n.charAt(k+1));)++k;if(k+=2,Sn===n.charAt(k-1))return a("End of comment missing");var I=n.slice(2,k-2);return r+=2,i(I),n=n.slice(k),r+=2,y({type:pi,comment:I})}}function d(){var y=l(),k=u(li);if(k){if(f(),!u(oi))return a("property missing ':'");var I=u(ai),w=y({type:fi,property:Ye(k[0].replace(We,Sn)),value:I?Ye(I[0].replace(We,Sn)):Sn});return u(ui),w}}function p(){var y=[];c(y);for(var k;k=d();)k!==!1&&(y.push(k),c(y));return y}return s(),p()};function Ye(n){return n?n.replace(si,Sn):Sn}var mi=He&&He.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Vt,"__esModule",{value:!0});var di=mi(hi);function gi(n,e){var t=null;if(!n||typeof n!="string")return t;var r=(0,di.default)(n),i=typeof e=="function";return r.forEach(function(l){if(l.type==="declaration"){var o=l.property,a=l.value;i?e(o,a,l):a&&(t=t||{},t[o]=a)}}),t}var Ke=Vt.default=gi;const yi=Ke.default||Ke,qt=$t("end"),Ee=$t("start");function $t(n){return e;function e(t){const r=t&&t.position&&t.position[n]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function xi(n){const e=Ee(n),t=qt(n);if(e&&t)return{start:e,end:t}}function Nn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Ge(n.position):"start"in n||"end"in n?Ge(n):"line"in n||"column"in n?de(n):""}function de(n){return Je(n&&n.line)+":"+Je(n&&n.column)}function Ge(n){return de(n&&n.start)+"-"+de(n&&n.end)}function Je(n){return n&&typeof n=="number"?n:1}class K extends Error{constructor(e,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof e=="string"?i=e:!l.cause&&e&&(o=!0,i=e.message,l.cause=e),!l.ruleId&&!l.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Nn(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const Ie={}.hasOwnProperty,ki=new Map,bi=/[A-Z]/g,wi=/-([a-z])/g,Si=new Set(["table","tbody","thead","tfoot","tr"]),Ci=new Set(["td","th"]),Wt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ei(n,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Di(t,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Oi(t,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Ce:ei,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},l=Qt(i,n,void 0);return l&&typeof l!="string"?l:i.create(n,i.Fragment,{children:l||void 0},void 0)}function Qt(n,e,t){if(e.type==="element")return Ii(n,e,t);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return Ai(n,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return Ti(n,e,t);if(e.type==="mdxjsEsm")return Pi(n,e);if(e.type==="root")return zi(n,e,t);if(e.type==="text")return Li(n,e)}function Ii(n,e,t){const r=n.schema;let i=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ce,n.schema=i),n.ancestors.push(e);const l=Yt(n,e.tagName,!1),o=vi(n,e);let a=Pe(n,e);return Si.has(e.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!qr(u):!0})),Xt(n,o,l,e),Ae(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function Ai(n,e){if(e.data&&e.data.estree&&n.evaluater){const r=e.data.estree.body[0];return r.type,n.evaluater.evaluateExpression(r.expression)}_n(n,e.position)}function Pi(n,e){if(e.data&&e.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(e.data.estree);_n(n,e.position)}function Ti(n,e,t){const r=n.schema;let i=r;e.name==="svg"&&r.space==="html"&&(i=Ce,n.schema=i),n.ancestors.push(e);const l=e.name===null?n.Fragment:Yt(n,e.name,!0),o=Fi(n,e),a=Pe(n,e);return Xt(n,o,l,e),Ae(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function zi(n,e,t){const r={};return Ae(r,Pe(n,e)),n.create(e,n.Fragment,r,t)}function Li(n,e){return e.value}function Xt(n,e,t,r){typeof t!="string"&&t!==n.Fragment&&n.passNode&&(e.node=r)}function Ae(n,e){if(e.length>0){const t=e.length>1?e:e[0];t&&(n.children=t)}}function Oi(n,e,t){return r;function r(i,l,o,a){const s=Array.isArray(o.children)?t:e;return a?s(l,o,a):s(l,o)}}function Di(n,e){return t;function t(r,i,l,o){const a=Array.isArray(l.children),u=Ee(r);return e(i,l,o,a,{columnNumber:u?u.column-1:void 0,fileName:n,lineNumber:u?u.line:void 0},void 0)}}function vi(n,e){const t={};let r,i;for(i in e.properties)if(i!=="children"&&Ie.call(e.properties,i)){const l=Ri(n,i,e.properties[i]);if(l){const[o,a]=l;n.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Ci.has(e.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Fi(n,e){const t={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&n.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,n.evaluater.evaluateExpression(a.argument))}else _n(n,e.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&n.evaluater){const a=r.value.data.estree.body[0];a.type,l=n.evaluater.evaluateExpression(a.expression)}else _n(n,e.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Pe(n,e){const t=[];let r=-1;const i=n.passKeys?new Map:ki;for(;++ri?0:i+e:e=e>i?i:e,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(e,t),n.splice(...o);else for(t&&n.splice(e,t);l0?(pn(n,n.length,0,e),n):e}const et={}.hasOwnProperty;function qi(n){const e={};let t=-1;for(;++t13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Tn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qi=xn(/\p{P}/u),cn=xn(/[A-Za-z]/),en=xn(/[\dA-Za-z]/),Xi=xn(/[#-'*+\--9=?A-Z^-~]/);function ge(n){return n!==null&&(n<32||n===127)}const ye=xn(/\d/),Yi=xn(/[\dA-Fa-f]/),Jt=xn(/[!-/:-@[-`{-~]/);function T(n){return n!==null&&n<-2}function J(n){return n!==null&&(n<0||n===32)}function B(n){return n===-2||n===-1||n===32}function Ki(n){return Jt(n)||Qi(n)}const Gi=xn(/\s/);function xn(n){return e;function e(t){return t!==null&&t>-1&&n.test(String.fromCharCode(t))}}function On(n){const e=[];let t=-1,r=0,i=0;for(;++t55295&&l<57344){const a=n.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(e.push(n.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return e.join("")+n.slice(r)}function j(n,e,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return B(u)?(n.enter(t),a(u)):e(u)}function a(u){return B(u)&&l++o))return;const R=e.events.length;let q=R,M,H;for(;q--;)if(e.events[q][0]==="exit"&&e.events[q][1].type==="chunkFlow"){if(M){H=e.events[q][1].end;break}M=!0}for(w(r),x=R;xC;){const O=t[D];e.containerState=O[1],O[0].exit.call(e,n)}t.length=C}function E(){i.write([null]),l=void 0,i=void 0,e.containerState._closeFlow=void 0}}function tl(n,e,t){return j(n,n.attempt(this.parser.constructs.document,e,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rt(n){if(n===null||J(n)||Gi(n))return 1;if(Ki(n))return 2}function ze(n,e,t){const r=[];let i=-1;for(;++i1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const f=Object.assign({},n[r][1].end),d=Object.assign({},n[t][1].start);it(f,-u),it(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},n[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:d},l={type:u>1?"strongText":"emphasisText",start:Object.assign({},n[r][1].end),end:Object.assign({},n[t][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},n[r][1].end=Object.assign({},o.start),n[t][1].start=Object.assign({},a.end),s=[],n[r][1].end.offset-n[r][1].start.offset&&(s=tn(s,[["enter",n[r][1],e],["exit",n[r][1],e]])),s=tn(s,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",l,e]]),s=tn(s,ze(e.parser.constructs.insideSpan.null,n.slice(r+1,t),e)),s=tn(s,[["exit",l,e],["enter",a,e],["exit",a,e],["exit",i,e]]),n[t][1].end.offset-n[t][1].start.offset?(c=2,s=tn(s,[["enter",n[t][1],e],["exit",n[t][1],e]])):c=0,pn(n,r-1,t-r+3,s),t=r+s.length-c-2;break}}for(t=-1;++t0&&B(x)?j(n,E,"linePrefix",l+1)(x):E(x)}function E(x){return x===null||T(x)?n.check(lt,k,D)(x):(n.enter("codeFlowValue"),C(x))}function C(x){return x===null||T(x)?(n.exit("codeFlowValue"),E(x)):(n.consume(x),C)}function D(x){return n.exit("codeFenced"),e(x)}function O(x,R,q){let M=0;return H;function H(F){return x.enter("lineEnding"),x.consume(F),x.exit("lineEnding"),P}function P(F){return x.enter("codeFencedFence"),B(F)?j(x,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):A(F)}function A(F){return F===a?(x.enter("codeFencedFenceSequence"),U(F)):q(F)}function U(F){return F===a?(M++,x.consume(F),U):M>=o?(x.exit("codeFencedFenceSequence"),B(F)?j(x,$,"whitespace")(F):$(F)):q(F)}function $(F){return F===null||T(F)?(x.exit("codeFencedFence"),R(F)):q(F)}}}function ml(n,e,t){const r=this;return i;function i(o){return o===null?t(o):(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}const re={name:"codeIndented",tokenize:gl},dl={tokenize:yl,partial:!0};function gl(n,e,t){const r=this;return i;function i(s){return n.enter("codeIndented"),j(n,l,"linePrefix",4+1)(s)}function l(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?u(s):T(s)?n.attempt(dl,o,u)(s):(n.enter("codeFlowValue"),a(s))}function a(s){return s===null||T(s)?(n.exit("codeFlowValue"),o(s)):(n.consume(s),a)}function u(s){return n.exit("codeIndented"),e(s)}}function yl(n,e,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):T(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),i):j(n,l,"linePrefix",4+1)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):T(o)?i(o):t(o)}}const xl={name:"codeText",tokenize:wl,resolve:kl,previous:bl};function kl(n){let e=n.length-4,t=3,r,i;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[e][1].type==="lineEnding"||n[e][1].type==="space")){for(r=t;++r=4?e(o):n.interrupt(r.parser.constructs.flow,t,e)(o)}}function rr(n,e,t,r,i,l,o,a,u){const s=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(w){return w===60?(n.enter(r),n.enter(i),n.enter(l),n.consume(w),n.exit(l),d):w===null||w===32||w===41||ge(w)?t(w):(n.enter(r),n.enter(o),n.enter(a),n.enter("chunkString",{contentType:"string"}),k(w))}function d(w){return w===62?(n.enter(l),n.consume(w),n.exit(l),n.exit(i),n.exit(r),e):(n.enter(a),n.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(n.exit("chunkString"),n.exit(a),d(w)):w===null||w===60||T(w)?t(w):(n.consume(w),w===92?y:p)}function y(w){return w===60||w===62||w===92?(n.consume(w),p):p(w)}function k(w){return!c&&(w===null||w===41||J(w))?(n.exit("chunkString"),n.exit(a),n.exit(o),n.exit(r),e(w)):c999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(n.exit(l),n.enter(i),n.consume(p),n.exit(i),n.exit(r),e):T(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),c):(n.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||T(p)||a++>999?(n.exit("chunkString"),c(p)):(n.consume(p),u||(u=!B(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(n.consume(p),a++,f):f(p)}}function lr(n,e,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(n.enter(r),n.enter(i),n.consume(d),n.exit(i),o=d===40?41:d,u):t(d)}function u(d){return d===o?(n.enter(i),n.consume(d),n.exit(i),n.exit(r),e):(n.enter(l),s(d))}function s(d){return d===o?(n.exit(l),u(o)):d===null?t(d):T(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),j(n,s,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||T(d)?(n.exit("chunkString"),s(d)):(n.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(n.consume(d),c):c(d)}}function Mn(n,e){let t;return r;function r(i){return T(i)?(n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),t=!0,r):B(i)?j(n,r,t?"linePrefix":"lineSuffix")(i):e(i)}}const Tl={name:"definition",tokenize:Ll},zl={tokenize:Ol,partial:!0};function Ll(n,e,t){const r=this;let i;return l;function l(p){return n.enter("definition"),o(p)}function o(p){return ir.call(r,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Tn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(n.enter("definitionMarker"),n.consume(p),n.exit("definitionMarker"),u):t(p)}function u(p){return J(p)?Mn(n,s)(p):s(p)}function s(p){return rr(n,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return n.attempt(zl,f,f)(p)}function f(p){return B(p)?j(n,d,"whitespace")(p):d(p)}function d(p){return p===null||T(p)?(n.exit("definition"),r.parser.defined.push(i),e(p)):t(p)}}function Ol(n,e,t){return r;function r(a){return J(a)?Mn(n,i)(a):t(a)}function i(a){return lr(n,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return B(a)?j(n,o,"whitespace")(a):o(a)}function o(a){return a===null||T(a)?e(a):t(a)}}const Dl={name:"hardBreakEscape",tokenize:vl};function vl(n,e,t){return r;function r(l){return n.enter("hardBreakEscape"),n.consume(l),i}function i(l){return T(l)?(n.exit("hardBreakEscape"),e(l)):t(l)}}const Fl={name:"headingAtx",tokenize:Bl,resolve:Rl};function Rl(n,e){let t=n.length-2,r=3,i,l;return n[r][1].type==="whitespace"&&(r+=2),t-2>r&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&n[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:n[r][1].start,end:n[t][1].end},l={type:"chunkText",start:n[r][1].start,end:n[t][1].end,contentType:"text"},pn(n,r,t-r+1,[["enter",i,e],["enter",l,e],["exit",l,e],["exit",i,e]])),n}function Bl(n,e,t){let r=0;return i;function i(c){return n.enter("atxHeading"),l(c)}function l(c){return n.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(n.consume(c),o):c===null||J(c)?(n.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(n.enter("atxHeadingSequence"),u(c)):c===null||T(c)?(n.exit("atxHeading"),e(c)):B(c)?j(n,a,"whitespace")(c):(n.enter("atxHeadingText"),s(c))}function u(c){return c===35?(n.consume(c),u):(n.exit("atxHeadingSequence"),a(c))}function s(c){return c===null||c===35||J(c)?(n.exit("atxHeadingText"),a(c)):(n.consume(c),s)}}const Nl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],at=["pre","script","style","textarea"],Ml={name:"htmlFlow",tokenize:Ul,resolveTo:Hl,concrete:!0},_l={tokenize:ql,partial:!0},jl={tokenize:Vl,partial:!0};function Hl(n){let e=n.length;for(;e--&&!(n[e][0]==="enter"&&n[e][1].type==="htmlFlow"););return e>1&&n[e-2][1].type==="linePrefix"&&(n[e][1].start=n[e-2][1].start,n[e+1][1].start=n[e-2][1].start,n.splice(e-2,2)),n}function Ul(n,e,t){const r=this;let i,l,o,a,u;return s;function s(m){return c(m)}function c(m){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(m),f}function f(m){return m===33?(n.consume(m),d):m===47?(n.consume(m),l=!0,k):m===63?(n.consume(m),i=3,r.interrupt?e:h):cn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function d(m){return m===45?(n.consume(m),i=2,p):m===91?(n.consume(m),i=5,a=0,y):cn(m)?(n.consume(m),i=4,r.interrupt?e:h):t(m)}function p(m){return m===45?(n.consume(m),r.interrupt?e:h):t(m)}function y(m){const an="CDATA[";return m===an.charCodeAt(a++)?(n.consume(m),a===an.length?r.interrupt?e:A:y):t(m)}function k(m){return cn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||J(m)){const an=m===47,kn=o.toLowerCase();return!an&&!l&&at.includes(kn)?(i=1,r.interrupt?e(m):A(m)):Nl.includes(o.toLowerCase())?(i=6,an?(n.consume(m),w):r.interrupt?e(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?E(m):C(m))}return m===45||en(m)?(n.consume(m),o+=String.fromCharCode(m),I):t(m)}function w(m){return m===62?(n.consume(m),r.interrupt?e:A):t(m)}function E(m){return B(m)?(n.consume(m),E):H(m)}function C(m){return m===47?(n.consume(m),H):m===58||m===95||cn(m)?(n.consume(m),D):B(m)?(n.consume(m),C):H(m)}function D(m){return m===45||m===46||m===58||m===95||en(m)?(n.consume(m),D):O(m)}function O(m){return m===61?(n.consume(m),x):B(m)?(n.consume(m),O):C(m)}function x(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(n.consume(m),u=m,R):B(m)?(n.consume(m),x):q(m)}function R(m){return m===u?(n.consume(m),u=null,M):m===null||T(m)?t(m):(n.consume(m),R)}function q(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||J(m)?O(m):(n.consume(m),q)}function M(m){return m===47||m===62||B(m)?C(m):t(m)}function H(m){return m===62?(n.consume(m),P):t(m)}function P(m){return m===null||T(m)?A(m):B(m)?(n.consume(m),P):t(m)}function A(m){return m===45&&i===2?(n.consume(m),Y):m===60&&i===1?(n.consume(m),Q):m===62&&i===4?(n.consume(m),on):m===63&&i===3?(n.consume(m),h):m===93&&i===5?(n.consume(m),fn):T(m)&&(i===6||i===7)?(n.exit("htmlFlowData"),n.check(_l,hn,U)(m)):m===null||T(m)?(n.exit("htmlFlowData"),U(m)):(n.consume(m),A)}function U(m){return n.check(jl,$,hn)(m)}function $(m){return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),F}function F(m){return m===null||T(m)?U(m):(n.enter("htmlFlowData"),A(m))}function Y(m){return m===45?(n.consume(m),h):A(m)}function Q(m){return m===47?(n.consume(m),o="",ln):A(m)}function ln(m){if(m===62){const an=o.toLowerCase();return at.includes(an)?(n.consume(m),on):A(m)}return cn(m)&&o.length<8?(n.consume(m),o+=String.fromCharCode(m),ln):A(m)}function fn(m){return m===93?(n.consume(m),h):A(m)}function h(m){return m===62?(n.consume(m),on):m===45&&i===2?(n.consume(m),h):A(m)}function on(m){return m===null||T(m)?(n.exit("htmlFlowData"),hn(m)):(n.consume(m),on)}function hn(m){return n.exit("htmlFlow"),e(m)}}function Vl(n,e,t){const r=this;return i;function i(o){return T(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}function ql(n,e,t){return r;function r(i){return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),n.attempt(Gn,e,t)}}const $l={name:"htmlText",tokenize:Wl};function Wl(n,e,t){const r=this;let i,l,o;return a;function a(h){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(h),u}function u(h){return h===33?(n.consume(h),s):h===47?(n.consume(h),O):h===63?(n.consume(h),C):cn(h)?(n.consume(h),q):t(h)}function s(h){return h===45?(n.consume(h),c):h===91?(n.consume(h),l=0,y):cn(h)?(n.consume(h),E):t(h)}function c(h){return h===45?(n.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(n.consume(h),d):T(h)?(o=f,Q(h)):(n.consume(h),f)}function d(h){return h===45?(n.consume(h),p):f(h)}function p(h){return h===62?Y(h):h===45?d(h):f(h)}function y(h){const on="CDATA[";return h===on.charCodeAt(l++)?(n.consume(h),l===on.length?k:y):t(h)}function k(h){return h===null?t(h):h===93?(n.consume(h),I):T(h)?(o=k,Q(h)):(n.consume(h),k)}function I(h){return h===93?(n.consume(h),w):k(h)}function w(h){return h===62?Y(h):h===93?(n.consume(h),w):k(h)}function E(h){return h===null||h===62?Y(h):T(h)?(o=E,Q(h)):(n.consume(h),E)}function C(h){return h===null?t(h):h===63?(n.consume(h),D):T(h)?(o=C,Q(h)):(n.consume(h),C)}function D(h){return h===62?Y(h):C(h)}function O(h){return cn(h)?(n.consume(h),x):t(h)}function x(h){return h===45||en(h)?(n.consume(h),x):R(h)}function R(h){return T(h)?(o=R,Q(h)):B(h)?(n.consume(h),R):Y(h)}function q(h){return h===45||en(h)?(n.consume(h),q):h===47||h===62||J(h)?M(h):t(h)}function M(h){return h===47?(n.consume(h),Y):h===58||h===95||cn(h)?(n.consume(h),H):T(h)?(o=M,Q(h)):B(h)?(n.consume(h),M):Y(h)}function H(h){return h===45||h===46||h===58||h===95||en(h)?(n.consume(h),H):P(h)}function P(h){return h===61?(n.consume(h),A):T(h)?(o=P,Q(h)):B(h)?(n.consume(h),P):M(h)}function A(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(n.consume(h),i=h,U):T(h)?(o=A,Q(h)):B(h)?(n.consume(h),A):(n.consume(h),$)}function U(h){return h===i?(n.consume(h),i=void 0,F):h===null?t(h):T(h)?(o=U,Q(h)):(n.consume(h),U)}function $(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||J(h)?M(h):(n.consume(h),$)}function F(h){return h===47||h===62||J(h)?M(h):t(h)}function Y(h){return h===62?(n.consume(h),n.exit("htmlTextData"),n.exit("htmlText"),e):t(h)}function Q(h){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),ln}function ln(h){return B(h)?j(n,fn,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):fn(h)}function fn(h){return n.enter("htmlTextData"),o(h)}}const Le={name:"labelEnd",tokenize:Jl,resolveTo:Gl,resolveAll:Kl},Ql={tokenize:Zl},Xl={tokenize:no},Yl={tokenize:eo};function Kl(n){let e=-1;for(;++e=3&&(s===null||T(s))?(n.exit("thematicBreak"),e(s)):t(s)}function u(s){return s===i?(n.consume(s),r++,u):(n.exit("thematicBreakSequence"),B(s)?j(n,a,"whitespace")(s):a(s))}}const G={name:"list",tokenize:co,continuation:{tokenize:po},exit:ho},uo={tokenize:mo,partial:!0},so={tokenize:fo,partial:!0};function co(n,e,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ye(p)){if(r.containerState.type||(r.containerState.type=y,n.enter(y,{_container:!0})),y==="listUnordered")return n.enter("listItemPrefix"),p===42||p===45?n.check(Wn,t,s)(p):s(p);if(!r.interrupt||p===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),u(p)}return t(p)}function u(p){return ye(p)&&++o<10?(n.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(n.exit("listItemValue"),s(p)):t(p)}function s(p){return n.enter("listItemMarker"),n.consume(p),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,n.check(Gn,r.interrupt?t:c,n.attempt(uo,d,f))}function c(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return B(p)?(n.enter("listItemPrefixWhitespace"),n.consume(p),n.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,e(p)}}function po(n,e,t){const r=this;return r.containerState._closeFlow=void 0,n.check(Gn,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,j(n,e,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!B(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt(so,e,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,j(n,n.attempt(G,e,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function fo(n,e,t){const r=this;return j(n,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(l):t(l)}}function ho(n){n.exit(this.containerState.type)}function mo(n,e,t){const r=this;return j(n,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(l){const o=r.events[r.events.length-1];return!B(l)&&o&&o[1].type==="listItemPrefixWhitespace"?e(l):t(l)}}const ut={name:"setextUnderline",tokenize:yo,resolveTo:go};function go(n,e){let t=n.length,r,i,l;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){r=t;break}n[t][1].type==="paragraph"&&(i=t)}else n[t][1].type==="content"&&n.splice(t,1),!l&&n[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[i][1].type="setextHeadingText",l?(n.splice(i,0,["enter",o,e]),n.splice(l+1,0,["exit",n[r][1],e]),n[r][1].end=Object.assign({},n[l][1].end)):n[r][1]=o,n.push(["exit",o,e]),n}function yo(n,e,t){const r=this;let i;return l;function l(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(n.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return n.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(n.consume(s),a):(n.exit("setextHeadingLineSequence"),B(s)?j(n,u,"lineSuffix")(s):u(s))}function u(s){return s===null||T(s)?(n.exit("setextHeadingLine"),e(s)):t(s)}}const xo={tokenize:ko};function ko(n){const e=this,t=n.attempt(Gn,r,n.attempt(this.parser.constructs.flowInitial,i,j(n,n.attempt(this.parser.constructs.flow,i,n.attempt(Cl,i)),"linePrefix")));return t;function r(l){if(l===null){n.consume(l);return}return n.enter("lineEndingBlank"),n.consume(l),n.exit("lineEndingBlank"),e.currentConstruct=void 0,t}function i(l){if(l===null){n.consume(l);return}return n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),e.currentConstruct=void 0,t}}const bo={resolveAll:ar()},wo=or("string"),So=or("text");function or(n){return{tokenize:e,resolveAll:ar(n==="text"?Co:void 0)};function e(t){const r=this,i=this.parser.constructs[n],l=t.attempt(i,o,a);return o;function o(c){return s(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),u}function u(c){return s(c)?(t.exit("data"),l(c)):(t.consume(c),u)}function s(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(n[i].slice(0,l))}return o}function Ao(n,e){let t=-1;const r=[];let i;for(;++t0){const un=z.tokenStack[z.tokenStack.length-1];(un[1]||ct).call(z,void 0,un[0])}for(S.position={start:yn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:yn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},N=-1;++N{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await k();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const n=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(I,{onSelect:f,options:p.map(n),selectedValue:t?n(t):null})},W=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,n]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:K,search:u,skip:"0",limit:"1000"};o(!0);try{const S=(await _(i.search)).data.filter(b=>(b==null?void 0:b.ref_id)!==p);n(S)}catch{n([])}finally{o(!1)}};return A.debounce(s,300)},[p]),m=s=>{const u=s.trim();if(!u){n([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},a=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(a);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(J,{onClick:()=>t(null),size:"medium",children:e.jsx(F,{})})]}):e.jsx(I,{handleInputChange:m,isLoading:f,onSelect:j,options:v(d)||O,selectedValue:c?a(c):null})},Z=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:n,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},m=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(Q,{children:"Add Edge"})})}),e.jsxs(U,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:m})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx(V,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(W,{onSelect:c,selectedValue:n,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs($,{children:[e.jsx(ne,{children:e.jsx(X,{})}),e.jsx(ae,{onClick:x,children:e.jsx(G,{})}),e.jsx(ie,{children:e.jsx(H,{})})]})]})]})},$=l.div` +import{r,j as e,bp as F,i as k,F as h,C as A,be as O,bq as _,s as l,T as z,e as E,t as N,w as D,a as C,B as M,br as Y,aZ as G}from"./index-6502785b.js";import{aE as P,aF as X,aG as H,p as R}from"./index-e4d37dbe.js";import{A as I,T as q}from"./index-8c0315a7.js";import{S as V,A as W}from"./constants-2ca2bfc7.js";import{C as T}from"./ClipLoader-2e8a2039.js";import"./Stack-72c38e89.js";import"./createSvgIcon-6b5253a6.js";import"./TextareaAutosize-a343ed23.js";const Z=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await F();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const n=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(I,{onSelect:f,options:p.map(n),selectedValue:t?n(t):null})},$=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,n]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:W,search:u,skip:"0",limit:"1000"};o(!0);try{const S=(await _(i.search)).data.filter(b=>(b==null?void 0:b.ref_id)!==p);n(S)}catch{n([])}finally{o(!1)}};return k.debounce(s,300)},[p]),m=s=>{const u=s.trim();if(!u){n([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},a=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(a);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(V,{onClick:()=>t(null),size:"medium",children:e.jsx(A,{})})]}):e.jsx(I,{handleInputChange:m,isLoading:f,onSelect:j,options:v(d)||O,selectedValue:c?a(c):null})},J=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:n,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},m=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(Q,{children:"Add Edge"})})}),e.jsxs(U,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:m})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx(Z,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx($,{onSelect:c,selectedValue:n,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(K,{children:[e.jsx(ne,{children:e.jsx(P,{})}),e.jsx(ae,{onClick:x,children:e.jsx(X,{})}),e.jsx(ie,{children:e.jsx(H,{})})]})]})]})},K=l.div` position: absolute; top: 26px; bottom: 26px; @@ -84,9 +84,9 @@ import{r,j as e,bp as k,i as A,F as h,C as F,be as O,bq as _,s as l,T as z,e as transform: translateY(10px) translateX(3px); color: #6b7a8d; line-height: 1; -`,re=()=>{const{close:t}=E("addEdgeToNode"),c=N({mode:"onChange"}),[p,d]=r.useState(!1),[n,f]=r.useState(""),[o,x]=r.useState(!1),[m,j]=r.useState(!1),[a,v]=r.useState(null),[s,u]=r.useState(),i=R();r.useEffect(()=>{(async()=>{if(i){j(!0);try{if(i.type==="topic"){const{data:y}=await _(i==null?void 0:i.name,{exact_match:"true",node_type:"topic"}),L=y.find(B=>B.node_type==="topic");u(L)}}catch(y){console.error(y)}finally{j(!1)}}})()},[i]);const w=()=>{t()},S=async()=>{const g=s||i;if(!(!a||!(g!=null&&g.ref_id))){d(!0);try{await Y({relationship:n,...o?{to:g.ref_id,from:a==null?void 0:a.ref_id}:{from:g.ref_id,to:a==null?void 0:a.ref_id}}),w()}catch(y){console.warn(y)}finally{d(!1)}}},b=p||!a||!n;return e.jsxs(D,{...c,children:[m?e.jsx(h,{align:"center",my:24,children:e.jsx(T,{color:C.lightGray,size:24})}):e.jsx(Z,{from:s??i,isSwapped:o,onSelect:v,selectedToNode:a,selectedType:n,setIsSwapped:()=>x(!o),setSelectedType:f}),e.jsxs(le,{color:"secondary",disabled:b,onClick:S,size:"large",variant:"contained",children:["Confirm",p&&e.jsx(ce,{children:e.jsx(T,{color:C.lightGray,size:12})})]})]})},le=l(M)` +`,re=()=>{const{close:t}=E("addEdgeToNode"),c=N({mode:"onChange"}),[p,d]=r.useState(!1),[n,f]=r.useState(""),[o,x]=r.useState(!1),[m,j]=r.useState(!1),[a,v]=r.useState(null),[s,u]=r.useState(),i=R();r.useEffect(()=>{(async()=>{if(i){j(!0);try{if(i.type==="topic"){const{data:y}=await _(i==null?void 0:i.name,{exact_match:"true",node_type:"topic"}),L=y.find(B=>B.node_type==="topic");u(L)}}catch(y){console.error(y)}finally{j(!1)}}})()},[i]);const w=()=>{t()},S=async()=>{const g=s||i;if(!(!a||!(g!=null&&g.ref_id))){d(!0);try{await Y({relationship:n,...o?{to:g.ref_id,from:a==null?void 0:a.ref_id}:{from:g.ref_id,to:a==null?void 0:a.ref_id}}),w()}catch(y){console.warn(y)}finally{d(!1)}}},b=p||!a||!n;return e.jsxs(D,{...c,children:[m?e.jsx(h,{align:"center",my:24,children:e.jsx(T,{color:C.lightGray,size:24})}):e.jsx(J,{from:s??i,isSwapped:o,onSelect:v,selectedToNode:a,selectedType:n,setIsSwapped:()=>x(!o),setSelectedType:f}),e.jsxs(le,{color:"secondary",disabled:b,onClick:S,size:"large",variant:"contained",children:["Confirm",p&&e.jsx(ce,{children:e.jsx(T,{color:C.lightGray,size:12})})]})]})},le=l(M)` width: 293px !important; margin: 0 0 10px auto !important; `,ce=l.span` margin-top: 2px; -`,be=()=>{const{close:t}=E("addEdgeToNode");return e.jsx(P,{id:"addEdgeToNode",kind:"small",onClose:t,preventOutsideClose:!0,children:e.jsx(re,{})})};export{be as AddNodeEdgeModal}; +`,be=()=>{const{close:t}=E("addEdgeToNode");return e.jsx(G,{id:"addEdgeToNode",kind:"small",onClose:t,preventOutsideClose:!0,children:e.jsx(re,{})})};export{be as AddNodeEdgeModal}; diff --git a/build/assets/index-91503fb3.js b/build/assets/index-db32d3e5.js similarity index 85% rename from build/assets/index-91503fb3.js rename to build/assets/index-db32d3e5.js index b820b4e85..dd25f42fe 100644 --- a/build/assets/index-91503fb3.js +++ b/build/assets/index-db32d3e5.js @@ -1 +1 @@ -import{c as f,bu as m}from"./index-f22e6e13.js";import{D as y}from"./constants-9dc70933.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let s=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),s&&s.abort();const t=new AbortController,{signal:p}=t;s=t;const{data:d,ids:g,filters:e}=n(),u=T(e);e.page===0&&a({data:null,ids:[],total:0});try{const o=await m(u,p),i=e.page===0?{}:{...d||{}},l=e.page===0?[]:[...g];o.data.forEach(r=>{i[r.ref_id]=r,l.push(r.ref_id)}),a({data:i,ids:l,total:o.totalCount}),a({loading:!1})}catch(o){console.error(o)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{S as u}; +import{c as f,bu as m}from"./index-6502785b.js";import{D as y}from"./constants-2ca2bfc7.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let s=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),s&&s.abort();const t=new AbortController,{signal:p}=t;s=t;const{data:d,ids:g,filters:e}=n(),u=T(e);e.page===0&&a({data:null,ids:[],total:0});try{const o=await m(u,p),i=e.page===0?{}:{...d||{}},l=e.page===0?[]:[...g];o.data.forEach(r=>{i[r.ref_id]=r,l.push(r.ref_id)}),a({data:i,ids:l,total:o.totalCount}),a({loading:!1})}catch(o){console.error(o)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{S as u}; diff --git a/build/assets/index-e0a6bd37.js b/build/assets/index-e0a6bd37.js deleted file mode 100644 index 74314e90c..000000000 --- a/build/assets/index-e0a6bd37.js +++ /dev/null @@ -1,366 +0,0 @@ -import{r as a,y as ce,c as le,j as t,s as x,a as C,F as _,T as V,u as D,d as K,z as pe,A as ue,N as Y,D as de,E as fe,G as ee,H as he}from"./index-f22e6e13.js";import{Universe as xe}from"./index-0d511f35.js";import{b as H,c as me,d as ge,e as ye,f as we,g as je,h as be,i as Ce,a as ve}from"./index-8304ea06.js";import{S as Se,R as _e,s as Ee,M as Te}from"./index-9ddac9de.js";import{u as W,a as te,m as Re,T as Pe,f as $e,H as ze,C as Ie}from"./index-d3e0dfea.js";import{W as Me,L as X,H as ke,D as We,F as He,V as M,S as Ae}from"./three.module-9c942ca6.js";import"./TextareaAutosize-5da8bada.js";import"./index-e36d8aa5.js";import"./ClipLoader-1ce39797.js";import"./Skeleton-6d9b0e62.js";import"./Stack-e2486c11.js";import"./isPlainObject-212517ba.js";import"./Typography-1355ab6c.js";import"./createSvgIcon-9d40ff73.js";import"./index-a1115826.js";function Fe(e,r,s){const{gl:n,size:o,viewport:p}=W(),f=typeof e=="number"?e:o.width*p.dpr,l=typeof r=="number"?r:o.height*p.dpr,c=(typeof e=="number"?s:e)||{},{samples:i=0,depth:h,...m}=c,g=a.useMemo(()=>{let w;return w=new Me(f,l,{minFilter:X,magFilter:X,encoding:n.outputEncoding,type:ke,...m}),h&&(w.depthTexture=new We(f,l,He)),w.samples=i,w},[]);return a.useLayoutEffect(()=>{g.setSize(f,l),i&&(g.samples=i)},[i,g,f,l]),a.useEffect(()=>()=>g.dispose(),[]),g}const Le=e=>typeof e=="function",Be=a.forwardRef(({envMap:e,resolution:r=256,frames:s=1/0,children:n,makeDefault:o,...p},f)=>{const l=W(({set:u})=>u),c=W(({camera:u})=>u),i=W(({size:u})=>u),h=a.useRef(null),m=a.useRef(null),g=Fe(r);a.useLayoutEffect(()=>{p.manual||h.current.updateProjectionMatrix()},[i,p]),a.useLayoutEffect(()=>{h.current.updateProjectionMatrix()}),a.useLayoutEffect(()=>{if(o){const u=c;return l(()=>({camera:h.current})),()=>l(()=>({camera:u}))}},[h,o,l]);let w=0,j=null;const d=Le(n);return te(u=>{d&&(s===1/0||w({...De,setSelectedEpisodeId:r=>e({selectedEpisodeId:r}),setSelectedEpisodeLink:r=>e({selectedEpisodeLink:r}),setSelectedEpisode:r=>e({selectedEpisode:r})})),Ne=e=>t.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 30 28",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M7.2998 2.55199C7.2998 1.51094 8.11675 0.666992 9.1245 0.666992H12.1299C13.1376 0.666992 13.9546 1.51094 13.9546 2.55199C13.9546 3.59305 13.1376 4.43699 12.1299 4.43699H9.1245C8.11675 4.43699 7.2998 3.59305 7.2998 2.55199Z",fill:"currentColor"}),t.jsx("path",{d:"M7.2998 25.449C7.2998 26.49 8.11675 27.334 9.1245 27.334H12.1299C13.1376 27.334 13.9546 26.49 13.9546 25.449C13.9546 24.4079 13.1376 23.564 12.1299 23.564H9.1245C8.11675 23.564 7.2998 24.4079 7.2998 25.449Z",fill:"currentColor"}),t.jsx("path",{d:"M2.79102 8.29613C2.79102 7.25508 3.60796 6.41113 4.61571 6.41113H12.1292C13.1369 6.41113 13.9539 7.25508 13.9539 8.29613C13.9539 9.33719 13.1369 10.1811 12.1292 10.1811H4.61571C3.60796 10.1811 2.79102 9.33719 2.79102 8.29613Z",fill:"currentColor"}),t.jsx("path",{d:"M2.79102 19.7039C2.79102 20.7449 3.60796 21.5889 4.61571 21.5889H12.1292C13.1369 21.5889 13.9539 20.7449 13.9539 19.7039C13.9539 18.6628 13.1369 17.8189 12.1292 17.8189H4.61571C3.60796 17.8189 2.79102 18.6628 2.79102 19.7039Z",fill:"currentColor"}),t.jsx("path",{d:"M0 14.094C0 13.0529 0.816945 12.209 1.8247 12.209H12.1289C13.1366 12.209 13.9536 13.0529 13.9536 14.094C13.9536 15.135 13.1366 15.979 12.1289 15.979H1.8247C0.816946 15.979 0 15.135 0 14.094Z",fill:"currentColor"}),t.jsx("path",{d:"M22.7002 25.448C22.7002 26.4891 21.8833 27.333 20.8755 27.333H17.8701C16.8624 27.333 16.0454 26.4891 16.0454 25.448C16.0454 24.407 16.8624 23.563 17.8701 23.563H20.8755C21.8832 23.563 22.7002 24.407 22.7002 25.448Z",fill:"currentColor"}),t.jsx("path",{d:"M22.7002 2.55199C22.7002 1.51094 21.8833 0.666992 20.8755 0.666992H17.8701C16.8624 0.666992 16.0454 1.51094 16.0454 2.55199C16.0454 3.59305 16.8624 4.43699 17.8701 4.43699H20.8755C21.8832 4.43699 22.7002 3.59305 22.7002 2.55199Z",fill:"currentColor"}),t.jsx("path",{d:"M27.209 19.7029C27.209 20.7439 26.392 21.5879 25.3843 21.5879H17.8708C16.8631 21.5879 16.0461 20.7439 16.0461 19.7029C16.0461 18.6618 16.8631 17.8179 17.8708 17.8179H25.3843C26.392 17.8179 27.209 18.6618 27.209 19.7029Z",fill:"currentColor"}),t.jsx("path",{d:"M27.209 8.29613C27.209 7.25508 26.392 6.41113 25.3843 6.41113H17.8708C16.8631 6.41113 16.0461 7.25508 16.0461 8.29613C16.0461 9.33719 16.8631 10.1811 17.8708 10.1811H25.3843C26.392 10.1811 27.209 9.33719 27.209 8.29613Z",fill:"currentColor"}),t.jsx("path",{d:"M30 14.093C30 13.052 29.1831 12.208 28.1753 12.208H17.8711C16.8634 12.208 16.0464 13.052 16.0464 14.093C16.0464 15.1341 16.8634 15.978 17.8711 15.978H28.1753C29.1831 15.978 30 15.1341 30 14.093Z",fill:"currentColor"})]}),Ge=()=>t.jsxs(Ze,{children:[t.jsx(Ve,{children:t.jsx(Oe,{children:t.jsx(Ne,{})})}),t.jsx(Ue,{children:"Graph Mindset"})]}),Ze=x(_).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` - height: 64px; - box-sizing: border-box; - padding: 20px 23px; - gap: 0px; - z-index: 50; - position: relative; -`,Ve=x(_)` - align-items: center; - justify-content: center; - cursor: pointer; -`,Oe=x.div` - display: flex; - align-items: center; - justify-content: center; - - svg { - width: 30px; - height: 27px; - color: ${C.white}; - } -`,Ue=x(V)` - width: 127px; - height: 24px; - color: ${C.white}; - font-family: Barlow; - font-size: 22px; - font-style: normal; - font-weight: 700; - line-height: 24px; - letter-spacing: 0.22px; - margin-left: 16px; - white-space: nowrap; -`,qe=e=>t.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 7 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M4.77978 6.00243L0.706705 1.92933C0.568239 1.79088 0.497405 1.61684 0.494205 1.40723C0.490989 1.19763 0.561822 1.02039 0.706705 0.875528C0.851572 0.730645 1.02721 0.658203 1.23361 0.658203C1.44001 0.658203 1.61564 0.730645 1.7605 0.875528L6.25473 5.36975C6.34833 5.46334 6.41436 5.56205 6.45281 5.6659C6.49127 5.76974 6.51051 5.88191 6.51051 6.00243C6.51051 6.12294 6.49127 6.23512 6.45281 6.33895C6.41436 6.4428 6.34833 6.54152 6.25473 6.6351L1.7605 11.1293C1.62205 11.2678 1.44802 11.3386 1.2384 11.3418C1.0288 11.345 0.851572 11.2742 0.706705 11.1293C0.561822 10.9845 0.48938 10.8088 0.48938 10.6024C0.48938 10.396 0.561822 10.2204 0.706705 10.0755L4.77978 6.00243Z",fill:"currentColor"})}),Ye=({imageUrl:e,title:r,subtitle:s,onClick:n})=>{const o=r.length>35?`${r.substring(0,32)}...`:r,p=s.length>50?`${s.substring(0,47)}...`:s;return t.jsxs(Xe,{onClick:n,children:[t.jsx(Qe,{children:t.jsx(Je,{alt:r,src:e})}),t.jsxs(Ke,{children:[t.jsx(et,{children:o}),t.jsx(tt,{children:p})]})]})},Xe=x(_)` - background: ${C.BG1}; - width: 170px; - height: 200px; - color: ${C.white}; - padding: 16px; - border-radius: 8px; - cursor: pointer; - display: flex; - flex-direction: column; - align-items: center; - &:hover { - background: ${C.SEEDQUESTION_HOVER}; - } - &:active { - background: ${C.SEEDQUESTION}; - } -`,Qe=x.div` - width: 100%; - height: 140px; /* Fixed height for images */ - border-radius: 6px; - overflow: hidden; - margin-bottom: 12px; - display: flex; - justify-content: center; - align-items: center; -`,Je=x.img` - width: 100%; - height: 100%; - object-fit: cover; -`,Ke=x(_)` - flex-direction: column; - justify-content: flex-start; - gap: 8px; -`,et=x.p` - font-size: 16px; - font-weight: 500; - line-height: 19px; - color: ${C.white}; - margin: 0; - white-space: wrap; - overflow: hidden; - text-overflow: ellipsis; -`,tt=x.p` - font-family: Inter; - font-size: 14px; - font-weight: 400; - line-height: 17px; - color: ${C.GRAY6}; - margin: 0; - white-space: wrap; - overflow: hidden; - text-overflow: ellipsis; -`,rt=/^(https?:\/\/)/,st=/(www\.)?/,nt=/[\w-]+(\.[\w-]+)*/,ot=/(?:\.[a-zA-Z0-9][a-zA-Z0-9-]{0,61})[a-zA-Z0-9](?:\.[a-zA-Z]{2,})/,it=/(\/[^\s?]*)?/,at=/(\?[^\s]*)?/,ct=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,lt=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,pt=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,ut=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,dt=new RegExp(`${rt.source}${st.source}${nt.source}${ot.source}?${it.source}${at.source}$`,"i"),ft=e=>{try{if(!(e==null?void 0:e.match(dt)))return!1;const n=new URL(e).hostname;return n!=null&&n.startsWith("www.")?((n==null?void 0:n.match(/\./g))||[]).length>=2:((n==null?void 0:n.match(/\./g))||[]).length>=1}catch{return!1}},Q=e=>ft(e)?[ct,lt,pt,ut].some(s=>s.test(e)):!1,ht=async e=>{const r="add_node",s={};s.media_url=e.source,s.content_type="audio_video";const n=await de.post(`/${r}`,JSON.stringify(s));if(n.error){const{message:o}=n.error;throw new Error(o)}return n},xt=()=>{const[e,r]=a.useState(""),[s,n]=a.useState(!1),[o,p]=a.useState(""),[f,l]=a.useState([]),{setRunningProjectId:c}=D(d=>d),{setSelectedEpisodeId:i,setSelectedEpisodeLink:h}=N(d=>d),{setSchemas:m}=K(d=>d),g=d=>d.nodes.filter(u=>{var v;return u.node_type.toLowerCase()==="episode"&&((v=u.properties)==null?void 0:v.date)}).slice(0,3);a.useEffect(()=>{(async()=>{try{const u=await pe(),v=g(u);l(v);const R=await ue();m(R.schemas.filter(y=>!y.is_deleted))}catch(u){console.error("Error fetching schema:",u)}})()},[m]);const w=d=>{const{value:u}=d.target;r(u),n(u!==""&&!Q(u))},j=async d=>{const u=d||e;if(Q(u))try{const v=await ht({source:u});v.data.project_id&&c(v.data.project_id),v.data.ref_id&&(i(v.data.ref_id),h(u))}catch(v){let R=Y;if((v==null?void 0:v.status)===400){const y=await v.json();R=y.errorCode||(y==null?void 0:y.status)||Y,y.data.ref_id&&(i(y.data.ref_id),h(u))}else v instanceof Error&&(R=v.message);p(String(R))}};return t.jsxs(mt,{children:[t.jsx(gt,{children:"Ideas have shapes"}),t.jsxs(wt,{children:[t.jsx(yt,{error:s,onChange:w,onKeyDown:d=>d.key==="Enter"&&j(),placeholder:"Paste podcast or video link",value:e}),t.jsx(jt,{error:s,onClick:s?void 0:()=>j(),children:t.jsx(qe,{})})]}),o&&t.jsx("div",{children:o}),t.jsx(bt,{children:f.map(d=>{var u,v;return t.jsx(Ye,{imageUrl:((u=d==null?void 0:d.properties)==null?void 0:u.image_url)||"",onClick:()=>{var R;return j((R=d==null?void 0:d.properties)==null?void 0:R.source_link)},subtitle:"",title:((v=d==null?void 0:d.properties)==null?void 0:v.episode_title)||""},d==null?void 0:d.ref_id)})})]})},mt=x(_)` - background: #16161de3; - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 0; - color: #fff; - align-items: center; - justify-content: center; - font-size: 32px; - font-style: normal; - font-weight: 700; - line-height: 16px; - font-family: 'Barlow'; - z-index: 40; -`,gt=x(_)` - color: ${C.white}; - font-family: Barlow; - font-size: 32px; - font-weight: 700; - margin-bottom: 40px; - text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25); -`,yt=x.input` - width: 100%; - max-width: 648px; - padding: 12px 28px 12px 16px; - border-radius: 100px; - border: 1px solid ${e=>e.error?"red":C.DIVIDER_4}; - background: ${C.INPUT_BG}; - color: ${C.white}; - font-family: Barlow; - font-size: 16px; - &::placeholder { - color: ${C.INPUT_PLACEHOLDER}; - } - &:focus { - outline: none; - border-color: ${e=>e.error?"red":C.primaryBlue}; - } -`,wt=x.div` - position: relative; - width: 648px; - display: flex; - align-items: center; -`,jt=x.div` - position: absolute; - right: 16px; - top: 50%; - transform: translateY(-50%); - color: ${C.white}; - font-size: 20px; - cursor: ${e=>e.error?"not-allowed":"pointer"}; - svg { - width: 8px; - height: 17px; - color: ${C.GRAY6}; - } -`,bt=x.div` - display: flex; - align-items: center; - justify-content: center; - gap: 16px; - margin-top: 20px; - max-width: 648px; - height: 237px; -`,re=a.memo(()=>{const{isPlaying:e,playerRef:r}=H(p=>p),s=()=>{if(r){const p=r.getCurrentTime()-15;r.seekTo(p,"seconds")}},n=()=>{if(r){const p=r.getCurrentTime()+15;r.seekTo(p,"seconds")}},o=()=>{if(r){if(e){r.getInternalPlayer().pauseVideo();return}r.getInternalPlayer().playVideo()}};return t.jsxs(Ct,{children:[t.jsx(St,{onClick:s,children:t.jsx("img",{alt:"",src:"RewindIcon.svg"})}),t.jsx(vt,{"data-testid":"play-pause-button",onClick:o,size:"small",children:e?t.jsx(me,{"data-testid":"pause-icon"}):t.jsx(ge,{"data-testid":"play-icon"})}),t.jsx(_t,{onClick:n,children:t.jsx("img",{alt:"",src:"ForwardIcon.svg"})})]})});re.displayName="Controls";const Ct=x(_).attrs({direction:"row",align:"center",justify:"flex-start"})` - width: 142px; - height: 54px; - background: ${C.BG1}; - border-radius: 40px; - margin-right: 54px; - color: ${C.white}; - font-size: 20px; - padding: 12px; - justify-content: space-between; - box-sizing: border-box; -`,vt=x(ye)` - && { - font-size: 36px; - padding: 2px; - overflow: hidden; - } -`,St=x.div` - display: flex; - align-items: center; - justify-content: center; - margin: 1px 0 0 1px; - cursor: pointer; - img { - width: 20px; - height: auto; - } -`,_t=x.div` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - img { - width: 24px; - height: auto; - } -`,se=a.memo(({type:e,left:r,img:s})=>{var c,i;const[n]=K(h=>[h.normalizedSchemasByType]),o=(c=n[e])==null?void 0:c.primary_color,p=(i=n[e])==null?void 0:i.icon,f=p?`svg-icons/${p}.svg`:"",l={iconStart:s||f,color:o??C.THING};return t.jsx(Tt,{style:{left:`${r}%`},children:t.jsx(ne,{...l,label:e})})});se.displayName="Marker";const ne=a.memo(({iconStart:e,color:r,label:s})=>t.jsx(Et,{color:r,children:e&&t.jsx("img",{alt:s,className:"badge__img",src:e})}));ne.displayName="Badge";const Et=x(_).attrs({direction:"row"})` - cursor: pointer; - background: ${({color:e})=>e}; - border-radius: 3px; - overflow: hidden; - justify-content: center; - align-items: center; - - .badge__img { - width: 10px; - height: 10px; - object-fit: contain; - } -`,Tt=x.div` - position: absolute; - top: -6px; - width: 12px; - height: 12px; - border-radius: 4px; - background-color: ${C.white}; - transform: translateX(-50%); - transform: translateX(-50%) translateY(-50%); - top: 50%; - display: flex; - align-items: center; - justify-content: center; -`,oe=a.memo(({markers:e,duration:r})=>t.jsx(t.Fragment,{children:e.map(s=>{var f;const n=((s==null?void 0:s.start)||0)/r*100,o=(s==null?void 0:s.node_type)||"",p=((f=s==null?void 0:s.properties)==null?void 0:f.image_url)||"";return t.jsx(se,{img:p,left:n,type:o},s.ref_id)})}));oe.displayName="Markers";const Rt=({duration:e,markers:r,handleProgressChange:s,playingTIme:n})=>{const o=10/e*100;return t.jsxs(Pt,{children:[t.jsx($t,{max:e,onChange:s,value:n,width:o}),t.jsx(oe,{duration:e,markers:r})]})},Pt=x(_)` - position: relative; - flex: 1 1 100%; -`,$t=x(Se)` - && { - z-index: 20; - color: ${C.white}; - height: 3px; - width: calc(100% - 12px); - box-sizing: border-box; - .MuiSlider-track { - border: none; - } - .MuiSlider-thumb { - width: ${({width:e})=>`${e}%`}; - height: 54px; - border-radius: 8px; - background-color: ${C.primaryBlue}; - opacity: 0.2; - &:before { - box-shadow: '0 4px 8px rgba(0,0,0,0.4)'; - } - &:hover, - &.Mui-focusVisible, - &.Mui-active { - box-shadow: none; - } - } - } -`,zt=({markers:e})=>{const{playingNode:r,playerRef:s}=H(c=>c),[n,o]=a.useState(0),p=r,f=a.useCallback((c,i)=>{const h=Array.isArray(i)?i[0]:i;s&&s.seekTo(h,"seconds")},[s]);a.useEffect(()=>{const c=setInterval(()=>{if(s&&o){const i=s.getCurrentTime();o(i)}},500);return()=>clearInterval(c)},[s,o]);const l=(s==null?void 0:s.getDuration())||0;return p?t.jsxs(It,{children:[t.jsx(re,{}),t.jsx(Rt,{duration:l,handleProgressChange:f,markers:e,playingTIme:n})]}):null},It=x(_).attrs({direction:"row",align:"center",justify:"space-between"})` - padding: 20px; - background: ${C.BG2}; - height: 96px; - margin-top: 16px; - border-radius: 8px; - box-sizing: border-box; -`,Mt=({sourcePosition:e,targetPosition:r,color:s="white",arrowSize:n=1,label:o="label"})=>{const{points:p,textPosition:f}=a.useMemo(()=>{const l=new M(e.x,e.y,e.z),c=new M(r.x,r.y,r.z),i=new M().subVectors(c,l).normalize(),h=new M().addVectors(l,c).multiplyScalar(.5),m=new M().copy(i).multiplyScalar(-n).applyAxisAngle(new M(0,0,1),Math.PI/6),g=new M().copy(i).multiplyScalar(-n).applyAxisAngle(new M(0,0,1),-Math.PI/6);return{points:[l,c,c.clone(),c.clone().add(m),c.clone(),c.clone().add(g)],textPosition:h}},[e,r,n]);return t.jsxs(t.Fragment,{children:[t.jsxs("line",{children:[t.jsx("bufferGeometry",{children:t.jsx("bufferAttribute",{array:new Float32Array(p.flatMap(l=>[l.x,l.y,l.z])),attach:"attributes-position",count:p.length,itemSize:3})}),t.jsx("lineBasicMaterial",{color:s})]}),o&&t.jsx(Pe,{anchorX:"center",anchorY:"middle",color:s,...$e,position:f,children:o})]})},kt=(e,r,s)=>{const n=new Ae;return n.moveTo(-e/2+s,-r/2),n.lineTo(e/2-s,-r/2),n.quadraticCurveTo(e/2,-r/2,e/2,-r/2+s),n.lineTo(e/2,r/2-s),n.quadraticCurveTo(e/2,r/2,e/2-s,r/2),n.lineTo(-e/2+s,r/2),n.quadraticCurveTo(-e/2,r/2,-e/2,r/2-s),n.lineTo(-e/2,-r/2+s),n.quadraticCurveTo(-e/2,-r/2,-e/2+s,-r/2),n},Wt=({width:e,height:r,radius:s,color:n})=>{const o=kt(e,r,s);return t.jsxs("mesh",{children:[t.jsx("shapeGeometry",{args:[o]}),t.jsx("meshBasicMaterial",{color:n,opacity:.9,transparent:!0})]})},Ht=({name:e,url:r,type:s})=>t.jsxs(At,{children:[r&&t.jsx("img",{alt:"",className:"image",src:r}),t.jsx("div",{className:"title",children:e}),t.jsx("div",{className:"badge",children:t.jsx(we,{type:s})}),t.jsx("div",{className:"action-btn",children:t.jsx(je,{})})]}),At=x(_)` - position: relative; - padding: 14px; - padding-right: 28px; - flex: 1; - width: 100%; - box-sizing: border-box; - - .title { - margin-top: 8px; - } - - .badge { - position: absolute; - top: 0; - left: 50%; - transform: translateX(-50%); - } - - .image { - width: 32px; - height: 32px; - border-radius: 50%; - margin-bottom: 8px; - object-fit: cover; - } - - .action-btn { - top: 14px; - right: 14px; - color: ${C.GRAY6}; - position: absolute; - } -`,Z=a.memo(({width:e,height:r,position:s,url:n,onButtonClick:o,name:p,type:f,color:l})=>{const{camera:c}=W();return t.jsxs("group",{position:s,children:[t.jsx(Wt,{color:l,height:r,radius:1.5,width:e}),!1,t.jsx(ze,{position:[-e/2,r/2,0],children:t.jsx(_,{onClick:()=>o(),style:{fontSize:"12px",color:"white",fontWeight:600,width:`${e*c.zoom}px`,height:`${r*c.zoom}px`,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"8px",pointerEvents:"auto"},children:t.jsx(Ht,{name:`${p}`,type:f||"",url:n})})})]})});Z.displayName="Node";const J=144/10,G=84/10,Ft=()=>{const e=W(),{dataInitial:r}=D(o=>o),{viewport:s}=e,n=a.useMemo(()=>{if(!r)return{nodes:[],edges:[],relatedNodes:{}};const o=r.links.filter(c=>{var i;return(i=c==null?void 0:c.properties)==null?void 0:i.start}).map(c=>{var i;return{source:c.source,target:c.target,start:(i=c.properties)==null?void 0:i.start}}),p=r.nodes.filter(c=>r.links.some(i=>i.source===c.ref_id||i.target===c.ref_id)).map(c=>{const i=o.find(w=>c.ref_id===w.source||c.ref_id===w.target),h=((i==null?void 0:i.start)||0)*(s.width/10);return{...c,x:h,y:0,z:0,start:(i==null?void 0:i.start)||0}}).filter(c=>c.node_type!=="Clip"&&c.node_type!=="Episode"&&c.node_type!=="Show"),f=p.reduce((c,i)=>{const h=r.links.filter(j=>{var d;return!((d=j==null?void 0:j.properties)!=null&&d.start)&&[j.target,j.source].includes(i.ref_id)}),g=r.nodes.filter(j=>j.node_type!=="Episode"&&j.node_type!=="Clip"&&j.ref_id!==i.ref_id&&h.some(d=>[d.source,d.target].includes(j.ref_id))).map((j,d)=>{const{x:u}=i,v=(Math.floor(d/2)+1)*G*2*(d%2===0?1:-1);return{...j,x:u,y:v,z:0}}),w=h.map(j=>{if(j.source===i.ref_id){const u=g.find(v=>v.ref_id===j.target);return{...j,sourcePositions:{x:i.x,y:i.y,z:i.z},targetPositions:{x:u==null?void 0:u.x,y:u==null?void 0:u.y,z:u==null?void 0:u.z}}}const d=g.find(u=>u.ref_id===j.source);return{...j,sourcePositions:{x:d==null?void 0:d.x,y:d==null?void 0:d.y,z:d==null?void 0:d.z},targetPositions:{x:i.x,y:i.y,z:i.z}}});return c[i.ref_id]={nodes:g,edges:w},c},{}),l=Object.values(f).flatMap(c=>c.edges).filter(c=>{var i;return(i=c==null?void 0:c.sourcePositions)==null?void 0:i.x});return{nodes:p,edges:l,relatedNodes:Object.fromEntries(Object.entries(f).map(([c,i])=>[c,i.nodes]))}},[r,s.width]);return t.jsxs(t.Fragment,{children:[n.nodes.map(o=>{var p,f;return t.jsxs(a.Fragment,{children:[t.jsx(Z,{color:"#353A46",height:G,name:((p=o==null?void 0:o.properties)==null?void 0:p.name)||"",onButtonClick:console.log,position:[o.x,o.y,o.z],type:o.node_type,url:((f=o==null?void 0:o.properties)==null?void 0:f.image_url)||"logo.png",width:J}),(n.relatedNodes[o.ref_id]||[]).map(l=>{var c,i;return t.jsx(Z,{color:"#353A46",height:G,name:((c=l==null?void 0:l.properties)==null?void 0:c.name)||"",onButtonClick:console.log,position:[l.x,l.y,l.z],type:l.node_type,url:((i=l==null?void 0:l.properties)==null?void 0:i.image_url)||"logo.png",width:J},`${l.ref_id}-${o.ref_id}`)})]},o.ref_id)}),n.edges.map((o,p)=>o!=null&&o.sourcePositions&&(o!=null&&o.targetPositions)?t.jsx(Mt,{label:o.edge_type||"",sourcePosition:new M(o.sourcePositions.x,o.sourcePositions.y,o.sourcePositions.z),targetPosition:new M(o.targetPositions.x,o.targetPositions.y,o.targetPositions.z)},`edge-${p}`):null)]})},Lt=()=>{const{camera:e,viewport:r}=W(),s=H(n=>n.playerRef);return te(()=>{if(s){const n=s.getCurrentTime();e.position.x=n*r.width/10}}),null},Bt=()=>{const{camera:e,gl:r}=W();return a.useEffect(()=>{const s=e,n=p=>{p.preventDefault(),p.ctrlKey&&(s.zoom+=p.deltaY*-.1,s.zoom=Math.max(2,Math.min(s.zoom,20))),s.position.x+=p.deltaX*.1,s.updateProjectionMatrix()},o=r.domElement;return o.addEventListener("wheel",n,{passive:!1}),()=>{o.removeEventListener("wheel",n)}},[e,r]),null},ie=a.memo(()=>(console.log("rerender"),t.jsx("div",{style:{width:"100%",height:"100%",position:"relative"},children:t.jsxs(Ie,{orthographic:!0,children:[t.jsx(Lt,{}),t.jsx(Be,{far:2e3,makeDefault:!0,near:1,position:[0,0,20],zoom:10}),t.jsx(Ft,{}),t.jsx(Bt,{})]})})));ie.displayName="Scene";const Dt=(e,r)=>{let s=0,n=e.length-1;for(;s<=n;){const o=Math.floor((s+n)/2),p=e[o],{start:f,end:l}=p.properties;if(r>=f&&r<=l)return p;r{const r=a.useRef(null),[s,n]=a.useState("ready"),[o,p]=a.useState(!1),{setActiveEdge:f}=be(P=>P),{dataInitial:l}=D(P=>P),{isPlaying:c,playingTime:i,setIsPlaying:h,setPlayingTime:m,setDuration:g,playingNode:w,volume:j,setHasError:d,resetPlayer:u,isSeeking:v,setIsSeeking:R,setPlayerRef:y,playerRef:S}=H(P=>P);a.useEffect(()=>()=>u(),[u]),a.useEffect(()=>{w&&!o&&(m(0),g(0),p(!1))},[w,m,g,p,o]),a.useEffect(()=>{v&&S&&(S.seekTo(i,"seconds"),R(!1))},[i,v,R,S]);const b=()=>{h(!c)},T=a.useCallback(()=>{h(!0)},[h]),k=a.useCallback(()=>{h(!1)},[h]),L=()=>{d(!0),n("error")},B=a.useMemo(()=>((l==null?void 0:l.links.filter(I=>{var F;return(F=I==null?void 0:I.properties)==null?void 0:F.start}))||[]).slice().sort((I,F)=>{var U,q;return((U=I==null?void 0:I.properties)==null?void 0:U.start)-((q=F==null?void 0:F.properties)==null?void 0:q.start)}),[l]),$=P=>{if(!v){const O=P.playedSeconds,I=Dt(B,O);f(I||null)}},z=()=>{S&&n("ready")},E=()=>{b()},A=a.useCallback(P=>{!S&&P&&y(P)},[y,S]);return e?t.jsxs(Gt,{ref:r,tabIndex:0,children:[t.jsx(Zt,{isFullScreen:!1,children:t.jsx(Ce,{size:120,src:(w==null?void 0:w.image_url)||"",type:"clip"})}),t.jsx(Ot,{isFullScreen:!1,onClick:E,children:t.jsx(_e,{ref:A,height:"219px",onBuffer:()=>n("buffering"),onBufferEnd:()=>n("ready"),onError:L,onPause:k,onPlay:T,onProgress:$,onReady:z,playing:c,url:e||"",volume:j,width:"100%"})}),s==="error"?t.jsx(Vt,{className:"error-wrapper",children:"Error happened, please try later"}):null]}):null},Gt=x(_)` - border-bottom: 1px solid rgba(0, 0, 0, 0.25); - background: rgba(0, 0, 0, 0.2); - position: relative; - overflow: hidden; - height: auto; - &:focus { - outline: none; - } -`,Zt=x(_)` - position: absolute; - top: ${e=>e.isFullScreen?"38%":"18%"}; - left: 50%; - transform: translateX(-50%); - z-index: -1; -`,Vt=x(_)` - height: 60px; - padding: 12px 16px; - color: ${C.primaryRed}; -`,Ot=x.div` - margin: ${e=>e.isFullScreen?"80px auto":"0"}; - width: 100%; - cursor: pointer; -`,Ut=a.memo(Nt),ae=a.forwardRef(({active:e,start:r,text:s},n)=>t.jsxs(Yt,{ref:n,className:fe({active:e}),children:[t.jsx(Xt,{children:r}),t.jsx(Qt,{children:t.jsx("span",{children:s})})]}));ae.displayName="ParagraphComponent";const qt=a.memo(ae,(e,r)=>e.active===r.active),Yt=x(_)` - flex-direction: row; - align-items: flex-start; - font-size: 14px; - padding: 8px 24px; - &.active { - background: ${C.AI_HIGHLIGHT}; - } -`,Xt=x.span` - background: ${C.lightBlue100}; - color: ${C.lightBlue500}; - padding: 2px; - margin-right: 8px; - border-radius: 4px; -`,Qt=x.div` - margin: 0 2px; - word-break: break-word; - - &.active { - background: ${C.AI_HIGHLIGHT}; - } -`,Jt=({transcriptString:e})=>{const[r,s]=a.useState(0),[n,o]=a.useState(!1),{playerRef:p}=H(m=>m),f=e.replace(/^["']|["']$/g,""),l=JSON.parse(f),c=a.useRef(null),i=a.useRef(null),h=a.useRef(null);return a.useEffect(()=>{const m=setInterval(()=>{if(p&&s){const g=p.getCurrentTime();s(g)}},100);return()=>clearInterval(m)},[p,s]),a.useEffect(()=>{const m=()=>{o(!0),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{o(!1)},1e3)},g=i.current;return g&&g.addEventListener("scroll",m),()=>{g&&g.removeEventListener("scroll",m)}},[]),a.useEffect(()=>{!n&&c.current&&c.current.scrollIntoView({behavior:"smooth",block:"center"})},[r,n]),t.jsx(Kt,{ref:i,children:l.map(m=>{const g=Ee(m.start),w=m.start{const{selectedEpisodeId:e}=N(f=>f),{playerRef:r}=H(f=>f),[s,n]=a.useState(0),[o,p]=a.useState([]);return a.useEffect(()=>{e&&(async()=>{try{const l=await ee(e,0,50,{nodeType:["Clip"],useSubGraph:!1});l!=null&&l.nodes&&p(l.nodes)}catch(l){console.error(l)}})()},[e]),a.useEffect(()=>{const f=setInterval(()=>{if(r&&n){const l=r.getCurrentTime();n(l)}},100);return()=>clearInterval(f)},[r,n]),s?t.jsxs(tr,{children:[t.jsx(_,{className:"heading",children:"Transcript"}),o.map(f=>{var h,m,g;const l=(h=f==null?void 0:f.properties)==null?void 0:h.timestamp,[c,i]=l?l.split("-").map(Number):[0,0];return c<=s*1e3&&s*1e3{var s,n;const{selectedEpisodeLink:e,selectedEpisode:r}=N(o=>o);return t.jsxs(nr,{align:"stretch",basis:"100%",grow:1,shrink:1,children:[t.jsxs(ar,{children:[(r==null?void 0:r.name)&&t.jsx(ir,{children:r==null?void 0:r.name}),((s=r==null?void 0:r.properties)==null?void 0:s.text)&&t.jsx(or,{children:(n=r==null?void 0:r.properties)==null?void 0:n.text}),e&&t.jsx(Ut,{mediaUrl:e})]}),t.jsx(er,{})]})},nr=x(_)(({theme:e})=>({position:"relative",display:"flex",padding:"33px 20px 20px 20px",background:"transparent",width:"100%",[e.breakpoints.up("sm")]:{width:Te}})),or=x(V)` - font-size: 20px; - font-weight: Bold; - line-height: 24.2px; - overflow-wrap: break-word; - white-space: normal; - word-break: break-word; - margin-right: 10px; - font-weight: 500; -`,ir=x(V)` - font-size: 14px; - font-weight: 700; - line-height: 16.94px; - margin-bottom: 12px; -`,ar=x(_)(({theme:e})=>({width:"100%",margin:"0 auto 16px",[e.breakpoints.up("sm")]:{width:"390px"}})),vr=()=>{const{addNewNode:e,isFetching:r,runningProjectId:s}=D(y=>y),[n,o]=a.useState(null),[p,f]=a.useState(!1),{selectedEpisodeId:l,setSelectedEpisode:c}=N(y=>y),i=ve(),h=a.useRef(null),m=a.useRef(null),g=a.useRef(null),w=a.useRef(null),j=a.useRef(null),{setPlayingNode:d}=H(y=>y),u=a.useCallback(y=>{r||(w.current||(w.current={nodes:[],edges:[]}),y.edges&&w.current.edges.push(...y.edges),y.nodes&&w.current.nodes.push(...y.nodes),j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{if(w.current){const{nodes:S,edges:b}=w.current,T={nodes:S,edges:b};w.current={nodes:[],edges:[]},e(T)}},3e3))},[e,r]),v=a.useCallback(y=>{console.log(y,"uuuuuupdate")},[]);a.useEffect(()=>{l&&(async()=>{try{const S=await ee(l,0,50);o(S);const[b,T]=((S==null?void 0:S.nodes)||[]).reduce(([$,z],E)=>(["Episode","Show"].includes(E.node_type)?$.push(E):z.push(E),[$,z]),[[],[]]),k=new Set(b.map($=>$.ref_id)),[L,B]=((S==null?void 0:S.edges)||[]).reduce(([$,z],E)=>(k.has(E.source)&&k.has(E.target)?$.push(E):z.push(E),[$,z]),[[],[]]);g.current={nodes:T||[],edges:B||[]},u({nodes:b,edges:L})}catch(S){console.error(S)}})()},[l,u]),a.useEffect(()=>{l&&(async()=>{try{const S=await he(l);S&&(d(S),c(S))}catch(S){console.error(S)}})()},[l,d,c]),a.useEffect(()=>(i&&(i.connect(),i.on("connect_error",y=>{console.error("Socket connection error:",y)}),s&&(i.on("new_node_created",u),i.on("node_updated",v))),()=>{i&&i.off()}),[i,v,u,s]),a.useEffect(()=>{const y=S=>{const{playerRef:b}=H.getState();if(m.current!==null){if(S-m.current>2e3){if(g.current&&b){const{nodes:k,edges:L}=g.current,B=b==null?void 0:b.getCurrentTime(),$=L.filter(E=>{var A,P;return((A=E==null?void 0:E.properties)==null?void 0:A.start)!==void 0&&((P=E==null?void 0:E.properties)==null?void 0:P.start)$.some(A=>A.target===E.ref_id||A.source===E.ref_id));(z.length||$.length)&&e({nodes:z,edges:$})}m.current=S}}else m.current=S;h.current=requestAnimationFrame(y)};return h.current=requestAnimationFrame(y),()=>{h.current&&cancelAnimationFrame(h.current)}},[g,e]),a.useEffect(()=>{if(s)try{i==null||i.emit("update_project_id",{id:s})}catch(y){console.error(y)}},[s,i]);const R=a.useMemo(()=>{if(n){const y=n.edges.filter(b=>{var T;return(T=b==null?void 0:b.properties)==null?void 0:T.start}).map(b=>{var T;return{source:b.source,target:b.target,start:(T=b.properties)==null?void 0:T.start}});return n.nodes.filter(b=>n.edges.some(T=>T.source===b.ref_id||T.target===b.ref_id)).map(b=>{const T=y.find(k=>b.ref_id===k.source||b.ref_id===k.target);return{...b,start:(T==null?void 0:T.start)||0}}).filter(b=>b&&b.node_type!=="Clip"&&b.node_type!=="Episode"&&b.node_type!=="Show")}return[]},[n]);return t.jsx(_,{direction:"row",style:{height:"100%"},children:l?t.jsxs(t.Fragment,{children:[t.jsxs(_,{children:[t.jsx(_,{onClick:()=>f(!p),children:t.jsx(Ge,{})}),t.jsx(sr,{})]}),t.jsxs(_,{basis:"100%",grow:1,p:16,shrink:1,children:[t.jsx(_,{basis:"100%",grow:1,shrink:1,children:p?t.jsx(ie,{}):t.jsx(xe,{})}),t.jsx(zt,{markers:R})]})]}):t.jsx(xt,{})})};export{vr as MindSet}; diff --git a/build/assets/index-8304ea06.js b/build/assets/index-e4d37dbe.js similarity index 54% rename from build/assets/index-8304ea06.js rename to build/assets/index-e4d37dbe.js index b37313e28..ad871ef7c 100644 --- a/build/assets/index-8304ea06.js +++ b/build/assets/index-e4d37dbe.js @@ -1,57 +1,57 @@ -import{J as Ui,K as h3,R as Ve,L as N1,M as b,O as Wi,P as bt,S as _t,U as Se,y as V,V as Wt,r as p,X as Et,j as u,Y as _e,Z as $t,$ as p3,a0 as Ne,a1 as je,a2 as qr,a3 as Xr,a4 as hn,a5 as Jr,a6 as Gi,a7 as C3,c as Ki,u as pn,s as c1,a as s1,F as t1,E as g3,B as Yi,C as yr,a8 as m3,a9 as v3,k as qi,b as x3,d as w3,T as R1,aa as y3,I as b3}from"./index-f22e6e13.js";function _3(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const E3=e=>{const[t,n,r]=e.split(":"),o=parseInt(t,10),i=parseInt(n,10),s=parseInt(r,10);return o*3600+i*60+s};var Xi={exports:{}},$3="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",k3=$3,S3=k3;function Ji(){}function Qi(){}Qi.resetWarningCache=Ji;var j3=function(){function e(r,o,i,s,a,l){if(l!==S3){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:Qi,resetWarningCache:Ji};return n.PropTypes=n,n};Xi.exports=j3();var L3=Xi.exports;const Q=Ui(L3);function Qr(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function M3(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Y1(e){return e&&e.ownerDocument||document}function Ct(e){return Y1(e).defaultView||window}function O3(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const R3=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},eo=R3,to={disabled:!1};var P3=function(t){return t.scrollTop},at="unmounted",ve="exited",xe="entering",Ae="entered",Gn="exiting",ae=function(e){h3(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=ve,i.appearStatus=xe):l=Ae:r.unmountOnExit||r.mountOnEnter?l=at:l=ve,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===at?{status:ve}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==xe&&s!==Ae&&(i=xe):(s===xe||s===Ae)&&(i=Gn)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===xe){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ve.findDOMNode(this);s&&P3(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ve&&this.setState({status:at})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Ve.findDOMNode(this),a],c=l[0],d=l[1],f=this.getTimeouts(),h=a?f.appear:f.enter;if(!o&&!s||to.disabled){this.safeSetState({status:Ae},function(){i.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:xe},function(){i.props.onEntering(c,d),i.onTransitionEnd(h,function(){i.safeSetState({status:Ae},function(){i.props.onEntered(c,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ve.findDOMNode(this);if(!i||to.disabled){this.safeSetState({status:ve},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Gn},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:ve},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ve.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===at)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=N1(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(Wi.Provider,{value:null},typeof s=="function"?s(o,a):b.cloneElement(b.Children.only(s),a))},t}(b.Component);ae.contextType=Wi;ae.propTypes={};function Pe(){}ae.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pe,onEntering:Pe,onEntered:Pe,onExit:Pe,onExiting:Pe,onExited:Pe};ae.UNMOUNTED=at;ae.EXITED=ve;ae.ENTERING=xe;ae.ENTERED=Ae;ae.EXITING=Gn;const e0=ae,t0=e=>e.scrollTop;function Gt(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function T3(e){return bt("MuiPaper",e)}_t("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 H3=["className","component","elevation","square","variant"],I3=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return $t(i,T3,o)},A3=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 V({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"&&V({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Wt("#fff",eo(t.elevation))}, ${Wt("#fff",eo(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),V3=p.forwardRef(function(t,n){const r=Et({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=N1(r,H3),d=V({},r,{component:i,elevation:s,square:a,variant:l}),f=I3(d);return u.jsx(A3,V({as:i,ownerState:d,className:_e(f.root,o),ref:n},c))}),D3=V3;function N3(e){return bt("MuiIconButton",e)}const B3=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),z3=B3,Z3=["edge","children","className","color","disabled","disableFocusRipple","size"],F3=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Ne(r)}`,o&&`edge${Ne(o)}`,`size${Ne(i)}`]};return $t(s,N3,t)},U3=Se(p3,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Ne(n.color)}`],n.edge&&t[`edge${Ne(n.edge)}`],t[`size${Ne(n.size)}`]]}})(({theme:e,ownerState:t})=>V({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Wt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return V({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&V({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":V({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${z3.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),W3=p.forwardRef(function(t,n){const r=Et({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium"}=r,f=N1(r,Z3),h=V({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:d}),g=F3(h);return u.jsx(U3,V({className:_e(g.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:h},f,{children:i}))}),n0=W3;function r0(e){return typeof e=="string"}function G3(e,t,n){return e===void 0||r0(e)?t:V({},t,{ownerState:V({},t.ownerState,n)})}function o0(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function K3(e,t,n){return typeof e=="function"?e(t,n):e}function i0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Y3(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=no(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),C=V({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=V({},n,o,r);return g.length>0&&(v.className=g),Object.keys(C).length>0&&(v.style=C),{props:v,internalRef:void 0}}const s=o0(V({},o,r)),a=ro(r),l=ro(o),c=t(s),d=no(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=V({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=V({},c,n,l,a);return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}const q3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Kt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=N1(e,q3),a=i?{}:K3(r,o),{props:l,internalRef:c}=Y3(V({},s,{externalSlotProps:a})),d=je(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return G3(n,V({},l,{ref:d}),o)}const X3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function J3(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Q3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function e5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Q3(e))}function t5(e){const t=[],n=[];return Array.from(e.querySelectorAll(X3)).forEach((r,o)=>{const i=J3(r);i===-1||!e5(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function n5(){return!0}function r5(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=t5,isEnabled:s=n5,open:a}=e,l=p.useRef(!1),c=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(null),g=p.useRef(!1),C=p.useRef(null),v=je(t.ref,C),x=p.useRef(null);p.useEffect(()=>{!a||!C.current||(g.current=!n)},[n,a]),p.useEffect(()=>{if(!a||!C.current)return;const y=Y1(C.current);return C.current.contains(y.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),g.current&&C.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),p.useEffect(()=>{if(!a||!C.current)return;const y=Y1(C.current),_=k=>{x.current=k,!(r||!s()||k.key!=="Tab")&&y.activeElement===C.current&&k.shiftKey&&(l.current=!0,d.current&&d.current.focus())},E=()=>{const k=C.current;if(k===null)return;if(!y.hasFocus()||!s()||l.current){l.current=!1;return}if(k.contains(y.activeElement)||r&&y.activeElement!==c.current&&y.activeElement!==d.current)return;if(y.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let S=[];if((y.activeElement===c.current||y.activeElement===d.current)&&(S=i(C.current)),S.length>0){var L,O;const M=!!((L=x.current)!=null&&L.shiftKey&&((O=x.current)==null?void 0:O.key)==="Tab"),j=S[0],D=S[S.length-1];typeof j!="string"&&typeof D!="string"&&(M?D.focus():j.focus())}else k.focus()};y.addEventListener("focusin",E),y.addEventListener("keydown",_,!0);const $=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval($),y.removeEventListener("focusin",E),y.removeEventListener("keydown",_,!0)}},[n,r,o,s,a,i]);const m=y=>{f.current===null&&(f.current=y.relatedTarget),g.current=!0,h.current=y.target;const _=t.props.onFocus;_&&_(y)},w=y=>{f.current===null&&(f.current=y.relatedTarget),g.current=!0};return u.jsxs(p.Fragment,{children:[u.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:v,onFocus:m}),u.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}function o5(e){return typeof e=="function"?e():e}const i5=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=p.useState(null),l=je(p.isValidElement(r)?r.ref:null,n);if(qr(()=>{i||a(o5(o)||document.body)},[o,i]),qr(()=>{if(s&&!i)return Xr(n,s),()=>{Xr(n,null)}},[n,s,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return u.jsx(p.Fragment,{children:r})}return u.jsx(p.Fragment,{children:s&&hn.createPortal(r,s)})});function s5(e){const t=Y1(e);return t.body===e?Ct(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function dt(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function oo(e){return parseInt(Ct(e).getComputedStyle(e).paddingRight,10)||0}function a5(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function io(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!a5(s);a&&l&&dt(s,o)})}function Mn(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function l5(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(s5(r)){const s=O3(Y1(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${oo(r)+s}px`;const a=Y1(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${oo(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Y1(r).body;else{const s=r.parentElement,a=Ct(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function c5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class u5{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&dt(t.modalRef,!1);const o=c5(n);io(n,t.mount,t.modalRef,o,!0);const i=Mn(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Mn(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=l5(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Mn(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&dt(t.modalRef,n),io(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&dt(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function d5(e){return typeof e=="function"?e():e}function f5(e){return e?e.props.hasOwnProperty("in"):!1}const h5=new u5;function p5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=h5,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:f}=e,h=p.useRef({}),g=p.useRef(null),C=p.useRef(null),v=je(C,f),[x,m]=p.useState(!d),w=f5(l);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const _=()=>Y1(g.current),E=()=>(h.current.modalRef=C.current,h.current.mount=g.current,h.current),$=()=>{o.mount(E(),{disableScrollLock:r}),C.current&&(C.current.scrollTop=0)},k=Jr(()=>{const R=d5(t)||_().body;o.add(E(),R),C.current&&$()}),S=p.useCallback(()=>o.isTopModal(E()),[o]),L=Jr(R=>{g.current=R,R&&(d&&S()?$():C.current&&dt(C.current,y))}),O=p.useCallback(()=>{o.remove(E(),y)},[y,o]);p.useEffect(()=>()=>{O()},[O]),p.useEffect(()=>{d?k():(!w||!i)&&O()},[d,O,w,i,k]);const M=R=>I=>{var Z;(Z=R.onKeyDown)==null||Z.call(R,I),!(I.key!=="Escape"||I.which===229||!S())&&(n||(I.stopPropagation(),c&&c(I,"escapeKeyDown")))},j=R=>I=>{var Z;(Z=R.onClick)==null||Z.call(R,I),I.target===I.currentTarget&&c&&c(I,"backdropClick")};return{getRootProps:(R={})=>{const I=o0(e);delete I.onTransitionEnter,delete I.onTransitionExited;const Z=V({},I,R);return V({role:"presentation"},Z,{onKeyDown:M(Z),ref:v})},getBackdropProps:(R={})=>{const I=R;return V({"aria-hidden":!0},I,{onClick:j(I),open:d})},getTransitionProps:()=>{const R=()=>{m(!1),s&&s()},I=()=>{m(!0),a&&a(),i&&O()};return{onEnter:Qr(R,l==null?void 0:l.props.onEnter),onExited:Qr(I,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:L,isTopModal:S,exited:x,hasTransition:w}}const C5=["top","right","bottom","left"],he=Math.min,M1=Math.max,Yt=Math.round,It=Math.floor,pe=e=>({x:e,y:e}),g5={left:"right",right:"left",bottom:"top",top:"bottom"},m5={start:"end",end:"start"};function Kn(e,t,n){return M1(e,he(t,n))}function re(e,t){return typeof e=="function"?e(t):e}function oe(e){return e.split("-")[0]}function Ge(e){return e.split("-")[1]}function br(e){return e==="x"?"y":"x"}function _r(e){return e==="y"?"height":"width"}function Ke(e){return["top","bottom"].includes(oe(e))?"y":"x"}function Er(e){return br(Ke(e))}function v5(e,t,n){n===void 0&&(n=!1);const r=Ge(e),o=Er(e),i=_r(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=qt(s)),[s,qt(s)]}function x5(e){const t=qt(e);return[Yn(e),t,Yn(t)]}function Yn(e){return e.replace(/start|end/g,t=>m5[t])}function w5(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function y5(e,t,n,r){const o=Ge(e);let i=w5(oe(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Yn)))),i}function qt(e){return e.replace(/left|right|bottom|top/g,t=>g5[t])}function b5(e){return{top:0,right:0,bottom:0,left:0,...e}}function s0(e){return typeof e!="number"?b5(e):{top:e,right:e,bottom:e,left:e}}function Xt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function so(e,t,n){let{reference:r,floating:o}=e;const i=Ke(t),s=Er(t),a=_r(s),l=oe(t),c=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let g;switch(l){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-o.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Ge(t)){case"start":g[s]-=h*(n&&c?-1:1);break;case"end":g[s]+=h*(n&&c?-1:1);break}return g}const _5=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=so(c,r,l),h=r,g={},C=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=re(e,t)||{};if(c==null)return{};const f=s0(d),h={x:n,y:r},g=Er(o),C=_r(g),v=await s.getDimensions(c),x=g==="y",m=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",_=i.reference[C]+i.reference[g]-h[g]-i.floating[C],E=h[g]-i.reference[g],$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let k=$?$[y]:0;(!k||!await(s.isElement==null?void 0:s.isElement($)))&&(k=a.floating[y]||i.floating[C]);const S=_/2-E/2,L=k/2-v[C]/2-1,O=he(f[m],L),M=he(f[w],L),j=O,D=k-v[C]-M,T=k/2-v[C]/2+S,P=Kn(j,T,D),R=!l.arrow&&Ge(o)!=null&&T!=P&&i.reference[C]/2-(Tj<=0)){var L,O;const j=(((L=i.flip)==null?void 0:L.index)||0)+1,D=E[j];if(D)return{data:{index:j,overflows:S},reset:{placement:D}};let T=(O=S.filter(P=>P.overflows[0]<=0).sort((P,R)=>P.overflows[1]-R.overflows[1])[0])==null?void 0:O.placement;if(!T)switch(g){case"bestFit":{var M;const P=(M=S.map(R=>[R.placement,R.overflows.filter(I=>I>0).reduce((I,Z)=>I+Z,0)]).sort((R,I)=>R[1]-I[1])[0])==null?void 0:M[0];P&&(T=P);break}case"initialPlacement":T=a;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function lo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function co(e){return C5.some(t=>e[t]>=0)}const $5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=re(e,t);switch(r){case"referenceHidden":{const i=await gt(t,{...o,elementContext:"reference"}),s=lo(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:co(s)}}}case"escaped":{const i=await gt(t,{...o,altBoundary:!0}),s=lo(i,n.floating);return{data:{escapedOffsets:s,escaped:co(s)}}}default:return{}}}}};async function k5(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=oe(n),a=Ge(n),l=Ke(n)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,f=re(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:C}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof C=="number"&&(g=a==="end"?C*-1:C),l?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const S5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await k5(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},j5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:x=>{let{x:m,y:w}=x;return{x:m,y:w}}},...l}=re(e,t),c={x:n,y:r},d=await gt(t,l),f=Ke(oe(o)),h=br(f);let g=c[h],C=c[f];if(i){const x=h==="y"?"top":"left",m=h==="y"?"bottom":"right",w=g+d[x],y=g-d[m];g=Kn(w,g,y)}if(s){const x=f==="y"?"top":"left",m=f==="y"?"bottom":"right",w=C+d[x],y=C-d[m];C=Kn(w,C,y)}const v=a.fn({...t,[h]:g,[f]:C});return{...v,data:{x:v.x-n,y:v.y-r}}}}},L5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=re(e,t),d={x:n,y:r},f=Ke(o),h=br(f);let g=d[h],C=d[f];const v=re(a,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=h==="y"?"height":"width",_=i.reference[h]-i.floating[y]+x.mainAxis,E=i.reference[h]+i.reference[y]-x.mainAxis;g<_?g=_:g>E&&(g=E)}if(c){var m,w;const y=h==="y"?"width":"height",_=["top","left"].includes(oe(o)),E=i.reference[f]-i.floating[y]+(_&&((m=s.offset)==null?void 0:m[f])||0)+(_?0:x.crossAxis),$=i.reference[f]+i.reference[y]+(_?0:((w=s.offset)==null?void 0:w[f])||0)-(_?x.crossAxis:0);C$&&(C=$)}return{[h]:g,[f]:C}}}},M5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=re(e,t),l=await gt(t,a),c=oe(n),d=Ge(n),f=Ke(n)==="y",{width:h,height:g}=r.floating;let C,v;c==="top"||c==="bottom"?(C=c,v=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=c,C=d==="end"?"top":"bottom");const x=g-l[C],m=h-l[v],w=!t.middlewareData.shift;let y=x,_=m;if(f){const $=h-l.left-l.right;_=d||w?he(m,$):$}else{const $=g-l.top-l.bottom;y=d||w?he(x,$):$}if(w&&!d){const $=M1(l.left,0),k=M1(l.right,0),S=M1(l.top,0),L=M1(l.bottom,0);f?_=h-2*($!==0||k!==0?$+k:M1(l.left,l.right)):y=g-2*(S!==0||L!==0?S+L:M1(l.top,l.bottom))}await s({...t,availableWidth:_,availableHeight:y});const E=await o.getDimensions(i.floating);return h!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};function Ce(e){return a0(e)?(e.nodeName||"").toLowerCase():"#document"}function O1(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function le(e){var t;return(t=(a0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function a0(e){return e instanceof Node||e instanceof O1(e).Node}function ie(e){return e instanceof Element||e instanceof O1(e).Element}function q1(e){return e instanceof HTMLElement||e instanceof O1(e).HTMLElement}function uo(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof O1(e).ShadowRoot}function kt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=I1(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function O5(e){return["table","td","th"].includes(Ce(e))}function $r(e){const t=kr(),n=I1(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function R5(e){let t=Ze(e);for(;q1(t)&&!Cn(t);){if($r(t))return t;t=Ze(t)}return null}function kr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Cn(e){return["html","body","#document"].includes(Ce(e))}function I1(e){return O1(e).getComputedStyle(e)}function gn(e){return ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ze(e){if(Ce(e)==="html")return e;const t=e.assignedSlot||e.parentNode||uo(e)&&e.host||le(e);return uo(t)?t.host:t}function l0(e){const t=Ze(e);return Cn(t)?e.ownerDocument?e.ownerDocument.body:e.body:q1(t)&&kt(t)?t:l0(t)}function mt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=l0(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=O1(o);return i?t.concat(s,s.visualViewport||[],kt(o)?o:[],s.frameElement&&n?mt(s.frameElement):[]):t.concat(o,mt(o,[],n))}function c0(e){const t=I1(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=q1(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Yt(n)!==i||Yt(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Sr(e){return ie(e)?e:e.contextElement}function Be(e){const t=Sr(e);if(!q1(t))return pe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=c0(t);let s=(i?Yt(n.width):n.width)/r,a=(i?Yt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const P5=pe(0);function u0(e){const t=O1(e);return!kr()||!t.visualViewport?P5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function T5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==O1(e)?!1:t}function Ee(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Sr(e);let s=pe(1);t&&(r?ie(r)&&(s=Be(r)):s=Be(e));const a=T5(i,n,r)?u0(i):pe(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const h=O1(i),g=r&&ie(r)?O1(r):r;let C=h.frameElement;for(;C&&r&&g!==h;){const v=Be(C),x=C.getBoundingClientRect(),m=I1(C),w=x.left+(C.clientLeft+parseFloat(m.paddingLeft))*v.x,y=x.top+(C.clientTop+parseFloat(m.paddingTop))*v.y;l*=v.x,c*=v.y,d*=v.x,f*=v.y,l+=w,c+=y,C=O1(C).frameElement}}return Xt({width:d,height:f,x:l,y:c})}function H5(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=q1(n),i=le(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a=pe(1);const l=pe(0);if((o||!o&&r!=="fixed")&&((Ce(n)!=="body"||kt(i))&&(s=gn(n)),q1(n))){const c=Ee(n);a=Be(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}}function I5(e){return Array.from(e.getClientRects())}function d0(e){return Ee(le(e)).left+gn(e).scrollLeft}function A5(e){const t=le(e),n=gn(e),r=e.ownerDocument.body,o=M1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=M1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+d0(e);const a=-n.scrollTop;return I1(r).direction==="rtl"&&(s+=M1(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function V5(e,t){const n=O1(e),r=le(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=kr();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function D5(e,t){const n=Ee(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=q1(e)?Be(e):pe(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function fo(e,t,n){let r;if(t==="viewport")r=V5(e,n);else if(t==="document")r=A5(le(e));else if(ie(t))r=D5(t,n);else{const o=u0(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Xt(r)}function f0(e,t){const n=Ze(e);return n===t||!ie(n)||Cn(n)?!1:I1(n).position==="fixed"||f0(n,t)}function N5(e,t){const n=t.get(e);if(n)return n;let r=mt(e,[],!1).filter(a=>ie(a)&&Ce(a)!=="body"),o=null;const i=I1(e).position==="fixed";let s=i?Ze(e):e;for(;ie(s)&&!Cn(s);){const a=I1(s),l=$r(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||kt(s)&&!l&&f0(e,s))?r=r.filter(d=>d!==s):o=a,s=Ze(s)}return t.set(e,r),r}function B5(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?N5(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,d)=>{const f=fo(t,d,o);return c.top=M1(f.top,c.top),c.right=he(f.right,c.right),c.bottom=he(f.bottom,c.bottom),c.left=M1(f.left,c.left),c},fo(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function z5(e){return c0(e)}function Z5(e,t,n){const r=q1(t),o=le(t),i=n==="fixed",s=Ee(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=pe(0);if(r||!r&&!i)if((Ce(t)!=="body"||kt(o))&&(a=gn(t)),r){const c=Ee(t,!0,i,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=d0(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function ho(e,t){return!q1(e)||I1(e).position==="fixed"?null:t?t(e):e.offsetParent}function h0(e,t){const n=O1(e);if(!q1(e))return n;let r=ho(e,t);for(;r&&O5(r)&&I1(r).position==="static";)r=ho(r,t);return r&&(Ce(r)==="html"||Ce(r)==="body"&&I1(r).position==="static"&&!$r(r))?n:r||R5(e)||n}const F5=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||h0,i=this.getDimensions;return{reference:Z5(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function U5(e){return I1(e).direction==="rtl"}const W5={convertOffsetParentRelativeRectToViewportRelativeRect:H5,getDocumentElement:le,getClippingRect:B5,getOffsetParent:h0,getElementRects:F5,getClientRects:I5,getDimensions:z5,getScale:Be,isElement:ie,isRTL:U5};function G5(e,t){let n=null,r;const o=le(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:c,top:d,width:f,height:h}=e.getBoundingClientRect();if(a||t(),!f||!h)return;const g=It(d),C=It(o.clientWidth-(c+f)),v=It(o.clientHeight-(d+h)),x=It(c),w={rootMargin:-g+"px "+-C+"px "+-v+"px "+-x+"px",threshold:M1(0,he(1,l))||1};let y=!0;function _(E){const $=E[0].intersectionRatio;if($!==l){if(!y)return s();$?s(!1,$):r=setTimeout(()=>{s(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(_,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,w)}n.observe(e)}return s(!0),i}function K5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Sr(e),d=o||i?[...c?mt(c):[],...mt(t)]:[];d.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const f=c&&a?G5(c,n):null;let h=-1,g=null;s&&(g=new ResizeObserver(m=>{let[w]=m;w&&w.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let C,v=l?Ee(e):null;l&&x();function x(){const m=Ee(e);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&n(),v=m,C=requestAnimationFrame(x)}return n(),()=>{d.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(C)}}const Y5=(e,t,n)=>{const r=new Map,o={platform:W5,...n},i={...o.platform,_c:r};return _5(e,t,{...o,platform:i})},q5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ao({element:r.current,padding:o}).fn(n):{}:r?ao({element:r,padding:o}).fn(n):{}}}};var Zt=typeof document<"u"?p.useLayoutEffect:p.useEffect;function Jt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Jt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Jt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function p0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function po(e,t){const n=p0(e);return Math.round(t*n)/n}function Co(e){const t=p.useRef(e);return Zt(()=>{t.current=e}),t}function X5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=p.useState(r);Jt(h,r)||g(r);const[C,v]=p.useState(null),[x,m]=p.useState(null),w=p.useCallback(R=>{R!=$.current&&($.current=R,v(R))},[v]),y=p.useCallback(R=>{R!==k.current&&(k.current=R,m(R))},[m]),_=i||C,E=s||x,$=p.useRef(null),k=p.useRef(null),S=p.useRef(d),L=Co(l),O=Co(o),M=p.useCallback(()=>{if(!$.current||!k.current)return;const R={placement:t,strategy:n,middleware:h};O.current&&(R.platform=O.current),Y5($.current,k.current,R).then(I=>{const Z={...I,isPositioned:!0};j.current&&!Jt(S.current,Z)&&(S.current=Z,hn.flushSync(()=>{f(Z)}))})},[h,t,n,O]);Zt(()=>{c===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[c]);const j=p.useRef(!1);Zt(()=>(j.current=!0,()=>{j.current=!1}),[]),Zt(()=>{if(_&&($.current=_),E&&(k.current=E),_&&E){if(L.current)return L.current(_,E,M);M()}},[_,E,M,L]);const D=p.useMemo(()=>({reference:$,floating:k,setReference:w,setFloating:y}),[w,y]),T=p.useMemo(()=>({reference:_,floating:E}),[_,E]),P=p.useMemo(()=>{const R={position:n,left:0,top:0};if(!T.floating)return R;const I=po(T.floating,d.x),Z=po(T.floating,d.y);return a?{...R,transform:"translate("+I+"px, "+Z+"px)",...p0(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:Z}},[n,a,T.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:M,refs:D,elements:T,floatingStyles:P}),[d,M,D,T,P])}const J5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Q5={entering:{opacity:1},entered:{opacity:1}},es=p.forwardRef(function(t,n){const r=Gi(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:f,onEntering:h,onExit:g,onExited:C,onExiting:v,style:x,timeout:m=o,TransitionComponent:w=e0}=t,y=N1(t,J5),_=p.useRef(null),E=je(_,a.ref,n),$=T=>P=>{if(T){const R=_.current;P===void 0?T(R):T(R,P)}},k=$(h),S=$((T,P)=>{t0(T);const R=Gt({style:x,timeout:m,easing:l},{mode:"enter"});T.style.webkitTransition=r.transitions.create("opacity",R),T.style.transition=r.transitions.create("opacity",R),d&&d(T,P)}),L=$(f),O=$(v),M=$(T=>{const P=Gt({style:x,timeout:m,easing:l},{mode:"exit"});T.style.webkitTransition=r.transitions.create("opacity",P),T.style.transition=r.transitions.create("opacity",P),g&&g(T)}),j=$(C),D=T=>{i&&i(_.current,T)};return u.jsx(w,V({appear:s,in:c,nodeRef:_,onEnter:S,onEntered:L,onEntering:k,onExit:M,onExited:j,onExiting:O,addEndListener:D,timeout:m},y,{children:(T,P)=>p.cloneElement(a,V({style:V({opacity:0,visibility:T==="exited"&&!c?"hidden":void 0},Q5[T],x,a.props.style),ref:E},P))}))}),ts=es;function ns(e){return bt("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const rs=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],os=e=>{const{classes:t,invisible:n}=e;return $t({root:["root",n&&"invisible"]},ns,t)},is=Se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>V({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),ss=p.forwardRef(function(t,n){var r,o,i;const s=Et({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:d={},componentsProps:f={},invisible:h=!1,open:g,slotProps:C={},slots:v={},TransitionComponent:x=ts,transitionDuration:m}=s,w=N1(s,rs),y=V({},s,{component:c,invisible:h}),_=os(y),E=(r=C.root)!=null?r:f.root;return u.jsx(x,V({in:g,timeout:m},w,{children:u.jsx(is,V({"aria-hidden":!0},E,{as:(o=(i=v.root)!=null?i:d.Root)!=null?o:c,className:_e(_.root,l,E==null?void 0:E.className),ownerState:V({},y,E==null?void 0:E.ownerState),classes:_,ref:n,children:a}))}))}),as=ss;function ls(e){return bt("MuiModal",e)}_t("MuiModal",["root","hidden","backdrop"]);const cs=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],us=e=>{const{open:t,exited:n,classes:r}=e;return $t({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ls,r)},ds=Se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>V({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),fs=Se(as,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),hs=p.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Et({name:"MuiModal",props:t}),{BackdropComponent:d=fs,BackdropProps:f,className:h,closeAfterTransition:g=!1,children:C,container:v,component:x,components:m={},componentsProps:w={},disableAutoFocus:y=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:E=!1,disablePortal:$=!1,disableRestoreFocus:k=!1,disableScrollLock:S=!1,hideBackdrop:L=!1,keepMounted:O=!1,onBackdropClick:M,open:j,slotProps:D,slots:T}=c,P=N1(c,cs),R=V({},c,{closeAfterTransition:g,disableAutoFocus:y,disableEnforceFocus:_,disableEscapeKeyDown:E,disablePortal:$,disableRestoreFocus:k,disableScrollLock:S,hideBackdrop:L,keepMounted:O}),{getRootProps:I,getBackdropProps:Z,getTransitionProps:F,portalRef:e1,isTopModal:W,exited:X,hasTransition:u1}=p5(V({},R,{rootRef:n})),l1=V({},R,{exited:X}),G=us(l1),d1={};if(C.props.tabIndex===void 0&&(d1.tabIndex="-1"),u1){const{onEnter:U,onExited:J}=F();d1.onEnter=U,d1.onExited=J}const _1=(r=(o=T==null?void 0:T.root)!=null?o:m.Root)!=null?r:ds,E1=(i=(s=T==null?void 0:T.backdrop)!=null?s:m.Backdrop)!=null?i:d,L1=(a=D==null?void 0:D.root)!=null?a:w.root,V1=(l=D==null?void 0:D.backdrop)!=null?l:w.backdrop,ue=Kt({elementType:_1,externalSlotProps:L1,externalForwardedProps:P,getSlotProps:I,additionalProps:{ref:n,as:x},ownerState:l1,className:_e(h,L1==null?void 0:L1.className,G==null?void 0:G.root,!l1.open&&l1.exited&&(G==null?void 0:G.hidden))}),de=Kt({elementType:E1,externalSlotProps:V1,additionalProps:f,getSlotProps:U=>Z(V({},U,{onClick:J=>{M&&M(J),U!=null&&U.onClick&&U.onClick(J)}})),className:_e(V1==null?void 0:V1.className,f==null?void 0:f.className,G==null?void 0:G.backdrop),ownerState:l1});return!O&&!j&&(!u1||X)?null:u.jsx(i5,{ref:e1,container:v,disablePortal:$,children:u.jsxs(_1,V({},ue,{children:[!L&&d?u.jsx(E1,V({},de)):null,u.jsx(r5,{disableEnforceFocus:_,disableAutoFocus:y,disableRestoreFocus:k,isEnabled:W,open:j,children:p.cloneElement(C,d1)})]}))})}),ps=hs,Cs=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function qn(e){return`scale(${e}, ${e**2})`}const gs={entering:{opacity:1,transform:qn(1)},entered:{opacity:1,transform:"none"}},On=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),C0=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:f,onExited:h,onExiting:g,style:C,timeout:v="auto",TransitionComponent:x=e0}=t,m=N1(t,Cs),w=p.useRef(),y=p.useRef(),_=Gi(),E=p.useRef(null),$=je(E,i.ref,n),k=P=>R=>{if(P){const I=E.current;R===void 0?P(I):P(I,R)}},S=k(d),L=k((P,R)=>{t0(P);const{duration:I,delay:Z,easing:F}=Gt({style:C,timeout:v,easing:s},{mode:"enter"});let e1;v==="auto"?(e1=_.transitions.getAutoHeightDuration(P.clientHeight),y.current=e1):e1=I,P.style.transition=[_.transitions.create("opacity",{duration:e1,delay:Z}),_.transitions.create("transform",{duration:On?e1:e1*.666,delay:Z,easing:F})].join(","),l&&l(P,R)}),O=k(c),M=k(g),j=k(P=>{const{duration:R,delay:I,easing:Z}=Gt({style:C,timeout:v,easing:s},{mode:"exit"});let F;v==="auto"?(F=_.transitions.getAutoHeightDuration(P.clientHeight),y.current=F):F=R,P.style.transition=[_.transitions.create("opacity",{duration:F,delay:I}),_.transitions.create("transform",{duration:On?F:F*.666,delay:On?I:I||F*.333,easing:Z})].join(","),P.style.opacity=0,P.style.transform=qn(.75),f&&f(P)}),D=k(h),T=P=>{v==="auto"&&(w.current=setTimeout(P,y.current||0)),r&&r(E.current,P)};return p.useEffect(()=>()=>{clearTimeout(w.current)},[]),u.jsx(x,V({appear:o,in:a,nodeRef:E,onEnter:L,onEntered:O,onEntering:S,onExit:j,onExited:D,onExiting:M,addEndListener:T,timeout:v==="auto"?null:v},m,{children:(P,R)=>p.cloneElement(i,V({style:V({opacity:0,transform:qn(.75),visibility:P==="exited"&&!a?"hidden":void 0},gs[P],C,i.props.style),ref:$},R))}))});C0.muiSupportAuto=!0;const ms=C0;function vs(e){return bt("MuiPopover",e)}_t("MuiPopover",["root","paper"]);const xs=["onEntering"],ws=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ys=["slotProps"];function go(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function mo(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function vo(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Rn(e){return typeof e=="function"?e():e}const bs=e=>{const{classes:t}=e;return $t({root:["root"],paper:["paper"]},vs,t)},_s=Se(ps,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Es=Se(D3,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$s=p.forwardRef(function(t,n){var r,o,i;const s=Et({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:h,className:g,container:C,elevation:v=8,marginThreshold:x=16,open:m,PaperProps:w={},slots:y,slotProps:_,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:$=ms,transitionDuration:k="auto",TransitionProps:{onEntering:S}={},disableScrollLock:L=!1}=s,O=N1(s.TransitionProps,xs),M=N1(s,ws),j=(r=_==null?void 0:_.paper)!=null?r:w,D=p.useRef(),T=je(D,j.ref),P=V({},s,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:j,transformOrigin:E,TransitionComponent:$,transitionDuration:k,TransitionProps:O}),R=bs(P),I=p.useCallback(()=>{if(f==="anchorPosition")return d;const U=Rn(l),n1=(U&&U.nodeType===1?U:Y1(D.current).body).getBoundingClientRect();return{top:n1.top+go(n1,c.vertical),left:n1.left+mo(n1,c.horizontal)}},[l,c.horizontal,c.vertical,d,f]),Z=p.useCallback(U=>({vertical:go(U,E.vertical),horizontal:mo(U,E.horizontal)}),[E.horizontal,E.vertical]),F=p.useCallback(U=>{const J={width:U.offsetWidth,height:U.offsetHeight},n1=Z(J);if(f==="none")return{top:null,left:null,transformOrigin:vo(n1)};const F1=I();let U1=F1.top-n1.vertical,W1=F1.left-n1.horizontal;const Oe=U1+J.height,me=W1+J.width,G1=Ct(Rn(l)),Tt=G1.innerHeight-x,H=G1.innerWidth-x;if(x!==null&&U1Tt){const N=Oe-Tt;U1-=N,n1.vertical+=N}if(x!==null&&W1H){const N=me-H;W1-=N,n1.horizontal+=N}return{top:`${Math.round(U1)}px`,left:`${Math.round(W1)}px`,transformOrigin:vo(n1)}},[l,f,I,Z,x]),[e1,W]=p.useState(m),X=p.useCallback(()=>{const U=D.current;if(!U)return;const J=F(U);J.top!==null&&(U.style.top=J.top),J.left!==null&&(U.style.left=J.left),U.style.transformOrigin=J.transformOrigin,W(!0)},[F]);p.useEffect(()=>(L&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[l,L,X]);const u1=(U,J)=>{S&&S(U,J),X()},l1=()=>{W(!1)};p.useEffect(()=>{m&&X()}),p.useImperativeHandle(a,()=>m?{updatePosition:()=>{X()}}:null,[m,X]),p.useEffect(()=>{if(!m)return;const U=M3(()=>{X()}),J=Ct(l);return J.addEventListener("resize",U),()=>{U.clear(),J.removeEventListener("resize",U)}},[l,m,X]);let G=k;k==="auto"&&!$.muiSupportAuto&&(G=void 0);const d1=C||(l?Y1(Rn(l)).body:void 0),_1=(o=y==null?void 0:y.root)!=null?o:_s,E1=(i=y==null?void 0:y.paper)!=null?i:Es,L1=Kt({elementType:E1,externalSlotProps:V({},j,{style:e1?j.style:V({},j.style,{opacity:0})}),additionalProps:{elevation:v,ref:T},ownerState:P,className:_e(R.paper,j==null?void 0:j.className)}),V1=Kt({elementType:_1,externalSlotProps:(_==null?void 0:_.root)||{},externalForwardedProps:M,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:d1,open:m},ownerState:P,className:_e(R.root,g)}),{slotProps:ue}=V1,de=N1(V1,ys);return u.jsx(_1,V({},de,!r0(_1)&&{slotProps:ue,disableScrollLock:L},{children:u.jsx($,V({appear:!0,in:m,onEntering:u1,onExited:l1,timeout:G},O,{children:u.jsx(E1,V({},L1,{children:h}))}))}))}),bh=$s;function ks(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function g0(...e){return t=>e.forEach(n=>ks(n,t))}function Ye(...e){return p.useCallback(g0(...e),e)}const m0=p.forwardRef((e,t)=>{const{children:n,...r}=e,o=p.Children.toArray(n),i=o.find(Ss);if(i){const s=i.props.children,a=o.map(l=>l===i?p.Children.count(s)>1?p.Children.only(null):p.isValidElement(s)?s.props.children:null:l);return p.createElement(Xn,V({},r,{ref:t}),p.isValidElement(s)?p.cloneElement(s,void 0,a):null)}return p.createElement(Xn,V({},r,{ref:t}),n)});m0.displayName="Slot";const Xn=p.forwardRef((e,t)=>{const{children:n,...r}=e;return p.isValidElement(n)?p.cloneElement(n,{...js(r,n.props),ref:t?g0(t,n.ref):n.ref}):p.Children.count(n)>1?p.Children.only(null):null});Xn.displayName="SlotClone";const v0=({children:e})=>p.createElement(p.Fragment,null,e);function Ss(e){return p.isValidElement(e)&&e.type===v0}function js(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Ls=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Le=Ls.reduce((e,t)=>{const n=p.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?m0:t;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(a,V({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ms(e,t){e&&hn.flushSync(()=>e.dispatchEvent(t))}const Os=p.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Ve.createPortal(p.createElement(Le.div,V({},o,{ref:t})),r):null}),Rs=Os;var xo=Object.prototype.hasOwnProperty;function vt(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&vt(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(xo.call(e,n)&&++r&&!xo.call(t,n)||!(n in t)||!vt(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function St(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)s[a]=arguments[a+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),X1=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};X1.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new mn(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};X1.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new Ps(n,t.simple,t.async)),this};X1.prototype._clone=function(){return new X1(this.chain.slice(),this.nextRuleModifiers.slice())};X1.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};X1.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new jr(r,t,o))}}),n};X1.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new jr(n,t,r)}})};X1.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){y0(t,n.chain.slice(),r,o)})};function y0(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){y0(e,t,n,r)},function(i){r(new jr(o,e,i))})}else n(e)}var wo=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function Ts(e,t){return t===void 0&&(t=!1),{simple:function(n){return wo(n,t)||e.check(n)===void 0},async:function(n){return wo(n,t)||e.testAsync(n)}}}function S1(){return typeof Proxy<"u"?b0(new X1):Jn(new X1)}var xt={};S1.extend=function(e){Object.assign(xt,e)};S1.clearCustomRules=function(){xt={}};function b0(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=b0(e._clone());if(r in Qt)return o._applyModifier(Qt[r],r);if(r in xt)return o._applyRule(xt[r],r);if(r in Qn)return o._applyRule(Qn[r],r)}})}function Jn(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var c=Jn(i._clone()),d=c._applyRule(o[s],s).apply(void 0,a);return d}}),i},n=t(Qn,e),r=t(xt,n);return Object.keys(Qt).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=Jn(r._clone());return i._applyModifier(Qt[o],o)}})}),r}var Qt={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return At(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(At(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&At(t).every(e)}},async:function(e){return function(t){return Promise.all(At(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return yo(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return yo(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function yo(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function At(e){return typeof e=="string"?e.split(""):e}var Qn={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||Hs;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return Te("string")},boolean:function(){return Te("boolean")},undefined:function(){return Te("undefined")},null:function(){return Te("null")},array:function(){return Te("array")},object:function(){return Te("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return Is(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:Ts};function Te(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function Hs(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function Is(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var K="colors",m1="sizes",A="space",As={gap:A,gridGap:A,columnGap:A,gridColumnGap:A,rowGap:A,gridRowGap:A,inset:A,insetBlock:A,insetBlockEnd:A,insetBlockStart:A,insetInline:A,insetInlineEnd:A,insetInlineStart:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,marginBlock:A,marginBlockEnd:A,marginBlockStart:A,marginInline:A,marginInlineEnd:A,marginInlineStart:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,paddingBlock:A,paddingBlockEnd:A,paddingBlockStart:A,paddingInline:A,paddingInlineEnd:A,paddingInlineStart:A,top:A,right:A,bottom:A,left:A,scrollMargin:A,scrollMarginTop:A,scrollMarginRight:A,scrollMarginBottom:A,scrollMarginLeft:A,scrollMarginX:A,scrollMarginY:A,scrollMarginBlock:A,scrollMarginBlockEnd:A,scrollMarginBlockStart:A,scrollMarginInline:A,scrollMarginInlineEnd:A,scrollMarginInlineStart:A,scrollPadding:A,scrollPaddingTop:A,scrollPaddingRight:A,scrollPaddingBottom:A,scrollPaddingLeft:A,scrollPaddingX:A,scrollPaddingY:A,scrollPaddingBlock:A,scrollPaddingBlockEnd:A,scrollPaddingBlockStart:A,scrollPaddingInline:A,scrollPaddingInlineEnd:A,scrollPaddingInlineStart:A,fontSize:"fontSizes",background:K,backgroundColor:K,backgroundImage:K,borderImage:K,border:K,borderBlock:K,borderBlockEnd:K,borderBlockStart:K,borderBottom:K,borderBottomColor:K,borderColor:K,borderInline:K,borderInlineEnd:K,borderInlineStart:K,borderLeft:K,borderLeftColor:K,borderRight:K,borderRightColor:K,borderTop:K,borderTopColor:K,caretColor:K,color:K,columnRuleColor:K,fill:K,outline:K,outlineColor:K,stroke:K,textDecorationColor:K,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:m1,minBlockSize:m1,maxBlockSize:m1,inlineSize:m1,minInlineSize:m1,maxInlineSize:m1,width:m1,minWidth:m1,maxWidth:m1,height:m1,minHeight:m1,maxHeight:m1,flexBasis:m1,gridTemplateColumns:m1,gridTemplateRows:m1,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Vs=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,qe=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,Vs))(t);return o in e?e[o]:e[o]=n(t,...r)}},ye=Symbol.for("sxs.internal"),Lr=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),bo=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Ds}=Object.prototype,er=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Ns=/\s+(?![^()]*\))/,He=e=>t=>e(...typeof t=="string"?String(t).split(Ns):[t]),_o={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:He((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:He((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:He((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:He((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:He((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:He((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Pn=/([\d.]+)([^]*)/,Bs=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,zs=(e,t)=>e in Zs&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${er(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${er(e)}:${r}fit-content`)+i):String(t),Zs={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},se=e=>e?e+"-":"",_0=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,a)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?se(t)+(a.includes("$")?"":se(n))+a.replace(/\$/g,"-"):a)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),Fs=/\s*,\s*(?![^()]*\))/,Us=Object.prototype.toString,De=(e,t,n,r,o)=>{let i,s,a;const l=(c,d,f)=>{let h,g;const C=v=>{for(h in v){const w=h.charCodeAt(0)===64,y=w&&Array.isArray(v[h])?v[h]:[v[h]];for(g of y){const _=/[A-Z]/.test(m=h)?m:m.replace(/-[^]/g,$=>$[1].toUpperCase()),E=typeof g=="object"&&g&&g.toString===Us&&(!r.utils[_]||!d.length);if(_ in r.utils&&!E){const $=r.utils[_];if($!==s){s=$,C($(g)),s=null;continue}}else if(_ in _o){const $=_o[_];if($!==a){a=$,C($(g)),a=null;continue}}if(w&&(x=h.slice(1)in r.media?"@media "+r.media[h.slice(1)]:h,h=x.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,($,k,S,L,O,M)=>{const j=Pn.test(k),D=.0625*(j?-1:1),[T,P]=j?[L,k]:[k,L];return"("+(S[0]==="="?"":S[0]===">"===j?"max-":"min-")+T+":"+(S[0]!=="="&&S.length===1?P.replace(Pn,(R,I,Z)=>Number(I)+D*(S===">"?1:-1)+Z):P)+(O?") and ("+(O[0]===">"?"min-":"max-")+T+":"+(O.length===1?M.replace(Pn,(R,I,Z)=>Number(I)+D*(O===">"?-1:1)+Z):M):"")+")"})),E){const $=w?f.concat(h):[...f],k=w?[...d]:Bs(d,h.split(Fs));i!==void 0&&o(Eo(...i)),i=void 0,l(g,k,$)}else i===void 0&&(i=[[],d,f]),h=w||h.charCodeAt(0)!==36?h:`--${se(r.prefix)}${h.slice(1).replace(/\$/g,"-")}`,g=E?g:typeof g=="number"?g&&_ in Ws?String(g)+"px":String(g):_0(zs(_,g??""),r.prefix,r.themeMap[_]),i[0].push(`${w?`${h} `:`${er(h)}:`}${g}`)}}var x,m};C(c),i!==void 0&&o(Eo(...i)),i=void 0};l(e,t,n)},Eo=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,Ws={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},$o=e=>String.fromCharCode(e+(e>25?39:97)),be=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=$o(n%52)+r;return $o(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),lt=["themed","global","styled","onevar","resonevar","allvar","inline"],Gs=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},Ks=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:a}=i;let l="";if(a.startsWith("--sxs"))return"";if(o[s-1]&&(l=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const c in t.rules)if(t.rules[c].group===i)return`--sxs{--sxs:${[...t.rules[c].cache].join(" ")}}${a}`;return i.cssRules.length?`${l}${a}`:""}return a}).join("")},r=()=>{if(t){const{rules:a,sheet:l}=t;if(!l.deleteRule){for(;Object(Object(l.cssRules)[0]).type===3;)l.cssRules.splice(0,1);l.cssRules=[]}for(const c in a)delete a[c]}const o=Object(e).styleSheets||[];for(const a of o)if(Gs(a)){for(let l=0,c=a.cssRules;c[l];++l){const d=Object(c[l]);if(d.type!==1)continue;const f=Object(c[l+1]);if(f.type!==4)continue;++l;const{cssText:h}=d;if(!h.startsWith("--sxs"))continue;const g=h.slice(14,-3).trim().split(/\s+/),C=lt[g[0]];C&&(t||(t={sheet:a,reset:r,rules:{},toString:n}),t.rules[C]={group:f,index:l,cache:new Set(g)})}if(t)break}if(!t){const a=(l,c)=>({type:c,cssRules:[],insertRule(d,f){this.cssRules.splice(f,0,a(d,{import:3,undefined:1}[(d.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return l==="@media{}"?`@media{${[].map.call(this.cssRules,d=>d.cssText).join("")}}`:l}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:a("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let a=lt.length-1;a>=0;--a){const l=lt[a];if(!s[l]){const c=lt[a+1],d=s[c]?s[c].index:i.cssRules.length;i.insertRule("@media{}",d),i.insertRule(`--sxs{--sxs:${a}}`,d),s[l]={group:i.cssRules[d+1],index:d,cache:new Set([a])}}Ys(s[l])}};return r(),t},Ys=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},nt=Symbol(),qs=qe(),ko=(e,t)=>qs(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[ye]){r.type==null&&(r.type=o[ye].type);for(const i of o[ye].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(Xs(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),Js(e,r,t)}),Xs=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${se(o.prefix)}c-${be(r)}`,s=[],a=[],l=Object.create(null),c=[];for(const h in n)l[h]=String(n[h]);if(typeof e=="object"&&e)for(const h in e){d=l,f=h,Ds.call(d,f)||(l[h]="undefined");const g=e[h];for(const C in g){const v={[h]:String(C)};String(C)==="undefined"&&c.push(h);const x=g[C],m=[v,x,!bo(x)];s.push(m)}}var d,f;if(typeof t=="object"&&t)for(const h of t){let{css:g,...C}=h;g=typeof g=="object"&&g||{};for(const x in C)C[x]=String(C[x]);const v=[C,g,!bo(g)];a.push(v)}return[i,r,s,a,l,c]},Js=(e,t,n)=>{const[r,o,i,s]=Qs(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(f=>{function h(){for(let g=0;gh.rules[g]={apply:C=>h[nt].push([g,C])}),h})(n):null,l=(a||n).rules,c=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,d=f=>{f=typeof f=="object"&&f||e6;const{css:h,...g}=f,C={};for(const m in i)if(delete g[m],m in f){let w=f[m];typeof w=="object"&&w?C[m]={"@initial":i[m],...w}:(w=String(w),C[m]=w!=="undefined"||s.has(m)?w:i[m])}else C[m]=i[m];const v=new Set([...o]);for(const[m,w,y,_]of t.composers){n.rules.styled.cache.has(m)||(n.rules.styled.cache.add(m),De(w,[`.${m}`],[],e,k=>{l.styled.apply(k)}));const E=So(y,C,e.media),$=So(_,C,e.media,!0);for(const k of E)if(k!==void 0)for(const[S,L,O]of k){const M=`${m}-${be(L)}-${S}`;v.add(M);const j=(O?n.rules.resonevar:n.rules.onevar).cache,D=O?l.resonevar:l.onevar;j.has(M)||(j.add(M),De(L,[`.${M}`],[],e,T=>{D.apply(T)}))}for(const k of $)if(k!==void 0)for(const[S,L]of k){const O=`${m}-${be(L)}-${S}`;v.add(O),n.rules.allvar.cache.has(O)||(n.rules.allvar.cache.add(O),De(L,[`.${O}`],[],e,M=>{l.allvar.apply(M)}))}}if(typeof h=="object"&&h){const m=`${r}-i${be(h)}-css`;v.add(m),n.rules.inline.cache.has(m)||(n.rules.inline.cache.add(m),De(h,[`.${m}`],[],e,w=>{l.inline.apply(w)}))}for(const m of String(f.className||"").trim().split(/\s+/))m&&v.add(m);const x=g.className=[...v].join(" ");return{type:t.type,className:x,selector:c,props:g,toString:()=>x,deferredInjector:a}};return Lr(d,{className:r,selector:c,[ye]:t,toString:()=>(n.rules.styled.cache.has(r)||d(),r)})},Qs=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,a]of e){t===""&&(t=i),n.push(i),o.push(...a);for(const l in s){const c=s[l];(r[l]===void 0||c!=="undefined"||a.includes(c))&&(r[l]=c)}}return[t,n,r,new Set(o)]},So=(e,t,n,r)=>{const o=[];e:for(let[i,s,a]of e){if(a)continue;let l,c=0,d=!1;for(l in i){const f=i[l];let h=t[l];if(h!==f){if(typeof h!="object"||!h)continue e;{let g,C,v=0;for(const x in h){if(f===String(h[x])){if(x!=="@initial"){const m=x.slice(1);(C=C||[]).push(m in n?n[m]:x.replace(/^@media ?/,"")),d=!0}c+=v,g=!0}++v}if(C&&C.length&&(s={["@media "+C.join(", ")]:s}),!g)continue e}}}(o[c]=o[c]||[]).push([r?"cv":`${l}-${i[l]}`,s,d])}return o},e6={},t6=qe(),n6=(e,t)=>t6(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=be(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let a of[].concat(o["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,t.sheet.insertRule(`@import ${a};`,s++);delete o["@import"]}De(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return Lr(r,{toString:r})}),r6=qe(),o6=(e,t)=>r6(e,()=>n=>{const r=`${se(e.prefix)}k-${be(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];De(n,[],[],e,a=>i.push(a));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return Lr(o,{get name(){return o()},toString:o})}),i6=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+se(this.prefix)+se(this.scale)+this.token}toString(){return this.computedValue}},s6=qe(),a6=(e,t)=>s6(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${se(e.prefix)}t-${be(r)}`}`,i={},s=[];for(const l in r){i[l]={};for(const c in r[l]){const d=`--${se(e.prefix)}${l}-${c}`,f=_0(String(r[l][c]),e.prefix,l);i[l][c]=new i6(c,f,l,e.prefix),s.push(`${d}:${f}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const l=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(l)}return n};return{...i,get className(){return a()},selector:o,toString:a}}),l6=qe(),jo,c6=qe(),E0=e=>{const t=(n=>{let r=!1;const o=l6(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",a=typeof i.media=="object"&&i.media||{},l=typeof i.root=="object"?i.root||null:globalThis.document||null,c=typeof i.theme=="object"&&i.theme||{},d={prefix:s,media:a,theme:c,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...As},utils:typeof i.utils=="object"&&i.utils||{}},f=Ks(l),h={css:ko(d,f),globalCss:n6(d,f),keyframes:o6(d,f),createTheme:a6(d,f),reset(){f.reset(),h.theme.toString()},theme:{},sheet:f,config:d,prefix:s,getCssText:f.toString,toString:f.toString};return String(h.theme=h.createTheme(c)),h});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>c6(n,()=>{const o=ko(n,r);return(...i)=>{const s=o(...i),a=s[ye].type,l=b.forwardRef((c,d)=>{const f=c&&c.as||a,{props:h,deferredInjector:g}=s(c);return delete h.as,h.ref=d,g?b.createElement(b.Fragment,null,b.createElement(f,h),b.createElement(g,null)):b.createElement(f,h)});return l.className=s.className,l.displayName=`Styled.${a.displayName||a.name||a}`,l.selector=s.selector,l.toString=()=>s.selector,l[ye]=s[ye],l}}))(t),t},u6=()=>jo||(jo=E0()),_h=(...e)=>u6().styled(...e);function d6(e,t,n){return Math.max(t,Math.min(e,n))}const p1={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Lo(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Mo(e,t,n,r=.15){return r===0?d6(e,t,n):en?+Lo(e-n,n-t,r)+n:e}function f6(e,[t,n],[r,o]){const[[i,s],[a,l]]=e;return[Mo(t,i,s,r),Mo(n,a,l,o)]}function h6(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p6(e){var t=h6(e,"string");return typeof t=="symbol"?t:String(t)}function k1(e,t,n){return t=p6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function i1(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function b6(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function S0(e){return vn(e)?b6(e)[0]:e}function _6(e){return y6(e).map(t=>t.identifier)}function Tn(e){const t=S0(e);return vn(e)?t.identifier:t.pointerId}function Po(e){const t=S0(e);return[t.clientX,t.clientY]}function E6(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function en(e,...t){return typeof e=="function"?e(...t):e}function $6(){}function k6(...e){return e.length===0?$6:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function To(e,t){return Object.assign({},t,e||{})}const S6=32;class j6{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?en(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,E6(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const $=n._delta.map(Math.abs);p1.addTo(n._distance,$)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[l,c]=r.threshold,{_step:d,values:f}=n;if(r.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(s)>=l&&f[0]),d[1]===!1&&(d[1]=Math.abs(a)>=c&&f[1])):(d[0]===!1&&(d[0]=Math.abs(s)>=l&&Math.sign(s)*l),d[1]===!1&&(d[1]=Math.abs(a)>=c&&Math.sign(a)*c)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const h=[0,0];if(r.hasCustomTransform){const[$,k]=f;h[0]=d[0]!==!1?$-d[0]:0,h[1]=d[1]!==!1?k-d[1]:0}else h[0]=d[0]!==!1?s-d[0]:0,h[1]=d[1]!==!1?a-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(h);const g=n.offset,C=n._active&&!n._blocked||n.active;C&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=en(r.bounds,n)),this.setup&&this.setup()),n.movement=h,this.computeOffset()));const[v,x]=n.offset,[[m,w],[y,_]]=n._bounds;n.overflow=[vw?1:0,x_?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const E=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=f6(n._bounds,n.offset,E),n.delta=p1.sub(n.offset,g),this.computeMovement(),C&&(!n.last||i>S6)){n.delta=p1.sub(n.offset,g);const $=n.delta.map(Math.abs);p1.addTo(n.distance,$),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[$[0]/i,$[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(i1(i1(i1({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function L6([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class M6 extends j6{constructor(...t){super(...t),k1(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=p1.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=p1.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[k0(t)]:r.axisThreshold;n.axis=L6(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const O6=e=>e,Ho=.15,j0={enabled(e=!0){return e},eventOptions(e,t,n){return i1(i1({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Ho,Ho];case!1:return[0,0];default:return p1.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return p1.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||O6},threshold(e){return p1.toVector(e,0)}},R6=0,jt=i1(i1({},j0),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=R6){return e},bounds(e={}){if(typeof e=="function")return i=>jt.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),Io={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class P6 extends M6{constructor(...t){super(...t),k1(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=jt.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=Tn(t),r._pointerActive=!0,this.computeValues(Po(t)),this.computeInitial(),n.preventScrollAxis&&k0(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=Tn(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=Po(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=p1.sub(i,n._values),this.computeValues(i)),p1.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=Tn(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,l]=n._delta,[c,d]=n._movement,[f,h]=r.swipe.velocity,[g,C]=r.swipe.distance,v=r.swipe.duration;if(n.elapsedTimef&&Math.abs(c)>g&&(n.swipe[0]=Math.sign(a)),m>h&&Math.abs(d)>C&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,T6(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=Io[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,p1.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in Io&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function T6(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const Lt=typeof window<"u"&&window.document&&window.document.createElement;function L0(){return Lt&&"ontouchstart"in window}function H6(){return L0()||Lt&&window.navigator.maxTouchPoints>1}function I6(){return Lt&&"onpointerdown"in window}function A6(){return Lt&&"exitPointerLock"in window.document}function V6(){try{return"constructor"in GestureEvent}catch{return!1}}const P1={isBrowser:Lt,gesture:V6(),touch:L0(),touchscreen:H6(),pointer:I6(),pointerLock:A6()},D6=250,N6=180,B6=.5,z6=50,Z6=250,F6=10,Ao={mouse:0,touch:0,pen:8},U6=i1(i1({},jt),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&P1.pointerLock,P1.touch&&n?"touch":this.pointerLock?"mouse":P1.pointer&&!o?"pointer":P1.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?D6:void 0,!(!P1.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=p1.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=B6,distance:t=z6,duration:n=Z6}={}){return{velocity:this.transform(p1.toVector(e)),distance:this.transform(p1.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return N6;case!1:return 0;default:return e}},axisThreshold(e){return e?i1(i1({},Ao),e):Ao},keyboardDisplacement(e=F6){return e}});i1(i1({},j0),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!P1.touch&&P1.gesture)return"gesture";if(P1.touch&&r)return"touch";if(P1.touchscreen){if(P1.pointer)return"pointer";if(P1.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=To(en(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=To(en(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",p1.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});i1(i1({},jt),{},{mouseOnly:(e=!0)=>e});i1(i1({},jt),{},{mouseOnly:(e=!0)=>e});const M0=new Map,tr=new Map;function W6(e){M0.set(e.key,e.engine),tr.set(e.key,e.resolver)}const G6={key:"drag",engine:P6,resolver:U6};function K6(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function Y6(e,t){if(e==null)return{};var n=K6(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const q6={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=P1.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},X6=["target","eventOptions","window","enabled","transform"];function Ft(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=Ft(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function J6(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:l}=r,c=Y6(r,X6);if(n.shared=Ft({target:o,eventOptions:i,window:s,enabled:a,transform:l},q6),t){const d=tr.get(t);n[t]=Ft(i1({shared:n.shared},c),d)}else for(const d in c){const f=tr.get(d);f&&(n[d]=Ft(i1({shared:n.shared},c[d]),f))}return n}class O0{constructor(t,n){k1(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=w6(n,r),l=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},c=i1(i1({},l),i);t.addEventListener(a,o,c);const d=()=>{t.removeEventListener(a,o,c),s.delete(d)};return s.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class Q6{constructor(){k1(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class e9{constructor(t){k1(this,"gestures",new Set),k1(this,"_targetEventStore",new O0(this)),k1(this,"gestureEventStores",{}),k1(this,"gestureTimeoutStores",{}),k1(this,"handlers",{}),k1(this,"config",{}),k1(this,"pointerIds",new Set),k1(this,"touchIds",new Set),k1(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),t9(this,t)}setEventIds(t){if(vn(t))return this.touchIds=new Set(_6(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=J6(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],l=Vo(r,a.eventOptions,!!o);if(a.enabled){const c=M0.get(s);new c(this,t,s).bind(l)}}const i=Vo(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](i1(i1({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=k6(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:l}=x6(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:l})}}}}function Ie(e,t){e.gestures.add(t),e.gestureEventStores[t]=new O0(e,t),e.gestureTimeoutStores[t]=new Q6}function t9(e,t){t.drag&&Ie(e,"drag"),t.wheel&&Ie(e,"wheel"),t.scroll&&Ie(e,"scroll"),t.move&&Ie(e,"move"),t.pinch&&Ie(e,"pinch"),t.hover&&Ie(e,"hover")}const Vo=(e,t,n)=>(r,o,i,s={},a=!1)=>{var l,c;const d=(l=s.capture)!==null&&l!==void 0?l:t.capture,f=(c=s.passive)!==null&&c!==void 0?c:t.passive;let h=a?r:m6(r,o,d);n&&f&&(h+="Passive"),e[h]=e[h]||[],e[h].push(i)};function n9(e,t={},n,r){const o=b.useMemo(()=>new e9(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),b.useEffect(o.effect.bind(o)),b.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function r9(e,t){return W6(G6),n9({drag:e},t||{},"drag")}function Q1(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function R0(e,t=[]){let n=[];function r(i,s){const a=p.createContext(s),l=n.length;n=[...n,s];function c(f){const{scope:h,children:g,...C}=f,v=(h==null?void 0:h[e][l])||a,x=p.useMemo(()=>C,Object.values(C));return p.createElement(v.Provider,{value:x},g)}function d(f,h){const g=(h==null?void 0:h[e][l])||a,C=p.useContext(g);if(C)return C;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}const o=()=>{const i=n.map(s=>p.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,o9(o,...t)]}function o9(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...a,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Xe(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function i9(e,t=globalThis==null?void 0:globalThis.document){const n=Xe(e);p.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const nr="dismissableLayer.update",s9="dismissableLayer.pointerDownOutside",a9="dismissableLayer.focusOutside";let Do;const l9=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),c9=p.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:l,...c}=e,d=p.useContext(l9),[f,h]=p.useState(null),g=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,C]=p.useState({}),v=Ye(t,S=>h(S)),x=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(m),y=f?x.indexOf(f):-1,_=d.layersWithOutsidePointerEventsDisabled.size>0,E=y>=w,$=u9(S=>{const L=S.target,O=[...d.branches].some(M=>M.contains(L));!E||O||(i==null||i(S),a==null||a(S),S.defaultPrevented||l==null||l())},g),k=d9(S=>{const L=S.target;[...d.branches].some(M=>M.contains(L))||(s==null||s(S),a==null||a(S),S.defaultPrevented||l==null||l())},g);return i9(S=>{y===d.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},g),p.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Do=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),No(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Do)}},[f,g,r,d]),p.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),No())},[f,d]),p.useEffect(()=>{const S=()=>C({});return document.addEventListener(nr,S),()=>document.removeEventListener(nr,S)},[]),p.createElement(Le.div,V({},c,{ref:v,style:{pointerEvents:_?E?"auto":"none":void 0,...e.style},onFocusCapture:Q1(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Q1(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Q1(e.onPointerDownCapture,$.onPointerDownCapture)}))});function u9(e,t=globalThis==null?void 0:globalThis.document){const n=Xe(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){P0(s9,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function d9(e,t=globalThis==null?void 0:globalThis.document){const n=Xe(e),r=p.useRef(!1);return p.useEffect(()=>{const o=i=>{i.target&&!r.current&&P0(a9,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function No(){const e=new CustomEvent(nr);document.dispatchEvent(e)}function P0(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ms(o,i):o.dispatchEvent(i)}const Fe=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},f9=C3["useId".toString()]||(()=>{});let h9=0;function p9(e){const[t,n]=p.useState(f9());return Fe(()=>{e||n(r=>r??String(h9++))},[e]),e||(t?`radix-${t}`:"")}const C9=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return p.createElement(Le.svg,V({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:p.createElement("polygon",{points:"0,0 30,0 15,10"}))}),g9=C9;function m9(e){const[t,n]=p.useState(void 0);return Fe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const T0="Popper",[H0,I0]=R0(T0),[v9,A0]=H0(T0),x9=e=>{const{__scopePopper:t,children:n}=e,[r,o]=p.useState(null);return p.createElement(v9,{scope:t,anchor:r,onAnchorChange:o},n)},w9="PopperAnchor",y9=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=A0(w9,n),s=p.useRef(null),a=Ye(t,s);return p.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:p.createElement(Le.div,V({},o,{ref:a}))}),V0="PopperContent",[b9,_9]=H0(V0),E9=p.forwardRef((e,t)=>{var n,r,o,i,s,a,l,c;const{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:g="center",alignOffset:C=0,arrowPadding:v=0,avoidCollisions:x=!0,collisionBoundary:m=[],collisionPadding:w=0,sticky:y="partial",hideWhenDetached:_=!1,updatePositionStrategy:E="optimized",onPlaced:$,...k}=e,S=A0(V0,d),[L,O]=p.useState(null),M=Ye(t,n1=>O(n1)),[j,D]=p.useState(null),T=m9(j),P=(n=T==null?void 0:T.width)!==null&&n!==void 0?n:0,R=(r=T==null?void 0:T.height)!==null&&r!==void 0?r:0,I=f+(g!=="center"?"-"+g:""),Z=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},F=Array.isArray(m)?m:[m],e1=F.length>0,W={padding:Z,boundary:F.filter(j9),altBoundary:e1},{refs:X,floatingStyles:u1,placement:l1,isPositioned:G,middlewareData:d1}=X5({strategy:"fixed",placement:I,whileElementsMounted:(...n1)=>K5(...n1,{animationFrame:E==="always"}),elements:{reference:S.anchor},middleware:[S5({mainAxis:h+R,alignmentAxis:C}),x&&j5({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?L5():void 0,...W}),x&&E5({...W}),M5({...W,apply:({elements:n1,rects:F1,availableWidth:U1,availableHeight:W1})=>{const{width:Oe,height:me}=F1.reference,G1=n1.floating.style;G1.setProperty("--radix-popper-available-width",`${U1}px`),G1.setProperty("--radix-popper-available-height",`${W1}px`),G1.setProperty("--radix-popper-anchor-width",`${Oe}px`),G1.setProperty("--radix-popper-anchor-height",`${me}px`)}}),j&&q5({element:j,padding:v}),L9({arrowWidth:P,arrowHeight:R}),_&&$5({strategy:"referenceHidden",...W})]}),[_1,E1]=D0(l1),L1=Xe($);Fe(()=>{G&&(L1==null||L1())},[G,L1]);const V1=(o=d1.arrow)===null||o===void 0?void 0:o.x,ue=(i=d1.arrow)===null||i===void 0?void 0:i.y,de=((s=d1.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[U,J]=p.useState();return Fe(()=>{L&&J(window.getComputedStyle(L).zIndex)},[L]),p.createElement("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...u1,transform:G?u1.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[(a=d1.transformOrigin)===null||a===void 0?void 0:a.x,(l=d1.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},p.createElement(b9,{scope:d,placedSide:_1,onArrowChange:D,arrowX:V1,arrowY:ue,shouldHideArrow:de},p.createElement(Le.div,V({"data-side":_1,"data-align":E1},k,{ref:M,style:{...k.style,animation:G?void 0:"none",opacity:(c=d1.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),$9="PopperArrow",k9={top:"bottom",right:"left",bottom:"top",left:"right"},S9=p.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=_9($9,r),s=k9[i.placedSide];return p.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},p.createElement(g9,V({},o,{ref:n,style:{...o.style,display:"block"}})))});function j9(e){return e!==null}const L9=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:l,middlewareData:c}=t,f=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=f?0:e.arrowWidth,g=f?0:e.arrowHeight,[C,v]=D0(a),x={start:"0%",center:"50%",end:"100%"}[v],m=((r=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,w=((i=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+g/2;let y="",_="";return C==="bottom"?(y=f?x:`${m}px`,_=`${-g}px`):C==="top"?(y=f?x:`${m}px`,_=`${l.floating.height+g}px`):C==="right"?(y=`${-g}px`,_=f?x:`${w}px`):C==="left"&&(y=`${l.floating.width+g}px`,_=f?x:`${w}px`),{data:{x:y,y:_}}}});function D0(e){const[t,n="center"]=e.split("-");return[t,n]}const M9=x9,O9=y9,R9=E9,P9=S9;function T9(e,t){return p.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const N0=e=>{const{present:t,children:n}=e,r=H9(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),i=Ye(r.ref,o.ref);return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:i}):null};N0.displayName="Presence";function H9(e){const[t,n]=p.useState(),r=p.useRef({}),o=p.useRef(e),i=p.useRef("none"),s=e?"mounted":"unmounted",[a,l]=T9(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=Vt(r.current);i.current=a==="mounted"?c:"none"},[a]),Fe(()=>{const c=r.current,d=o.current;if(d!==e){const h=i.current,g=Vt(c);e?l("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Fe(()=>{if(t){const c=f=>{const g=Vt(r.current).includes(f.animationName);f.target===t&&g&&hn.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=Vt(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Vt(e){return(e==null?void 0:e.animationName)||"none"}function I9({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=A9({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=Xe(n),l=p.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&a(f)}else o(c)},[i,e,o,a]);return[s,l]}function A9({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,o=p.useRef(r),i=Xe(t);return p.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const V9=p.forwardRef((e,t)=>p.createElement(Le.span,V({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),D9=V9,[xn,Eh]=R0("Tooltip",[I0]),wn=I0(),N9="TooltipProvider",rr="tooltip.open",[$h,Mr]=xn(N9),Or="Tooltip",[B9,yn]=xn(Or),z9=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=Mr(Or,e.__scopeTooltip),c=wn(t),[d,f]=p.useState(null),h=p9(),g=p.useRef(0),C=s??l.disableHoverableContent,v=a??l.delayDuration,x=p.useRef(!1),[m=!1,w]=I9({prop:r,defaultProp:o,onChange:k=>{k?(l.onOpen(),document.dispatchEvent(new CustomEvent(rr))):l.onClose(),i==null||i(k)}}),y=p.useMemo(()=>m?x.current?"delayed-open":"instant-open":"closed",[m]),_=p.useCallback(()=>{window.clearTimeout(g.current),x.current=!1,w(!0)},[w]),E=p.useCallback(()=>{window.clearTimeout(g.current),w(!1)},[w]),$=p.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,w(!0)},v)},[v,w]);return p.useEffect(()=>()=>window.clearTimeout(g.current),[]),p.createElement(M9,c,p.createElement(B9,{scope:t,contentId:h,open:m,stateAttribute:y,trigger:d,onTriggerChange:f,onTriggerEnter:p.useCallback(()=>{l.isOpenDelayed?$():_()},[l.isOpenDelayed,$,_]),onTriggerLeave:p.useCallback(()=>{C?E():window.clearTimeout(g.current)},[E,C]),onOpen:_,onClose:E,disableHoverableContent:C},n))},Bo="TooltipTrigger",Z9=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yn(Bo,n),i=Mr(Bo,n),s=wn(n),a=p.useRef(null),l=Ye(t,a,o.onTriggerChange),c=p.useRef(!1),d=p.useRef(!1),f=p.useCallback(()=>c.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.createElement(O9,V({asChild:!0},s),p.createElement(Le.button,V({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:Q1(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Q1(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Q1(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Q1(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:Q1(e.onBlur,o.onClose),onClick:Q1(e.onClick,o.onClose)})))}),F9="TooltipPortal",[kh,U9]=xn(F9,{forceMount:void 0}),wt="TooltipContent",W9=p.forwardRef((e,t)=>{const n=U9(wt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=yn(wt,e.__scopeTooltip);return p.createElement(N0,{present:r||s.open},s.disableHoverableContent?p.createElement(B0,V({side:o},i,{ref:t})):p.createElement(G9,V({side:o},i,{ref:t})))}),G9=p.forwardRef((e,t)=>{const n=yn(wt,e.__scopeTooltip),r=Mr(wt,e.__scopeTooltip),o=p.useRef(null),i=Ye(t,o),[s,a]=p.useState(null),{trigger:l,onClose:c}=n,d=o.current,{onPointerInTransitChange:f}=r,h=p.useCallback(()=>{a(null),f(!1)},[f]),g=p.useCallback((C,v)=>{const x=C.currentTarget,m={x:C.clientX,y:C.clientY},w=J9(m,x.getBoundingClientRect()),y=Q9(m,w),_=e7(v.getBoundingClientRect()),E=n7([...y,..._]);a(E),f(!0)},[f]);return p.useEffect(()=>()=>h(),[h]),p.useEffect(()=>{if(l&&d){const C=x=>g(x,d),v=x=>g(x,l);return l.addEventListener("pointerleave",C),d.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",C),d.removeEventListener("pointerleave",v)}}},[l,d,g,h]),p.useEffect(()=>{if(s){const C=v=>{const x=v.target,m={x:v.clientX,y:v.clientY},w=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),y=!t7(m,s);w?h():y&&(h(),c())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[l,d,s,c,h]),p.createElement(B0,V({},e,{ref:i}))}),[K9,Y9]=xn(Or,{isInside:!1}),B0=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=yn(wt,n),c=wn(n),{onClose:d}=l;return p.useEffect(()=>(document.addEventListener(rr,d),()=>document.removeEventListener(rr,d)),[d]),p.useEffect(()=>{if(l.trigger){const f=h=>{const g=h.target;g!=null&&g.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),p.createElement(c9,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d},p.createElement(R9,V({"data-state":l.stateAttribute},c,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),p.createElement(v0,null,r),p.createElement(K9,{scope:n,isInside:!0},p.createElement(D9,{id:l.contentId,role:"tooltip"},o||r))))}),q9="TooltipArrow",X9=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=wn(n);return Y9(q9,n).isInside?null:p.createElement(P9,V({},o,r,{ref:t}))});function J9(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Q9(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function e7(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function t7(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=d>r&&n<(c-a)*(r-l)/(d-l)+a&&(o=!o)}return o}function n7(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),r7(t)}function r7(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const o7=z9,i7=Z9,s7=W9,a7=X9;function l7(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function Y(e,t){if(e==null)return{};var n=l7(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let o1;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(o1||(o1={}));const c7={[o1.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[o1.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[o1.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[o1.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[o1.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[o1.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[o1.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[o1.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[o1.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[o1.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[o1.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function z0(e,t,...n){const[r,...o]=c7[t](...n);console[e]("LEVA: "+r,...o)}const ee=z0.bind(null,"warn"),u7=z0.bind(null,"log"),d7=["value"],f7=["schema"],h7=["value"],Z0=[],$e={};function zo(e){let{value:t}=e,n=Y(e,d7);for(let r of Z0){const o=r(t,n);if(o)return o}}function ce(e,t){let{schema:n}=t,r=Y(t,f7);if(e in $e){ee(o1.ALREADY_REGISTERED_TYPE,e);return}Z0.push((o,i)=>n(o,i)&&e),$e[e]=r}function Hn(e,t,n,r){const{normalize:o}=$e[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=Y(t,h7);return{value:i,settings:s}}function p7(e,t,n,r,o,i){const{sanitize:s}=$e[e];return s?s(t,n,r,o,i):t}function Zo(e,t,n){const{format:r}=$e[e];return r?r(t,n):t}function C7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=fe(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},m7=Math.log(10);function Uo(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/m7)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const tn=(e,t,n)=>n===t?0:(ge(e,t,n)-t)/(n-t),nn=(e,t,n)=>e*(n-t)+t,v7=()=>"_"+Math.random().toString(36).substr(2,9),Wo=/\(([0-9+\-*/^ .]+)\)/,Go=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,Ko=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Yo=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,qo=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Xo=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function fe(e){if(isNaN(Number(e)))if(Wo.test(e)){const t=e.replace(Wo,(n,r)=>String(fe(r)));return fe(t)}else if(Go.test(e)){const t=e.replace(Go,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return fe(t)}else if(Ko.test(e)){const t=e.replace(Ko,(n,r,o)=>String(Number(r)*Number(o)));return fe(t)}else if(Yo.test(e)){const t=e.replace(Yo,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return fe(t)}else if(qo.test(e)){const t=e.replace(qo,(n,r,o)=>String(Number(r)+Number(o)));return fe(t)}else if(Xo.test(e)){const t=e.replace(Xo,(n,r,o)=>String(Number(r)-Number(o)));return fe(t)}else return Number(e);return Number(e)}function x7(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function w7(e,t){const n=z({},e);return t.forEach(r=>r in e&&delete n[r]),n}function y7(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function F0(e){return Object.prototype.toString.call(e)==="[object Object]"}const b7=e=>F0(e)&&Object.keys(e).length===0;let B1;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(B1||(B1={}));let z1;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(z1||(z1={}));const _7=["type","__customInput"],E7=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],$7=["type"];function U0(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:z({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:E,__customInput:$}=e,k=Y(e,_7);return U0($,t,k,E)}const{render:s,label:a,optional:l,order:c=0,disabled:d,hint:f,onChange:h,onEditStart:g,onEditEnd:C,transient:v}=e,x=Y(e,E7),m=z({render:s,key:t,label:a??t,hint:f,transient:v??!!h,onEditStart:g,onEditEnd:C,disabled:d,optional:l,order:c},n);let{type:w}=x,y=Y(x,$7);if(w=r??w,w in B1)return{type:w,input:y,options:m};let _;return r&&F0(y)&&"value"in y?_=y.value:_=b7(y)?void 0:y,{type:w,input:_,options:z(z({},m),{},{onChange:h,optional:(o=m.optional)!==null&&o!==void 0?o:!1,disabled:(i=m.disabled)!==null&&i!==void 0?i:!1})}}function k7(e,t,n,r){const o=U0(e,t),{type:i,input:s,options:a}=o;if(i)return i in B1?o:{type:i,input:Hn(i,s,n,r),options:a};let l=zo(s);return l?{type:l,input:Hn(l,s,n,r),options:a}:(l=zo({value:s}),l?{type:l,input:Hn(l,{value:s},n,r),options:a}:!1)}function Jo(e,t,n,r,o){const{value:i,type:s,settings:a}=e;e.value=W0({type:s,value:i,settings:a},t,n,r),e.fromPanel=o}const S7=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function W0({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let a;try{a=p7(e,s,n,t,o,i)}catch(l){throw new S7(`The value \`${r}\` did not result in a correct value.`,t,l)}return vt(a,t)?t:a}const G0=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},K0=e=>e.shiftKey?5:e.altKey?1/5:1;function j7(e,t){const n=console.error;console.error=()=>{},Ve.render(e,t),console.error=n}const L7=["value"],M7=["min","max"],O7=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},Y0=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=ge(o,t,n);return r?i+r:i},R7=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},q0=e=>{let{value:t}=e,n=Y(e,L7);const{min:r=-1/0,max:o=1/0}=n,i=Y(n,M7);let s=parseFloat(t);const a=typeof t=="string"?t.substring((""+s).length):void 0;s=ge(s,r,o);let l=n.step;l||(Number.isFinite(r)?Number.isFinite(o)?l=+(Math.abs(o-r)/100).toPrecision(1):l=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(l=+(Math.abs(o-s)/100).toPrecision(1)));const c=l?Uo(l)*10:Uo(s);l=l||c/10;const d=Math.round(ge(Math.log10(1/c),0,2));return{value:a?s+a:s,settings:z({initialValue:s,step:l,pad:d,min:r,max:o,suffix:a},i)}},X0=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var J0=Object.freeze({__proto__:null,schema:O7,sanitize:Y0,format:R7,normalize:q0,sanitizeStep:X0});function a1(){return a1=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function Dt(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const rt={$inputStyle:()=>e=>Dt(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>Dt(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>Dt(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>Dt(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:B,css:Sh,createTheme:T7,globalCss:H7,keyframes:jh}=E0({prefix:"leva",theme:n2(),utils:z(z({},rt),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":rt.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":rt.$focusStyle()(e)}),$hover:e=>({"&:hover":rt.$hoverStyle()(e)}),$active:e=>({"&:active":rt.$activeStyle()(e)})})}),I7=H7({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function A7(e){const t=n2();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=T7(t);return{theme:t,className:n.className}}function te(e,t){const{theme:n}=p.useContext(Rr);if(!(e in n)||!(t in n[e]))return ee(o1.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const r2=B("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),o2=B("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${r2}`]:{paddingLeft:0}}),V7=B(o2,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),D7=B("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),N7=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],B7=["onUpdate"];function Pr(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:a,inputType:l="text",rows:c=0}=e,d=Y(e,N7);const{id:f,emitOnEditStart:h,emitOnEditEnd:g,disabled:C}=C1(),v=a||f,x=p.useRef(null),m=c>0,w=m?"textarea":"input",y=p.useCallback($=>k=>{const S=k.currentTarget.value;$(S)},[]);b.useEffect(()=>{const $=x.current,k=y(S=>{r(S),g()});return $==null||$.addEventListener("blur",k),()=>$==null?void 0:$.removeEventListener("blur",k)},[y,r,g]);const _=p.useCallback($=>{$.key==="Enter"&&y(r)($)},[y,r]),E=Object.assign({as:w},m?{rows:c}:{},d);return b.createElement(D7,{textArea:m},t&&typeof t=="string"?b.createElement(o2,null,t):t,b.createElement(r2,a1({levaType:s,ref:x,id:v,type:l,autoComplete:"off",spellCheck:"false",value:n,onChange:y(o),onFocus:()=>h(),onKeyPress:_,onKeyDown:i,disabled:C},E)))}function z7(e){let{onUpdate:t}=e,n=Y(e,B7);const r=p.useCallback(i=>t(g7(i)),[t]),o=p.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;t(l=>parseFloat(l)+s*a)}},[t]);return b.createElement(Pr,a1({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const rn=B("div",{}),or=B("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),Z7=B("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${or}::after`]:{opacity:.6},[`${rn}:hover > & + ${or}::after`]:{opacity:.6},[`${rn}:hover > & > svg`]:{opacity:1}}),i2=B("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${rn}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),s2=B("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${i2} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),a2=B(s2,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),F7=B("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),U7=B("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),ir=B("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),W7=B("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${ir}`]:{pointerEvents:"auto"}}}}}),l2=B("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),G7=B("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),K7=B(a7,{fill:"$toolTipBackground"});function Tr({children:e}){const{className:t}=p.useContext(Rr);return b.createElement(Rs,{className:t},e)}const Y7=["align"];function q7(){const{id:e,disable:t,disabled:n}=C1();return b.createElement(b.Fragment,null,b.createElement(U7,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),b.createElement("label",{htmlFor:e+"__disable"}))}function X7(e){const{id:t,optional:n,hint:r}=C1(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return b.createElement(b.Fragment,null,n&&b.createElement(q7,null),r!==void 0?b.createElement(o7,null,b.createElement(i7,{asChild:!0},b.createElement(ir,a1({},o,e))),b.createElement(s7,{side:"top",sideOffset:2},b.createElement(G7,null,r,b.createElement(K7,null)))):b.createElement(ir,a1({},o,i,e)))}function Z1(e){let{align:t}=e,n=Y(e,Y7);const{value:r,label:o,key:i,disabled:s}=C1(),{hideCopyButton:a}=P7(),l=!a&&i!==void 0,[c,d]=p.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),d(!0)}catch{ee(o1.CLIPBOARD_ERROR,{[i]:r})}};return b.createElement(F7,{align:t,onPointerLeave:()=>d(!1)},b.createElement(X7,n),l&&!s&&b.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},c?b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},b.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),b.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):b.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},b.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),b.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const J7=["toggled"],Q7=B("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Hr(e){let{toggled:t}=e,n=Y(e,J7);return b.createElement(Q7,a1({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),b.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const e4=["input"];function A1(e){let{input:t}=e,n=Y(e,e4);return t?b.createElement(a2,n):b.createElement(s2,n)}function c2({value:e,type:t,settings:n,setValue:r}){const[o,i]=p.useState(Zo(t,e,n)),s=p.useRef(e),a=p.useRef(n);a.current=n;const l=p.useCallback(d=>i(Zo(t,d,a.current)),[t]),c=p.useCallback(d=>{try{r(d)}catch(f){const{type:h,previousValue:g}=f;if(h!=="LEVA_ERROR")throw f;l(g)}},[l,r]);return p.useEffect(()=>{vt(e,s.current)||l(e),s.current=e},[e,l]),{displayValue:o,onChange:i,onUpdate:c}}function Ot(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=C1();return r9(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function t4(e){const t=p.useRef(null),n=p.useRef(null),r=p.useRef(!1);return p.useEffect(()=>{const o=G0(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),p.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function u2(){const e=p.useRef(null),t=p.useRef({x:0,y:0}),n=p.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const n4=["__refCount"],In=(e,t)=>{if(!e[t])return null;const n=e[t];return Y(n,n4)};function r4(e){const t=Mt(),[n,r]=p.useState(In(t.getData(),e)),o=p.useCallback(c=>t.setValueAtPath(e,c,!0),[e,t]),i=p.useCallback(c=>t.setSettingsAtPath(e,c),[e,t]),s=p.useCallback(c=>t.disableInputAtPath(e,c),[e,t]),a=p.useCallback(()=>t.emitOnEditStart(e),[e,t]),l=p.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return p.useEffect(()=>{r(In(t.getData(),e));const c=t.useStore.subscribe(d=>In(d.data,e),r,{equalityFn:St});return()=>c()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:a,emitOnEditEnd:l}]}const o4=B("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),d2=B("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),sr=B("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),f2=B("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),h2=B("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function i4({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=p.useRef(null),a=p.useRef(null),l=p.useRef(0),c=te("sizes","scrubberWidth"),d=Ot(({event:h,first:g,xy:[C],movement:[v],memo:x})=>{if(g){const{width:w,left:y}=s.current.getBoundingClientRect();l.current=w-parseFloat(c),x=(h==null?void 0:h.target)===a.current?e:nn((C-y)/w,t,n)}const m=x+nn(v/l.current,0,n-t);return r(X0(m,{step:o,initialValue:i})),x}),f=tn(e,t,n);return b.createElement(f2,a1({ref:s},d()),b.createElement(d2,null,b.createElement(h2,{style:{left:0,right:`${(1-f)*100}%`}})),b.createElement(sr,{ref:a,style:{left:`calc(${f} * (100% - ${c}))`}}))}const s4=b.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=p.useState(!1),s=Ot(({active:a,delta:[l],event:c,memo:d=0})=>(i(a),d+=l/2,Math.abs(d)>=1&&(t(f=>parseFloat(f)+Math.floor(d)*n*K0(c)),d=0),d));return b.createElement(V7,a1({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function p2({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const a=s>0&&b.createElement(s4,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return b.createElement(z7,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:a})}function a4(){const e=C1(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:a}=o,l=a!==1/0&&s!==-1/0;return b.createElement(A1,{input:!0},b.createElement(Z1,null,t),b.createElement(o4,{hasRange:l},l&&b.createElement(i4,a1({value:parseFloat(n),onDrag:r},o)),b.createElement(p2,a1({},e,{id:i,label:"value",innerLabelTrim:l?0:1}))))}const{sanitizeStep:l4}=J0,c4=Y(J0,["sanitizeStep"]);var u4=z({component:a4},c4);const d4=(e,t)=>S1().schema({options:S1().passesAnyOf(S1().object(),S1().array())}).test(t),f4=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},h4=(e,{values:t})=>t.indexOf(e),p4=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var C4=Object.freeze({__proto__:null,schema:d4,sanitize:f4,format:h4,normalize:p4});const g4=B("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),ar=B("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),m4=B("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${ar}:focus + &`]:{$focusStyle:""},[`${ar}:hover + &`]:{$hoverStyle:""}});function v4({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:a}=o,l=p.useRef();return t===a[e]&&(l.current=s[e]),b.createElement(g4,null,b.createElement(ar,{id:r,value:e,onChange:c=>n(a[Number(c.currentTarget.value)]),disabled:i},s.map((c,d)=>b.createElement("option",{key:c,value:d},c))),b.createElement(m4,null,l.current),b.createElement(Hr,{toggled:!0}))}function x4(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(v4,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var w4=z({component:x4},C4);const y4=e=>S1().string().test(e),b4=e=>{if(typeof e!="string")throw Error("Invalid string");return e},_4=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var E4=Object.freeze({__proto__:null,schema:y4,sanitize:b4,normalize:_4});const $4=["displayValue","onUpdate","onChange","editable"],k4=B("div",{whiteSpace:"pre-wrap"});function S4(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=Y(e,$4);return o?b.createElement(Pr,a1({value:t,onUpdate:n,onChange:r},i)):b.createElement(k4,null,t)}function j4(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(S4,a1({displayValue:n,onUpdate:r,onChange:o},t)))}var L4=z({component:j4},E4);const M4=e=>S1().boolean().test(e),O4=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var R4=Object.freeze({__proto__:null,schema:M4,sanitize:O4});const P4=B("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function T4({value:e,onUpdate:t,id:n,disabled:r}){return b.createElement(P4,null,b.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),b.createElement("label",{htmlFor:n},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},b.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function H4(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(T4,{value:t,onUpdate:n,id:o,disabled:r}))}var I4=z({component:H4},R4);const A4=["locked"];function V4({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=p.useRef(e[n]);s.current=e[n];const a=p.useCallback(c=>o({[n]:W0({type:"NUMBER",value:s.current,settings:r},c)}),[o,r,n]),l=c2({type:"NUMBER",value:e[n],settings:r,setValue:a});return b.createElement(p2,{id:t,label:n,value:e[n],displayValue:l.displayValue,onUpdate:l.onUpdate,onChange:l.onChange,settings:r,innerLabelTrim:i})}const D4=B("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function N4(e){let{locked:t}=e,n=Y(e,A4);return b.createElement("svg",a1({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?b.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):b.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Ir({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=C1(),{lock:s,locked:a}=n;return b.createElement(D4,{withLock:s},s&&b.createElement(N4,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(e).map((l,c)=>b.createElement(V4,{id:c===0?o:`${o}.${l}`,key:l,valueKey:l,value:e,settings:n[l],onUpdate:t,innerLabelTrim:r})))}const C2=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=q0(z({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:a,max:l}=t[i]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(l))&&(n[i].step=r,n[i].pad=o)}return n},B4=["lock"],z4=["value"];function Z4(e){const t=S1().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function F4(e){return Array.isArray(e)?"array":"object"}function ft(e,t,n){return F4(e)===t?e:t==="array"?Object.values(e):y7(e,n)}const U4=(e,t,n)=>{const r=ft(e,"object",t.keys);for(let s in r)r[s]=Y0(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=ft(n,"object",t.keys);if(o.length===1&&t.locked){const a=o[0],l=r[a],c=s[a],d=c!==0?l/c:1;for(let f in s)f===a?i[a]=l:i[f]=s[f]*d}else i=z(z({},s),r)}return ft(i,t.format,t.keys)},W4=(e,t)=>ft(e,"object",t.keys),G4=e=>!!e&&("step"in e||"min"in e||"max"in e);function K4(e,t,n=[]){const{lock:r=!1}=t,o=Y(t,B4),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,a=ft(e,"object",s),l=G4(o)?s.reduce((d,f)=>Object.assign(d,{[f]:o}),{}):o,c=C2(a,l);return{value:i==="array"?e:a,settings:z(z({},c),{},{format:i,keys:s,lock:r,locked:!1})}}function g2(e){return{schema:Z4(e.length),normalize:t=>{let{value:n}=t,r=Y(t,z4);return K4(n,r,e)},format:(t,n)=>W4(t,n),sanitize:(t,n,r)=>U4(t,n,r)}}var Y4={grad:.9,turn:360,rad:360/(2*Math.PI)},J1=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},f1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},H1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},m2=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Qo=function(e){return{r:H1(e.r,0,255),g:H1(e.g,0,255),b:H1(e.b,0,255),a:H1(e.a)}},An=function(e){return{r:f1(e.r),g:f1(e.g),b:f1(e.b),a:f1(e.a,3)}},q4=/^#([0-9a-f]{3,8})$/i,Nt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},v2=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},x2=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,a,s,s,l,r][c],g:255*[l,r,r,a,s,s][c],b:255*[s,s,l,r,r,a][c],a:o}},ei=function(e){return{h:m2(e.h),s:H1(e.s,0,100),l:H1(e.l,0,100),a:H1(e.a)}},ti=function(e){return{h:f1(e.h),s:f1(e.s),l:f1(e.l),a:f1(e.a,3)}},ni=function(e){return x2((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},ht=function(e){return{h:(t=v2(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},X4=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,J4=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Q4=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,e8=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,lr={string:[[function(e){var t=q4.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?f1(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?f1(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Q4.exec(e)||e8.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Qo({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=X4.exec(e)||J4.exec(e);if(!t)return null;var n,r,o=ei({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(Y4[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return ni(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return J1(t)&&J1(n)&&J1(r)?Qo({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!J1(t)||!J1(n)||!J1(r))return null;var s=ei({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return ni(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!J1(t)||!J1(n)||!J1(r))return null;var s=function(a){return{h:m2(a.h),s:H1(a.s,0,100),v:H1(a.v,0,100),a:H1(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return x2(s)},"hsv"]]},ri=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=An(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?Nt(f1(255*i)):"","#"+Nt(n)+Nt(r)+Nt(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return An(this.rgba)},e.prototype.toRgbString=function(){return t=An(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return ti(ht(this.rgba))},e.prototype.toHslString=function(){return t=ti(ht(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=v2(this.rgba),{h:f1(t.h),s:f1(t.s),v:f1(t.v),a:f1(t.a,3)};var t},e.prototype.invert=function(){return v1({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),v1(Vn(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),v1(Vn(this.rgba,-t))},e.prototype.grayscale=function(){return v1(Vn(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),v1(oi(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),v1(oi(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?v1({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):f1(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=ht(this.rgba);return typeof t=="number"?v1({h:t,s:n.s,l:n.l,a:n.a}):f1(n.h)},e.prototype.isEqual=function(t){return this.toHex()===v1(t).toHex()},e}(),v1=function(e){return e instanceof cr?e:new cr(e)},ii=[],n8=function(e){e.forEach(function(t){ii.indexOf(t)<0&&(t(cr,lr),ii.push(t))})};function r8(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,c=r[this.toHex()];if(c)return c;if(s!=null&&s.closest){var d=this.toRgb(),f=1/0,h="black";if(!i.length)for(var g in n)i[g]=new e(n[g]).toRgb();for(var C in n){var v=(a=d,l=i[C],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));v=0||(o[n]=e[n]);return o}function ur(e){var t=p.useRef(e),n=p.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var Ue=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:x.buttons>0)&&o.current?i(si(o.current,x,a.current)):v(!1)},C=function(){return v(!1)};function v(x){var m=l.current,w=dr(o.current),y=x?w.addEventListener:w.removeEventListener;y(m?"touchmove":"mousemove",g),y(m?"touchend":"mouseup",C)}return[function(x){var m=x.nativeEvent,w=o.current;if(w&&(ai(m),!function(_,E){return E&&!pt(_)}(m,l.current)&&w)){if(pt(m)){l.current=!0;var y=m.changedTouches||[];y.length&&(a.current=y[0].identifier)}w.focus(),i(si(w,m,a.current)),v(!0)}},function(x){var m=x.which||x.keyCode;m<37||m>40||(x.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},v]},[s,i]),d=c[0],f=c[1],h=c[2];return p.useEffect(function(){return h},[h]),b.createElement("div",Je({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),Rt=function(e){return e.filter(Boolean).join(" ")},Dr=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Rt(["react-colorful__pointer",e.className]);return b.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},b.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},w1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},y2=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:w1(e.h),s:w1(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:w1(o/2),a:w1(r,2)}},fr=function(e){var t=y2(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Nn=function(e){var t=y2(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},b2=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:w1(255*[r,a,s,s,l,r][c]),g:w1(255*[l,r,r,a,s,s][c]),b:w1(255*[s,s,l,r,r,a][c]),a:w1(o,2)}},_2=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:w1(60*(a<0?a+6:a)),s:w1(i?s/i*100:0),v:w1(i/255*100),a:o}},E2=b.memo(function(e){var t=e.hue,n=e.onChange,r=Rt(["react-colorful__hue",e.className]);return b.createElement("div",{className:r},b.createElement(Vr,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:Ue(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":w1(t),"aria-valuemax":"360","aria-valuemin":"0"},b.createElement(Dr,{className:"react-colorful__hue-pointer",left:t/360,color:fr({h:t,s:100,v:100,a:1})})))}),$2=b.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:fr({h:t.h,s:100,v:100,a:1})};return b.createElement("div",{className:"react-colorful__saturation",style:r},b.createElement(Vr,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:Ue(t.s+100*o.left,0,100),v:Ue(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+w1(t.s)+"%, Brightness "+w1(t.v)+"%"},b.createElement(Dr,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:fr(t)})))}),Nr=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function k2(e,t,n){var r=ur(n),o=p.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=p.useRef({color:t,hsva:i});p.useEffect(function(){if(!e.equal(t,a.current.color)){var c=e.toHsva(t);a.current={hsva:c,color:t},s(c)}},[t,e]),p.useEffect(function(){var c;Nr(i,a.current.hsva)||e.equal(c=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:c},r(c))},[i,e,r]);var l=p.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[i,l]}var o8=typeof window<"u"?p.useLayoutEffect:p.useEffect,i8=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},li=new Map,S2=function(e){o8(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!li.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,li.set(t,n);var r=i8();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},s8=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Ar(e,["className","colorModel","color","onChange"]),a=p.useRef(null);S2(a);var l=k2(n,o,i),c=l[0],d=l[1],f=Rt(["react-colorful",t]);return b.createElement("div",Je({},s,{ref:a,className:f}),b.createElement($2,{hsva:c,onChange:d}),b.createElement(E2,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},a8=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Nn(Object.assign({},n,{a:0}))+", "+Nn(Object.assign({},n,{a:1}))+")"},i=Rt(["react-colorful__alpha",t]),s=w1(100*n.a);return b.createElement("div",{className:i},b.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),b.createElement(Vr,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:Ue(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},b.createElement(Dr,{className:"react-colorful__alpha-pointer",left:n.a,color:Nn(n)})))},l8=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Ar(e,["className","colorModel","color","onChange"]),a=p.useRef(null);S2(a);var l=k2(n,o,i),c=l[0],d=l[1],f=Rt(["react-colorful",t]);return b.createElement("div",Je({},s,{ref:a,className:f}),b.createElement($2,{hsva:c,onChange:d}),b.createElement(E2,{hue:c.h,onChange:d}),b.createElement(a8,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},c8={defaultColor:{r:0,g:0,b:0,a:1},toHsva:_2,fromHsva:b2,equal:Nr},u8=function(e){return b.createElement(l8,Je({},e,{colorModel:c8}))},d8={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return _2({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=b2(e)).r,g:t.g,b:t.b};var t},equal:Nr},f8=function(e){return b.createElement(s8,Je({},e,{colorModel:d8}))};function Lh(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function Qe(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(d){try{c(r.next(d))}catch(f){s(f)}}function l(d){try{c(r.throw(d))}catch(f){s(f)}}function c(d){d.done?i(d.value):o(d.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function et(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function p8(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function g8(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=C8.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var m8=[".DS_Store","Thumbs.db"];function v8(e){return Qe(this,void 0,void 0,function(){return et(this,function(t){return on(e)&&x8(e)?[2,_8(e.dataTransfer,e.type)]:w8(e)?[2,y8(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,b8(e)]:[2,[]]})})}function x8(e){return on(e.dataTransfer)}function w8(e){return on(e)&&on(e.target)}function on(e){return typeof e=="object"&&e!==null}function y8(e){return hr(e.target.files).map(function(t){return Pt(t)})}function b8(e){return Qe(this,void 0,void 0,function(){var t;return et(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Pt(r)})]}})})}function _8(e,t){return Qe(this,void 0,void 0,function(){var n,r;return et(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=hr(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(E8))]):[3,2];case 1:return r=o.sent(),[2,ci(j2(r))];case 2:return[2,ci(hr(e.files).map(function(i){return Pt(i)}))]}})})}function ci(e){return e.filter(function(t){return m8.indexOf(t.name)===-1})}function hr(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Ci(n)];if(e.sizen)return[!1,Ci(n)]}return[!0,null]}function ot(e){return e!=null}function V8(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(a){var l=O2(a,n),c=hi(l,1),d=c[0],f=R2(a,r,o),h=hi(f,1),g=h[0];return d&&g})}function sn(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Bt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function mi(e){e.preventDefault()}function D8(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function N8(e){return e.indexOf("Edge/")!==-1}function B8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return D8(e)||N8(e)}function K1(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ra(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Br=p.forwardRef(function(e,t){var n=e.children,r=an(e,W8),o=H2(r),i=o.open,s=an(o,G8);return p.useImperativeHandle(t,function(){return{open:i}},[i]),b.createElement(p.Fragment,null,n(r1(r1({},s),{},{open:i})))});Br.displayName="Dropzone";var T2={disabled:!1,getFilesFromEvent:v8,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Br.defaultProps=T2;Br.propTypes={children:Q.func,accept:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]),multiple:Q.bool,preventDropOnDocument:Q.bool,noClick:Q.bool,noKeyboard:Q.bool,noDrag:Q.bool,noDragEventsBubbling:Q.bool,minSize:Q.number,maxSize:Q.number,maxFiles:Q.number,disabled:Q.bool,getFilesFromEvent:Q.func,onFileDialogCancel:Q.func,onFileDialogOpen:Q.func,useFsAccessApi:Q.bool,onDragEnter:Q.func,onDragLeave:Q.func,onDragOver:Q.func,onDrop:Q.func,onDropAccepted:Q.func,onDropRejected:Q.func,validator:Q.func};var gr={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function H2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r1(r1({},T2),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,l=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,g=t.onDropAccepted,C=t.onDropRejected,v=t.onFileDialogCancel,x=t.onFileDialogOpen,m=t.useFsAccessApi,w=t.preventDropOnDocument,y=t.noClick,_=t.noKeyboard,E=t.noDrag,$=t.noDragEventsBubbling,k=t.validator,S=p.useMemo(function(){return typeof x=="function"?x:xi},[x]),L=p.useMemo(function(){return typeof v=="function"?v:xi},[v]),O=p.useRef(null),M=p.useRef(null),j=p.useReducer(oa,gr),D=Bn(j,2),T=D[0],P=D[1],R=T.isFocused,I=T.isFileDialogActive,Z=T.draggedFiles,F=p.useRef(typeof window<"u"&&window.isSecureContext&&m&&z8()),e1=function(){!F.current&&I&&setTimeout(function(){if(M.current){var N=M.current.files;N.length||(P({type:"closeDialog"}),L())}},300)};p.useEffect(function(){return window.addEventListener("focus",e1,!1),function(){window.removeEventListener("focus",e1,!1)}},[M,I,L,F]);var W=p.useRef([]),X=function(N){O.current&&O.current.contains(N.target)||(N.preventDefault(),W.current=[])};p.useEffect(function(){return w&&(document.addEventListener("dragover",mi,!1),document.addEventListener("drop",X,!1)),function(){w&&(document.removeEventListener("dragover",mi),document.removeEventListener("drop",X))}},[O,w]);var u1=p.useCallback(function(H){H.preventDefault(),H.persist(),F1(H),W.current=[].concat(q8(W.current),[H.target]),Bt(H)&&Promise.resolve(o(H)).then(function(N){sn(H)&&!$||(P({draggedFiles:N,isDragActive:!0,type:"setDraggedFiles"}),c&&c(H))})},[o,c,$]),l1=p.useCallback(function(H){H.preventDefault(),H.persist(),F1(H);var N=Bt(H);if(N&&H.dataTransfer)try{H.dataTransfer.dropEffect="copy"}catch{}return N&&f&&f(H),!1},[f,$]),G=p.useCallback(function(H){H.preventDefault(),H.persist(),F1(H);var N=W.current.filter(function($1){return O.current&&O.current.contains($1)}),h1=N.indexOf(H.target);h1!==-1&&N.splice(h1,1),W.current=N,!(N.length>0)&&(P({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Bt(H)&&d&&d(H))},[O,d,$]),d1=p.useCallback(function(H,N){var h1=[],$1=[];H.forEach(function(D1){var tt=O2(D1,n),Re=Bn(tt,2),_n=Re[0],En=Re[1],$n=R2(D1,s,i),Ht=Bn($n,2),kn=Ht[0],Sn=Ht[1],jn=k?k(D1):null;if(_n&&kn&&!jn)h1.push(D1);else{var Ln=[En,Sn];jn&&(Ln=Ln.concat(jn)),$1.push({file:D1,errors:Ln.filter(function(f3){return f3})})}}),(!a&&h1.length>1||a&&l>=1&&h1.length>l)&&(h1.forEach(function(D1){$1.push({file:D1,errors:[A8]})}),h1.splice(0)),P({acceptedFiles:h1,fileRejections:$1,type:"setFiles"}),h&&h(h1,$1,N),$1.length>0&&C&&C($1,N),h1.length>0&&g&&g(h1,N)},[P,a,n,s,i,l,h,g,C,k]),_1=p.useCallback(function(H){H.preventDefault(),H.persist(),F1(H),W.current=[],Bt(H)&&Promise.resolve(o(H)).then(function(N){sn(H)&&!$||d1(N,H)}),P({type:"reset"})},[o,d1,$]),E1=p.useCallback(function(){if(F.current){P({type:"openDialog"}),S();var H={multiple:a,types:Z8(n)};window.showOpenFilePicker(H).then(function(N){return o(N)}).then(function(N){d1(N,null),P({type:"closeDialog"})}).catch(function(N){F8(N)?(L(N),P({type:"closeDialog"})):U8(N)&&(F.current=!1,M.current&&(M.current.value=null,M.current.click()))});return}M.current&&(P({type:"openDialog"}),S(),M.current.value=null,M.current.click())},[P,S,L,m,d1,n,a]),L1=p.useCallback(function(H){!O.current||!O.current.isEqualNode(H.target)||(H.key===" "||H.key==="Enter"||H.keyCode===32||H.keyCode===13)&&(H.preventDefault(),E1())},[O,E1]),V1=p.useCallback(function(){P({type:"focus"})},[]),ue=p.useCallback(function(){P({type:"blur"})},[]),de=p.useCallback(function(){y||(B8()?setTimeout(E1,0):E1())},[y,E1]),U=function(N){return r?null:N},J=function(N){return _?null:U(N)},n1=function(N){return E?null:U(N)},F1=function(N){$&&N.stopPropagation()},U1=p.useMemo(function(){return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=H.refKey,h1=N===void 0?"ref":N,$1=H.role,D1=H.onKeyDown,tt=H.onFocus,Re=H.onBlur,_n=H.onClick,En=H.onDragEnter,$n=H.onDragOver,Ht=H.onDragLeave,kn=H.onDrop,Sn=an(H,K8);return r1(r1(Cr({onKeyDown:J(K1(D1,L1)),onFocus:J(K1(tt,V1)),onBlur:J(K1(Re,ue)),onClick:U(K1(_n,de)),onDragEnter:n1(K1(En,u1)),onDragOver:n1(K1($n,l1)),onDragLeave:n1(K1(Ht,G)),onDrop:n1(K1(kn,_1)),role:typeof $1=="string"&&$1!==""?$1:"button"},h1,O),!r&&!_?{tabIndex:0}:{}),Sn)}},[O,L1,V1,ue,de,u1,l1,G,_1,_,E,r]),W1=p.useCallback(function(H){H.stopPropagation()},[]),Oe=p.useMemo(function(){return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=H.refKey,h1=N===void 0?"ref":N,$1=H.onChange,D1=H.onClick,tt=an(H,Y8),Re=Cr({accept:n,multiple:a,type:"file",style:{display:"none"},onChange:U(K1($1,_1)),onClick:U(K1(D1,W1)),tabIndex:-1},h1,M);return r1(r1({},Re),tt)}},[M,n,a,_1,r]),me=Z.length,G1=me>0&&V8({files:Z,accept:n,minSize:s,maxSize:i,multiple:a,maxFiles:l}),Tt=me>0&&!G1;return r1(r1({},T),{},{isDragAccept:G1,isDragReject:Tt,isFocused:R&&!r,getRootProps:U1,getInputProps:Oe,rootRef:O,inputRef:M,open:U(E1)})}function oa(e,t){switch(t.type){case"focus":return r1(r1({},e),{},{isFocused:!0});case"blur":return r1(r1({},e),{},{isFocused:!1});case"openDialog":return r1(r1({},gr),{},{isFileDialogActive:!0});case"closeDialog":return r1(r1({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return r1(r1({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return r1(r1({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return r1({},gr);default:return e}}function xi(){}function ia(e){let t;const n=new Set,r=(c,d)=>{const f=typeof c=="function"?c(t):c;if(f!==t){const h=t;t=d?f:Object.assign({},t,f),n.forEach(g=>g(t,h))}},o=()=>t,i=(c,d=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let h=d(t);function g(){const C=d(t);if(!f(h,C)){const v=h;c(h=C,v)}}return n.add(g),()=>n.delete(g)},l={setState:r,getState:o,subscribe:(c,d,f)=>d||f?i(c,d,f):(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return t=e(r,o,l),l}const sa=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),wi=sa?p.useEffect:p.useLayoutEffect;function aa(e){const t=typeof e=="function"?ia(e):e,n=(r=t.getState,o=Object.is)=>{const[,i]=p.useReducer(x=>x+1,0),s=t.getState(),a=p.useRef(s),l=p.useRef(r),c=p.useRef(o),d=p.useRef(!1),f=p.useRef();f.current===void 0&&(f.current=r(s));let h,g=!1;(a.current!==s||l.current!==r||c.current!==o||d.current)&&(h=r(s),g=!o(f.current,h)),wi(()=>{g&&(f.current=h),a.current=s,l.current=r,c.current=o,d.current=!1});const C=p.useRef(s);wi(()=>{const x=()=>{try{const w=t.getState(),y=l.current(w);c.current(f.current,y)||(a.current=w,f.current=y,i())}catch{d.current=!0,i()}},m=t.subscribe(x);return t.getState()!==C.current&&x(),m},[]);const v=g?h:f.current;return p.useDebugValue(v),v};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const o=r.length<=0;return{value:r.shift(),done:o}}}},n}const la=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(s,a,l)=>{let c=s;if(a){const d=(l==null?void 0:l.equalityFn)||Object.is;let f=s(r.getState());c=h=>{const g=s(h);if(!d(f,g)){const C=f;a(f=g,C)}},l!=null&&l.fireImmediately&&a(f,f)}return o(c)},e(t,n,r)};/*! +import{J as Ui,K as c3,R as Ve,L as N1,M as b,O as Wi,P as bt,S as _t,U as Se,y as V,V as Wt,r as p,X as Et,j as u,Y as _e,Z as $t,$ as u3,a0 as Ne,a1 as je,a2 as qr,a3 as Xr,a4 as hn,a5 as Jr,a6 as Ki,a7 as d3,c as Gi,u as pn,s as c1,a as s1,F as n1,B as Yi,C as yr,a8 as f3,a9 as h3,k as qi,b as p3,d as C3,T as R1,aa as g3,I as m3}from"./index-6502785b.js";function v3(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const x3=e=>{const[t,n,r]=e.split(":"),o=parseInt(t,10),i=parseInt(n,10),s=parseInt(r,10);return o*3600+i*60+s};var Xi={exports:{}},w3="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",y3=w3,b3=y3;function Ji(){}function Qi(){}Qi.resetWarningCache=Ji;var _3=function(){function e(r,o,i,s,a,l){if(l!==b3){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:Qi,resetWarningCache:Ji};return n.PropTypes=n,n};Xi.exports=_3();var E3=Xi.exports;const Q=Ui(E3);function Qr(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function $3(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Y1(e){return e&&e.ownerDocument||document}function Ct(e){return Y1(e).defaultView||window}function k3(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const S3=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},eo=S3,to={disabled:!1};var j3=function(t){return t.scrollTop},at="unmounted",ve="exited",xe="entering",Ae="entered",Kn="exiting",ae=function(e){c3(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=ve,i.appearStatus=xe):l=Ae:r.unmountOnExit||r.mountOnEnter?l=at:l=ve,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===at?{status:ve}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==xe&&s!==Ae&&(i=xe):(s===xe||s===Ae)&&(i=Kn)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===xe){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ve.findDOMNode(this);s&&j3(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ve&&this.setState({status:at})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Ve.findDOMNode(this),a],c=l[0],d=l[1],f=this.getTimeouts(),h=a?f.appear:f.enter;if(!o&&!s||to.disabled){this.safeSetState({status:Ae},function(){i.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:xe},function(){i.props.onEntering(c,d),i.onTransitionEnd(h,function(){i.safeSetState({status:Ae},function(){i.props.onEntered(c,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ve.findDOMNode(this);if(!i||to.disabled){this.safeSetState({status:ve},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Kn},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:ve},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ve.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===at)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=N1(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(Wi.Provider,{value:null},typeof s=="function"?s(o,a):b.cloneElement(b.Children.only(s),a))},t}(b.Component);ae.contextType=Wi;ae.propTypes={};function Pe(){}ae.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pe,onEntering:Pe,onEntered:Pe,onExit:Pe,onExiting:Pe,onExited:Pe};ae.UNMOUNTED=at;ae.EXITED=ve;ae.ENTERING=xe;ae.ENTERED=Ae;ae.EXITING=Kn;const e0=ae,t0=e=>e.scrollTop;function Kt(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function L3(e){return bt("MuiPaper",e)}_t("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 M3=["className","component","elevation","square","variant"],O3=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return $t(i,L3,o)},R3=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 V({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"&&V({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Wt("#fff",eo(t.elevation))}, ${Wt("#fff",eo(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),P3=p.forwardRef(function(t,n){const r=Et({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=N1(r,M3),d=V({},r,{component:i,elevation:s,square:a,variant:l}),f=O3(d);return u.jsx(R3,V({as:i,ownerState:d,className:_e(f.root,o),ref:n},c))}),T3=P3;function H3(e){return bt("MuiIconButton",e)}const I3=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),A3=I3,V3=["edge","children","className","color","disabled","disableFocusRipple","size"],D3=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Ne(r)}`,o&&`edge${Ne(o)}`,`size${Ne(i)}`]};return $t(s,H3,t)},N3=Se(u3,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Ne(n.color)}`],n.edge&&t[`edge${Ne(n.edge)}`],t[`size${Ne(n.size)}`]]}})(({theme:e,ownerState:t})=>V({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Wt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return V({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&V({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":V({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${A3.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),B3=p.forwardRef(function(t,n){const r=Et({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium"}=r,f=N1(r,V3),h=V({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:d}),g=D3(h);return u.jsx(N3,V({className:_e(g.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:h},f,{children:i}))}),n0=B3;function r0(e){return typeof e=="string"}function z3(e,t,n){return e===void 0||r0(e)?t:V({},t,{ownerState:V({},t.ownerState,n)})}function o0(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Z3(e,t,n){return typeof e=="function"?e(t,n):e}function i0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function F3(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=no(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),C=V({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=V({},n,o,r);return g.length>0&&(v.className=g),Object.keys(C).length>0&&(v.style=C),{props:v,internalRef:void 0}}const s=o0(V({},o,r)),a=ro(r),l=ro(o),c=t(s),d=no(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=V({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=V({},c,n,l,a);return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}const U3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Gt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=N1(e,U3),a=i?{}:Z3(r,o),{props:l,internalRef:c}=F3(V({},s,{externalSlotProps:a})),d=je(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return z3(n,V({},l,{ref:d}),o)}const W3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function K3(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function G3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Y3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||G3(e))}function q3(e){const t=[],n=[];return Array.from(e.querySelectorAll(W3)).forEach((r,o)=>{const i=K3(r);i===-1||!Y3(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function X3(){return!0}function J3(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=q3,isEnabled:s=X3,open:a}=e,l=p.useRef(!1),c=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(null),g=p.useRef(!1),C=p.useRef(null),v=je(t.ref,C),x=p.useRef(null);p.useEffect(()=>{!a||!C.current||(g.current=!n)},[n,a]),p.useEffect(()=>{if(!a||!C.current)return;const y=Y1(C.current);return C.current.contains(y.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),g.current&&C.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),p.useEffect(()=>{if(!a||!C.current)return;const y=Y1(C.current),_=k=>{x.current=k,!(r||!s()||k.key!=="Tab")&&y.activeElement===C.current&&k.shiftKey&&(l.current=!0,d.current&&d.current.focus())},E=()=>{const k=C.current;if(k===null)return;if(!y.hasFocus()||!s()||l.current){l.current=!1;return}if(k.contains(y.activeElement)||r&&y.activeElement!==c.current&&y.activeElement!==d.current)return;if(y.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let S=[];if((y.activeElement===c.current||y.activeElement===d.current)&&(S=i(C.current)),S.length>0){var L,O;const M=!!((L=x.current)!=null&&L.shiftKey&&((O=x.current)==null?void 0:O.key)==="Tab"),j=S[0],D=S[S.length-1];typeof j!="string"&&typeof D!="string"&&(M?D.focus():j.focus())}else k.focus()};y.addEventListener("focusin",E),y.addEventListener("keydown",_,!0);const $=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval($),y.removeEventListener("focusin",E),y.removeEventListener("keydown",_,!0)}},[n,r,o,s,a,i]);const m=y=>{f.current===null&&(f.current=y.relatedTarget),g.current=!0,h.current=y.target;const _=t.props.onFocus;_&&_(y)},w=y=>{f.current===null&&(f.current=y.relatedTarget),g.current=!0};return u.jsxs(p.Fragment,{children:[u.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:v,onFocus:m}),u.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}function Q3(e){return typeof e=="function"?e():e}const e5=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=p.useState(null),l=je(p.isValidElement(r)?r.ref:null,n);if(qr(()=>{i||a(Q3(o)||document.body)},[o,i]),qr(()=>{if(s&&!i)return Xr(n,s),()=>{Xr(n,null)}},[n,s,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return u.jsx(p.Fragment,{children:r})}return u.jsx(p.Fragment,{children:s&&hn.createPortal(r,s)})});function t5(e){const t=Y1(e);return t.body===e?Ct(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function dt(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function oo(e){return parseInt(Ct(e).getComputedStyle(e).paddingRight,10)||0}function n5(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function io(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!n5(s);a&&l&&dt(s,o)})}function Mn(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function r5(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(t5(r)){const s=k3(Y1(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${oo(r)+s}px`;const a=Y1(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${oo(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Y1(r).body;else{const s=r.parentElement,a=Ct(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function o5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class i5{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&dt(t.modalRef,!1);const o=o5(n);io(n,t.mount,t.modalRef,o,!0);const i=Mn(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Mn(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=r5(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Mn(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&dt(t.modalRef,n),io(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&dt(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function s5(e){return typeof e=="function"?e():e}function a5(e){return e?e.props.hasOwnProperty("in"):!1}const l5=new i5;function c5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=l5,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:f}=e,h=p.useRef({}),g=p.useRef(null),C=p.useRef(null),v=je(C,f),[x,m]=p.useState(!d),w=a5(l);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const _=()=>Y1(g.current),E=()=>(h.current.modalRef=C.current,h.current.mount=g.current,h.current),$=()=>{o.mount(E(),{disableScrollLock:r}),C.current&&(C.current.scrollTop=0)},k=Jr(()=>{const R=s5(t)||_().body;o.add(E(),R),C.current&&$()}),S=p.useCallback(()=>o.isTopModal(E()),[o]),L=Jr(R=>{g.current=R,R&&(d&&S()?$():C.current&&dt(C.current,y))}),O=p.useCallback(()=>{o.remove(E(),y)},[y,o]);p.useEffect(()=>()=>{O()},[O]),p.useEffect(()=>{d?k():(!w||!i)&&O()},[d,O,w,i,k]);const M=R=>I=>{var Z;(Z=R.onKeyDown)==null||Z.call(R,I),!(I.key!=="Escape"||I.which===229||!S())&&(n||(I.stopPropagation(),c&&c(I,"escapeKeyDown")))},j=R=>I=>{var Z;(Z=R.onClick)==null||Z.call(R,I),I.target===I.currentTarget&&c&&c(I,"backdropClick")};return{getRootProps:(R={})=>{const I=o0(e);delete I.onTransitionEnter,delete I.onTransitionExited;const Z=V({},I,R);return V({role:"presentation"},Z,{onKeyDown:M(Z),ref:v})},getBackdropProps:(R={})=>{const I=R;return V({"aria-hidden":!0},I,{onClick:j(I),open:d})},getTransitionProps:()=>{const R=()=>{m(!1),s&&s()},I=()=>{m(!0),a&&a(),i&&O()};return{onEnter:Qr(R,l==null?void 0:l.props.onEnter),onExited:Qr(I,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:L,isTopModal:S,exited:x,hasTransition:w}}const u5=["top","right","bottom","left"],he=Math.min,M1=Math.max,Yt=Math.round,It=Math.floor,pe=e=>({x:e,y:e}),d5={left:"right",right:"left",bottom:"top",top:"bottom"},f5={start:"end",end:"start"};function Gn(e,t,n){return M1(e,he(t,n))}function re(e,t){return typeof e=="function"?e(t):e}function oe(e){return e.split("-")[0]}function Ke(e){return e.split("-")[1]}function br(e){return e==="x"?"y":"x"}function _r(e){return e==="y"?"height":"width"}function Ge(e){return["top","bottom"].includes(oe(e))?"y":"x"}function Er(e){return br(Ge(e))}function h5(e,t,n){n===void 0&&(n=!1);const r=Ke(e),o=Er(e),i=_r(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=qt(s)),[s,qt(s)]}function p5(e){const t=qt(e);return[Yn(e),t,Yn(t)]}function Yn(e){return e.replace(/start|end/g,t=>f5[t])}function C5(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function g5(e,t,n,r){const o=Ke(e);let i=C5(oe(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Yn)))),i}function qt(e){return e.replace(/left|right|bottom|top/g,t=>d5[t])}function m5(e){return{top:0,right:0,bottom:0,left:0,...e}}function s0(e){return typeof e!="number"?m5(e):{top:e,right:e,bottom:e,left:e}}function Xt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function so(e,t,n){let{reference:r,floating:o}=e;const i=Ge(t),s=Er(t),a=_r(s),l=oe(t),c=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let g;switch(l){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-o.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Ke(t)){case"start":g[s]-=h*(n&&c?-1:1);break;case"end":g[s]+=h*(n&&c?-1:1);break}return g}const v5=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=so(c,r,l),h=r,g={},C=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=re(e,t)||{};if(c==null)return{};const f=s0(d),h={x:n,y:r},g=Er(o),C=_r(g),v=await s.getDimensions(c),x=g==="y",m=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",_=i.reference[C]+i.reference[g]-h[g]-i.floating[C],E=h[g]-i.reference[g],$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let k=$?$[y]:0;(!k||!await(s.isElement==null?void 0:s.isElement($)))&&(k=a.floating[y]||i.floating[C]);const S=_/2-E/2,L=k/2-v[C]/2-1,O=he(f[m],L),M=he(f[w],L),j=O,D=k-v[C]-M,T=k/2-v[C]/2+S,P=Gn(j,T,D),R=!l.arrow&&Ke(o)!=null&&T!=P&&i.reference[C]/2-(Tj<=0)){var L,O;const j=(((L=i.flip)==null?void 0:L.index)||0)+1,D=E[j];if(D)return{data:{index:j,overflows:S},reset:{placement:D}};let T=(O=S.filter(P=>P.overflows[0]<=0).sort((P,R)=>P.overflows[1]-R.overflows[1])[0])==null?void 0:O.placement;if(!T)switch(g){case"bestFit":{var M;const P=(M=S.map(R=>[R.placement,R.overflows.filter(I=>I>0).reduce((I,Z)=>I+Z,0)]).sort((R,I)=>R[1]-I[1])[0])==null?void 0:M[0];P&&(T=P);break}case"initialPlacement":T=a;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function lo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function co(e){return u5.some(t=>e[t]>=0)}const w5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=re(e,t);switch(r){case"referenceHidden":{const i=await gt(t,{...o,elementContext:"reference"}),s=lo(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:co(s)}}}case"escaped":{const i=await gt(t,{...o,altBoundary:!0}),s=lo(i,n.floating);return{data:{escapedOffsets:s,escaped:co(s)}}}default:return{}}}}};async function y5(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=oe(n),a=Ke(n),l=Ge(n)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,f=re(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:C}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof C=="number"&&(g=a==="end"?C*-1:C),l?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const b5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await y5(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},_5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:x=>{let{x:m,y:w}=x;return{x:m,y:w}}},...l}=re(e,t),c={x:n,y:r},d=await gt(t,l),f=Ge(oe(o)),h=br(f);let g=c[h],C=c[f];if(i){const x=h==="y"?"top":"left",m=h==="y"?"bottom":"right",w=g+d[x],y=g-d[m];g=Gn(w,g,y)}if(s){const x=f==="y"?"top":"left",m=f==="y"?"bottom":"right",w=C+d[x],y=C-d[m];C=Gn(w,C,y)}const v=a.fn({...t,[h]:g,[f]:C});return{...v,data:{x:v.x-n,y:v.y-r}}}}},E5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=re(e,t),d={x:n,y:r},f=Ge(o),h=br(f);let g=d[h],C=d[f];const v=re(a,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=h==="y"?"height":"width",_=i.reference[h]-i.floating[y]+x.mainAxis,E=i.reference[h]+i.reference[y]-x.mainAxis;g<_?g=_:g>E&&(g=E)}if(c){var m,w;const y=h==="y"?"width":"height",_=["top","left"].includes(oe(o)),E=i.reference[f]-i.floating[y]+(_&&((m=s.offset)==null?void 0:m[f])||0)+(_?0:x.crossAxis),$=i.reference[f]+i.reference[y]+(_?0:((w=s.offset)==null?void 0:w[f])||0)-(_?x.crossAxis:0);C$&&(C=$)}return{[h]:g,[f]:C}}}},$5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=re(e,t),l=await gt(t,a),c=oe(n),d=Ke(n),f=Ge(n)==="y",{width:h,height:g}=r.floating;let C,v;c==="top"||c==="bottom"?(C=c,v=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=c,C=d==="end"?"top":"bottom");const x=g-l[C],m=h-l[v],w=!t.middlewareData.shift;let y=x,_=m;if(f){const $=h-l.left-l.right;_=d||w?he(m,$):$}else{const $=g-l.top-l.bottom;y=d||w?he(x,$):$}if(w&&!d){const $=M1(l.left,0),k=M1(l.right,0),S=M1(l.top,0),L=M1(l.bottom,0);f?_=h-2*($!==0||k!==0?$+k:M1(l.left,l.right)):y=g-2*(S!==0||L!==0?S+L:M1(l.top,l.bottom))}await s({...t,availableWidth:_,availableHeight:y});const E=await o.getDimensions(i.floating);return h!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};function Ce(e){return a0(e)?(e.nodeName||"").toLowerCase():"#document"}function O1(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function le(e){var t;return(t=(a0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function a0(e){return e instanceof Node||e instanceof O1(e).Node}function ie(e){return e instanceof Element||e instanceof O1(e).Element}function q1(e){return e instanceof HTMLElement||e instanceof O1(e).HTMLElement}function uo(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof O1(e).ShadowRoot}function kt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=I1(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function k5(e){return["table","td","th"].includes(Ce(e))}function $r(e){const t=kr(),n=I1(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function S5(e){let t=Ze(e);for(;q1(t)&&!Cn(t);){if($r(t))return t;t=Ze(t)}return null}function kr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Cn(e){return["html","body","#document"].includes(Ce(e))}function I1(e){return O1(e).getComputedStyle(e)}function gn(e){return ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ze(e){if(Ce(e)==="html")return e;const t=e.assignedSlot||e.parentNode||uo(e)&&e.host||le(e);return uo(t)?t.host:t}function l0(e){const t=Ze(e);return Cn(t)?e.ownerDocument?e.ownerDocument.body:e.body:q1(t)&&kt(t)?t:l0(t)}function mt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=l0(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=O1(o);return i?t.concat(s,s.visualViewport||[],kt(o)?o:[],s.frameElement&&n?mt(s.frameElement):[]):t.concat(o,mt(o,[],n))}function c0(e){const t=I1(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=q1(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Yt(n)!==i||Yt(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Sr(e){return ie(e)?e:e.contextElement}function Be(e){const t=Sr(e);if(!q1(t))return pe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=c0(t);let s=(i?Yt(n.width):n.width)/r,a=(i?Yt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const j5=pe(0);function u0(e){const t=O1(e);return!kr()||!t.visualViewport?j5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function L5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==O1(e)?!1:t}function Ee(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Sr(e);let s=pe(1);t&&(r?ie(r)&&(s=Be(r)):s=Be(e));const a=L5(i,n,r)?u0(i):pe(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const h=O1(i),g=r&&ie(r)?O1(r):r;let C=h.frameElement;for(;C&&r&&g!==h;){const v=Be(C),x=C.getBoundingClientRect(),m=I1(C),w=x.left+(C.clientLeft+parseFloat(m.paddingLeft))*v.x,y=x.top+(C.clientTop+parseFloat(m.paddingTop))*v.y;l*=v.x,c*=v.y,d*=v.x,f*=v.y,l+=w,c+=y,C=O1(C).frameElement}}return Xt({width:d,height:f,x:l,y:c})}function M5(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=q1(n),i=le(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a=pe(1);const l=pe(0);if((o||!o&&r!=="fixed")&&((Ce(n)!=="body"||kt(i))&&(s=gn(n)),q1(n))){const c=Ee(n);a=Be(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}}function O5(e){return Array.from(e.getClientRects())}function d0(e){return Ee(le(e)).left+gn(e).scrollLeft}function R5(e){const t=le(e),n=gn(e),r=e.ownerDocument.body,o=M1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=M1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+d0(e);const a=-n.scrollTop;return I1(r).direction==="rtl"&&(s+=M1(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function P5(e,t){const n=O1(e),r=le(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=kr();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function T5(e,t){const n=Ee(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=q1(e)?Be(e):pe(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function fo(e,t,n){let r;if(t==="viewport")r=P5(e,n);else if(t==="document")r=R5(le(e));else if(ie(t))r=T5(t,n);else{const o=u0(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Xt(r)}function f0(e,t){const n=Ze(e);return n===t||!ie(n)||Cn(n)?!1:I1(n).position==="fixed"||f0(n,t)}function H5(e,t){const n=t.get(e);if(n)return n;let r=mt(e,[],!1).filter(a=>ie(a)&&Ce(a)!=="body"),o=null;const i=I1(e).position==="fixed";let s=i?Ze(e):e;for(;ie(s)&&!Cn(s);){const a=I1(s),l=$r(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||kt(s)&&!l&&f0(e,s))?r=r.filter(d=>d!==s):o=a,s=Ze(s)}return t.set(e,r),r}function I5(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?H5(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,d)=>{const f=fo(t,d,o);return c.top=M1(f.top,c.top),c.right=he(f.right,c.right),c.bottom=he(f.bottom,c.bottom),c.left=M1(f.left,c.left),c},fo(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function A5(e){return c0(e)}function V5(e,t,n){const r=q1(t),o=le(t),i=n==="fixed",s=Ee(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=pe(0);if(r||!r&&!i)if((Ce(t)!=="body"||kt(o))&&(a=gn(t)),r){const c=Ee(t,!0,i,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=d0(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function ho(e,t){return!q1(e)||I1(e).position==="fixed"?null:t?t(e):e.offsetParent}function h0(e,t){const n=O1(e);if(!q1(e))return n;let r=ho(e,t);for(;r&&k5(r)&&I1(r).position==="static";)r=ho(r,t);return r&&(Ce(r)==="html"||Ce(r)==="body"&&I1(r).position==="static"&&!$r(r))?n:r||S5(e)||n}const D5=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||h0,i=this.getDimensions;return{reference:V5(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function N5(e){return I1(e).direction==="rtl"}const B5={convertOffsetParentRelativeRectToViewportRelativeRect:M5,getDocumentElement:le,getClippingRect:I5,getOffsetParent:h0,getElementRects:D5,getClientRects:O5,getDimensions:A5,getScale:Be,isElement:ie,isRTL:N5};function z5(e,t){let n=null,r;const o=le(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:c,top:d,width:f,height:h}=e.getBoundingClientRect();if(a||t(),!f||!h)return;const g=It(d),C=It(o.clientWidth-(c+f)),v=It(o.clientHeight-(d+h)),x=It(c),w={rootMargin:-g+"px "+-C+"px "+-v+"px "+-x+"px",threshold:M1(0,he(1,l))||1};let y=!0;function _(E){const $=E[0].intersectionRatio;if($!==l){if(!y)return s();$?s(!1,$):r=setTimeout(()=>{s(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(_,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,w)}n.observe(e)}return s(!0),i}function Z5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Sr(e),d=o||i?[...c?mt(c):[],...mt(t)]:[];d.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const f=c&&a?z5(c,n):null;let h=-1,g=null;s&&(g=new ResizeObserver(m=>{let[w]=m;w&&w.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let C,v=l?Ee(e):null;l&&x();function x(){const m=Ee(e);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&n(),v=m,C=requestAnimationFrame(x)}return n(),()=>{d.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(C)}}const F5=(e,t,n)=>{const r=new Map,o={platform:B5,...n},i={...o.platform,_c:r};return v5(e,t,{...o,platform:i})},U5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ao({element:r.current,padding:o}).fn(n):{}:r?ao({element:r,padding:o}).fn(n):{}}}};var Zt=typeof document<"u"?p.useLayoutEffect:p.useEffect;function Jt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Jt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Jt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function p0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function po(e,t){const n=p0(e);return Math.round(t*n)/n}function Co(e){const t=p.useRef(e);return Zt(()=>{t.current=e}),t}function W5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=p.useState(r);Jt(h,r)||g(r);const[C,v]=p.useState(null),[x,m]=p.useState(null),w=p.useCallback(R=>{R!=$.current&&($.current=R,v(R))},[v]),y=p.useCallback(R=>{R!==k.current&&(k.current=R,m(R))},[m]),_=i||C,E=s||x,$=p.useRef(null),k=p.useRef(null),S=p.useRef(d),L=Co(l),O=Co(o),M=p.useCallback(()=>{if(!$.current||!k.current)return;const R={placement:t,strategy:n,middleware:h};O.current&&(R.platform=O.current),F5($.current,k.current,R).then(I=>{const Z={...I,isPositioned:!0};j.current&&!Jt(S.current,Z)&&(S.current=Z,hn.flushSync(()=>{f(Z)}))})},[h,t,n,O]);Zt(()=>{c===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[c]);const j=p.useRef(!1);Zt(()=>(j.current=!0,()=>{j.current=!1}),[]),Zt(()=>{if(_&&($.current=_),E&&(k.current=E),_&&E){if(L.current)return L.current(_,E,M);M()}},[_,E,M,L]);const D=p.useMemo(()=>({reference:$,floating:k,setReference:w,setFloating:y}),[w,y]),T=p.useMemo(()=>({reference:_,floating:E}),[_,E]),P=p.useMemo(()=>{const R={position:n,left:0,top:0};if(!T.floating)return R;const I=po(T.floating,d.x),Z=po(T.floating,d.y);return a?{...R,transform:"translate("+I+"px, "+Z+"px)",...p0(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:Z}},[n,a,T.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:M,refs:D,elements:T,floatingStyles:P}),[d,M,D,T,P])}const K5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],G5={entering:{opacity:1},entered:{opacity:1}},Y5=p.forwardRef(function(t,n){const r=Ki(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:f,onEntering:h,onExit:g,onExited:C,onExiting:v,style:x,timeout:m=o,TransitionComponent:w=e0}=t,y=N1(t,K5),_=p.useRef(null),E=je(_,a.ref,n),$=T=>P=>{if(T){const R=_.current;P===void 0?T(R):T(R,P)}},k=$(h),S=$((T,P)=>{t0(T);const R=Kt({style:x,timeout:m,easing:l},{mode:"enter"});T.style.webkitTransition=r.transitions.create("opacity",R),T.style.transition=r.transitions.create("opacity",R),d&&d(T,P)}),L=$(f),O=$(v),M=$(T=>{const P=Kt({style:x,timeout:m,easing:l},{mode:"exit"});T.style.webkitTransition=r.transitions.create("opacity",P),T.style.transition=r.transitions.create("opacity",P),g&&g(T)}),j=$(C),D=T=>{i&&i(_.current,T)};return u.jsx(w,V({appear:s,in:c,nodeRef:_,onEnter:S,onEntered:L,onEntering:k,onExit:M,onExited:j,onExiting:O,addEndListener:D,timeout:m},y,{children:(T,P)=>p.cloneElement(a,V({style:V({opacity:0,visibility:T==="exited"&&!c?"hidden":void 0},G5[T],x,a.props.style),ref:E},P))}))}),q5=Y5;function X5(e){return bt("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const J5=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Q5=e=>{const{classes:t,invisible:n}=e;return $t({root:["root",n&&"invisible"]},X5,t)},es=Se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>V({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),ts=p.forwardRef(function(t,n){var r,o,i;const s=Et({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:d={},componentsProps:f={},invisible:h=!1,open:g,slotProps:C={},slots:v={},TransitionComponent:x=q5,transitionDuration:m}=s,w=N1(s,J5),y=V({},s,{component:c,invisible:h}),_=Q5(y),E=(r=C.root)!=null?r:f.root;return u.jsx(x,V({in:g,timeout:m},w,{children:u.jsx(es,V({"aria-hidden":!0},E,{as:(o=(i=v.root)!=null?i:d.Root)!=null?o:c,className:_e(_.root,l,E==null?void 0:E.className),ownerState:V({},y,E==null?void 0:E.ownerState),classes:_,ref:n,children:a}))}))}),ns=ts;function rs(e){return bt("MuiModal",e)}_t("MuiModal",["root","hidden","backdrop"]);const os=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],is=e=>{const{open:t,exited:n,classes:r}=e;return $t({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},rs,r)},ss=Se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>V({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),as=Se(ns,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ls=p.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Et({name:"MuiModal",props:t}),{BackdropComponent:d=as,BackdropProps:f,className:h,closeAfterTransition:g=!1,children:C,container:v,component:x,components:m={},componentsProps:w={},disableAutoFocus:y=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:E=!1,disablePortal:$=!1,disableRestoreFocus:k=!1,disableScrollLock:S=!1,hideBackdrop:L=!1,keepMounted:O=!1,onBackdropClick:M,open:j,slotProps:D,slots:T}=c,P=N1(c,os),R=V({},c,{closeAfterTransition:g,disableAutoFocus:y,disableEnforceFocus:_,disableEscapeKeyDown:E,disablePortal:$,disableRestoreFocus:k,disableScrollLock:S,hideBackdrop:L,keepMounted:O}),{getRootProps:I,getBackdropProps:Z,getTransitionProps:F,portalRef:e1,isTopModal:W,exited:X,hasTransition:u1}=c5(V({},R,{rootRef:n})),l1=V({},R,{exited:X}),K=is(l1),d1={};if(C.props.tabIndex===void 0&&(d1.tabIndex="-1"),u1){const{onEnter:U,onExited:J}=F();d1.onEnter=U,d1.onExited=J}const _1=(r=(o=T==null?void 0:T.root)!=null?o:m.Root)!=null?r:ss,E1=(i=(s=T==null?void 0:T.backdrop)!=null?s:m.Backdrop)!=null?i:d,L1=(a=D==null?void 0:D.root)!=null?a:w.root,V1=(l=D==null?void 0:D.backdrop)!=null?l:w.backdrop,ue=Gt({elementType:_1,externalSlotProps:L1,externalForwardedProps:P,getSlotProps:I,additionalProps:{ref:n,as:x},ownerState:l1,className:_e(h,L1==null?void 0:L1.className,K==null?void 0:K.root,!l1.open&&l1.exited&&(K==null?void 0:K.hidden))}),de=Gt({elementType:E1,externalSlotProps:V1,additionalProps:f,getSlotProps:U=>Z(V({},U,{onClick:J=>{M&&M(J),U!=null&&U.onClick&&U.onClick(J)}})),className:_e(V1==null?void 0:V1.className,f==null?void 0:f.className,K==null?void 0:K.backdrop),ownerState:l1});return!O&&!j&&(!u1||X)?null:u.jsx(e5,{ref:e1,container:v,disablePortal:$,children:u.jsxs(_1,V({},ue,{children:[!L&&d?u.jsx(E1,V({},de)):null,u.jsx(J3,{disableEnforceFocus:_,disableAutoFocus:y,disableRestoreFocus:k,isEnabled:W,open:j,children:p.cloneElement(C,d1)})]}))})}),cs=ls,us=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function qn(e){return`scale(${e}, ${e**2})`}const ds={entering:{opacity:1,transform:qn(1)},entered:{opacity:1,transform:"none"}},On=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),C0=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:f,onExited:h,onExiting:g,style:C,timeout:v="auto",TransitionComponent:x=e0}=t,m=N1(t,us),w=p.useRef(),y=p.useRef(),_=Ki(),E=p.useRef(null),$=je(E,i.ref,n),k=P=>R=>{if(P){const I=E.current;R===void 0?P(I):P(I,R)}},S=k(d),L=k((P,R)=>{t0(P);const{duration:I,delay:Z,easing:F}=Kt({style:C,timeout:v,easing:s},{mode:"enter"});let e1;v==="auto"?(e1=_.transitions.getAutoHeightDuration(P.clientHeight),y.current=e1):e1=I,P.style.transition=[_.transitions.create("opacity",{duration:e1,delay:Z}),_.transitions.create("transform",{duration:On?e1:e1*.666,delay:Z,easing:F})].join(","),l&&l(P,R)}),O=k(c),M=k(g),j=k(P=>{const{duration:R,delay:I,easing:Z}=Kt({style:C,timeout:v,easing:s},{mode:"exit"});let F;v==="auto"?(F=_.transitions.getAutoHeightDuration(P.clientHeight),y.current=F):F=R,P.style.transition=[_.transitions.create("opacity",{duration:F,delay:I}),_.transitions.create("transform",{duration:On?F:F*.666,delay:On?I:I||F*.333,easing:Z})].join(","),P.style.opacity=0,P.style.transform=qn(.75),f&&f(P)}),D=k(h),T=P=>{v==="auto"&&(w.current=setTimeout(P,y.current||0)),r&&r(E.current,P)};return p.useEffect(()=>()=>{clearTimeout(w.current)},[]),u.jsx(x,V({appear:o,in:a,nodeRef:E,onEnter:L,onEntered:O,onEntering:S,onExit:j,onExited:D,onExiting:M,addEndListener:T,timeout:v==="auto"?null:v},m,{children:(P,R)=>p.cloneElement(i,V({style:V({opacity:0,transform:qn(.75),visibility:P==="exited"&&!a?"hidden":void 0},ds[P],C,i.props.style),ref:$},R))}))});C0.muiSupportAuto=!0;const fs=C0;function hs(e){return bt("MuiPopover",e)}_t("MuiPopover",["root","paper"]);const ps=["onEntering"],Cs=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],gs=["slotProps"];function go(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function mo(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function vo(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Rn(e){return typeof e=="function"?e():e}const ms=e=>{const{classes:t}=e;return $t({root:["root"],paper:["paper"]},hs,t)},vs=Se(cs,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xs=Se(T3,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ws=p.forwardRef(function(t,n){var r,o,i;const s=Et({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:h,className:g,container:C,elevation:v=8,marginThreshold:x=16,open:m,PaperProps:w={},slots:y,slotProps:_,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:$=fs,transitionDuration:k="auto",TransitionProps:{onEntering:S}={},disableScrollLock:L=!1}=s,O=N1(s.TransitionProps,ps),M=N1(s,Cs),j=(r=_==null?void 0:_.paper)!=null?r:w,D=p.useRef(),T=je(D,j.ref),P=V({},s,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:j,transformOrigin:E,TransitionComponent:$,transitionDuration:k,TransitionProps:O}),R=ms(P),I=p.useCallback(()=>{if(f==="anchorPosition")return d;const U=Rn(l),t1=(U&&U.nodeType===1?U:Y1(D.current).body).getBoundingClientRect();return{top:t1.top+go(t1,c.vertical),left:t1.left+mo(t1,c.horizontal)}},[l,c.horizontal,c.vertical,d,f]),Z=p.useCallback(U=>({vertical:go(U,E.vertical),horizontal:mo(U,E.horizontal)}),[E.horizontal,E.vertical]),F=p.useCallback(U=>{const J={width:U.offsetWidth,height:U.offsetHeight},t1=Z(J);if(f==="none")return{top:null,left:null,transformOrigin:vo(t1)};const F1=I();let U1=F1.top-t1.vertical,W1=F1.left-t1.horizontal;const Oe=U1+J.height,me=W1+J.width,K1=Ct(Rn(l)),Tt=K1.innerHeight-x,H=K1.innerWidth-x;if(x!==null&&U1Tt){const N=Oe-Tt;U1-=N,t1.vertical+=N}if(x!==null&&W1H){const N=me-H;W1-=N,t1.horizontal+=N}return{top:`${Math.round(U1)}px`,left:`${Math.round(W1)}px`,transformOrigin:vo(t1)}},[l,f,I,Z,x]),[e1,W]=p.useState(m),X=p.useCallback(()=>{const U=D.current;if(!U)return;const J=F(U);J.top!==null&&(U.style.top=J.top),J.left!==null&&(U.style.left=J.left),U.style.transformOrigin=J.transformOrigin,W(!0)},[F]);p.useEffect(()=>(L&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[l,L,X]);const u1=(U,J)=>{S&&S(U,J),X()},l1=()=>{W(!1)};p.useEffect(()=>{m&&X()}),p.useImperativeHandle(a,()=>m?{updatePosition:()=>{X()}}:null,[m,X]),p.useEffect(()=>{if(!m)return;const U=$3(()=>{X()}),J=Ct(l);return J.addEventListener("resize",U),()=>{U.clear(),J.removeEventListener("resize",U)}},[l,m,X]);let K=k;k==="auto"&&!$.muiSupportAuto&&(K=void 0);const d1=C||(l?Y1(Rn(l)).body:void 0),_1=(o=y==null?void 0:y.root)!=null?o:vs,E1=(i=y==null?void 0:y.paper)!=null?i:xs,L1=Gt({elementType:E1,externalSlotProps:V({},j,{style:e1?j.style:V({},j.style,{opacity:0})}),additionalProps:{elevation:v,ref:T},ownerState:P,className:_e(R.paper,j==null?void 0:j.className)}),V1=Gt({elementType:_1,externalSlotProps:(_==null?void 0:_.root)||{},externalForwardedProps:M,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:d1,open:m},ownerState:P,className:_e(R.root,g)}),{slotProps:ue}=V1,de=N1(V1,gs);return u.jsx(_1,V({},de,!r0(_1)&&{slotProps:ue,disableScrollLock:L},{children:u.jsx($,V({appear:!0,in:m,onEntering:u1,onExited:l1,timeout:K},O,{children:u.jsx(E1,V({},L1,{children:h}))}))}))}),vh=ws;function ys(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function g0(...e){return t=>e.forEach(n=>ys(n,t))}function Ye(...e){return p.useCallback(g0(...e),e)}const m0=p.forwardRef((e,t)=>{const{children:n,...r}=e,o=p.Children.toArray(n),i=o.find(bs);if(i){const s=i.props.children,a=o.map(l=>l===i?p.Children.count(s)>1?p.Children.only(null):p.isValidElement(s)?s.props.children:null:l);return p.createElement(Xn,V({},r,{ref:t}),p.isValidElement(s)?p.cloneElement(s,void 0,a):null)}return p.createElement(Xn,V({},r,{ref:t}),n)});m0.displayName="Slot";const Xn=p.forwardRef((e,t)=>{const{children:n,...r}=e;return p.isValidElement(n)?p.cloneElement(n,{..._s(r,n.props),ref:t?g0(t,n.ref):n.ref}):p.Children.count(n)>1?p.Children.only(null):null});Xn.displayName="SlotClone";const v0=({children:e})=>p.createElement(p.Fragment,null,e);function bs(e){return p.isValidElement(e)&&e.type===v0}function _s(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Es=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Le=Es.reduce((e,t)=>{const n=p.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?m0:t;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(a,V({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function $s(e,t){e&&hn.flushSync(()=>e.dispatchEvent(t))}const ks=p.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Ve.createPortal(p.createElement(Le.div,V({},o,{ref:t})),r):null}),Ss=ks;var xo=Object.prototype.hasOwnProperty;function vt(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&vt(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(xo.call(e,n)&&++r&&!xo.call(t,n)||!(n in t)||!vt(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function St(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)s[a]=arguments[a+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),X1=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};X1.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new mn(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};X1.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new js(n,t.simple,t.async)),this};X1.prototype._clone=function(){return new X1(this.chain.slice(),this.nextRuleModifiers.slice())};X1.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};X1.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new jr(r,t,o))}}),n};X1.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new jr(n,t,r)}})};X1.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){y0(t,n.chain.slice(),r,o)})};function y0(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){y0(e,t,n,r)},function(i){r(new jr(o,e,i))})}else n(e)}var wo=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function Ls(e,t){return t===void 0&&(t=!1),{simple:function(n){return wo(n,t)||e.check(n)===void 0},async:function(n){return wo(n,t)||e.testAsync(n)}}}function S1(){return typeof Proxy<"u"?b0(new X1):Jn(new X1)}var xt={};S1.extend=function(e){Object.assign(xt,e)};S1.clearCustomRules=function(){xt={}};function b0(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=b0(e._clone());if(r in Qt)return o._applyModifier(Qt[r],r);if(r in xt)return o._applyRule(xt[r],r);if(r in Qn)return o._applyRule(Qn[r],r)}})}function Jn(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var c=Jn(i._clone()),d=c._applyRule(o[s],s).apply(void 0,a);return d}}),i},n=t(Qn,e),r=t(xt,n);return Object.keys(Qt).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=Jn(r._clone());return i._applyModifier(Qt[o],o)}})}),r}var Qt={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return At(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(At(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&At(t).every(e)}},async:function(e){return function(t){return Promise.all(At(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return yo(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return yo(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function yo(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function At(e){return typeof e=="string"?e.split(""):e}var Qn={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||Ms;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return Te("string")},boolean:function(){return Te("boolean")},undefined:function(){return Te("undefined")},null:function(){return Te("null")},array:function(){return Te("array")},object:function(){return Te("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return Os(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:Ls};function Te(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function Ms(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function Os(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var G="colors",m1="sizes",A="space",Rs={gap:A,gridGap:A,columnGap:A,gridColumnGap:A,rowGap:A,gridRowGap:A,inset:A,insetBlock:A,insetBlockEnd:A,insetBlockStart:A,insetInline:A,insetInlineEnd:A,insetInlineStart:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,marginBlock:A,marginBlockEnd:A,marginBlockStart:A,marginInline:A,marginInlineEnd:A,marginInlineStart:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,paddingBlock:A,paddingBlockEnd:A,paddingBlockStart:A,paddingInline:A,paddingInlineEnd:A,paddingInlineStart:A,top:A,right:A,bottom:A,left:A,scrollMargin:A,scrollMarginTop:A,scrollMarginRight:A,scrollMarginBottom:A,scrollMarginLeft:A,scrollMarginX:A,scrollMarginY:A,scrollMarginBlock:A,scrollMarginBlockEnd:A,scrollMarginBlockStart:A,scrollMarginInline:A,scrollMarginInlineEnd:A,scrollMarginInlineStart:A,scrollPadding:A,scrollPaddingTop:A,scrollPaddingRight:A,scrollPaddingBottom:A,scrollPaddingLeft:A,scrollPaddingX:A,scrollPaddingY:A,scrollPaddingBlock:A,scrollPaddingBlockEnd:A,scrollPaddingBlockStart:A,scrollPaddingInline:A,scrollPaddingInlineEnd:A,scrollPaddingInlineStart:A,fontSize:"fontSizes",background:G,backgroundColor:G,backgroundImage:G,borderImage:G,border:G,borderBlock:G,borderBlockEnd:G,borderBlockStart:G,borderBottom:G,borderBottomColor:G,borderColor:G,borderInline:G,borderInlineEnd:G,borderInlineStart:G,borderLeft:G,borderLeftColor:G,borderRight:G,borderRightColor:G,borderTop:G,borderTopColor:G,caretColor:G,color:G,columnRuleColor:G,fill:G,outline:G,outlineColor:G,stroke:G,textDecorationColor:G,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:m1,minBlockSize:m1,maxBlockSize:m1,inlineSize:m1,minInlineSize:m1,maxInlineSize:m1,width:m1,minWidth:m1,maxWidth:m1,height:m1,minHeight:m1,maxHeight:m1,flexBasis:m1,gridTemplateColumns:m1,gridTemplateRows:m1,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Ps=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,qe=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,Ps))(t);return o in e?e[o]:e[o]=n(t,...r)}},ye=Symbol.for("sxs.internal"),Lr=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),bo=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Ts}=Object.prototype,er=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Hs=/\s+(?![^()]*\))/,He=e=>t=>e(...typeof t=="string"?String(t).split(Hs):[t]),_o={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:He((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:He((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:He((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:He((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:He((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:He((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Pn=/([\d.]+)([^]*)/,Is=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,As=(e,t)=>e in Vs&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${er(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${er(e)}:${r}fit-content`)+i):String(t),Vs={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},se=e=>e?e+"-":"",_0=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,a)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?se(t)+(a.includes("$")?"":se(n))+a.replace(/\$/g,"-"):a)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),Ds=/\s*,\s*(?![^()]*\))/,Ns=Object.prototype.toString,De=(e,t,n,r,o)=>{let i,s,a;const l=(c,d,f)=>{let h,g;const C=v=>{for(h in v){const w=h.charCodeAt(0)===64,y=w&&Array.isArray(v[h])?v[h]:[v[h]];for(g of y){const _=/[A-Z]/.test(m=h)?m:m.replace(/-[^]/g,$=>$[1].toUpperCase()),E=typeof g=="object"&&g&&g.toString===Ns&&(!r.utils[_]||!d.length);if(_ in r.utils&&!E){const $=r.utils[_];if($!==s){s=$,C($(g)),s=null;continue}}else if(_ in _o){const $=_o[_];if($!==a){a=$,C($(g)),a=null;continue}}if(w&&(x=h.slice(1)in r.media?"@media "+r.media[h.slice(1)]:h,h=x.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,($,k,S,L,O,M)=>{const j=Pn.test(k),D=.0625*(j?-1:1),[T,P]=j?[L,k]:[k,L];return"("+(S[0]==="="?"":S[0]===">"===j?"max-":"min-")+T+":"+(S[0]!=="="&&S.length===1?P.replace(Pn,(R,I,Z)=>Number(I)+D*(S===">"?1:-1)+Z):P)+(O?") and ("+(O[0]===">"?"min-":"max-")+T+":"+(O.length===1?M.replace(Pn,(R,I,Z)=>Number(I)+D*(O===">"?-1:1)+Z):M):"")+")"})),E){const $=w?f.concat(h):[...f],k=w?[...d]:Is(d,h.split(Ds));i!==void 0&&o(Eo(...i)),i=void 0,l(g,k,$)}else i===void 0&&(i=[[],d,f]),h=w||h.charCodeAt(0)!==36?h:`--${se(r.prefix)}${h.slice(1).replace(/\$/g,"-")}`,g=E?g:typeof g=="number"?g&&_ in Bs?String(g)+"px":String(g):_0(As(_,g??""),r.prefix,r.themeMap[_]),i[0].push(`${w?`${h} `:`${er(h)}:`}${g}`)}}var x,m};C(c),i!==void 0&&o(Eo(...i)),i=void 0};l(e,t,n)},Eo=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,Bs={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},$o=e=>String.fromCharCode(e+(e>25?39:97)),be=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=$o(n%52)+r;return $o(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),lt=["themed","global","styled","onevar","resonevar","allvar","inline"],zs=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},Zs=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:a}=i;let l="";if(a.startsWith("--sxs"))return"";if(o[s-1]&&(l=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const c in t.rules)if(t.rules[c].group===i)return`--sxs{--sxs:${[...t.rules[c].cache].join(" ")}}${a}`;return i.cssRules.length?`${l}${a}`:""}return a}).join("")},r=()=>{if(t){const{rules:a,sheet:l}=t;if(!l.deleteRule){for(;Object(Object(l.cssRules)[0]).type===3;)l.cssRules.splice(0,1);l.cssRules=[]}for(const c in a)delete a[c]}const o=Object(e).styleSheets||[];for(const a of o)if(zs(a)){for(let l=0,c=a.cssRules;c[l];++l){const d=Object(c[l]);if(d.type!==1)continue;const f=Object(c[l+1]);if(f.type!==4)continue;++l;const{cssText:h}=d;if(!h.startsWith("--sxs"))continue;const g=h.slice(14,-3).trim().split(/\s+/),C=lt[g[0]];C&&(t||(t={sheet:a,reset:r,rules:{},toString:n}),t.rules[C]={group:f,index:l,cache:new Set(g)})}if(t)break}if(!t){const a=(l,c)=>({type:c,cssRules:[],insertRule(d,f){this.cssRules.splice(f,0,a(d,{import:3,undefined:1}[(d.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return l==="@media{}"?`@media{${[].map.call(this.cssRules,d=>d.cssText).join("")}}`:l}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:a("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let a=lt.length-1;a>=0;--a){const l=lt[a];if(!s[l]){const c=lt[a+1],d=s[c]?s[c].index:i.cssRules.length;i.insertRule("@media{}",d),i.insertRule(`--sxs{--sxs:${a}}`,d),s[l]={group:i.cssRules[d+1],index:d,cache:new Set([a])}}Fs(s[l])}};return r(),t},Fs=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},nt=Symbol(),Us=qe(),ko=(e,t)=>Us(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[ye]){r.type==null&&(r.type=o[ye].type);for(const i of o[ye].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(Ws(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),Ks(e,r,t)}),Ws=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${se(o.prefix)}c-${be(r)}`,s=[],a=[],l=Object.create(null),c=[];for(const h in n)l[h]=String(n[h]);if(typeof e=="object"&&e)for(const h in e){d=l,f=h,Ts.call(d,f)||(l[h]="undefined");const g=e[h];for(const C in g){const v={[h]:String(C)};String(C)==="undefined"&&c.push(h);const x=g[C],m=[v,x,!bo(x)];s.push(m)}}var d,f;if(typeof t=="object"&&t)for(const h of t){let{css:g,...C}=h;g=typeof g=="object"&&g||{};for(const x in C)C[x]=String(C[x]);const v=[C,g,!bo(g)];a.push(v)}return[i,r,s,a,l,c]},Ks=(e,t,n)=>{const[r,o,i,s]=Gs(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(f=>{function h(){for(let g=0;gh.rules[g]={apply:C=>h[nt].push([g,C])}),h})(n):null,l=(a||n).rules,c=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,d=f=>{f=typeof f=="object"&&f||Ys;const{css:h,...g}=f,C={};for(const m in i)if(delete g[m],m in f){let w=f[m];typeof w=="object"&&w?C[m]={"@initial":i[m],...w}:(w=String(w),C[m]=w!=="undefined"||s.has(m)?w:i[m])}else C[m]=i[m];const v=new Set([...o]);for(const[m,w,y,_]of t.composers){n.rules.styled.cache.has(m)||(n.rules.styled.cache.add(m),De(w,[`.${m}`],[],e,k=>{l.styled.apply(k)}));const E=So(y,C,e.media),$=So(_,C,e.media,!0);for(const k of E)if(k!==void 0)for(const[S,L,O]of k){const M=`${m}-${be(L)}-${S}`;v.add(M);const j=(O?n.rules.resonevar:n.rules.onevar).cache,D=O?l.resonevar:l.onevar;j.has(M)||(j.add(M),De(L,[`.${M}`],[],e,T=>{D.apply(T)}))}for(const k of $)if(k!==void 0)for(const[S,L]of k){const O=`${m}-${be(L)}-${S}`;v.add(O),n.rules.allvar.cache.has(O)||(n.rules.allvar.cache.add(O),De(L,[`.${O}`],[],e,M=>{l.allvar.apply(M)}))}}if(typeof h=="object"&&h){const m=`${r}-i${be(h)}-css`;v.add(m),n.rules.inline.cache.has(m)||(n.rules.inline.cache.add(m),De(h,[`.${m}`],[],e,w=>{l.inline.apply(w)}))}for(const m of String(f.className||"").trim().split(/\s+/))m&&v.add(m);const x=g.className=[...v].join(" ");return{type:t.type,className:x,selector:c,props:g,toString:()=>x,deferredInjector:a}};return Lr(d,{className:r,selector:c,[ye]:t,toString:()=>(n.rules.styled.cache.has(r)||d(),r)})},Gs=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,a]of e){t===""&&(t=i),n.push(i),o.push(...a);for(const l in s){const c=s[l];(r[l]===void 0||c!=="undefined"||a.includes(c))&&(r[l]=c)}}return[t,n,r,new Set(o)]},So=(e,t,n,r)=>{const o=[];e:for(let[i,s,a]of e){if(a)continue;let l,c=0,d=!1;for(l in i){const f=i[l];let h=t[l];if(h!==f){if(typeof h!="object"||!h)continue e;{let g,C,v=0;for(const x in h){if(f===String(h[x])){if(x!=="@initial"){const m=x.slice(1);(C=C||[]).push(m in n?n[m]:x.replace(/^@media ?/,"")),d=!0}c+=v,g=!0}++v}if(C&&C.length&&(s={["@media "+C.join(", ")]:s}),!g)continue e}}}(o[c]=o[c]||[]).push([r?"cv":`${l}-${i[l]}`,s,d])}return o},Ys={},qs=qe(),Xs=(e,t)=>qs(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=be(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let a of[].concat(o["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,t.sheet.insertRule(`@import ${a};`,s++);delete o["@import"]}De(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return Lr(r,{toString:r})}),Js=qe(),Qs=(e,t)=>Js(e,()=>n=>{const r=`${se(e.prefix)}k-${be(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];De(n,[],[],e,a=>i.push(a));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return Lr(o,{get name(){return o()},toString:o})}),e6=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+se(this.prefix)+se(this.scale)+this.token}toString(){return this.computedValue}},t6=qe(),n6=(e,t)=>t6(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${se(e.prefix)}t-${be(r)}`}`,i={},s=[];for(const l in r){i[l]={};for(const c in r[l]){const d=`--${se(e.prefix)}${l}-${c}`,f=_0(String(r[l][c]),e.prefix,l);i[l][c]=new e6(c,f,l,e.prefix),s.push(`${d}:${f}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const l=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(l)}return n};return{...i,get className(){return a()},selector:o,toString:a}}),r6=qe(),jo,o6=qe(),E0=e=>{const t=(n=>{let r=!1;const o=r6(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",a=typeof i.media=="object"&&i.media||{},l=typeof i.root=="object"?i.root||null:globalThis.document||null,c=typeof i.theme=="object"&&i.theme||{},d={prefix:s,media:a,theme:c,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...Rs},utils:typeof i.utils=="object"&&i.utils||{}},f=Zs(l),h={css:ko(d,f),globalCss:Xs(d,f),keyframes:Qs(d,f),createTheme:n6(d,f),reset(){f.reset(),h.theme.toString()},theme:{},sheet:f,config:d,prefix:s,getCssText:f.toString,toString:f.toString};return String(h.theme=h.createTheme(c)),h});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>o6(n,()=>{const o=ko(n,r);return(...i)=>{const s=o(...i),a=s[ye].type,l=b.forwardRef((c,d)=>{const f=c&&c.as||a,{props:h,deferredInjector:g}=s(c);return delete h.as,h.ref=d,g?b.createElement(b.Fragment,null,b.createElement(f,h),b.createElement(g,null)):b.createElement(f,h)});return l.className=s.className,l.displayName=`Styled.${a.displayName||a.name||a}`,l.selector=s.selector,l.toString=()=>s.selector,l[ye]=s[ye],l}}))(t),t},i6=()=>jo||(jo=E0()),xh=(...e)=>i6().styled(...e);function s6(e,t,n){return Math.max(t,Math.min(e,n))}const p1={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Lo(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Mo(e,t,n,r=.15){return r===0?s6(e,t,n):en?+Lo(e-n,n-t,r)+n:e}function a6(e,[t,n],[r,o]){const[[i,s],[a,l]]=e;return[Mo(t,i,s,r),Mo(n,a,l,o)]}function l6(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function c6(e){var t=l6(e,"string");return typeof t=="symbol"?t:String(t)}function k1(e,t,n){return t=c6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function i1(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function m6(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function S0(e){return vn(e)?m6(e)[0]:e}function v6(e){return g6(e).map(t=>t.identifier)}function Tn(e){const t=S0(e);return vn(e)?t.identifier:t.pointerId}function Po(e){const t=S0(e);return[t.clientX,t.clientY]}function x6(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function en(e,...t){return typeof e=="function"?e(...t):e}function w6(){}function y6(...e){return e.length===0?w6:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function To(e,t){return Object.assign({},t,e||{})}const b6=32;class _6{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?en(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,x6(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const $=n._delta.map(Math.abs);p1.addTo(n._distance,$)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[l,c]=r.threshold,{_step:d,values:f}=n;if(r.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(s)>=l&&f[0]),d[1]===!1&&(d[1]=Math.abs(a)>=c&&f[1])):(d[0]===!1&&(d[0]=Math.abs(s)>=l&&Math.sign(s)*l),d[1]===!1&&(d[1]=Math.abs(a)>=c&&Math.sign(a)*c)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const h=[0,0];if(r.hasCustomTransform){const[$,k]=f;h[0]=d[0]!==!1?$-d[0]:0,h[1]=d[1]!==!1?k-d[1]:0}else h[0]=d[0]!==!1?s-d[0]:0,h[1]=d[1]!==!1?a-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(h);const g=n.offset,C=n._active&&!n._blocked||n.active;C&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=en(r.bounds,n)),this.setup&&this.setup()),n.movement=h,this.computeOffset()));const[v,x]=n.offset,[[m,w],[y,_]]=n._bounds;n.overflow=[vw?1:0,x_?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const E=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=a6(n._bounds,n.offset,E),n.delta=p1.sub(n.offset,g),this.computeMovement(),C&&(!n.last||i>b6)){n.delta=p1.sub(n.offset,g);const $=n.delta.map(Math.abs);p1.addTo(n.distance,$),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[$[0]/i,$[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(i1(i1(i1({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function E6([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class $6 extends _6{constructor(...t){super(...t),k1(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=p1.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=p1.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[k0(t)]:r.axisThreshold;n.axis=E6(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const k6=e=>e,Ho=.15,j0={enabled(e=!0){return e},eventOptions(e,t,n){return i1(i1({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Ho,Ho];case!1:return[0,0];default:return p1.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return p1.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||k6},threshold(e){return p1.toVector(e,0)}},S6=0,jt=i1(i1({},j0),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=S6){return e},bounds(e={}){if(typeof e=="function")return i=>jt.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),Io={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class j6 extends $6{constructor(...t){super(...t),k1(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=jt.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=Tn(t),r._pointerActive=!0,this.computeValues(Po(t)),this.computeInitial(),n.preventScrollAxis&&k0(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=Tn(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=Po(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=p1.sub(i,n._values),this.computeValues(i)),p1.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=Tn(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,l]=n._delta,[c,d]=n._movement,[f,h]=r.swipe.velocity,[g,C]=r.swipe.distance,v=r.swipe.duration;if(n.elapsedTimef&&Math.abs(c)>g&&(n.swipe[0]=Math.sign(a)),m>h&&Math.abs(d)>C&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,L6(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=Io[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,p1.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in Io&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function L6(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const Lt=typeof window<"u"&&window.document&&window.document.createElement;function L0(){return Lt&&"ontouchstart"in window}function M6(){return L0()||Lt&&window.navigator.maxTouchPoints>1}function O6(){return Lt&&"onpointerdown"in window}function R6(){return Lt&&"exitPointerLock"in window.document}function P6(){try{return"constructor"in GestureEvent}catch{return!1}}const P1={isBrowser:Lt,gesture:P6(),touch:L0(),touchscreen:M6(),pointer:O6(),pointerLock:R6()},T6=250,H6=180,I6=.5,A6=50,V6=250,D6=10,Ao={mouse:0,touch:0,pen:8},N6=i1(i1({},jt),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&P1.pointerLock,P1.touch&&n?"touch":this.pointerLock?"mouse":P1.pointer&&!o?"pointer":P1.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?T6:void 0,!(!P1.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=p1.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=I6,distance:t=A6,duration:n=V6}={}){return{velocity:this.transform(p1.toVector(e)),distance:this.transform(p1.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return H6;case!1:return 0;default:return e}},axisThreshold(e){return e?i1(i1({},Ao),e):Ao},keyboardDisplacement(e=D6){return e}});i1(i1({},j0),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!P1.touch&&P1.gesture)return"gesture";if(P1.touch&&r)return"touch";if(P1.touchscreen){if(P1.pointer)return"pointer";if(P1.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=To(en(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=To(en(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",p1.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});i1(i1({},jt),{},{mouseOnly:(e=!0)=>e});i1(i1({},jt),{},{mouseOnly:(e=!0)=>e});const M0=new Map,tr=new Map;function B6(e){M0.set(e.key,e.engine),tr.set(e.key,e.resolver)}const z6={key:"drag",engine:j6,resolver:N6};function Z6(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function F6(e,t){if(e==null)return{};var n=Z6(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const U6={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=P1.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},W6=["target","eventOptions","window","enabled","transform"];function Ft(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=Ft(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function K6(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:l}=r,c=F6(r,W6);if(n.shared=Ft({target:o,eventOptions:i,window:s,enabled:a,transform:l},U6),t){const d=tr.get(t);n[t]=Ft(i1({shared:n.shared},c),d)}else for(const d in c){const f=tr.get(d);f&&(n[d]=Ft(i1({shared:n.shared},c[d]),f))}return n}class O0{constructor(t,n){k1(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=C6(n,r),l=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},c=i1(i1({},l),i);t.addEventListener(a,o,c);const d=()=>{t.removeEventListener(a,o,c),s.delete(d)};return s.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class G6{constructor(){k1(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class Y6{constructor(t){k1(this,"gestures",new Set),k1(this,"_targetEventStore",new O0(this)),k1(this,"gestureEventStores",{}),k1(this,"gestureTimeoutStores",{}),k1(this,"handlers",{}),k1(this,"config",{}),k1(this,"pointerIds",new Set),k1(this,"touchIds",new Set),k1(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),q6(this,t)}setEventIds(t){if(vn(t))return this.touchIds=new Set(v6(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=K6(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],l=Vo(r,a.eventOptions,!!o);if(a.enabled){const c=M0.get(s);new c(this,t,s).bind(l)}}const i=Vo(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](i1(i1({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=y6(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:l}=p6(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:l})}}}}function Ie(e,t){e.gestures.add(t),e.gestureEventStores[t]=new O0(e,t),e.gestureTimeoutStores[t]=new G6}function q6(e,t){t.drag&&Ie(e,"drag"),t.wheel&&Ie(e,"wheel"),t.scroll&&Ie(e,"scroll"),t.move&&Ie(e,"move"),t.pinch&&Ie(e,"pinch"),t.hover&&Ie(e,"hover")}const Vo=(e,t,n)=>(r,o,i,s={},a=!1)=>{var l,c;const d=(l=s.capture)!==null&&l!==void 0?l:t.capture,f=(c=s.passive)!==null&&c!==void 0?c:t.passive;let h=a?r:f6(r,o,d);n&&f&&(h+="Passive"),e[h]=e[h]||[],e[h].push(i)};function X6(e,t={},n,r){const o=b.useMemo(()=>new Y6(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),b.useEffect(o.effect.bind(o)),b.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function J6(e,t){return B6(z6),X6({drag:e},t||{},"drag")}function Q1(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function R0(e,t=[]){let n=[];function r(i,s){const a=p.createContext(s),l=n.length;n=[...n,s];function c(f){const{scope:h,children:g,...C}=f,v=(h==null?void 0:h[e][l])||a,x=p.useMemo(()=>C,Object.values(C));return p.createElement(v.Provider,{value:x},g)}function d(f,h){const g=(h==null?void 0:h[e][l])||a,C=p.useContext(g);if(C)return C;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,d]}const o=()=>{const i=n.map(s=>p.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Q6(o,...t)]}function Q6(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...a,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Xe(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function e9(e,t=globalThis==null?void 0:globalThis.document){const n=Xe(e);p.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const nr="dismissableLayer.update",t9="dismissableLayer.pointerDownOutside",n9="dismissableLayer.focusOutside";let Do;const r9=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),o9=p.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:l,...c}=e,d=p.useContext(r9),[f,h]=p.useState(null),g=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,C]=p.useState({}),v=Ye(t,S=>h(S)),x=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(m),y=f?x.indexOf(f):-1,_=d.layersWithOutsidePointerEventsDisabled.size>0,E=y>=w,$=i9(S=>{const L=S.target,O=[...d.branches].some(M=>M.contains(L));!E||O||(i==null||i(S),a==null||a(S),S.defaultPrevented||l==null||l())},g),k=s9(S=>{const L=S.target;[...d.branches].some(M=>M.contains(L))||(s==null||s(S),a==null||a(S),S.defaultPrevented||l==null||l())},g);return e9(S=>{y===d.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},g),p.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Do=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),No(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Do)}},[f,g,r,d]),p.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),No())},[f,d]),p.useEffect(()=>{const S=()=>C({});return document.addEventListener(nr,S),()=>document.removeEventListener(nr,S)},[]),p.createElement(Le.div,V({},c,{ref:v,style:{pointerEvents:_?E?"auto":"none":void 0,...e.style},onFocusCapture:Q1(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Q1(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Q1(e.onPointerDownCapture,$.onPointerDownCapture)}))});function i9(e,t=globalThis==null?void 0:globalThis.document){const n=Xe(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){P0(t9,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function s9(e,t=globalThis==null?void 0:globalThis.document){const n=Xe(e),r=p.useRef(!1);return p.useEffect(()=>{const o=i=>{i.target&&!r.current&&P0(n9,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function No(){const e=new CustomEvent(nr);document.dispatchEvent(e)}function P0(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?$s(o,i):o.dispatchEvent(i)}const Fe=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},a9=d3["useId".toString()]||(()=>{});let l9=0;function c9(e){const[t,n]=p.useState(a9());return Fe(()=>{e||n(r=>r??String(l9++))},[e]),e||(t?`radix-${t}`:"")}const u9=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return p.createElement(Le.svg,V({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:p.createElement("polygon",{points:"0,0 30,0 15,10"}))}),d9=u9;function f9(e){const[t,n]=p.useState(void 0);return Fe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const T0="Popper",[H0,I0]=R0(T0),[h9,A0]=H0(T0),p9=e=>{const{__scopePopper:t,children:n}=e,[r,o]=p.useState(null);return p.createElement(h9,{scope:t,anchor:r,onAnchorChange:o},n)},C9="PopperAnchor",g9=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=A0(C9,n),s=p.useRef(null),a=Ye(t,s);return p.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:p.createElement(Le.div,V({},o,{ref:a}))}),V0="PopperContent",[m9,v9]=H0(V0),x9=p.forwardRef((e,t)=>{var n,r,o,i,s,a,l,c;const{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:g="center",alignOffset:C=0,arrowPadding:v=0,avoidCollisions:x=!0,collisionBoundary:m=[],collisionPadding:w=0,sticky:y="partial",hideWhenDetached:_=!1,updatePositionStrategy:E="optimized",onPlaced:$,...k}=e,S=A0(V0,d),[L,O]=p.useState(null),M=Ye(t,t1=>O(t1)),[j,D]=p.useState(null),T=f9(j),P=(n=T==null?void 0:T.width)!==null&&n!==void 0?n:0,R=(r=T==null?void 0:T.height)!==null&&r!==void 0?r:0,I=f+(g!=="center"?"-"+g:""),Z=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},F=Array.isArray(m)?m:[m],e1=F.length>0,W={padding:Z,boundary:F.filter(_9),altBoundary:e1},{refs:X,floatingStyles:u1,placement:l1,isPositioned:K,middlewareData:d1}=W5({strategy:"fixed",placement:I,whileElementsMounted:(...t1)=>Z5(...t1,{animationFrame:E==="always"}),elements:{reference:S.anchor},middleware:[b5({mainAxis:h+R,alignmentAxis:C}),x&&_5({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?E5():void 0,...W}),x&&x5({...W}),$5({...W,apply:({elements:t1,rects:F1,availableWidth:U1,availableHeight:W1})=>{const{width:Oe,height:me}=F1.reference,K1=t1.floating.style;K1.setProperty("--radix-popper-available-width",`${U1}px`),K1.setProperty("--radix-popper-available-height",`${W1}px`),K1.setProperty("--radix-popper-anchor-width",`${Oe}px`),K1.setProperty("--radix-popper-anchor-height",`${me}px`)}}),j&&U5({element:j,padding:v}),E9({arrowWidth:P,arrowHeight:R}),_&&w5({strategy:"referenceHidden",...W})]}),[_1,E1]=D0(l1),L1=Xe($);Fe(()=>{K&&(L1==null||L1())},[K,L1]);const V1=(o=d1.arrow)===null||o===void 0?void 0:o.x,ue=(i=d1.arrow)===null||i===void 0?void 0:i.y,de=((s=d1.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[U,J]=p.useState();return Fe(()=>{L&&J(window.getComputedStyle(L).zIndex)},[L]),p.createElement("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...u1,transform:K?u1.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[(a=d1.transformOrigin)===null||a===void 0?void 0:a.x,(l=d1.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},p.createElement(m9,{scope:d,placedSide:_1,onArrowChange:D,arrowX:V1,arrowY:ue,shouldHideArrow:de},p.createElement(Le.div,V({"data-side":_1,"data-align":E1},k,{ref:M,style:{...k.style,animation:K?void 0:"none",opacity:(c=d1.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),w9="PopperArrow",y9={top:"bottom",right:"left",bottom:"top",left:"right"},b9=p.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=v9(w9,r),s=y9[i.placedSide];return p.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},p.createElement(d9,V({},o,{ref:n,style:{...o.style,display:"block"}})))});function _9(e){return e!==null}const E9=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:l,middlewareData:c}=t,f=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=f?0:e.arrowWidth,g=f?0:e.arrowHeight,[C,v]=D0(a),x={start:"0%",center:"50%",end:"100%"}[v],m=((r=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,w=((i=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+g/2;let y="",_="";return C==="bottom"?(y=f?x:`${m}px`,_=`${-g}px`):C==="top"?(y=f?x:`${m}px`,_=`${l.floating.height+g}px`):C==="right"?(y=`${-g}px`,_=f?x:`${w}px`):C==="left"&&(y=`${l.floating.width+g}px`,_=f?x:`${w}px`),{data:{x:y,y:_}}}});function D0(e){const[t,n="center"]=e.split("-");return[t,n]}const $9=p9,k9=g9,S9=x9,j9=b9;function L9(e,t){return p.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const N0=e=>{const{present:t,children:n}=e,r=M9(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),i=Ye(r.ref,o.ref);return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:i}):null};N0.displayName="Presence";function M9(e){const[t,n]=p.useState(),r=p.useRef({}),o=p.useRef(e),i=p.useRef("none"),s=e?"mounted":"unmounted",[a,l]=L9(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=Vt(r.current);i.current=a==="mounted"?c:"none"},[a]),Fe(()=>{const c=r.current,d=o.current;if(d!==e){const h=i.current,g=Vt(c);e?l("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Fe(()=>{if(t){const c=f=>{const g=Vt(r.current).includes(f.animationName);f.target===t&&g&&hn.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=Vt(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Vt(e){return(e==null?void 0:e.animationName)||"none"}function O9({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=R9({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=Xe(n),l=p.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&a(f)}else o(c)},[i,e,o,a]);return[s,l]}function R9({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,o=p.useRef(r),i=Xe(t);return p.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const P9=p.forwardRef((e,t)=>p.createElement(Le.span,V({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),T9=P9,[xn,wh]=R0("Tooltip",[I0]),wn=I0(),H9="TooltipProvider",rr="tooltip.open",[yh,Mr]=xn(H9),Or="Tooltip",[I9,yn]=xn(Or),A9=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=Mr(Or,e.__scopeTooltip),c=wn(t),[d,f]=p.useState(null),h=c9(),g=p.useRef(0),C=s??l.disableHoverableContent,v=a??l.delayDuration,x=p.useRef(!1),[m=!1,w]=O9({prop:r,defaultProp:o,onChange:k=>{k?(l.onOpen(),document.dispatchEvent(new CustomEvent(rr))):l.onClose(),i==null||i(k)}}),y=p.useMemo(()=>m?x.current?"delayed-open":"instant-open":"closed",[m]),_=p.useCallback(()=>{window.clearTimeout(g.current),x.current=!1,w(!0)},[w]),E=p.useCallback(()=>{window.clearTimeout(g.current),w(!1)},[w]),$=p.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,w(!0)},v)},[v,w]);return p.useEffect(()=>()=>window.clearTimeout(g.current),[]),p.createElement($9,c,p.createElement(I9,{scope:t,contentId:h,open:m,stateAttribute:y,trigger:d,onTriggerChange:f,onTriggerEnter:p.useCallback(()=>{l.isOpenDelayed?$():_()},[l.isOpenDelayed,$,_]),onTriggerLeave:p.useCallback(()=>{C?E():window.clearTimeout(g.current)},[E,C]),onOpen:_,onClose:E,disableHoverableContent:C},n))},Bo="TooltipTrigger",V9=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yn(Bo,n),i=Mr(Bo,n),s=wn(n),a=p.useRef(null),l=Ye(t,a,o.onTriggerChange),c=p.useRef(!1),d=p.useRef(!1),f=p.useCallback(()=>c.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.createElement(k9,V({asChild:!0},s),p.createElement(Le.button,V({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:Q1(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Q1(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Q1(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Q1(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:Q1(e.onBlur,o.onClose),onClick:Q1(e.onClick,o.onClose)})))}),D9="TooltipPortal",[bh,N9]=xn(D9,{forceMount:void 0}),wt="TooltipContent",B9=p.forwardRef((e,t)=>{const n=N9(wt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=yn(wt,e.__scopeTooltip);return p.createElement(N0,{present:r||s.open},s.disableHoverableContent?p.createElement(B0,V({side:o},i,{ref:t})):p.createElement(z9,V({side:o},i,{ref:t})))}),z9=p.forwardRef((e,t)=>{const n=yn(wt,e.__scopeTooltip),r=Mr(wt,e.__scopeTooltip),o=p.useRef(null),i=Ye(t,o),[s,a]=p.useState(null),{trigger:l,onClose:c}=n,d=o.current,{onPointerInTransitChange:f}=r,h=p.useCallback(()=>{a(null),f(!1)},[f]),g=p.useCallback((C,v)=>{const x=C.currentTarget,m={x:C.clientX,y:C.clientY},w=K9(m,x.getBoundingClientRect()),y=G9(m,w),_=Y9(v.getBoundingClientRect()),E=X9([...y,..._]);a(E),f(!0)},[f]);return p.useEffect(()=>()=>h(),[h]),p.useEffect(()=>{if(l&&d){const C=x=>g(x,d),v=x=>g(x,l);return l.addEventListener("pointerleave",C),d.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",C),d.removeEventListener("pointerleave",v)}}},[l,d,g,h]),p.useEffect(()=>{if(s){const C=v=>{const x=v.target,m={x:v.clientX,y:v.clientY},w=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),y=!q9(m,s);w?h():y&&(h(),c())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[l,d,s,c,h]),p.createElement(B0,V({},e,{ref:i}))}),[Z9,F9]=xn(Or,{isInside:!1}),B0=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=yn(wt,n),c=wn(n),{onClose:d}=l;return p.useEffect(()=>(document.addEventListener(rr,d),()=>document.removeEventListener(rr,d)),[d]),p.useEffect(()=>{if(l.trigger){const f=h=>{const g=h.target;g!=null&&g.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),p.createElement(o9,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d},p.createElement(S9,V({"data-state":l.stateAttribute},c,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),p.createElement(v0,null,r),p.createElement(Z9,{scope:n,isInside:!0},p.createElement(T9,{id:l.contentId,role:"tooltip"},o||r))))}),U9="TooltipArrow",W9=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=wn(n);return F9(U9,n).isInside?null:p.createElement(j9,V({},o,r,{ref:t}))});function K9(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function G9(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Y9(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function q9(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=d>r&&n<(c-a)*(r-l)/(d-l)+a&&(o=!o)}return o}function X9(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),J9(t)}function J9(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const Q9=A9,e7=V9,t7=B9,n7=W9;function r7(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function Y(e,t){if(e==null)return{};var n=r7(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let o1;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(o1||(o1={}));const o7={[o1.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[o1.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[o1.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[o1.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[o1.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[o1.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[o1.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[o1.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[o1.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[o1.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[o1.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function z0(e,t,...n){const[r,...o]=o7[t](...n);console[e]("LEVA: "+r,...o)}const ee=z0.bind(null,"warn"),i7=z0.bind(null,"log"),s7=["value"],a7=["schema"],l7=["value"],Z0=[],$e={};function zo(e){let{value:t}=e,n=Y(e,s7);for(let r of Z0){const o=r(t,n);if(o)return o}}function ce(e,t){let{schema:n}=t,r=Y(t,a7);if(e in $e){ee(o1.ALREADY_REGISTERED_TYPE,e);return}Z0.push((o,i)=>n(o,i)&&e),$e[e]=r}function Hn(e,t,n,r){const{normalize:o}=$e[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=Y(t,l7);return{value:i,settings:s}}function c7(e,t,n,r,o,i){const{sanitize:s}=$e[e];return s?s(t,n,r,o,i):t}function Zo(e,t,n){const{format:r}=$e[e];return r?r(t,n):t}function u7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=fe(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},f7=Math.log(10);function Uo(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/f7)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const tn=(e,t,n)=>n===t?0:(ge(e,t,n)-t)/(n-t),nn=(e,t,n)=>e*(n-t)+t,h7=()=>"_"+Math.random().toString(36).substr(2,9),Wo=/\(([0-9+\-*/^ .]+)\)/,Ko=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,Go=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Yo=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,qo=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Xo=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function fe(e){if(isNaN(Number(e)))if(Wo.test(e)){const t=e.replace(Wo,(n,r)=>String(fe(r)));return fe(t)}else if(Ko.test(e)){const t=e.replace(Ko,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return fe(t)}else if(Go.test(e)){const t=e.replace(Go,(n,r,o)=>String(Number(r)*Number(o)));return fe(t)}else if(Yo.test(e)){const t=e.replace(Yo,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return fe(t)}else if(qo.test(e)){const t=e.replace(qo,(n,r,o)=>String(Number(r)+Number(o)));return fe(t)}else if(Xo.test(e)){const t=e.replace(Xo,(n,r,o)=>String(Number(r)-Number(o)));return fe(t)}else return Number(e);return Number(e)}function p7(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function C7(e,t){const n=z({},e);return t.forEach(r=>r in e&&delete n[r]),n}function g7(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function F0(e){return Object.prototype.toString.call(e)==="[object Object]"}const m7=e=>F0(e)&&Object.keys(e).length===0;let B1;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(B1||(B1={}));let z1;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(z1||(z1={}));const v7=["type","__customInput"],x7=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],w7=["type"];function U0(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:z({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:E,__customInput:$}=e,k=Y(e,v7);return U0($,t,k,E)}const{render:s,label:a,optional:l,order:c=0,disabled:d,hint:f,onChange:h,onEditStart:g,onEditEnd:C,transient:v}=e,x=Y(e,x7),m=z({render:s,key:t,label:a??t,hint:f,transient:v??!!h,onEditStart:g,onEditEnd:C,disabled:d,optional:l,order:c},n);let{type:w}=x,y=Y(x,w7);if(w=r??w,w in B1)return{type:w,input:y,options:m};let _;return r&&F0(y)&&"value"in y?_=y.value:_=m7(y)?void 0:y,{type:w,input:_,options:z(z({},m),{},{onChange:h,optional:(o=m.optional)!==null&&o!==void 0?o:!1,disabled:(i=m.disabled)!==null&&i!==void 0?i:!1})}}function y7(e,t,n,r){const o=U0(e,t),{type:i,input:s,options:a}=o;if(i)return i in B1?o:{type:i,input:Hn(i,s,n,r),options:a};let l=zo(s);return l?{type:l,input:Hn(l,s,n,r),options:a}:(l=zo({value:s}),l?{type:l,input:Hn(l,{value:s},n,r),options:a}:!1)}function Jo(e,t,n,r,o){const{value:i,type:s,settings:a}=e;e.value=W0({type:s,value:i,settings:a},t,n,r),e.fromPanel=o}const b7=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function W0({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let a;try{a=c7(e,s,n,t,o,i)}catch(l){throw new b7(`The value \`${r}\` did not result in a correct value.`,t,l)}return vt(a,t)?t:a}const K0=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},G0=e=>e.shiftKey?5:e.altKey?1/5:1;function _7(e,t){const n=console.error;console.error=()=>{},Ve.render(e,t),console.error=n}const E7=["value"],$7=["min","max"],k7=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},Y0=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=ge(o,t,n);return r?i+r:i},S7=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},q0=e=>{let{value:t}=e,n=Y(e,E7);const{min:r=-1/0,max:o=1/0}=n,i=Y(n,$7);let s=parseFloat(t);const a=typeof t=="string"?t.substring((""+s).length):void 0;s=ge(s,r,o);let l=n.step;l||(Number.isFinite(r)?Number.isFinite(o)?l=+(Math.abs(o-r)/100).toPrecision(1):l=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(l=+(Math.abs(o-s)/100).toPrecision(1)));const c=l?Uo(l)*10:Uo(s);l=l||c/10;const d=Math.round(ge(Math.log10(1/c),0,2));return{value:a?s+a:s,settings:z({initialValue:s,step:l,pad:d,min:r,max:o,suffix:a},i)}},X0=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var J0=Object.freeze({__proto__:null,schema:k7,sanitize:Y0,format:S7,normalize:q0,sanitizeStep:X0});function a1(){return a1=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function Dt(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const rt={$inputStyle:()=>e=>Dt(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>Dt(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>Dt(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>Dt(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:B,css:_h,createTheme:L7,globalCss:M7,keyframes:Eh}=E0({prefix:"leva",theme:n2(),utils:z(z({},rt),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":rt.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":rt.$focusStyle()(e)}),$hover:e=>({"&:hover":rt.$hoverStyle()(e)}),$active:e=>({"&:active":rt.$activeStyle()(e)})})}),O7=M7({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function R7(e){const t=n2();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=L7(t);return{theme:t,className:n.className}}function te(e,t){const{theme:n}=p.useContext(Rr);if(!(e in n)||!(t in n[e]))return ee(o1.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const r2=B("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),o2=B("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${r2}`]:{paddingLeft:0}}),P7=B(o2,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),T7=B("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),H7=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],I7=["onUpdate"];function Pr(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:a,inputType:l="text",rows:c=0}=e,d=Y(e,H7);const{id:f,emitOnEditStart:h,emitOnEditEnd:g,disabled:C}=C1(),v=a||f,x=p.useRef(null),m=c>0,w=m?"textarea":"input",y=p.useCallback($=>k=>{const S=k.currentTarget.value;$(S)},[]);b.useEffect(()=>{const $=x.current,k=y(S=>{r(S),g()});return $==null||$.addEventListener("blur",k),()=>$==null?void 0:$.removeEventListener("blur",k)},[y,r,g]);const _=p.useCallback($=>{$.key==="Enter"&&y(r)($)},[y,r]),E=Object.assign({as:w},m?{rows:c}:{},d);return b.createElement(T7,{textArea:m},t&&typeof t=="string"?b.createElement(o2,null,t):t,b.createElement(r2,a1({levaType:s,ref:x,id:v,type:l,autoComplete:"off",spellCheck:"false",value:n,onChange:y(o),onFocus:()=>h(),onKeyPress:_,onKeyDown:i,disabled:C},E)))}function A7(e){let{onUpdate:t}=e,n=Y(e,I7);const r=p.useCallback(i=>t(d7(i)),[t]),o=p.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;t(l=>parseFloat(l)+s*a)}},[t]);return b.createElement(Pr,a1({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const rn=B("div",{}),or=B("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),V7=B("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${or}::after`]:{opacity:.6},[`${rn}:hover > & + ${or}::after`]:{opacity:.6},[`${rn}:hover > & > svg`]:{opacity:1}}),i2=B("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${rn}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),s2=B("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${i2} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),a2=B(s2,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),D7=B("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),N7=B("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),ir=B("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),B7=B("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${ir}`]:{pointerEvents:"auto"}}}}}),l2=B("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),z7=B("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),Z7=B(n7,{fill:"$toolTipBackground"});function Tr({children:e}){const{className:t}=p.useContext(Rr);return b.createElement(Ss,{className:t},e)}const F7=["align"];function U7(){const{id:e,disable:t,disabled:n}=C1();return b.createElement(b.Fragment,null,b.createElement(N7,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),b.createElement("label",{htmlFor:e+"__disable"}))}function W7(e){const{id:t,optional:n,hint:r}=C1(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return b.createElement(b.Fragment,null,n&&b.createElement(U7,null),r!==void 0?b.createElement(Q9,null,b.createElement(e7,{asChild:!0},b.createElement(ir,a1({},o,e))),b.createElement(t7,{side:"top",sideOffset:2},b.createElement(z7,null,r,b.createElement(Z7,null)))):b.createElement(ir,a1({},o,i,e)))}function Z1(e){let{align:t}=e,n=Y(e,F7);const{value:r,label:o,key:i,disabled:s}=C1(),{hideCopyButton:a}=j7(),l=!a&&i!==void 0,[c,d]=p.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),d(!0)}catch{ee(o1.CLIPBOARD_ERROR,{[i]:r})}};return b.createElement(D7,{align:t,onPointerLeave:()=>d(!1)},b.createElement(W7,n),l&&!s&&b.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},c?b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},b.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),b.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):b.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},b.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),b.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const K7=["toggled"],G7=B("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Hr(e){let{toggled:t}=e,n=Y(e,K7);return b.createElement(G7,a1({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),b.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const Y7=["input"];function A1(e){let{input:t}=e,n=Y(e,Y7);return t?b.createElement(a2,n):b.createElement(s2,n)}function c2({value:e,type:t,settings:n,setValue:r}){const[o,i]=p.useState(Zo(t,e,n)),s=p.useRef(e),a=p.useRef(n);a.current=n;const l=p.useCallback(d=>i(Zo(t,d,a.current)),[t]),c=p.useCallback(d=>{try{r(d)}catch(f){const{type:h,previousValue:g}=f;if(h!=="LEVA_ERROR")throw f;l(g)}},[l,r]);return p.useEffect(()=>{vt(e,s.current)||l(e),s.current=e},[e,l]),{displayValue:o,onChange:i,onUpdate:c}}function Ot(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=C1();return J6(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function q7(e){const t=p.useRef(null),n=p.useRef(null),r=p.useRef(!1);return p.useEffect(()=>{const o=K0(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),p.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function u2(){const e=p.useRef(null),t=p.useRef({x:0,y:0}),n=p.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const X7=["__refCount"],In=(e,t)=>{if(!e[t])return null;const n=e[t];return Y(n,X7)};function J7(e){const t=Mt(),[n,r]=p.useState(In(t.getData(),e)),o=p.useCallback(c=>t.setValueAtPath(e,c,!0),[e,t]),i=p.useCallback(c=>t.setSettingsAtPath(e,c),[e,t]),s=p.useCallback(c=>t.disableInputAtPath(e,c),[e,t]),a=p.useCallback(()=>t.emitOnEditStart(e),[e,t]),l=p.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return p.useEffect(()=>{r(In(t.getData(),e));const c=t.useStore.subscribe(d=>In(d.data,e),r,{equalityFn:St});return()=>c()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:a,emitOnEditEnd:l}]}const Q7=B("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),d2=B("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),sr=B("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),f2=B("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),h2=B("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function e4({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=p.useRef(null),a=p.useRef(null),l=p.useRef(0),c=te("sizes","scrubberWidth"),d=Ot(({event:h,first:g,xy:[C],movement:[v],memo:x})=>{if(g){const{width:w,left:y}=s.current.getBoundingClientRect();l.current=w-parseFloat(c),x=(h==null?void 0:h.target)===a.current?e:nn((C-y)/w,t,n)}const m=x+nn(v/l.current,0,n-t);return r(X0(m,{step:o,initialValue:i})),x}),f=tn(e,t,n);return b.createElement(f2,a1({ref:s},d()),b.createElement(d2,null,b.createElement(h2,{style:{left:0,right:`${(1-f)*100}%`}})),b.createElement(sr,{ref:a,style:{left:`calc(${f} * (100% - ${c}))`}}))}const t4=b.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=p.useState(!1),s=Ot(({active:a,delta:[l],event:c,memo:d=0})=>(i(a),d+=l/2,Math.abs(d)>=1&&(t(f=>parseFloat(f)+Math.floor(d)*n*G0(c)),d=0),d));return b.createElement(P7,a1({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function p2({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const a=s>0&&b.createElement(t4,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return b.createElement(A7,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:a})}function n4(){const e=C1(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:a}=o,l=a!==1/0&&s!==-1/0;return b.createElement(A1,{input:!0},b.createElement(Z1,null,t),b.createElement(Q7,{hasRange:l},l&&b.createElement(e4,a1({value:parseFloat(n),onDrag:r},o)),b.createElement(p2,a1({},e,{id:i,label:"value",innerLabelTrim:l?0:1}))))}const{sanitizeStep:r4}=J0,o4=Y(J0,["sanitizeStep"]);var i4=z({component:n4},o4);const s4=(e,t)=>S1().schema({options:S1().passesAnyOf(S1().object(),S1().array())}).test(t),a4=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},l4=(e,{values:t})=>t.indexOf(e),c4=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var u4=Object.freeze({__proto__:null,schema:s4,sanitize:a4,format:l4,normalize:c4});const d4=B("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),ar=B("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),f4=B("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${ar}:focus + &`]:{$focusStyle:""},[`${ar}:hover + &`]:{$hoverStyle:""}});function h4({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:a}=o,l=p.useRef();return t===a[e]&&(l.current=s[e]),b.createElement(d4,null,b.createElement(ar,{id:r,value:e,onChange:c=>n(a[Number(c.currentTarget.value)]),disabled:i},s.map((c,d)=>b.createElement("option",{key:c,value:d},c))),b.createElement(f4,null,l.current),b.createElement(Hr,{toggled:!0}))}function p4(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(h4,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var C4=z({component:p4},u4);const g4=e=>S1().string().test(e),m4=e=>{if(typeof e!="string")throw Error("Invalid string");return e},v4=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var x4=Object.freeze({__proto__:null,schema:g4,sanitize:m4,normalize:v4});const w4=["displayValue","onUpdate","onChange","editable"],y4=B("div",{whiteSpace:"pre-wrap"});function b4(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=Y(e,w4);return o?b.createElement(Pr,a1({value:t,onUpdate:n,onChange:r},i)):b.createElement(y4,null,t)}function _4(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(b4,a1({displayValue:n,onUpdate:r,onChange:o},t)))}var E4=z({component:_4},x4);const $4=e=>S1().boolean().test(e),k4=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var S4=Object.freeze({__proto__:null,schema:$4,sanitize:k4});const j4=B("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function L4({value:e,onUpdate:t,id:n,disabled:r}){return b.createElement(j4,null,b.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),b.createElement("label",{htmlFor:n},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},b.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function M4(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(L4,{value:t,onUpdate:n,id:o,disabled:r}))}var O4=z({component:M4},S4);const R4=["locked"];function P4({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=p.useRef(e[n]);s.current=e[n];const a=p.useCallback(c=>o({[n]:W0({type:"NUMBER",value:s.current,settings:r},c)}),[o,r,n]),l=c2({type:"NUMBER",value:e[n],settings:r,setValue:a});return b.createElement(p2,{id:t,label:n,value:e[n],displayValue:l.displayValue,onUpdate:l.onUpdate,onChange:l.onChange,settings:r,innerLabelTrim:i})}const T4=B("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function H4(e){let{locked:t}=e,n=Y(e,R4);return b.createElement("svg",a1({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?b.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):b.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Ir({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=C1(),{lock:s,locked:a}=n;return b.createElement(T4,{withLock:s},s&&b.createElement(H4,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(e).map((l,c)=>b.createElement(P4,{id:c===0?o:`${o}.${l}`,key:l,valueKey:l,value:e,settings:n[l],onUpdate:t,innerLabelTrim:r})))}const C2=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=q0(z({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:a,max:l}=t[i]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(l))&&(n[i].step=r,n[i].pad=o)}return n},I4=["lock"],A4=["value"];function V4(e){const t=S1().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function D4(e){return Array.isArray(e)?"array":"object"}function ft(e,t,n){return D4(e)===t?e:t==="array"?Object.values(e):g7(e,n)}const N4=(e,t,n)=>{const r=ft(e,"object",t.keys);for(let s in r)r[s]=Y0(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=ft(n,"object",t.keys);if(o.length===1&&t.locked){const a=o[0],l=r[a],c=s[a],d=c!==0?l/c:1;for(let f in s)f===a?i[a]=l:i[f]=s[f]*d}else i=z(z({},s),r)}return ft(i,t.format,t.keys)},B4=(e,t)=>ft(e,"object",t.keys),z4=e=>!!e&&("step"in e||"min"in e||"max"in e);function Z4(e,t,n=[]){const{lock:r=!1}=t,o=Y(t,I4),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,a=ft(e,"object",s),l=z4(o)?s.reduce((d,f)=>Object.assign(d,{[f]:o}),{}):o,c=C2(a,l);return{value:i==="array"?e:a,settings:z(z({},c),{},{format:i,keys:s,lock:r,locked:!1})}}function g2(e){return{schema:V4(e.length),normalize:t=>{let{value:n}=t,r=Y(t,A4);return Z4(n,r,e)},format:(t,n)=>B4(t,n),sanitize:(t,n,r)=>N4(t,n,r)}}var F4={grad:.9,turn:360,rad:360/(2*Math.PI)},J1=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},f1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},H1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},m2=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Qo=function(e){return{r:H1(e.r,0,255),g:H1(e.g,0,255),b:H1(e.b,0,255),a:H1(e.a)}},An=function(e){return{r:f1(e.r),g:f1(e.g),b:f1(e.b),a:f1(e.a,3)}},U4=/^#([0-9a-f]{3,8})$/i,Nt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},v2=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},x2=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,a,s,s,l,r][c],g:255*[l,r,r,a,s,s][c],b:255*[s,s,l,r,r,a][c],a:o}},ei=function(e){return{h:m2(e.h),s:H1(e.s,0,100),l:H1(e.l,0,100),a:H1(e.a)}},ti=function(e){return{h:f1(e.h),s:f1(e.s),l:f1(e.l),a:f1(e.a,3)}},ni=function(e){return x2((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},ht=function(e){return{h:(t=v2(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},W4=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,K4=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,G4=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Y4=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,lr={string:[[function(e){var t=U4.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?f1(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?f1(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=G4.exec(e)||Y4.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Qo({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=W4.exec(e)||K4.exec(e);if(!t)return null;var n,r,o=ei({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(F4[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return ni(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return J1(t)&&J1(n)&&J1(r)?Qo({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!J1(t)||!J1(n)||!J1(r))return null;var s=ei({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return ni(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!J1(t)||!J1(n)||!J1(r))return null;var s=function(a){return{h:m2(a.h),s:H1(a.s,0,100),v:H1(a.v,0,100),a:H1(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return x2(s)},"hsv"]]},ri=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=An(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?Nt(f1(255*i)):"","#"+Nt(n)+Nt(r)+Nt(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return An(this.rgba)},e.prototype.toRgbString=function(){return t=An(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return ti(ht(this.rgba))},e.prototype.toHslString=function(){return t=ti(ht(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=v2(this.rgba),{h:f1(t.h),s:f1(t.s),v:f1(t.v),a:f1(t.a,3)};var t},e.prototype.invert=function(){return v1({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),v1(Vn(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),v1(Vn(this.rgba,-t))},e.prototype.grayscale=function(){return v1(Vn(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),v1(oi(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),v1(oi(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?v1({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):f1(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=ht(this.rgba);return typeof t=="number"?v1({h:t,s:n.s,l:n.l,a:n.a}):f1(n.h)},e.prototype.isEqual=function(t){return this.toHex()===v1(t).toHex()},e}(),v1=function(e){return e instanceof cr?e:new cr(e)},ii=[],X4=function(e){e.forEach(function(t){ii.indexOf(t)<0&&(t(cr,lr),ii.push(t))})};function J4(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,c=r[this.toHex()];if(c)return c;if(s!=null&&s.closest){var d=this.toRgb(),f=1/0,h="black";if(!i.length)for(var g in n)i[g]=new e(n[g]).toRgb();for(var C in n){var v=(a=d,l=i[C],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));v=0||(o[n]=e[n]);return o}function ur(e){var t=p.useRef(e),n=p.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var Ue=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:x.buttons>0)&&o.current?i(si(o.current,x,a.current)):v(!1)},C=function(){return v(!1)};function v(x){var m=l.current,w=dr(o.current),y=x?w.addEventListener:w.removeEventListener;y(m?"touchmove":"mousemove",g),y(m?"touchend":"mouseup",C)}return[function(x){var m=x.nativeEvent,w=o.current;if(w&&(ai(m),!function(_,E){return E&&!pt(_)}(m,l.current)&&w)){if(pt(m)){l.current=!0;var y=m.changedTouches||[];y.length&&(a.current=y[0].identifier)}w.focus(),i(si(w,m,a.current)),v(!0)}},function(x){var m=x.which||x.keyCode;m<37||m>40||(x.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},v]},[s,i]),d=c[0],f=c[1],h=c[2];return p.useEffect(function(){return h},[h]),b.createElement("div",Je({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),Rt=function(e){return e.filter(Boolean).join(" ")},Dr=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Rt(["react-colorful__pointer",e.className]);return b.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},b.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},w1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},y2=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:w1(e.h),s:w1(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:w1(o/2),a:w1(r,2)}},fr=function(e){var t=y2(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Nn=function(e){var t=y2(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},b2=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:w1(255*[r,a,s,s,l,r][c]),g:w1(255*[l,r,r,a,s,s][c]),b:w1(255*[s,s,l,r,r,a][c]),a:w1(o,2)}},_2=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:w1(60*(a<0?a+6:a)),s:w1(i?s/i*100:0),v:w1(i/255*100),a:o}},E2=b.memo(function(e){var t=e.hue,n=e.onChange,r=Rt(["react-colorful__hue",e.className]);return b.createElement("div",{className:r},b.createElement(Vr,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:Ue(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":w1(t),"aria-valuemax":"360","aria-valuemin":"0"},b.createElement(Dr,{className:"react-colorful__hue-pointer",left:t/360,color:fr({h:t,s:100,v:100,a:1})})))}),$2=b.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:fr({h:t.h,s:100,v:100,a:1})};return b.createElement("div",{className:"react-colorful__saturation",style:r},b.createElement(Vr,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:Ue(t.s+100*o.left,0,100),v:Ue(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+w1(t.s)+"%, Brightness "+w1(t.v)+"%"},b.createElement(Dr,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:fr(t)})))}),Nr=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function k2(e,t,n){var r=ur(n),o=p.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=p.useRef({color:t,hsva:i});p.useEffect(function(){if(!e.equal(t,a.current.color)){var c=e.toHsva(t);a.current={hsva:c,color:t},s(c)}},[t,e]),p.useEffect(function(){var c;Nr(i,a.current.hsva)||e.equal(c=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:c},r(c))},[i,e,r]);var l=p.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[i,l]}var Q4=typeof window<"u"?p.useLayoutEffect:p.useEffect,e8=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},li=new Map,S2=function(e){Q4(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!li.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,li.set(t,n);var r=e8();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},t8=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Ar(e,["className","colorModel","color","onChange"]),a=p.useRef(null);S2(a);var l=k2(n,o,i),c=l[0],d=l[1],f=Rt(["react-colorful",t]);return b.createElement("div",Je({},s,{ref:a,className:f}),b.createElement($2,{hsva:c,onChange:d}),b.createElement(E2,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},n8=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Nn(Object.assign({},n,{a:0}))+", "+Nn(Object.assign({},n,{a:1}))+")"},i=Rt(["react-colorful__alpha",t]),s=w1(100*n.a);return b.createElement("div",{className:i},b.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),b.createElement(Vr,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:Ue(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},b.createElement(Dr,{className:"react-colorful__alpha-pointer",left:n.a,color:Nn(n)})))},r8=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Ar(e,["className","colorModel","color","onChange"]),a=p.useRef(null);S2(a);var l=k2(n,o,i),c=l[0],d=l[1],f=Rt(["react-colorful",t]);return b.createElement("div",Je({},s,{ref:a,className:f}),b.createElement($2,{hsva:c,onChange:d}),b.createElement(E2,{hue:c.h,onChange:d}),b.createElement(n8,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},o8={defaultColor:{r:0,g:0,b:0,a:1},toHsva:_2,fromHsva:b2,equal:Nr},i8=function(e){return b.createElement(r8,Je({},e,{colorModel:o8}))},s8={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return _2({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=b2(e)).r,g:t.g,b:t.b};var t},equal:Nr},a8=function(e){return b.createElement(t8,Je({},e,{colorModel:s8}))};function $h(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function Qe(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(d){try{c(r.next(d))}catch(f){s(f)}}function l(d){try{c(r.throw(d))}catch(f){s(f)}}function c(d){d.done?i(d.value):o(d.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function et(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function c8(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function d8(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=u8.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var f8=[".DS_Store","Thumbs.db"];function h8(e){return Qe(this,void 0,void 0,function(){return et(this,function(t){return on(e)&&p8(e)?[2,v8(e.dataTransfer,e.type)]:C8(e)?[2,g8(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,m8(e)]:[2,[]]})})}function p8(e){return on(e.dataTransfer)}function C8(e){return on(e)&&on(e.target)}function on(e){return typeof e=="object"&&e!==null}function g8(e){return hr(e.target.files).map(function(t){return Pt(t)})}function m8(e){return Qe(this,void 0,void 0,function(){var t;return et(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Pt(r)})]}})})}function v8(e,t){return Qe(this,void 0,void 0,function(){var n,r;return et(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=hr(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(x8))]):[3,2];case 1:return r=o.sent(),[2,ci(j2(r))];case 2:return[2,ci(hr(e.files).map(function(i){return Pt(i)}))]}})})}function ci(e){return e.filter(function(t){return f8.indexOf(t.name)===-1})}function hr(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Ci(n)];if(e.sizen)return[!1,Ci(n)]}return[!0,null]}function ot(e){return e!=null}function P8(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(a){var l=O2(a,n),c=hi(l,1),d=c[0],f=R2(a,r,o),h=hi(f,1),g=h[0];return d&&g})}function sn(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Bt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function mi(e){e.preventDefault()}function T8(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function H8(e){return e.indexOf("Edge/")!==-1}function I8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return T8(e)||H8(e)}function G1(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function J8(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Br=p.forwardRef(function(e,t){var n=e.children,r=an(e,B8),o=H2(r),i=o.open,s=an(o,z8);return p.useImperativeHandle(t,function(){return{open:i}},[i]),b.createElement(p.Fragment,null,n(r1(r1({},s),{},{open:i})))});Br.displayName="Dropzone";var T2={disabled:!1,getFilesFromEvent:h8,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Br.defaultProps=T2;Br.propTypes={children:Q.func,accept:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]),multiple:Q.bool,preventDropOnDocument:Q.bool,noClick:Q.bool,noKeyboard:Q.bool,noDrag:Q.bool,noDragEventsBubbling:Q.bool,minSize:Q.number,maxSize:Q.number,maxFiles:Q.number,disabled:Q.bool,getFilesFromEvent:Q.func,onFileDialogCancel:Q.func,onFileDialogOpen:Q.func,useFsAccessApi:Q.bool,onDragEnter:Q.func,onDragLeave:Q.func,onDragOver:Q.func,onDrop:Q.func,onDropAccepted:Q.func,onDropRejected:Q.func,validator:Q.func};var gr={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function H2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r1(r1({},T2),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,l=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,g=t.onDropAccepted,C=t.onDropRejected,v=t.onFileDialogCancel,x=t.onFileDialogOpen,m=t.useFsAccessApi,w=t.preventDropOnDocument,y=t.noClick,_=t.noKeyboard,E=t.noDrag,$=t.noDragEventsBubbling,k=t.validator,S=p.useMemo(function(){return typeof x=="function"?x:xi},[x]),L=p.useMemo(function(){return typeof v=="function"?v:xi},[v]),O=p.useRef(null),M=p.useRef(null),j=p.useReducer(Q8,gr),D=Bn(j,2),T=D[0],P=D[1],R=T.isFocused,I=T.isFileDialogActive,Z=T.draggedFiles,F=p.useRef(typeof window<"u"&&window.isSecureContext&&m&&A8()),e1=function(){!F.current&&I&&setTimeout(function(){if(M.current){var N=M.current.files;N.length||(P({type:"closeDialog"}),L())}},300)};p.useEffect(function(){return window.addEventListener("focus",e1,!1),function(){window.removeEventListener("focus",e1,!1)}},[M,I,L,F]);var W=p.useRef([]),X=function(N){O.current&&O.current.contains(N.target)||(N.preventDefault(),W.current=[])};p.useEffect(function(){return w&&(document.addEventListener("dragover",mi,!1),document.addEventListener("drop",X,!1)),function(){w&&(document.removeEventListener("dragover",mi),document.removeEventListener("drop",X))}},[O,w]);var u1=p.useCallback(function(H){H.preventDefault(),H.persist(),F1(H),W.current=[].concat(U8(W.current),[H.target]),Bt(H)&&Promise.resolve(o(H)).then(function(N){sn(H)&&!$||(P({draggedFiles:N,isDragActive:!0,type:"setDraggedFiles"}),c&&c(H))})},[o,c,$]),l1=p.useCallback(function(H){H.preventDefault(),H.persist(),F1(H);var N=Bt(H);if(N&&H.dataTransfer)try{H.dataTransfer.dropEffect="copy"}catch{}return N&&f&&f(H),!1},[f,$]),K=p.useCallback(function(H){H.preventDefault(),H.persist(),F1(H);var N=W.current.filter(function($1){return O.current&&O.current.contains($1)}),h1=N.indexOf(H.target);h1!==-1&&N.splice(h1,1),W.current=N,!(N.length>0)&&(P({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Bt(H)&&d&&d(H))},[O,d,$]),d1=p.useCallback(function(H,N){var h1=[],$1=[];H.forEach(function(D1){var tt=O2(D1,n),Re=Bn(tt,2),_n=Re[0],En=Re[1],$n=R2(D1,s,i),Ht=Bn($n,2),kn=Ht[0],Sn=Ht[1],jn=k?k(D1):null;if(_n&&kn&&!jn)h1.push(D1);else{var Ln=[En,Sn];jn&&(Ln=Ln.concat(jn)),$1.push({file:D1,errors:Ln.filter(function(l3){return l3})})}}),(!a&&h1.length>1||a&&l>=1&&h1.length>l)&&(h1.forEach(function(D1){$1.push({file:D1,errors:[R8]})}),h1.splice(0)),P({acceptedFiles:h1,fileRejections:$1,type:"setFiles"}),h&&h(h1,$1,N),$1.length>0&&C&&C($1,N),h1.length>0&&g&&g(h1,N)},[P,a,n,s,i,l,h,g,C,k]),_1=p.useCallback(function(H){H.preventDefault(),H.persist(),F1(H),W.current=[],Bt(H)&&Promise.resolve(o(H)).then(function(N){sn(H)&&!$||d1(N,H)}),P({type:"reset"})},[o,d1,$]),E1=p.useCallback(function(){if(F.current){P({type:"openDialog"}),S();var H={multiple:a,types:V8(n)};window.showOpenFilePicker(H).then(function(N){return o(N)}).then(function(N){d1(N,null),P({type:"closeDialog"})}).catch(function(N){D8(N)?(L(N),P({type:"closeDialog"})):N8(N)&&(F.current=!1,M.current&&(M.current.value=null,M.current.click()))});return}M.current&&(P({type:"openDialog"}),S(),M.current.value=null,M.current.click())},[P,S,L,m,d1,n,a]),L1=p.useCallback(function(H){!O.current||!O.current.isEqualNode(H.target)||(H.key===" "||H.key==="Enter"||H.keyCode===32||H.keyCode===13)&&(H.preventDefault(),E1())},[O,E1]),V1=p.useCallback(function(){P({type:"focus"})},[]),ue=p.useCallback(function(){P({type:"blur"})},[]),de=p.useCallback(function(){y||(I8()?setTimeout(E1,0):E1())},[y,E1]),U=function(N){return r?null:N},J=function(N){return _?null:U(N)},t1=function(N){return E?null:U(N)},F1=function(N){$&&N.stopPropagation()},U1=p.useMemo(function(){return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=H.refKey,h1=N===void 0?"ref":N,$1=H.role,D1=H.onKeyDown,tt=H.onFocus,Re=H.onBlur,_n=H.onClick,En=H.onDragEnter,$n=H.onDragOver,Ht=H.onDragLeave,kn=H.onDrop,Sn=an(H,Z8);return r1(r1(Cr({onKeyDown:J(G1(D1,L1)),onFocus:J(G1(tt,V1)),onBlur:J(G1(Re,ue)),onClick:U(G1(_n,de)),onDragEnter:t1(G1(En,u1)),onDragOver:t1(G1($n,l1)),onDragLeave:t1(G1(Ht,K)),onDrop:t1(G1(kn,_1)),role:typeof $1=="string"&&$1!==""?$1:"button"},h1,O),!r&&!_?{tabIndex:0}:{}),Sn)}},[O,L1,V1,ue,de,u1,l1,K,_1,_,E,r]),W1=p.useCallback(function(H){H.stopPropagation()},[]),Oe=p.useMemo(function(){return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=H.refKey,h1=N===void 0?"ref":N,$1=H.onChange,D1=H.onClick,tt=an(H,F8),Re=Cr({accept:n,multiple:a,type:"file",style:{display:"none"},onChange:U(G1($1,_1)),onClick:U(G1(D1,W1)),tabIndex:-1},h1,M);return r1(r1({},Re),tt)}},[M,n,a,_1,r]),me=Z.length,K1=me>0&&P8({files:Z,accept:n,minSize:s,maxSize:i,multiple:a,maxFiles:l}),Tt=me>0&&!K1;return r1(r1({},T),{},{isDragAccept:K1,isDragReject:Tt,isFocused:R&&!r,getRootProps:U1,getInputProps:Oe,rootRef:O,inputRef:M,open:U(E1)})}function Q8(e,t){switch(t.type){case"focus":return r1(r1({},e),{},{isFocused:!0});case"blur":return r1(r1({},e),{},{isFocused:!1});case"openDialog":return r1(r1({},gr),{},{isFileDialogActive:!0});case"closeDialog":return r1(r1({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return r1(r1({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return r1(r1({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return r1({},gr);default:return e}}function xi(){}function ea(e){let t;const n=new Set,r=(c,d)=>{const f=typeof c=="function"?c(t):c;if(f!==t){const h=t;t=d?f:Object.assign({},t,f),n.forEach(g=>g(t,h))}},o=()=>t,i=(c,d=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let h=d(t);function g(){const C=d(t);if(!f(h,C)){const v=h;c(h=C,v)}}return n.add(g),()=>n.delete(g)},l={setState:r,getState:o,subscribe:(c,d,f)=>d||f?i(c,d,f):(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return t=e(r,o,l),l}const ta=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),wi=ta?p.useEffect:p.useLayoutEffect;function na(e){const t=typeof e=="function"?ea(e):e,n=(r=t.getState,o=Object.is)=>{const[,i]=p.useReducer(x=>x+1,0),s=t.getState(),a=p.useRef(s),l=p.useRef(r),c=p.useRef(o),d=p.useRef(!1),f=p.useRef();f.current===void 0&&(f.current=r(s));let h,g=!1;(a.current!==s||l.current!==r||c.current!==o||d.current)&&(h=r(s),g=!o(f.current,h)),wi(()=>{g&&(f.current=h),a.current=s,l.current=r,c.current=o,d.current=!1});const C=p.useRef(s);wi(()=>{const x=()=>{try{const w=t.getState(),y=l.current(w);c.current(f.current,y)||(a.current=w,f.current=y,i())}catch{d.current=!0,i()}},m=t.subscribe(x);return t.getState()!==C.current&&x(),m},[]);const v=g?h:f.current;return p.useDebugValue(v),v};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const o=r.length<=0;return{value:r.shift(),done:o}}}},n}const ra=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(s,a,l)=>{let c=s;if(a){const d=(l==null?void 0:l.equalityFn)||Object.is;let f=s(r.getState());c=h=>{const g=s(h);if(!d(f,g)){const C=f;a(f=g,C)}},l!=null&&l.fireImmediately&&a(f,f)}return o(c)},e(t,n,r)};/*! * isobject * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var ca=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1};/*! + */var oa=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1};/*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var ua=ca;function yi(e){return ua(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var I2=function(t){var n,r;return!(yi(t)===!1||(n=t.constructor,typeof n!="function")||(r=n.prototype,yi(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*! + */var ia=oa;function yi(e){return ia(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var I2=function(t){var n,r;return!(yi(t)===!1||(n=t.constructor,typeof n!="function")||(r=n.prototype,yi(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*! * is-extendable * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. - */var da=I2,zr=function(t){return da(t)||typeof t=="function"||Array.isArray(t)};/*! + */var sa=I2,zr=function(t){return sa(t)||typeof t=="function"||Array.isArray(t)};/*! * for-in * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var fa=function(t,n,r){for(var o in t)if(n.call(r,t[o],o,t)===!1)break},ha=zr,pa=fa;function A2(e,t){for(var n=arguments.length,r=0;++r * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. - */var va=function(e,t,n,r,o){if(!xa(e)||!t)return e;if(t=zt(t),n&&(t+="."+zt(n)),r&&(t+="."+zt(r)),o&&(t+="."+zt(o)),t in e)return e[t];for(var i=t.split("."),s=i.length,a=-1;e&&++a * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. - */var wa=function(e,t){if(e===null||typeof e>"u")throw new TypeError("expected first argument to be an object.");if(typeof t>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return e;for(var n=Object.prototype.propertyIsEnumerable,r=Object(e),o=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");bi(e)||(e={});for(var t=1;t"u")throw new TypeError("expected first argument to be an object.");if(typeof t>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return e;for(var n=Object.prototype.propertyIsEnumerable,r=Object(e),o=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");bi(e)||(e={});for(var t=1;t * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. - */var ja=_a,La=function(e,t,n){if(typeof e!="string")throw new TypeError("expected a string");typeof t=="function"&&(n=t,t=null),typeof t=="string"&&(t={sep:t});var r=ja({sep:"."},t),o=r.quotes||['"',"'","`"],i;r.brackets===!0?i={"<":">","(":")","[":"]","{":"}"}:r.brackets&&(i=r.brackets);var s=[],a=[],l=[""],c=r.sep,d=e.length,f=-1,h;function g(){if(i&&a.length)return i[a[a.length-1]]}for(;++f","(":")","[":"]","{":"}"}:r.brackets&&(i=r.brackets);var s=[],a=[],l=[""],c=r.sep,d=e.length,f=-1,h;function g(){if(i&&a.length)return i[a[a.length-1]]}for(;++f * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. - */var Ra=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")},_i=Ra,Pa=function(t){_i(t)||(t={});for(var n=arguments.length,r=1;r * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. - */var Ia=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")};/*! + */var Oa=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")};/*! * set-value * * Copyright (c) 2014-2015, 2017, Jon Schlinkert. * Released under the MIT License. - */var Aa=La,Va=Pa,Ei=I2,$i=Ia,Da=function(e,t,n){if(!$i(e)||(Array.isArray(t)&&(t=[].concat.apply([],t).join(".")),typeof t!="string"))return e;for(var r=Aa(t,{sep:".",brackets:!0}).filter(Na),o=r.length,i=-1,s=e;++ie.filter(Boolean).join(".");function Fa(e){const t=e.split(".");return[t.pop(),t.join(".")||void 0]}function Ua(e,t){return Object.entries(x7(e,t)).reduce((n,[,{value:r,disabled:o,key:i}])=>(n[i]=o?void 0:r,n),{})}function Wa(e,t){const n=p.useRef();return(t?vt:St)(e,n.current)||(n.current=e),n.current}function V2(e,t){return p.useMemo(e,Wa(t,!0))}function Ga(e){const t=p.useRef(null),n=p.useRef(null),r=p.useRef(!0);return p.useLayoutEffect(()=>{e||(t.current.style.height="0px",t.current.style.overflow="hidden")},[]),p.useEffect(()=>{if(r.current){r.current=!1;return}let o;const i=t.current,s=()=>{e&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",s,{once:!0});const{height:a}=n.current.getBoundingClientRect();return i.style.height=a+"px",e||(i.style.overflow="hidden",o=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",s),clearTimeout(o)}},[e]),{wrapperRef:t,contentRef:n}}const Ka=e=>{const[t,n]=p.useState(e.getVisiblePaths());return p.useEffect(()=>{n(e.getVisiblePaths());const r=e.useStore.subscribe(e.getVisiblePaths,n,{equalityFn:St});return()=>r()},[e]),t};function Ya(e,t,n){return e.useStore(o=>{const i=z(z({},n),o.data);return Ua(i,t)},St)}function D2(e=3){const t=p.useRef(null),n=p.useRef(null),[r,o]=p.useState(!1),i=p.useCallback(()=>o(!0),[]),s=p.useCallback(()=>o(!1),[]);return p.useLayoutEffect(()=>{if(r){const{bottom:a,top:l,left:c}=t.current.getBoundingClientRect(),{height:d}=n.current.getBoundingClientRect(),f=a+d>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=c+"px",f==="down"?n.current.style.top=a+e+"px":n.current.style.bottom=window.innerHeight-l+e+"px"}},[e,r]),{popinRef:t,wrapperRef:n,shown:r,show:i,hide:s}}n8([r8]);const qa={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};S1.extend({color:()=>e=>v1(e).isValid()});const Xa=e=>S1().color().test(e);function N2(e,{format:t,hasAlpha:n,isString:r}){const o=qa[t]+(r&&t!=="hex"?"String":""),i=e[o]();return typeof i=="object"&&!n?w7(i,["a"]):i}const B2=(e,t)=>{const n=v1(e);if(!n.isValid())throw Error("Invalid color");return N2(n,t)},Ja=(e,t)=>N2(v1(e),z(z({},t),{},{isString:!0,format:"hex"})),Qa=({value:e})=>{const t=t8(e),n=t==="name"?"hex":t,r=typeof e=="object"?"a"in e:t==="hex"&&e.length===8||/^(rgba)|(hsla)|(hsva)/.test(e),o={format:n,hasAlpha:r,isString:typeof e=="string"};return{value:B2(e,o),settings:o}};var el=Object.freeze({__proto__:null,schema:Xa,sanitize:B2,format:Ja,normalize:Qa});const tl=B("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),nl=B("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),rl=B("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function ji(e,t){return t!=="rgb"?v1(e).toRgb():e}function ol({value:e,displayValue:t,settings:n,onUpdate:r}){const{emitOnEditStart:o,emitOnEditEnd:i}=C1(),{format:s,hasAlpha:a}=n,{popinRef:l,wrapperRef:c,shown:d,show:f,hide:h}=D2(),g=p.useRef(0),[C,v]=p.useState(()=>ji(e,s)),x=a?u8:f8,m=()=>{v(ji(e,s)),f(),o()},w=()=>{h(),i(),window.clearTimeout(g.current)},y=()=>{g.current=window.setTimeout(w,500)};return p.useEffect(()=>()=>window.clearTimeout(g.current),[]),b.createElement(b.Fragment,null,b.createElement(tl,{ref:l,active:d,onClick:()=>m(),style:{color:t}}),d&&b.createElement(Tr,null,b.createElement(l2,{onPointerUp:w}),b.createElement(rl,{ref:c,onMouseEnter:()=>window.clearTimeout(g.current),onMouseLeave:_=>_.buttons===0&&y()},b.createElement(x,{color:C,onChange:r}))))}function il(){const{value:e,displayValue:t,label:n,onChange:r,onUpdate:o,settings:i}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,n),b.createElement(nl,null,b.createElement(ol,{value:e,displayValue:t,onChange:r,onUpdate:o,settings:i}),b.createElement(Pr,{value:t,onChange:r,onUpdate:o})))}var sl=z({component:il},el);function al(){const{label:e,displayValue:t,onUpdate:n,settings:r}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(Ir,{value:t,settings:r,onUpdate:n}))}var ll=z({component:al},g2(["x","y","z"]));const cl=B("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),ul=B("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function dl({value:e,settings:t,onUpdate:n}){const r=p.useRef(),o=p.useRef(0),i=p.useRef(0),s=p.useRef(1),[a,l]=p.useState(!1),[c,d]=p.useState(!1),[f,h]=u2(),g=p.useRef(null),C=p.useRef(null);p.useLayoutEffect(()=>{if(a){const{top:j,left:D,width:T,height:P}=g.current.getBoundingClientRect();C.current.style.left=D+T/2+"px",C.current.style.top=j+P/2+"px"}},[a]);const{keys:[v,x],joystick:m}=t,w=m==="invertY"?1:-1,{[v]:{step:y},[x]:{step:_}}=t,E=te("sizes","joystickWidth"),$=te("sizes","joystickHeight"),k=parseFloat(E)*.8/2,S=parseFloat($)*.8/2,L=p.useCallback(()=>{r.current||(d(!0),o.current&&h({x:o.current*k}),i.current&&h({y:i.current*-S}),r.current=window.setInterval(()=>{n(j=>{const D=y*o.current*s.current,T=w*_*i.current*s.current;return Array.isArray(j)?{[v]:j[0]+D,[x]:j[1]+T}:{[v]:j[v]+D,[x]:j[x]+T}})},16))},[k,S,n,h,y,_,v,x,w]),O=p.useCallback(()=>{window.clearTimeout(r.current),r.current=void 0,d(!1)},[]);p.useEffect(()=>{function j(D){s.current=K0(D)}return window.addEventListener("keydown",j),window.addEventListener("keyup",j),()=>{window.clearTimeout(r.current),window.removeEventListener("keydown",j),window.removeEventListener("keyup",j)}},[]);const M=Ot(({first:j,active:D,delta:[T,P],movement:[R,I]})=>{j&&l(!0);const Z=ge(R,-k,k),F=ge(I,-S,S);o.current=Math.abs(R)>Math.abs(Z)?Math.sign(R-Z):0,i.current=Math.abs(I)>Math.abs(F)?Math.sign(F-I):0;let e1=e[v],W=e[x];D?(o.current||(e1+=T*y*s.current,h({x:Z})),i.current||(W-=w*P*_*s.current,h({y:F})),o.current||i.current?L():O(),n({[v]:e1,[x]:W})):(l(!1),o.current=0,i.current=0,h({x:0,y:0}),O())});return b.createElement(cl,a1({ref:g},M()),a&&b.createElement(Tr,null,b.createElement(ul,{ref:C,isOutOfBounds:c},b.createElement("div",null),b.createElement("span",{ref:f}))))}const fl=B("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function hl(){const{label:e,displayValue:t,onUpdate:n,settings:r}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(fl,{withJoystick:!!r.joystick},r.joystick&&b.createElement(dl,{value:t,settings:r,onUpdate:n}),b.createElement(Ir,{value:t,settings:r,onUpdate:n})))}const pl=["joystick"],z2=g2(["x","y"]),Cl=e=>{let{joystick:t=!0}=e,n=Y(e,pl);const{value:r,settings:o}=z2.normalize(n);return{value:r,settings:z(z({},o),{},{joystick:t})}};var gl=z(z({component:hl},z2),{},{normalize:Cl});const ml=e=>{if(e!==void 0){if(e instanceof File)try{return URL.createObjectURL(e)}catch{return}if(typeof e=="string"&&e.indexOf("blob:")===0)return e;throw Error("Invalid image format [undefined | blob | File].")}},vl=(e,t)=>typeof t=="object"&&"image"in t,xl=({image:e})=>({value:e});var wl=Object.freeze({__proto__:null,sanitize:ml,schema:vl,normalize:xl});const yl=B("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),bl=B("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),_l=B("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),El=B("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),$l=B("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),kl=B("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function Sl(){const{label:e,value:t,onUpdate:n,disabled:r}=C1(),{popinRef:o,wrapperRef:i,shown:s,show:a,hide:l}=D2(),c=p.useCallback(C=>{C.length&&n(C[0])},[n]),d=p.useCallback(C=>{C.stopPropagation(),n(void 0)},[n]),{getRootProps:f,getInputProps:h,isDragAccept:g}=H2({maxFiles:1,accept:"image/*",onDrop:c,disabled:r});return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(yl,null,b.createElement(_l,{ref:o,hasImage:!!t,onPointerDown:()=>!!t&&a(),onPointerUp:l,style:{backgroundImage:t?`url(${t})`:"none"}}),s&&!!t&&b.createElement(Tr,null,b.createElement(l2,{onPointerUp:l,style:{cursor:"pointer"}}),b.createElement(El,{ref:i,style:{backgroundImage:`url(${t})`}})),b.createElement(bl,f({isDragAccept:g}),b.createElement("input",h()),b.createElement($l,null,g?"drop image":"click or drop")),b.createElement(kl,{onClick:d,disabled:!t})))}var jl=z({component:Sl},wl);const Li=S1().number(),Ll=(e,t)=>S1().array().length(2).every.number().test(e)&&S1().schema({min:Li,max:Li}).test(t),ln=e=>({min:e[0],max:e[1]}),Z2=(e,{bounds:[t,n]},r)=>{const o=Array.isArray(e)?ln(e):e,i={min:r[0],max:r[1]},{min:s,max:a}=z(z({},i),o);return[ge(Number(s),t,Math.max(t,a)),ge(Number(a),Math.min(n,s),n)]},Ml=({value:e,min:t,max:n})=>{const r={min:t,max:n},o=C2(ln(e),{min:r,max:r}),i=[t,n],s=z(z({},o),{},{bounds:i});return{value:Z2(ln(e),s,e),settings:s}};var Ol=Object.freeze({__proto__:null,schema:Ll,format:ln,sanitize:Z2,normalize:Ml});const Rl=["value","bounds","onDrag"],Pl=["bounds"],Tl=B("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function Hl(e){let{value:t,bounds:[n,r],onDrag:o}=e,i=Y(e,Rl);const s=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(0),d=te("sizes","scrubberWidth"),f=Ot(({event:C,first:v,xy:[x],movement:[m],memo:w={}})=>{if(v){const{width:_,left:E}=s.current.getBoundingClientRect();c.current=_-parseFloat(d);const $=(C==null?void 0:C.target)===a.current||(C==null?void 0:C.target)===l.current;w.pos=nn((x-E)/_,n,r);const k=Math.abs(w.pos-t.min)-Math.abs(w.pos-t.max);w.key=k<0||k===0&&w.pos<=t.min?"min":"max",$&&(w.pos=t[w.key])}const y=w.pos+nn(m/c.current,0,r-n);return o({[w.key]:l4(y,i[w.key])}),w}),h=`calc(${tn(t.min,n,r)} * (100% - ${d} - 8px) + 4px)`,g=`calc(${1-tn(t.max,n,r)} * (100% - ${d} - 8px) + 4px)`;return b.createElement(f2,a1({ref:s},f()),b.createElement(d2,null,b.createElement(h2,{style:{left:h,right:g}})),b.createElement(sr,{position:"left",ref:a,style:{left:h}}),b.createElement(sr,{position:"right",ref:l,style:{right:g}}))}function Il(){const{label:e,displayValue:t,onUpdate:n,settings:r}=C1(),o=Y(r,Pl);return b.createElement(b.Fragment,null,b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(Tl,null,b.createElement(Hl,a1({value:t},r,{onDrag:n})),b.createElement(Ir,{value:t,settings:o,onUpdate:n,innerLabelTrim:0}))))}var Al=z({component:Il},Ol);const Vl=()=>{const e=new Map;return{on:(t,n)=>{let r=e.get(t);r===void 0&&(r=new Set,e.set(t,r)),r.add(n)},off:(t,n)=>{const r=e.get(t);r!==void 0&&(r.delete(n),r.size===0&&e.delete(t))},emit:(t,...n)=>{const r=e.get(t);if(r!==void 0)for(const o of r)o(...n)}}},Dl=["type","value"],Nl=["onChange","transient","onEditStart","onEditEnd"],Bl=function(){const t=aa(la(()=>({data:{}}))),n=Vl();this.storeId=v7(),this.useStore=t;const r={},o=new Set;this.getVisiblePaths=()=>{const s=this.getData(),a=Object.keys(s),l=[];Object.entries(r).forEach(([d,f])=>{f.render&&a.some(h=>h.indexOf(d)===0)&&!f.render(this.get)&&l.push(d+".")});const c=[];return o.forEach(d=>{d in s&&s[d].__refCount>0&&l.every(f=>d.indexOf(f)===-1)&&(!s[d].render||s[d].render(this.get))&&c.push(d)}),c},this.setOrderedPaths=s=>{s.forEach(a=>o.add(a))},this.orderPaths=s=>(this.setOrderedPaths(s),s),this.disposePaths=s=>{t.setState(a=>{const l=a.data;return s.forEach(c=>{if(c in l){const d=l[c];d.__refCount--,d.__refCount===0&&d.type in B1&&delete l[c]}}),{data:l}})},this.dispose=()=>{t.setState(()=>({data:{}}))},this.getFolderSettings=s=>r[s]||{},this.getData=()=>t.getState().data,this.addData=(s,a)=>{t.setState(l=>{const c=l.data;return Object.entries(s).forEach(([d,f])=>{let h=c[d];if(h){const{type:g,value:C}=f,v=Y(f,Dl);g!==h.type?ee(o1.INPUT_TYPE_OVERRIDE,g):((h.__refCount===0||a)&&Object.assign(h,v),h.__refCount++)}else c[d]=z(z({},f),{},{__refCount:1})}),{data:c}})},this.setValueAtPath=(s,a,l)=>{t.setState(c=>{const d=c.data;return Jo(d[s],a,s,this,l),{data:d}})},this.setSettingsAtPath=(s,a)=>{t.setState(l=>{const c=l.data;return c[s].settings=z(z({},c[s].settings),a),{data:c}})},this.disableInputAtPath=(s,a)=>{t.setState(l=>{const c=l.data;return c[s].disabled=a,{data:c}})},this.set=(s,a)=>{t.setState(l=>{const c=l.data;return Object.entries(s).forEach(([d,f])=>{try{Jo(c[d],f,void 0,void 0,a)}catch{}}),{data:c}})},this.getInput=s=>{try{return this.getData()[s]}catch{ee(o1.PATH_DOESNT_EXIST,s)}},this.get=s=>{var a;return(a=this.getInput(s))===null||a===void 0?void 0:a.value},this.emitOnEditStart=s=>{n.emit(`onEditStart:${s}`,this.get(s),s,z(z({},this.getInput(s)),{},{get:this.get}))},this.emitOnEditEnd=s=>{n.emit(`onEditEnd:${s}`,this.get(s),s,z(z({},this.getInput(s)),{},{get:this.get}))},this.subscribeToEditStart=(s,a)=>{const l=`onEditStart:${s}`;return n.on(l,a),()=>n.off(l,a)},this.subscribeToEditEnd=(s,a)=>{const l=`onEditEnd:${s}`;return n.on(l,a),()=>n.off(l,a)};const i=(s,a,l)=>{const c={};return Object.entries(s).forEach(([d,f])=>{if(d==="")return ee(o1.EMPTY_KEY);let h=Zr(a,d);if(f.type===B1.FOLDER){const g=i(f.schema,h,l);Object.assign(c,g),h in r||(r[h]=f.settings)}else if(d in l)ee(o1.DUPLICATE_KEYS,d,h,l[d].path);else{const g=k7(f,d,h,c);if(g){const{type:C,options:v,input:x}=g,{onChange:m,transient:w,onEditStart:y,onEditEnd:_}=v,E=Y(v,Nl);c[h]=z(z(z({type:C},E),x),{},{fromPanel:!0}),l[d]={path:h,onChange:m,transient:w,onEditStart:y,onEditEnd:_}}else ee(o1.UNKNOWN_INPUT,h,f)}}),c};this.getDataFromSchema=s=>{const a={};return[i(s,"",a),a]}},F2=new Bl,zl={collapsed:!1};function Zl(e,t){return{type:B1.FOLDER,schema:e,settings:z(z({},zl),t)}}const Mi=e=>"__levaInput"in e,Fl=(e,t)=>{const n={},r=t?t.toLowerCase():null;return e.forEach(o=>{const[i,s]=Fa(o);(!r||i.toLowerCase().indexOf(r)>-1)&&Za(n,s,{[i]:{__levaInput:!0,path:o}})}),n},Ul=["type","label","path","valueKey","value","settings","setValue","disabled"];function Wl(e){let{type:t,label:n,path:r,valueKey:o,value:i,settings:s,setValue:a,disabled:l}=e,c=Y(e,Ul);const{displayValue:d,onChange:f,onUpdate:h}=c2({type:t,value:i,settings:s,setValue:a}),g=$e[t].component;return g?b.createElement(Q0.Provider,{value:z({key:o,path:r,id:""+r,label:n,displayValue:d,value:i,onChange:f,onUpdate:h,settings:s,setValue:a,disabled:l},c)},b.createElement(W7,{disabled:l},b.createElement(g,null))):(ee(o1.NO_COMPONENT_FOR_TYPE,t,r),null)}const Gl=B("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function Kl({onClick:e,settings:t,label:n}){const r=Mt();return b.createElement(A1,null,b.createElement(Gl,{disabled:t.disabled,onClick:()=>e(r.get)},n))}const Yl=B("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),ql=B("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),Xl=({label:e,opts:t})=>{let n=typeof e=="string"&&e.trim()===""?null:e,r=t;return typeof t.opts=="object"&&(r.label!==void 0&&(n=t.label),r=t.opts),{label:n,opts:r}};function Jl(e){const{label:t,opts:n}=Xl(e),r=Mt();return b.createElement(A1,{input:!!t},t&&b.createElement(Z1,null,t),b.createElement(Yl,null,Object.entries(n).map(([o,i])=>b.createElement(ql,{key:o,onClick:()=>i(r.get)},o))))}const Ql=B("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),U2=100;function ec(e,t){e.push(t),e.length>U2&&e.shift()}const tc=p.forwardRef(function({initialValue:e},t){const n=te("colors","highlight3"),r=te("colors","elevation2"),o=te("colors","highlight1"),[i,s]=p.useMemo(()=>[v1(o).alpha(.4).toRgbString(),v1(o).alpha(.1).toRgbString()],[o]),a=p.useRef([e]),l=p.useRef(e),c=p.useRef(e),d=p.useRef(),f=p.useCallback((C,v)=>{if(!C)return;const{width:x,height:m}=C,w=new Path2D,y=x/U2,_=m*.05;for(let k=0;k({frame:C=>{(l.current===void 0||Cc.current)&&(c.current=C),ec(a.current,C),d.current=requestAnimationFrame(()=>f(h.current,g.current))}}),[h,g,f]),p.useEffect(()=>()=>cancelAnimationFrame(d.current),[]),b.createElement(Ql,{ref:h})}),Oi=e=>Number.isFinite(e)?e.toPrecision(2):e.toString(),nc=p.forwardRef(function({initialValue:e},t){const[n,r]=p.useState(Oi(e));return p.useImperativeHandle(t,()=>({frame:o=>r(Oi(o))}),[]),b.createElement("div",null,n)});function Ri(e){return typeof e=="function"?e():e.current}function rc({label:e,objectOrFn:t,settings:n}){const r=p.useRef(),o=p.useRef(Ri(t));return p.useEffect(()=>{const i=window.setInterval(()=>{var s;document.hidden||(s=r.current)===null||s===void 0||s.frame(Ri(t))},n.interval);return()=>window.clearInterval(i)},[t,n.interval]),b.createElement(A1,{input:!0},b.createElement(Z1,{align:"top"},e),n.graph?b.createElement(tc,{ref:r,initialValue:o.current}):b.createElement(nc,{ref:r,initialValue:o.current}))}const oc=["type","label","key"],ic={[B1.BUTTON]:Kl,[B1.BUTTON_GROUP]:Jl,[B1.MONITOR]:rc},sc=b.memo(({path:e})=>{const[t,{set:n,setSettings:r,disable:o,storeId:i,emitOnEditStart:s,emitOnEditEnd:a}]=r4(e);if(!t)return null;const{type:l,label:c,key:d}=t,f=Y(t,oc);if(l in B1){const h=ic[l];return b.createElement(h,a1({label:c,path:e},f))}return l in $e?b.createElement(Wl,a1({key:i+e,type:l,label:c,storeId:i,path:e,valueKey:d,setValue:n,setSettings:r,disable:o,emitOnEditStart:s,emitOnEditEnd:a},f)):(u7(o1.UNSUPPORTED_INPUT,l,e),null)});function ac({toggle:e,toggled:t,name:n}){return b.createElement(Z7,{onClick:()=>e()},b.createElement(Hr,{toggled:t}),b.createElement("div",null,n))}const lc=({name:e,path:t,tree:n})=>{const r=Mt(),o=Zr(t,e),{collapsed:i,color:s}=r.getFolderSettings(o),[a,l]=p.useState(!i),c=p.useRef(null),d=te("colors","folderWidgetColor"),f=te("colors","folderTextColor");return p.useLayoutEffect(()=>{c.current.style.setProperty("--leva-colors-folderWidgetColor",s||d),c.current.style.setProperty("--leva-colors-folderTextColor",s||f)},[s,d,f]),b.createElement(rn,{ref:c},b.createElement(ac,{name:e,toggled:a,toggle:()=>l(h=>!h)}),b.createElement(W2,{parent:o,tree:n,toggled:a}))},W2=b.memo(({isRoot:e=!1,fill:t=!1,flat:n=!1,parent:r,tree:o,toggled:i})=>{const{wrapperRef:s,contentRef:a}=Ga(i),l=Mt(),c=([f,h])=>{var g;return(Mi(h)?(g=l.getInput(h.path))===null||g===void 0?void 0:g.order:l.getFolderSettings(Zr(r,f)).order)||0},d=Object.entries(o).sort((f,h)=>c(f)-c(h));return b.createElement(or,{ref:s,isRoot:e,fill:t,flat:n},b.createElement(i2,{ref:a,isRoot:e,toggled:i},d.map(([f,h])=>Mi(h)?b.createElement(sc,{key:h.path,valueKey:h.valueKey,path:h.path}):b.createElement(lc,{key:f,name:f,path:r,tree:h}))))}),cc=B("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${a2}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),G2=40,cn=B("i",{$flexCenter:"",width:G2,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),uc=B("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),dc=B("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${cn}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),fc=B("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),hc=B("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:G2}}}}),pc=b.forwardRef(({setFilter:e,toggle:t},n)=>{const[r,o]=p.useState(""),i=p.useMemo(()=>G0(e,250),[e]),s=()=>{e(""),o("")},a=l=>{const c=l.currentTarget.value;t(!0),o(c)};return p.useEffect(()=>{i(r)},[r,i]),b.createElement(b.Fragment,null,b.createElement(fc,{ref:n,value:r,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:l=>l.stopPropagation(),onChange:a}),b.createElement(cn,{onClick:()=>s(),style:{visibility:r?"visible":"hidden"}},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},b.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function Cc({setFilter:e,onDrag:t,onDragStart:n,onDragEnd:r,toggle:o,toggled:i,title:s,drag:a,filterEnabled:l,from:c}){const[d,f]=p.useState(!1),h=p.useRef(null);p.useEffect(()=>{var C,v;d?(C=h.current)===null||C===void 0||C.focus():(v=h.current)===null||v===void 0||v.blur()},[d]);const g=Ot(({offset:[C,v],first:x,last:m})=>{t({x:C,y:v}),x&&n({x:C,y:v}),m&&r({x:C,y:v})},{filterTaps:!0,from:({offset:[C,v]})=>[(c==null?void 0:c.x)||C,(c==null?void 0:c.y)||v]});return p.useEffect(()=>{const C=v=>{v.key==="L"&&v.shiftKey&&v.metaKey&&f(x=>!x)};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[]),b.createElement(b.Fragment,null,b.createElement(uc,{mode:a?"drag":void 0},b.createElement(cn,{active:!i,onClick:()=>o()},b.createElement(Hr,{toggled:i,width:12,height:8})),b.createElement(hc,a1({},a?g():{},{drag:a,filterEnabled:l}),s===void 0&&a?b.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},b.createElement("circle",{cx:"2",cy:"2",r:"2"}),b.createElement("circle",{cx:"14",cy:"2",r:"2"}),b.createElement("circle",{cx:"26",cy:"2",r:"2"}),b.createElement("circle",{cx:"2",cy:"12",r:"2"}),b.createElement("circle",{cx:"14",cy:"12",r:"2"}),b.createElement("circle",{cx:"26",cy:"12",r:"2"})):s),l&&b.createElement(cn,{active:d,onClick:()=>f(C=>!C)},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},b.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),b.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),b.createElement(dc,{toggled:d},b.createElement(pc,{ref:h,setFilter:e,toggle:o})))}const gc=["store","hidden","theme","collapsed"];function mc(e){let{store:t,hidden:n=!1,theme:r,collapsed:o=!1}=e,i=Y(e,gc);const s=V2(()=>A7(r),[r]),[a,l]=p.useState(!o),c=typeof o=="object"?!o.collapsed:a,d=p.useMemo(()=>typeof o=="object"?f=>{typeof f=="function"?o.onChange(!f(!o.collapsed)):o.onChange(!f)}:l,[o]);return!t||n?null:b.createElement(Rr.Provider,{value:s},b.createElement(vc,a1({store:t},i,{toggled:c,setToggle:d,rootClass:s.className})))}const vc=b.memo(({store:e,rootClass:t,fill:n=!1,flat:r=!1,neverHide:o=!1,oneLineLabels:i=!1,titleBar:s={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:a=!1,toggled:l,setToggle:c})=>{var d,f;const h=Ka(e),[g,C]=p.useState(""),v=p.useMemo(()=>Fl(h,g),[h,g]),[x,m]=u2(),w=o||h.length>0,y=typeof s=="object"&&s.title||void 0,_=typeof s=="object"&&(d=s.drag)!==null&&d!==void 0?d:!0,E=typeof s=="object"&&(f=s.filter)!==null&&f!==void 0?f:!0,$=typeof s=="object"&&s.position||void 0,k=typeof s=="object"&&s.onDrag||void 0,S=typeof s=="object"&&s.onDragStart||void 0,L=typeof s=="object"&&s.onDragEnd||void 0;return b.useEffect(()=>{m({x:$==null?void 0:$.x,y:$==null?void 0:$.y})},[$,m]),I7(),b.createElement(t2.Provider,{value:{hideCopyButton:a}},b.createElement(cc,{ref:x,className:t,fill:n,flat:r,oneLineLabels:i,hideTitleBar:!s,style:{display:w?"block":"none"}},s&&b.createElement(Cc,{onDrag:O=>{m(O),k==null||k(O)},onDragStart:O=>S==null?void 0:S(O),onDragEnd:O=>L==null?void 0:L(O),setFilter:C,toggle:O=>c(M=>O??!M),toggled:l,title:y,drag:_,filterEnabled:E,from:$}),w&&b.createElement(e2.Provider,{value:e},b.createElement(W2,{isRoot:!0,fill:n,flat:r,tree:v,toggled:l}))))}),xc=["isRoot"];let un=!1,we=null;function wc(e){let{isRoot:t=!1}=e,n=Y(e,xc);return p.useEffect(()=>(un=!0,!t&&we&&(we.remove(),we=null),()=>{t||(un=!1)}),[t]),b.createElement(mc,a1({store:F2},n))}function yc(e){p.useEffect(()=>{e&&!un&&(we||(we=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(we),j7(b.createElement(wc,{isRoot:!0}),we))),un=!0)},[e])}function bc(e,t,n,r,o){let i,s,a,l,c;return typeof e=="string"?(s=e,i=t,Array.isArray(n)?c=n:n&&("store"in n?(l=n,c=r):(a=n,Array.isArray(r)?c=r:(l=r,c=o)))):(i=e,Array.isArray(t)?c=t:(l=t,c=n)),{schema:i,folderName:s,folderSettings:a,hookSettings:l,deps:c||[]}}function Mh(e,t,n,r,o){const{folderName:i,schema:s,folderSettings:a,hookSettings:l,deps:c}=bc(e,t,n,r,o),d=typeof s=="function",f=p.useRef(!1),h=p.useRef(!0),g=V2(()=>{f.current=!0;const M=typeof s=="function"?s():s;return i?{[i]:Zl(M,a)}:M},c),C=!(l!=null&&l.store);yc(C);const[v]=p.useState(()=>(l==null?void 0:l.store)||F2),[x,m]=p.useMemo(()=>v.getDataFromSchema(g),[v,g]),[w,y,_,E,$]=p.useMemo(()=>{const M=[],j=[],D={},T={},P={};return Object.values(m).forEach(({path:R,onChange:I,onEditStart:Z,onEditEnd:F,transient:e1})=>{M.push(R),I?(D[R]=I,e1||j.push(R)):j.push(R),Z&&(T[R]=Z),F&&(P[R]=F)}),[M,j,D,T,P]},[m]),k=p.useMemo(()=>v.orderPaths(w),[w,v]),S=Ya(v,y,x),L=p.useCallback(M=>{const j=Object.entries(M).reduce((D,[T,P])=>Object.assign(D,{[m[T].path]:P}),{});v.set(j,!1)},[v,m]),O=p.useCallback(M=>v.get(m[M].path),[v,m]);return p.useEffect(()=>{const M=!h.current&&f.current;return v.addData(x,M),h.current=!1,f.current=!1,()=>v.disposePaths(k)},[v,k,x]),p.useEffect(()=>{const M=[];return Object.entries(_).forEach(([j,D])=>{D(v.get(j),j,z({initial:!0,get:v.get},v.getInput(j)));const T=v.useStore.subscribe(P=>{const R=P.data[j];return[R.disabled?void 0:R.value,R]},([P,R])=>D(P,j,z({initial:!1,get:v.get},R)),{equalityFn:St});M.push(T)}),()=>M.forEach(j=>j())},[v,_]),p.useEffect(()=>{const M=[];return Object.entries(E).forEach(([j,D])=>M.push(v.subscribeToEditStart(j,D))),Object.entries($).forEach(([j,D])=>M.push(v.subscribeToEditEnd(j,D))),()=>M.forEach(j=>j())},[E,$,v]),d?[S,L,O]:S}ce(z1.SELECT,w4);ce(z1.IMAGE,jl);ce(z1.NUMBER,u4);ce(z1.COLOR,sl);ce(z1.STRING,L4);ce(z1.BOOLEAN,I4);ce(z1.INTERVAL,Al);ce(z1.VECTOR3D,ll);ce(z1.VECTOR2D,gl);function _c(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,o]of e)if(!Object.is(o,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 _c(t.current,r)?t.current:t.current=r}}const K2=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"})})]})}),Y2=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"})})]})}),q2=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"})})]})}),X2=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 Pi(e,t,n){var r,o=1;e==null&&(e=0),t==null&&(t=0),n==null&&(n=0);function i(){var s,a=r.length,l,c=0,d=0,f=0;for(s=0;s=(l=(s+a)/2))?s=l:a=l,r=o,!(o=o[f=+d]))return r[f]=i,e;if(c=+e._x.call(null,o.data),t===c)return i.next=o,r?r[f]=i:e._root=i,e;do r=r?r[f]=new Array(2):e._root=new Array(2),(d=t>=(l=(s+a)/2))?s=l:a=l;while((f=+d)==(h=+(c>=l)));return r[h]=o,r[f]=i,e}function Sc(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t);let r=1/0,o=-1/0;for(let i=0,s;io&&(o=s));if(r>o)return this;this.cover(r).cover(o);for(let i=0;ie||e>=n;)switch(s=+(es||(i=c.x1)=f))&&(c=a[a.length-1],a[a.length-1]=a[a.length-1-d],a[a.length-1-d]=c)}else{var h=Math.abs(e-+this._x.call(null,l.data));h=(c=(s+a)/2))?s=c:a=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(o=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,o?(i?o.next=i:delete o.next,this):t?(i?t[f]=i: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=i,this)}function Pc(e){for(var t=0,n=e.length;t=(f=(a+c)/2))?a=f:c=f,(x=n>=(h=(l+d)/2))?l=h:d=h,o=i,!(i=i[m=x<<1|v]))return o[m]=s,e;if(g=+e._x.call(null,i.data),C=+e._y.call(null,i.data),t===g&&n===C)return s.next=i,o?o[m]=s:e._root=s,e;do o=o?o[m]=new Array(4):e._root=new Array(4),(v=t>=(f=(a+c)/2))?a=f:c=f,(x=n>=(h=(l+d)/2))?l=h:d=h;while((m=x<<1|v)===(w=(C>=h)<<1|g>=f));return o[w]=i,o[m]=s,e}function Bc(e){var t,n,r=e.length,o,i,s=new Array(r),a=new Array(r),l=1/0,c=1/0,d=-1/0,f=-1/0;for(n=0;nd&&(d=o),if&&(f=i));if(l>d||c>f)return this;for(this.cover(l,c).cover(d,f),n=0;ne||e>=o||r>t||t>=i;)switch(c=(td||(a=C.y0)>f||(l=C.x1)=m)<<1|e>=x)&&(C=h[h.length-1],h[h.length-1]=h[h.length-1-v],h[h.length-1-v]=C)}else{var w=e-+this._x.call(null,g.data),y=t-+this._y.call(null,g.data),_=w*w+y*y;if(_=(h=(s+l)/2))?s=h:l=h,(v=f>=(g=(a+c)/2))?a=g:c=g,t=n,!(n=n[x=v<<1|C]))return this;if(!n.length)break;(t[x+1&3]||t[x+2&3]||t[x+3&3])&&(r=t,m=x)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,o?(i?o.next=i:delete o.next,this):t?(i?t[x]=i:delete t[x],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[m]=n:this._root=n),this):(this._root=i,this)}function Gc(e){for(var t=0,n=e.length;t=(C=(l+f)/2))?l=C:f=C,(E=n>=(v=(c+h)/2))?c=v:h=v,($=r>=(x=(d+g)/2))?d=x:g=x,i=s,!(s=s[k=$<<2|E<<1|_]))return i[k]=a,e;if(m=+e._x.call(null,s.data),w=+e._y.call(null,s.data),y=+e._z.call(null,s.data),t===m&&n===w&&r===y)return a.next=s,i?i[k]=a:e._root=a,e;do i=i?i[k]=new Array(8):e._root=new Array(8),(_=t>=(C=(l+f)/2))?l=C:f=C,(E=n>=(v=(c+h)/2))?c=v:h=v,($=r>=(x=(d+g)/2))?d=x:g=x;while((k=$<<2|E<<1|_)===(S=(y>=x)<<2|(w>=v)<<1|m>=C));return i[S]=s,i[k]=a,e}function ru(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t),r=new Float64Array(t),o=new Float64Array(t);let i=1/0,s=1/0,a=1/0,l=-1/0,c=-1/0,d=-1/0;for(let f=0,h,g,C,v;fl&&(l=g),Cc&&(c=C),vd&&(d=v));if(i>l||s>c||a>d)return this;this.cover(i,s,a).cover(l,c,d);for(let f=0;fe||e>=s||o>t||t>=a||i>n||n>=l;)switch(h=(nC||(c=y.y0)>v||(d=y.z0)>x||(f=y.x1)=k)<<2|(t>=$)<<1|e>=E)&&(y=m[m.length-1],m[m.length-1]=m[m.length-1-_],m[m.length-1-_]=y)}else{var S=e-+this._x.call(null,w.data),L=t-+this._y.call(null,w.data),O=n-+this._z.call(null,w.data),M=S*S+L*L+O*O;if(M=(v=(s+c)/2))?s=v:c=v,(y=g>=(x=(a+d)/2))?a=x:d=x,(_=C>=(m=(l+f)/2))?l=m:f=m,t=n,!(n=n[E=_<<2|y<<1|w]))return this;if(!n.length)break;(t[E+1&7]||t[E+2&7]||t[E+3&7]||t[E+4&7]||t[E+5&7]||t[E+6&7]||t[E+7&7])&&(r=t,$=E)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,o?(i?o.next=i:delete o.next,this):t?(i?t[E]=i:delete t[E],(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[$]=n:this._root=n),this):(this._root=i,this)}function cu(e){for(var t=0,n=e.length;t1&&(v=g.y+g.vy),n>2&&(x=g.z+g.vz),h.visit(_);function _(E,$,k,S,L,O,M){var j=[$,k,S,L,O,M],D=j[0],T=j[1],P=j[2],R=j[n],I=j[n+1],Z=j[n+2],F=E.data,e1=E.r,W=m+e1;if(F){if(F.index>g.index){var X=C-F.x-F.vx,u1=n>1?v-F.y-F.vy:0,l1=n>2?x-F.z-F.vz:0,G=X*X+u1*u1+l1*l1;G1&&u1===0&&(u1=T1(o),G+=u1*u1),n>2&&l1===0&&(l1=T1(o),G+=l1*l1),G=(W-(G=Math.sqrt(G)))/G*i,g.vx+=(X*=G)*(W=(e1*=e1)/(w+e1)),n>1&&(g.vy+=(u1*=G)*W),n>2&&(g.vz+=(l1*=G)*W),F.vx-=X*(W=1-W),n>1&&(F.vy-=u1*W),n>2&&(F.vz-=l1*W))}return}return D>C+W||R1&&(T>v+W||I2&&(P>x+W||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()},a.iterations=function(d){return arguments.length?(s=+d,a):s},a.strength=function(d){return arguments.length?(i=+d,a):i},a.radius=function(d){return arguments.length?(e=typeof d=="function"?d:y1(+d),c(),a):e},a}function yu(e){return e.index}function Vi(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function bu(e){var t=yu,n=h,r,o=y1(30),i,s,a,l,c,d,f=1;e==null&&(e=[]);function h(m){return 1/Math.min(l[m.source.index],l[m.target.index])}function g(m){for(var w=0,y=e.length;w1&&(L=k.y+k.vy-$.y-$.vy||T1(d)),a>2&&(O=k.z+k.vz-$.z-$.vz||T1(d)),M=Math.sqrt(S*S+L*L+O*O),M=(M-i[_])/M*m*r[_],S*=M,L*=M,O*=M,k.vx-=S*(j=c[_]),a>1&&(k.vy-=L*j),a>2&&(k.vz-=O*j),$.vx+=S*(j=1-j),a>1&&($.vy+=L*j),a>2&&($.vz+=O*j)}function C(){if(s){var m,w=s.length,y=e.length,_=new Map(s.map(($,k)=>[t($,k,s),$])),E;for(m=0,l=new Array(w);mtypeof y=="function")||Math.random,a=w.find(y=>[1,2,3].includes(y))||2,C()},g.links=function(m){return arguments.length?(e=m,C(),g):e},g.id=function(m){return arguments.length?(t=m,g):t},g.iterations=function(m){return arguments.length?(f=+m,g):f},g.strength=function(m){return arguments.length?(n=typeof m=="function"?m:y1(+m),v(),g):n},g.distance=function(m){return arguments.length?(o=typeof m=="function"?m:y1(+m),x(),g):o},g}var _u={value:()=>{}};function t3(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Ut.prototype=t3.prototype={constructor:Ut,on:function(e,t){var n=this._,r=Eu(e+"",n),o,i=-1,s=r.length;if(arguments.length<2){for(;++i0)for(var n=new Array(o),r=0,o,i;r=0&&e._call.call(void 0,t),e=e._next;--We}function Ni(){ke=(fn=yt.now())+bn,We=ct=0;try{Su()}finally{We=0,Lu(),ke=0}}function ju(){var e=yt.now(),t=e-fn;t>n3&&(bn-=t,fn=e)}function Lu(){for(var e,t=dn,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:dn=n);ut=e,wr(r)}function wr(e){if(!We){ct&&(ct=clearTimeout(ct));var t=e-ke;t>24?(e<1/0&&(ct=setTimeout(Ni,e-yt.now()-bn)),it&&(it=clearInterval(it))):(it||(fn=yt.now(),it=setInterval(ju,n3)),We=1,r3(Ni))}}const Mu=1664525,Ou=1013904223,Bi=4294967296;function Ru(){let e=1;return()=>(e=(Mu*e+Ou)%Bi)/Bi}var zi=3;function Un(e){return e.x}function Zi(e){return e.y}function Pu(e){return e.z}var Tu=10,Hu=Math.PI*(3-Math.sqrt(5)),Iu=Math.PI*20/(9+Math.sqrt(221));function Au(e,t){t=t||2;var n=Math.min(zi,Math.max(1,Math.round(t))),r,o=1,i=.001,s=1-Math.pow(i,1/300),a=0,l=.6,c=new Map,d=i3(g),f=t3("tick","end"),h=Ru();e==null&&(e=[]);function g(){C(),f.call("tick",r),o1&&(_.fy==null?_.y+=_.vy*=l:(_.y=_.fy,_.vy=0)),n>2&&(_.fz==null?_.z+=_.vz*=l:(_.z=_.fz,_.vz=0));return r}function v(){for(var m=0,w=e.length,y;m1&&isNaN(y.y)||n>2&&isNaN(y.z)){var _=Tu*(n>2?Math.cbrt(.5+m):n>1?Math.sqrt(.5+m):m),E=m*Hu,$=m*Iu;n===1?y.x=_:n===2?(y.x=_*Math.cos(E),y.y=_*Math.sin(E)):(y.x=_*Math.sin(E)*Math.cos($),y.y=_*Math.cos(E),y.z=_*Math.sin(E)*Math.sin($))}(isNaN(y.vx)||n>1&&isNaN(y.vy)||n>2&&isNaN(y.vz))&&(y.vx=0,n>1&&(y.vy=0),n>2&&(y.vz=0))}}function x(m){return m.initialize&&m.initialize(e,h,n),m}return v(),r={tick:C,restart:function(){return d.restart(g),r},stop:function(){return d.stop(),r},numDimensions:function(m){return arguments.length?(n=Math.min(zi,Math.max(1,Math.round(m))),c.forEach(x),r):n},nodes:function(m){return arguments.length?(e=m,v(),c.forEach(x),r):e},alpha:function(m){return arguments.length?(o=+m,r):o},alphaMin:function(m){return arguments.length?(i=+m,r):i},alphaDecay:function(m){return arguments.length?(s=+m,r):+s},alphaTarget:function(m){return arguments.length?(a=+m,r):a},velocityDecay:function(m){return arguments.length?(l=1-m,r):1-l},randomSource:function(m){return arguments.length?(h=m,c.forEach(x),r):h},force:function(m,w){return arguments.length>1?(w==null?c.delete(m):c.set(m,x(w)),r):c.get(m)},find:function(){var m=Array.prototype.slice.call(arguments),w=m.shift()||0,y=(n>1?m.shift():null)||0,_=(n>2?m.shift():null)||0,E=m.shift()||1/0,$=0,k=e.length,S,L,O,M,j,D;for(E*=E,$=0;$1?(f.on(m,w),r):f.on(m)}}}function Vu(){var e,t,n,r,o,i=y1(-30),s,a=1,l=1/0,c=.81;function d(C){var v,x=e.length,m=(t===1?Fr(e,Un):t===2?Wr(e,Un,Zi):t===3?Kr(e,Un,Zi,Pu):null).visitAfter(h);for(o=C,v=0;v1&&(C.y=_/w),t>2&&(C.z=E/w)}else{x=C,x.x=x.data.x,t>1&&(x.y=x.data.y),t>2&&(x.z=x.data.z);do v+=s[x.data.index];while(x=x.next)}C.value=v}function g(C,v,x,m,w){if(!C.value)return!0;var y=[x,m,w][t-1],_=C.x-n.x,E=t>1?C.y-n.y:0,$=t>2?C.z-n.z:0,k=y-v,S=_*_+E*E+$*$;if(k*k/c1&&E===0&&(E=T1(r),S+=E*E),t>2&&$===0&&($=T1(r),S+=$*$),S1&&(n.vy+=E*C.value*o/S),t>2&&(n.vz+=$*C.value*o/S)),!0;if(C.length||S>=l)return;(C.data!==n||C.next)&&(_===0&&(_=T1(r),S+=_*_),t>1&&E===0&&(E=T1(r),S+=E*E),t>2&&$===0&&($=T1(r),S+=$*$),S1&&(n.vy+=E*k),t>2&&(n.vz+=$*k));while(C=C.next)}return d.initialize=function(C,...v){e=C,r=v.find(x=>typeof x=="function")||Math.random,t=v.find(x=>[1,2,3].includes(x))||2,f()},d.strength=function(C){return arguments.length?(i=typeof C=="function"?C:y1(+C),f(),d):i},d.distanceMin=function(C){return arguments.length?(a=C*C,d):Math.sqrt(a)},d.distanceMax=function(C){return arguments.length?(l=C*C,d):Math.sqrt(l)},d.theta=function(C){return arguments.length?(c=C*C,d):Math.sqrt(c)},d}function Fi(e,t,n,r){var o,i,s=y1(.1),a,l;typeof e!="function"&&(e=y1(+e)),t==null&&(t=0),n==null&&(n=0),r==null&&(r=0);function c(f){for(var h=0,g=o.length;h1&&(C.vy+=x*y),i>2&&(C.vz+=m*y)}}function d(){if(o){var f,h=o.length;for(a=new Array(h),l=new Array(h),f=0;f[1,2,3].includes(g))||2,d()},c.strength=function(f){return arguments.length?(s=typeof f=="function"?f:y1(+f),d(),c):s},c.radius=function(f){return arguments.length?(e=typeof f=="function"?f:y1(+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 Du(e){var t=y1(.1),n,r,o;typeof e!="function"&&(e=y1(e==null?0:+e));function i(a){for(var l=0,c=n.length,d;l{},setForces:()=>{},addRadialForce:()=>{},addDefaultForce:()=>{},addSplitForce:()=>{},simulationRestart:()=>{},getLinks:()=>[]},Bu=["sphere","force","split","earth"],zu={data:null,simulation:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!1,scrollEventsDisabled:!1,graphRadius:1500,graphStyle:localStorage.getItem("graphStyle")||"sphere",hoveredNode:null,selectedNode:null,activeEdge:null,cameraFocusTrigger:!1,nearbyNodeIds:[],showSelectionGraph:!1,simulationHelpers:Nu,isHovering:!1},Me=Ki()((e,t)=>({...zu,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})},setActiveEdge:n=>{e({activeEdge:n})},setSelectedNode:n=>{const{selectedNode:r,simulation:o}=t();if((r==null?void 0:r.ref_id)!==(n==null?void 0:n.ref_id)){const i=o.nodes().find(s=>s.ref_id===(n==null?void 0:n.ref_id))||null;e({hoveredNode:null,selectedNode:i,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,o)=>{const i=structuredClone(n),s=structuredClone(r),{simulation:a,simulationHelpers:l}=t();a.stop();const c=o?[]:a.nodes().map(f=>({...f,fx:f.x,fy:f.y,fz:f.z})),d=o?[]:a.force("link").links();c.push(...i),d.push(...s);try{a.nodes(c);const f=d.filter(h=>{const{target:g,source:C}=h,v=a.nodes(),x=(g==null?void 0:g.ref_id)||g,m=(C==null?void 0:C.ref_id)||C;return v.some(w=>w.ref_id===x)&&v.some(w=>w.ref_id===m)});a.force("link").links([]).links(f),l.simulationRestart()}catch(f){console.error(f)}},addRadialForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(r=>({...r,...Wn}))).force("y",null).force("radial",Fi(200,0,0,0).strength(.1)).force("center",Pi().strength(1)).force("collide",Fn().radius(()=>250).strength(1).iterations(1))},addDefaultForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(r=>({...r,...Wn}))).force("y",null).force("charge",Vu().strength(-20)).force("center",Pi().strength(1)).force("collide",Fn().radius(()=>250).strength(1).iterations(1))},addSplitForce:()=>{const{simulation:n}=t(),{nodeTypes:r}=pn.getState();n.stop().nodes(n.nodes().map(o=>({...o,...Wn}))).force("radial",Fi(200,0,0,0).strength(.1)).force("collide",Fn().radius(()=>250).strength(1).iterations(1)).force("y",Du().y(o=>{const i=r.indexOf(o.node_type),s=Math.floor(i/2)*400;return i%2===0?s:-s}).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)=>{const o=structuredClone(n),i=structuredClone(r),s=Au([]).numDimensions(3).stop().nodes(o).force("link",bu().links(i).id(a=>a.ref_id));e({simulation:s})}})),s3=()=>Me(e=>e.selectedNode),Oh=()=>Me(e=>e.hoveredNode),Zu=()=>Me(e=>e.setSelectedNode),Rh=()=>{const e=Me(o=>o.selectedNode);if(!e)return[];const{dataInitial:t}=pn.getState();return((t==null?void 0:t.links)||[]).reduce((o,i)=>(i.source===(e==null?void 0:e.ref_id)&&o.push(i.target),i.target===(e==null?void 0:e.ref_id)&&o.push(i.source),o),[])},Fu={split:u.jsx(q2,{}),force:u.jsx(Y2,{}),sphere:u.jsx(K2,{}),earth:u.jsx(X2,{})},Uu=()=>{const[e,t]=Me($c(r=>[r.graphStyle,r.setGraphStyle])),n=r=>{t(r)};return u.jsx(Wu,{direction:"column",children:Bu.map(r=>u.jsx(t1,{className:g3("icon",{active:e===r}),onClick:()=>n(r),children:Fu[r]},r))})},Wu=c1(t1).attrs({direction:"row",align:"center",justify:"space-between"})` + */var Ra=Ea,Pa=ja,Ei=I2,$i=Oa,Ta=function(e,t,n){if(!$i(e)||(Array.isArray(t)&&(t=[].concat.apply([],t).join(".")),typeof t!="string"))return e;for(var r=Ra(t,{sep:".",brackets:!0}).filter(Ha),o=r.length,i=-1,s=e;++ie.filter(Boolean).join(".");function Da(e){const t=e.split(".");return[t.pop(),t.join(".")||void 0]}function Na(e,t){return Object.entries(p7(e,t)).reduce((n,[,{value:r,disabled:o,key:i}])=>(n[i]=o?void 0:r,n),{})}function Ba(e,t){const n=p.useRef();return(t?vt:St)(e,n.current)||(n.current=e),n.current}function V2(e,t){return p.useMemo(e,Ba(t,!0))}function za(e){const t=p.useRef(null),n=p.useRef(null),r=p.useRef(!0);return p.useLayoutEffect(()=>{e||(t.current.style.height="0px",t.current.style.overflow="hidden")},[]),p.useEffect(()=>{if(r.current){r.current=!1;return}let o;const i=t.current,s=()=>{e&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",s,{once:!0});const{height:a}=n.current.getBoundingClientRect();return i.style.height=a+"px",e||(i.style.overflow="hidden",o=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",s),clearTimeout(o)}},[e]),{wrapperRef:t,contentRef:n}}const Za=e=>{const[t,n]=p.useState(e.getVisiblePaths());return p.useEffect(()=>{n(e.getVisiblePaths());const r=e.useStore.subscribe(e.getVisiblePaths,n,{equalityFn:St});return()=>r()},[e]),t};function Fa(e,t,n){return e.useStore(o=>{const i=z(z({},n),o.data);return Na(i,t)},St)}function D2(e=3){const t=p.useRef(null),n=p.useRef(null),[r,o]=p.useState(!1),i=p.useCallback(()=>o(!0),[]),s=p.useCallback(()=>o(!1),[]);return p.useLayoutEffect(()=>{if(r){const{bottom:a,top:l,left:c}=t.current.getBoundingClientRect(),{height:d}=n.current.getBoundingClientRect(),f=a+d>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=c+"px",f==="down"?n.current.style.top=a+e+"px":n.current.style.bottom=window.innerHeight-l+e+"px"}},[e,r]),{popinRef:t,wrapperRef:n,shown:r,show:i,hide:s}}X4([J4]);const Ua={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};S1.extend({color:()=>e=>v1(e).isValid()});const Wa=e=>S1().color().test(e);function N2(e,{format:t,hasAlpha:n,isString:r}){const o=Ua[t]+(r&&t!=="hex"?"String":""),i=e[o]();return typeof i=="object"&&!n?C7(i,["a"]):i}const B2=(e,t)=>{const n=v1(e);if(!n.isValid())throw Error("Invalid color");return N2(n,t)},Ka=(e,t)=>N2(v1(e),z(z({},t),{},{isString:!0,format:"hex"})),Ga=({value:e})=>{const t=q4(e),n=t==="name"?"hex":t,r=typeof e=="object"?"a"in e:t==="hex"&&e.length===8||/^(rgba)|(hsla)|(hsva)/.test(e),o={format:n,hasAlpha:r,isString:typeof e=="string"};return{value:B2(e,o),settings:o}};var Ya=Object.freeze({__proto__:null,schema:Wa,sanitize:B2,format:Ka,normalize:Ga});const qa=B("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),Xa=B("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),Ja=B("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function ji(e,t){return t!=="rgb"?v1(e).toRgb():e}function Qa({value:e,displayValue:t,settings:n,onUpdate:r}){const{emitOnEditStart:o,emitOnEditEnd:i}=C1(),{format:s,hasAlpha:a}=n,{popinRef:l,wrapperRef:c,shown:d,show:f,hide:h}=D2(),g=p.useRef(0),[C,v]=p.useState(()=>ji(e,s)),x=a?i8:a8,m=()=>{v(ji(e,s)),f(),o()},w=()=>{h(),i(),window.clearTimeout(g.current)},y=()=>{g.current=window.setTimeout(w,500)};return p.useEffect(()=>()=>window.clearTimeout(g.current),[]),b.createElement(b.Fragment,null,b.createElement(qa,{ref:l,active:d,onClick:()=>m(),style:{color:t}}),d&&b.createElement(Tr,null,b.createElement(l2,{onPointerUp:w}),b.createElement(Ja,{ref:c,onMouseEnter:()=>window.clearTimeout(g.current),onMouseLeave:_=>_.buttons===0&&y()},b.createElement(x,{color:C,onChange:r}))))}function el(){const{value:e,displayValue:t,label:n,onChange:r,onUpdate:o,settings:i}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,n),b.createElement(Xa,null,b.createElement(Qa,{value:e,displayValue:t,onChange:r,onUpdate:o,settings:i}),b.createElement(Pr,{value:t,onChange:r,onUpdate:o})))}var tl=z({component:el},Ya);function nl(){const{label:e,displayValue:t,onUpdate:n,settings:r}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(Ir,{value:t,settings:r,onUpdate:n}))}var rl=z({component:nl},g2(["x","y","z"]));const ol=B("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),il=B("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function sl({value:e,settings:t,onUpdate:n}){const r=p.useRef(),o=p.useRef(0),i=p.useRef(0),s=p.useRef(1),[a,l]=p.useState(!1),[c,d]=p.useState(!1),[f,h]=u2(),g=p.useRef(null),C=p.useRef(null);p.useLayoutEffect(()=>{if(a){const{top:j,left:D,width:T,height:P}=g.current.getBoundingClientRect();C.current.style.left=D+T/2+"px",C.current.style.top=j+P/2+"px"}},[a]);const{keys:[v,x],joystick:m}=t,w=m==="invertY"?1:-1,{[v]:{step:y},[x]:{step:_}}=t,E=te("sizes","joystickWidth"),$=te("sizes","joystickHeight"),k=parseFloat(E)*.8/2,S=parseFloat($)*.8/2,L=p.useCallback(()=>{r.current||(d(!0),o.current&&h({x:o.current*k}),i.current&&h({y:i.current*-S}),r.current=window.setInterval(()=>{n(j=>{const D=y*o.current*s.current,T=w*_*i.current*s.current;return Array.isArray(j)?{[v]:j[0]+D,[x]:j[1]+T}:{[v]:j[v]+D,[x]:j[x]+T}})},16))},[k,S,n,h,y,_,v,x,w]),O=p.useCallback(()=>{window.clearTimeout(r.current),r.current=void 0,d(!1)},[]);p.useEffect(()=>{function j(D){s.current=G0(D)}return window.addEventListener("keydown",j),window.addEventListener("keyup",j),()=>{window.clearTimeout(r.current),window.removeEventListener("keydown",j),window.removeEventListener("keyup",j)}},[]);const M=Ot(({first:j,active:D,delta:[T,P],movement:[R,I]})=>{j&&l(!0);const Z=ge(R,-k,k),F=ge(I,-S,S);o.current=Math.abs(R)>Math.abs(Z)?Math.sign(R-Z):0,i.current=Math.abs(I)>Math.abs(F)?Math.sign(F-I):0;let e1=e[v],W=e[x];D?(o.current||(e1+=T*y*s.current,h({x:Z})),i.current||(W-=w*P*_*s.current,h({y:F})),o.current||i.current?L():O(),n({[v]:e1,[x]:W})):(l(!1),o.current=0,i.current=0,h({x:0,y:0}),O())});return b.createElement(ol,a1({ref:g},M()),a&&b.createElement(Tr,null,b.createElement(il,{ref:C,isOutOfBounds:c},b.createElement("div",null),b.createElement("span",{ref:f}))))}const al=B("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function ll(){const{label:e,displayValue:t,onUpdate:n,settings:r}=C1();return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(al,{withJoystick:!!r.joystick},r.joystick&&b.createElement(sl,{value:t,settings:r,onUpdate:n}),b.createElement(Ir,{value:t,settings:r,onUpdate:n})))}const cl=["joystick"],z2=g2(["x","y"]),ul=e=>{let{joystick:t=!0}=e,n=Y(e,cl);const{value:r,settings:o}=z2.normalize(n);return{value:r,settings:z(z({},o),{},{joystick:t})}};var dl=z(z({component:ll},z2),{},{normalize:ul});const fl=e=>{if(e!==void 0){if(e instanceof File)try{return URL.createObjectURL(e)}catch{return}if(typeof e=="string"&&e.indexOf("blob:")===0)return e;throw Error("Invalid image format [undefined | blob | File].")}},hl=(e,t)=>typeof t=="object"&&"image"in t,pl=({image:e})=>({value:e});var Cl=Object.freeze({__proto__:null,sanitize:fl,schema:hl,normalize:pl});const gl=B("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),ml=B("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),vl=B("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),xl=B("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),wl=B("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),yl=B("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function bl(){const{label:e,value:t,onUpdate:n,disabled:r}=C1(),{popinRef:o,wrapperRef:i,shown:s,show:a,hide:l}=D2(),c=p.useCallback(C=>{C.length&&n(C[0])},[n]),d=p.useCallback(C=>{C.stopPropagation(),n(void 0)},[n]),{getRootProps:f,getInputProps:h,isDragAccept:g}=H2({maxFiles:1,accept:"image/*",onDrop:c,disabled:r});return b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(gl,null,b.createElement(vl,{ref:o,hasImage:!!t,onPointerDown:()=>!!t&&a(),onPointerUp:l,style:{backgroundImage:t?`url(${t})`:"none"}}),s&&!!t&&b.createElement(Tr,null,b.createElement(l2,{onPointerUp:l,style:{cursor:"pointer"}}),b.createElement(xl,{ref:i,style:{backgroundImage:`url(${t})`}})),b.createElement(ml,f({isDragAccept:g}),b.createElement("input",h()),b.createElement(wl,null,g?"drop image":"click or drop")),b.createElement(yl,{onClick:d,disabled:!t})))}var _l=z({component:bl},Cl);const Li=S1().number(),El=(e,t)=>S1().array().length(2).every.number().test(e)&&S1().schema({min:Li,max:Li}).test(t),ln=e=>({min:e[0],max:e[1]}),Z2=(e,{bounds:[t,n]},r)=>{const o=Array.isArray(e)?ln(e):e,i={min:r[0],max:r[1]},{min:s,max:a}=z(z({},i),o);return[ge(Number(s),t,Math.max(t,a)),ge(Number(a),Math.min(n,s),n)]},$l=({value:e,min:t,max:n})=>{const r={min:t,max:n},o=C2(ln(e),{min:r,max:r}),i=[t,n],s=z(z({},o),{},{bounds:i});return{value:Z2(ln(e),s,e),settings:s}};var kl=Object.freeze({__proto__:null,schema:El,format:ln,sanitize:Z2,normalize:$l});const Sl=["value","bounds","onDrag"],jl=["bounds"],Ll=B("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function Ml(e){let{value:t,bounds:[n,r],onDrag:o}=e,i=Y(e,Sl);const s=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(0),d=te("sizes","scrubberWidth"),f=Ot(({event:C,first:v,xy:[x],movement:[m],memo:w={}})=>{if(v){const{width:_,left:E}=s.current.getBoundingClientRect();c.current=_-parseFloat(d);const $=(C==null?void 0:C.target)===a.current||(C==null?void 0:C.target)===l.current;w.pos=nn((x-E)/_,n,r);const k=Math.abs(w.pos-t.min)-Math.abs(w.pos-t.max);w.key=k<0||k===0&&w.pos<=t.min?"min":"max",$&&(w.pos=t[w.key])}const y=w.pos+nn(m/c.current,0,r-n);return o({[w.key]:r4(y,i[w.key])}),w}),h=`calc(${tn(t.min,n,r)} * (100% - ${d} - 8px) + 4px)`,g=`calc(${1-tn(t.max,n,r)} * (100% - ${d} - 8px) + 4px)`;return b.createElement(f2,a1({ref:s},f()),b.createElement(d2,null,b.createElement(h2,{style:{left:h,right:g}})),b.createElement(sr,{position:"left",ref:a,style:{left:h}}),b.createElement(sr,{position:"right",ref:l,style:{right:g}}))}function Ol(){const{label:e,displayValue:t,onUpdate:n,settings:r}=C1(),o=Y(r,jl);return b.createElement(b.Fragment,null,b.createElement(A1,{input:!0},b.createElement(Z1,null,e),b.createElement(Ll,null,b.createElement(Ml,a1({value:t},r,{onDrag:n})),b.createElement(Ir,{value:t,settings:o,onUpdate:n,innerLabelTrim:0}))))}var Rl=z({component:Ol},kl);const Pl=()=>{const e=new Map;return{on:(t,n)=>{let r=e.get(t);r===void 0&&(r=new Set,e.set(t,r)),r.add(n)},off:(t,n)=>{const r=e.get(t);r!==void 0&&(r.delete(n),r.size===0&&e.delete(t))},emit:(t,...n)=>{const r=e.get(t);if(r!==void 0)for(const o of r)o(...n)}}},Tl=["type","value"],Hl=["onChange","transient","onEditStart","onEditEnd"],Il=function(){const t=na(ra(()=>({data:{}}))),n=Pl();this.storeId=h7(),this.useStore=t;const r={},o=new Set;this.getVisiblePaths=()=>{const s=this.getData(),a=Object.keys(s),l=[];Object.entries(r).forEach(([d,f])=>{f.render&&a.some(h=>h.indexOf(d)===0)&&!f.render(this.get)&&l.push(d+".")});const c=[];return o.forEach(d=>{d in s&&s[d].__refCount>0&&l.every(f=>d.indexOf(f)===-1)&&(!s[d].render||s[d].render(this.get))&&c.push(d)}),c},this.setOrderedPaths=s=>{s.forEach(a=>o.add(a))},this.orderPaths=s=>(this.setOrderedPaths(s),s),this.disposePaths=s=>{t.setState(a=>{const l=a.data;return s.forEach(c=>{if(c in l){const d=l[c];d.__refCount--,d.__refCount===0&&d.type in B1&&delete l[c]}}),{data:l}})},this.dispose=()=>{t.setState(()=>({data:{}}))},this.getFolderSettings=s=>r[s]||{},this.getData=()=>t.getState().data,this.addData=(s,a)=>{t.setState(l=>{const c=l.data;return Object.entries(s).forEach(([d,f])=>{let h=c[d];if(h){const{type:g,value:C}=f,v=Y(f,Tl);g!==h.type?ee(o1.INPUT_TYPE_OVERRIDE,g):((h.__refCount===0||a)&&Object.assign(h,v),h.__refCount++)}else c[d]=z(z({},f),{},{__refCount:1})}),{data:c}})},this.setValueAtPath=(s,a,l)=>{t.setState(c=>{const d=c.data;return Jo(d[s],a,s,this,l),{data:d}})},this.setSettingsAtPath=(s,a)=>{t.setState(l=>{const c=l.data;return c[s].settings=z(z({},c[s].settings),a),{data:c}})},this.disableInputAtPath=(s,a)=>{t.setState(l=>{const c=l.data;return c[s].disabled=a,{data:c}})},this.set=(s,a)=>{t.setState(l=>{const c=l.data;return Object.entries(s).forEach(([d,f])=>{try{Jo(c[d],f,void 0,void 0,a)}catch{}}),{data:c}})},this.getInput=s=>{try{return this.getData()[s]}catch{ee(o1.PATH_DOESNT_EXIST,s)}},this.get=s=>{var a;return(a=this.getInput(s))===null||a===void 0?void 0:a.value},this.emitOnEditStart=s=>{n.emit(`onEditStart:${s}`,this.get(s),s,z(z({},this.getInput(s)),{},{get:this.get}))},this.emitOnEditEnd=s=>{n.emit(`onEditEnd:${s}`,this.get(s),s,z(z({},this.getInput(s)),{},{get:this.get}))},this.subscribeToEditStart=(s,a)=>{const l=`onEditStart:${s}`;return n.on(l,a),()=>n.off(l,a)},this.subscribeToEditEnd=(s,a)=>{const l=`onEditEnd:${s}`;return n.on(l,a),()=>n.off(l,a)};const i=(s,a,l)=>{const c={};return Object.entries(s).forEach(([d,f])=>{if(d==="")return ee(o1.EMPTY_KEY);let h=Zr(a,d);if(f.type===B1.FOLDER){const g=i(f.schema,h,l);Object.assign(c,g),h in r||(r[h]=f.settings)}else if(d in l)ee(o1.DUPLICATE_KEYS,d,h,l[d].path);else{const g=y7(f,d,h,c);if(g){const{type:C,options:v,input:x}=g,{onChange:m,transient:w,onEditStart:y,onEditEnd:_}=v,E=Y(v,Hl);c[h]=z(z(z({type:C},E),x),{},{fromPanel:!0}),l[d]={path:h,onChange:m,transient:w,onEditStart:y,onEditEnd:_}}else ee(o1.UNKNOWN_INPUT,h,f)}}),c};this.getDataFromSchema=s=>{const a={};return[i(s,"",a),a]}},F2=new Il,Al={collapsed:!1};function Vl(e,t){return{type:B1.FOLDER,schema:e,settings:z(z({},Al),t)}}const Mi=e=>"__levaInput"in e,Dl=(e,t)=>{const n={},r=t?t.toLowerCase():null;return e.forEach(o=>{const[i,s]=Da(o);(!r||i.toLowerCase().indexOf(r)>-1)&&Va(n,s,{[i]:{__levaInput:!0,path:o}})}),n},Nl=["type","label","path","valueKey","value","settings","setValue","disabled"];function Bl(e){let{type:t,label:n,path:r,valueKey:o,value:i,settings:s,setValue:a,disabled:l}=e,c=Y(e,Nl);const{displayValue:d,onChange:f,onUpdate:h}=c2({type:t,value:i,settings:s,setValue:a}),g=$e[t].component;return g?b.createElement(Q0.Provider,{value:z({key:o,path:r,id:""+r,label:n,displayValue:d,value:i,onChange:f,onUpdate:h,settings:s,setValue:a,disabled:l},c)},b.createElement(B7,{disabled:l},b.createElement(g,null))):(ee(o1.NO_COMPONENT_FOR_TYPE,t,r),null)}const zl=B("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function Zl({onClick:e,settings:t,label:n}){const r=Mt();return b.createElement(A1,null,b.createElement(zl,{disabled:t.disabled,onClick:()=>e(r.get)},n))}const Fl=B("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),Ul=B("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),Wl=({label:e,opts:t})=>{let n=typeof e=="string"&&e.trim()===""?null:e,r=t;return typeof t.opts=="object"&&(r.label!==void 0&&(n=t.label),r=t.opts),{label:n,opts:r}};function Kl(e){const{label:t,opts:n}=Wl(e),r=Mt();return b.createElement(A1,{input:!!t},t&&b.createElement(Z1,null,t),b.createElement(Fl,null,Object.entries(n).map(([o,i])=>b.createElement(Ul,{key:o,onClick:()=>i(r.get)},o))))}const Gl=B("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),U2=100;function Yl(e,t){e.push(t),e.length>U2&&e.shift()}const ql=p.forwardRef(function({initialValue:e},t){const n=te("colors","highlight3"),r=te("colors","elevation2"),o=te("colors","highlight1"),[i,s]=p.useMemo(()=>[v1(o).alpha(.4).toRgbString(),v1(o).alpha(.1).toRgbString()],[o]),a=p.useRef([e]),l=p.useRef(e),c=p.useRef(e),d=p.useRef(),f=p.useCallback((C,v)=>{if(!C)return;const{width:x,height:m}=C,w=new Path2D,y=x/U2,_=m*.05;for(let k=0;k({frame:C=>{(l.current===void 0||Cc.current)&&(c.current=C),Yl(a.current,C),d.current=requestAnimationFrame(()=>f(h.current,g.current))}}),[h,g,f]),p.useEffect(()=>()=>cancelAnimationFrame(d.current),[]),b.createElement(Gl,{ref:h})}),Oi=e=>Number.isFinite(e)?e.toPrecision(2):e.toString(),Xl=p.forwardRef(function({initialValue:e},t){const[n,r]=p.useState(Oi(e));return p.useImperativeHandle(t,()=>({frame:o=>r(Oi(o))}),[]),b.createElement("div",null,n)});function Ri(e){return typeof e=="function"?e():e.current}function Jl({label:e,objectOrFn:t,settings:n}){const r=p.useRef(),o=p.useRef(Ri(t));return p.useEffect(()=>{const i=window.setInterval(()=>{var s;document.hidden||(s=r.current)===null||s===void 0||s.frame(Ri(t))},n.interval);return()=>window.clearInterval(i)},[t,n.interval]),b.createElement(A1,{input:!0},b.createElement(Z1,{align:"top"},e),n.graph?b.createElement(ql,{ref:r,initialValue:o.current}):b.createElement(Xl,{ref:r,initialValue:o.current}))}const Ql=["type","label","key"],ec={[B1.BUTTON]:Zl,[B1.BUTTON_GROUP]:Kl,[B1.MONITOR]:Jl},tc=b.memo(({path:e})=>{const[t,{set:n,setSettings:r,disable:o,storeId:i,emitOnEditStart:s,emitOnEditEnd:a}]=J7(e);if(!t)return null;const{type:l,label:c,key:d}=t,f=Y(t,Ql);if(l in B1){const h=ec[l];return b.createElement(h,a1({label:c,path:e},f))}return l in $e?b.createElement(Bl,a1({key:i+e,type:l,label:c,storeId:i,path:e,valueKey:d,setValue:n,setSettings:r,disable:o,emitOnEditStart:s,emitOnEditEnd:a},f)):(i7(o1.UNSUPPORTED_INPUT,l,e),null)});function nc({toggle:e,toggled:t,name:n}){return b.createElement(V7,{onClick:()=>e()},b.createElement(Hr,{toggled:t}),b.createElement("div",null,n))}const rc=({name:e,path:t,tree:n})=>{const r=Mt(),o=Zr(t,e),{collapsed:i,color:s}=r.getFolderSettings(o),[a,l]=p.useState(!i),c=p.useRef(null),d=te("colors","folderWidgetColor"),f=te("colors","folderTextColor");return p.useLayoutEffect(()=>{c.current.style.setProperty("--leva-colors-folderWidgetColor",s||d),c.current.style.setProperty("--leva-colors-folderTextColor",s||f)},[s,d,f]),b.createElement(rn,{ref:c},b.createElement(nc,{name:e,toggled:a,toggle:()=>l(h=>!h)}),b.createElement(W2,{parent:o,tree:n,toggled:a}))},W2=b.memo(({isRoot:e=!1,fill:t=!1,flat:n=!1,parent:r,tree:o,toggled:i})=>{const{wrapperRef:s,contentRef:a}=za(i),l=Mt(),c=([f,h])=>{var g;return(Mi(h)?(g=l.getInput(h.path))===null||g===void 0?void 0:g.order:l.getFolderSettings(Zr(r,f)).order)||0},d=Object.entries(o).sort((f,h)=>c(f)-c(h));return b.createElement(or,{ref:s,isRoot:e,fill:t,flat:n},b.createElement(i2,{ref:a,isRoot:e,toggled:i},d.map(([f,h])=>Mi(h)?b.createElement(tc,{key:h.path,valueKey:h.valueKey,path:h.path}):b.createElement(rc,{key:f,name:f,path:r,tree:h}))))}),oc=B("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${a2}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),K2=40,cn=B("i",{$flexCenter:"",width:K2,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),ic=B("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),sc=B("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${cn}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),ac=B("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),lc=B("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:K2}}}}),cc=b.forwardRef(({setFilter:e,toggle:t},n)=>{const[r,o]=p.useState(""),i=p.useMemo(()=>K0(e,250),[e]),s=()=>{e(""),o("")},a=l=>{const c=l.currentTarget.value;t(!0),o(c)};return p.useEffect(()=>{i(r)},[r,i]),b.createElement(b.Fragment,null,b.createElement(ac,{ref:n,value:r,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:l=>l.stopPropagation(),onChange:a}),b.createElement(cn,{onClick:()=>s(),style:{visibility:r?"visible":"hidden"}},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},b.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function uc({setFilter:e,onDrag:t,onDragStart:n,onDragEnd:r,toggle:o,toggled:i,title:s,drag:a,filterEnabled:l,from:c}){const[d,f]=p.useState(!1),h=p.useRef(null);p.useEffect(()=>{var C,v;d?(C=h.current)===null||C===void 0||C.focus():(v=h.current)===null||v===void 0||v.blur()},[d]);const g=Ot(({offset:[C,v],first:x,last:m})=>{t({x:C,y:v}),x&&n({x:C,y:v}),m&&r({x:C,y:v})},{filterTaps:!0,from:({offset:[C,v]})=>[(c==null?void 0:c.x)||C,(c==null?void 0:c.y)||v]});return p.useEffect(()=>{const C=v=>{v.key==="L"&&v.shiftKey&&v.metaKey&&f(x=>!x)};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[]),b.createElement(b.Fragment,null,b.createElement(ic,{mode:a?"drag":void 0},b.createElement(cn,{active:!i,onClick:()=>o()},b.createElement(Hr,{toggled:i,width:12,height:8})),b.createElement(lc,a1({},a?g():{},{drag:a,filterEnabled:l}),s===void 0&&a?b.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},b.createElement("circle",{cx:"2",cy:"2",r:"2"}),b.createElement("circle",{cx:"14",cy:"2",r:"2"}),b.createElement("circle",{cx:"26",cy:"2",r:"2"}),b.createElement("circle",{cx:"2",cy:"12",r:"2"}),b.createElement("circle",{cx:"14",cy:"12",r:"2"}),b.createElement("circle",{cx:"26",cy:"12",r:"2"})):s),l&&b.createElement(cn,{active:d,onClick:()=>f(C=>!C)},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},b.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),b.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),b.createElement(sc,{toggled:d},b.createElement(cc,{ref:h,setFilter:e,toggle:o})))}const dc=["store","hidden","theme","collapsed"];function fc(e){let{store:t,hidden:n=!1,theme:r,collapsed:o=!1}=e,i=Y(e,dc);const s=V2(()=>R7(r),[r]),[a,l]=p.useState(!o),c=typeof o=="object"?!o.collapsed:a,d=p.useMemo(()=>typeof o=="object"?f=>{typeof f=="function"?o.onChange(!f(!o.collapsed)):o.onChange(!f)}:l,[o]);return!t||n?null:b.createElement(Rr.Provider,{value:s},b.createElement(hc,a1({store:t},i,{toggled:c,setToggle:d,rootClass:s.className})))}const hc=b.memo(({store:e,rootClass:t,fill:n=!1,flat:r=!1,neverHide:o=!1,oneLineLabels:i=!1,titleBar:s={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:a=!1,toggled:l,setToggle:c})=>{var d,f;const h=Za(e),[g,C]=p.useState(""),v=p.useMemo(()=>Dl(h,g),[h,g]),[x,m]=u2(),w=o||h.length>0,y=typeof s=="object"&&s.title||void 0,_=typeof s=="object"&&(d=s.drag)!==null&&d!==void 0?d:!0,E=typeof s=="object"&&(f=s.filter)!==null&&f!==void 0?f:!0,$=typeof s=="object"&&s.position||void 0,k=typeof s=="object"&&s.onDrag||void 0,S=typeof s=="object"&&s.onDragStart||void 0,L=typeof s=="object"&&s.onDragEnd||void 0;return b.useEffect(()=>{m({x:$==null?void 0:$.x,y:$==null?void 0:$.y})},[$,m]),O7(),b.createElement(t2.Provider,{value:{hideCopyButton:a}},b.createElement(oc,{ref:x,className:t,fill:n,flat:r,oneLineLabels:i,hideTitleBar:!s,style:{display:w?"block":"none"}},s&&b.createElement(uc,{onDrag:O=>{m(O),k==null||k(O)},onDragStart:O=>S==null?void 0:S(O),onDragEnd:O=>L==null?void 0:L(O),setFilter:C,toggle:O=>c(M=>O??!M),toggled:l,title:y,drag:_,filterEnabled:E,from:$}),w&&b.createElement(e2.Provider,{value:e},b.createElement(W2,{isRoot:!0,fill:n,flat:r,tree:v,toggled:l}))))}),pc=["isRoot"];let un=!1,we=null;function Cc(e){let{isRoot:t=!1}=e,n=Y(e,pc);return p.useEffect(()=>(un=!0,!t&&we&&(we.remove(),we=null),()=>{t||(un=!1)}),[t]),b.createElement(fc,a1({store:F2},n))}function gc(e){p.useEffect(()=>{e&&!un&&(we||(we=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(we),_7(b.createElement(Cc,{isRoot:!0}),we))),un=!0)},[e])}function mc(e,t,n,r,o){let i,s,a,l,c;return typeof e=="string"?(s=e,i=t,Array.isArray(n)?c=n:n&&("store"in n?(l=n,c=r):(a=n,Array.isArray(r)?c=r:(l=r,c=o)))):(i=e,Array.isArray(t)?c=t:(l=t,c=n)),{schema:i,folderName:s,folderSettings:a,hookSettings:l,deps:c||[]}}function kh(e,t,n,r,o){const{folderName:i,schema:s,folderSettings:a,hookSettings:l,deps:c}=mc(e,t,n,r,o),d=typeof s=="function",f=p.useRef(!1),h=p.useRef(!0),g=V2(()=>{f.current=!0;const M=typeof s=="function"?s():s;return i?{[i]:Vl(M,a)}:M},c),C=!(l!=null&&l.store);gc(C);const[v]=p.useState(()=>(l==null?void 0:l.store)||F2),[x,m]=p.useMemo(()=>v.getDataFromSchema(g),[v,g]),[w,y,_,E,$]=p.useMemo(()=>{const M=[],j=[],D={},T={},P={};return Object.values(m).forEach(({path:R,onChange:I,onEditStart:Z,onEditEnd:F,transient:e1})=>{M.push(R),I?(D[R]=I,e1||j.push(R)):j.push(R),Z&&(T[R]=Z),F&&(P[R]=F)}),[M,j,D,T,P]},[m]),k=p.useMemo(()=>v.orderPaths(w),[w,v]),S=Fa(v,y,x),L=p.useCallback(M=>{const j=Object.entries(M).reduce((D,[T,P])=>Object.assign(D,{[m[T].path]:P}),{});v.set(j,!1)},[v,m]),O=p.useCallback(M=>v.get(m[M].path),[v,m]);return p.useEffect(()=>{const M=!h.current&&f.current;return v.addData(x,M),h.current=!1,f.current=!1,()=>v.disposePaths(k)},[v,k,x]),p.useEffect(()=>{const M=[];return Object.entries(_).forEach(([j,D])=>{D(v.get(j),j,z({initial:!0,get:v.get},v.getInput(j)));const T=v.useStore.subscribe(P=>{const R=P.data[j];return[R.disabled?void 0:R.value,R]},([P,R])=>D(P,j,z({initial:!1,get:v.get},R)),{equalityFn:St});M.push(T)}),()=>M.forEach(j=>j())},[v,_]),p.useEffect(()=>{const M=[];return Object.entries(E).forEach(([j,D])=>M.push(v.subscribeToEditStart(j,D))),Object.entries($).forEach(([j,D])=>M.push(v.subscribeToEditEnd(j,D))),()=>M.forEach(j=>j())},[E,$,v]),d?[S,L,O]:S}ce(z1.SELECT,C4);ce(z1.IMAGE,_l);ce(z1.NUMBER,i4);ce(z1.COLOR,tl);ce(z1.STRING,E4);ce(z1.BOOLEAN,O4);ce(z1.INTERVAL,Rl);ce(z1.VECTOR3D,rl);ce(z1.VECTOR2D,dl);function vc(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,o]of e)if(!Object.is(o,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 vc(t.current,r)?t.current:t.current=r}}const yc=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"})})]})}),bc=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"})})]})}),_c=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"})})]})}),Ec=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 Pi(e,t,n){var r,o=1;e==null&&(e=0),t==null&&(t=0),n==null&&(n=0);function i(){var s,a=r.length,l,c=0,d=0,f=0;for(s=0;s=(l=(s+a)/2))?s=l:a=l,r=o,!(o=o[f=+d]))return r[f]=i,e;if(c=+e._x.call(null,o.data),t===c)return i.next=o,r?r[f]=i:e._root=i,e;do r=r?r[f]=new Array(2):e._root=new Array(2),(d=t>=(l=(s+a)/2))?s=l:a=l;while((f=+d)==(h=+(c>=l)));return r[h]=o,r[f]=i,e}function kc(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t);let r=1/0,o=-1/0;for(let i=0,s;io&&(o=s));if(r>o)return this;this.cover(r).cover(o);for(let i=0;ie||e>=n;)switch(s=+(es||(i=c.x1)=f))&&(c=a[a.length-1],a[a.length-1]=a[a.length-1-d],a[a.length-1-d]=c)}else{var h=Math.abs(e-+this._x.call(null,l.data));h=(c=(s+a)/2))?s=c:a=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(o=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,o?(i?o.next=i:delete o.next,this):t?(i?t[f]=i: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=i,this)}function Rc(e){for(var t=0,n=e.length;t=(f=(a+c)/2))?a=f:c=f,(x=n>=(h=(l+d)/2))?l=h:d=h,o=i,!(i=i[m=x<<1|v]))return o[m]=s,e;if(g=+e._x.call(null,i.data),C=+e._y.call(null,i.data),t===g&&n===C)return s.next=i,o?o[m]=s:e._root=s,e;do o=o?o[m]=new Array(4):e._root=new Array(4),(v=t>=(f=(a+c)/2))?a=f:c=f,(x=n>=(h=(l+d)/2))?l=h:d=h;while((m=x<<1|v)===(w=(C>=h)<<1|g>=f));return o[w]=i,o[m]=s,e}function Nc(e){var t,n,r=e.length,o,i,s=new Array(r),a=new Array(r),l=1/0,c=1/0,d=-1/0,f=-1/0;for(n=0;nd&&(d=o),if&&(f=i));if(l>d||c>f)return this;for(this.cover(l,c).cover(d,f),n=0;ne||e>=o||r>t||t>=i;)switch(c=(td||(a=C.y0)>f||(l=C.x1)=m)<<1|e>=x)&&(C=h[h.length-1],h[h.length-1]=h[h.length-1-v],h[h.length-1-v]=C)}else{var w=e-+this._x.call(null,g.data),y=t-+this._y.call(null,g.data),_=w*w+y*y;if(_=(h=(s+l)/2))?s=h:l=h,(v=f>=(g=(a+c)/2))?a=g:c=g,t=n,!(n=n[x=v<<1|C]))return this;if(!n.length)break;(t[x+1&3]||t[x+2&3]||t[x+3&3])&&(r=t,m=x)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,o?(i?o.next=i:delete o.next,this):t?(i?t[x]=i:delete t[x],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[m]=n:this._root=n),this):(this._root=i,this)}function Wc(e){for(var t=0,n=e.length;t=(C=(l+f)/2))?l=C:f=C,(E=n>=(v=(c+h)/2))?c=v:h=v,($=r>=(x=(d+g)/2))?d=x:g=x,i=s,!(s=s[k=$<<2|E<<1|_]))return i[k]=a,e;if(m=+e._x.call(null,s.data),w=+e._y.call(null,s.data),y=+e._z.call(null,s.data),t===m&&n===w&&r===y)return a.next=s,i?i[k]=a:e._root=a,e;do i=i?i[k]=new Array(8):e._root=new Array(8),(_=t>=(C=(l+f)/2))?l=C:f=C,(E=n>=(v=(c+h)/2))?c=v:h=v,($=r>=(x=(d+g)/2))?d=x:g=x;while((k=$<<2|E<<1|_)===(S=(y>=x)<<2|(w>=v)<<1|m>=C));return i[S]=s,i[k]=a,e}function nu(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t),r=new Float64Array(t),o=new Float64Array(t);let i=1/0,s=1/0,a=1/0,l=-1/0,c=-1/0,d=-1/0;for(let f=0,h,g,C,v;fl&&(l=g),Cc&&(c=C),vd&&(d=v));if(i>l||s>c||a>d)return this;this.cover(i,s,a).cover(l,c,d);for(let f=0;fe||e>=s||o>t||t>=a||i>n||n>=l;)switch(h=(nC||(c=y.y0)>v||(d=y.z0)>x||(f=y.x1)=k)<<2|(t>=$)<<1|e>=E)&&(y=m[m.length-1],m[m.length-1]=m[m.length-1-_],m[m.length-1-_]=y)}else{var S=e-+this._x.call(null,w.data),L=t-+this._y.call(null,w.data),O=n-+this._z.call(null,w.data),M=S*S+L*L+O*O;if(M=(v=(s+c)/2))?s=v:c=v,(y=g>=(x=(a+d)/2))?a=x:d=x,(_=C>=(m=(l+f)/2))?l=m:f=m,t=n,!(n=n[E=_<<2|y<<1|w]))return this;if(!n.length)break;(t[E+1&7]||t[E+2&7]||t[E+3&7]||t[E+4&7]||t[E+5&7]||t[E+6&7]||t[E+7&7])&&(r=t,$=E)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,o?(i?o.next=i:delete o.next,this):t?(i?t[E]=i:delete t[E],(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[$]=n:this._root=n),this):(this._root=i,this)}function lu(e){for(var t=0,n=e.length;t1&&(v=g.y+g.vy),n>2&&(x=g.z+g.vz),h.visit(_);function _(E,$,k,S,L,O,M){var j=[$,k,S,L,O,M],D=j[0],T=j[1],P=j[2],R=j[n],I=j[n+1],Z=j[n+2],F=E.data,e1=E.r,W=m+e1;if(F){if(F.index>g.index){var X=C-F.x-F.vx,u1=n>1?v-F.y-F.vy:0,l1=n>2?x-F.z-F.vz:0,K=X*X+u1*u1+l1*l1;K1&&u1===0&&(u1=T1(o),K+=u1*u1),n>2&&l1===0&&(l1=T1(o),K+=l1*l1),K=(W-(K=Math.sqrt(K)))/K*i,g.vx+=(X*=K)*(W=(e1*=e1)/(w+e1)),n>1&&(g.vy+=(u1*=K)*W),n>2&&(g.vz+=(l1*=K)*W),F.vx-=X*(W=1-W),n>1&&(F.vy-=u1*W),n>2&&(F.vz-=l1*W))}return}return D>C+W||R1&&(T>v+W||I2&&(P>x+W||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()},a.iterations=function(d){return arguments.length?(s=+d,a):s},a.strength=function(d){return arguments.length?(i=+d,a):i},a.radius=function(d){return arguments.length?(e=typeof d=="function"?d:y1(+d),c(),a):e},a}function wu(e){return e.index}function Vi(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function yu(e){var t=wu,n=h,r,o=y1(30),i,s,a,l,c,d,f=1;e==null&&(e=[]);function h(m){return 1/Math.min(l[m.source.index],l[m.target.index])}function g(m){for(var w=0,y=e.length;w1&&(L=k.y+k.vy-$.y-$.vy||T1(d)),a>2&&(O=k.z+k.vz-$.z-$.vz||T1(d)),M=Math.sqrt(S*S+L*L+O*O),M=(M-i[_])/M*m*r[_],S*=M,L*=M,O*=M,k.vx-=S*(j=c[_]),a>1&&(k.vy-=L*j),a>2&&(k.vz-=O*j),$.vx+=S*(j=1-j),a>1&&($.vy+=L*j),a>2&&($.vz+=O*j)}function C(){if(s){var m,w=s.length,y=e.length,_=new Map(s.map(($,k)=>[t($,k,s),$])),E;for(m=0,l=new Array(w);mtypeof y=="function")||Math.random,a=w.find(y=>[1,2,3].includes(y))||2,C()},g.links=function(m){return arguments.length?(e=m,C(),g):e},g.id=function(m){return arguments.length?(t=m,g):t},g.iterations=function(m){return arguments.length?(f=+m,g):f},g.strength=function(m){return arguments.length?(n=typeof m=="function"?m:y1(+m),v(),g):n},g.distance=function(m){return arguments.length?(o=typeof m=="function"?m:y1(+m),x(),g):o},g}var bu={value:()=>{}};function X2(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Ut.prototype=X2.prototype={constructor:Ut,on:function(e,t){var n=this._,r=_u(e+"",n),o,i=-1,s=r.length;if(arguments.length<2){for(;++i0)for(var n=new Array(o),r=0,o,i;r=0&&e._call.call(void 0,t),e=e._next;--We}function Ni(){ke=(fn=yt.now())+bn,We=ct=0;try{ku()}finally{We=0,ju(),ke=0}}function Su(){var e=yt.now(),t=e-fn;t>J2&&(bn-=t,fn=e)}function ju(){for(var e,t=dn,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:dn=n);ut=e,wr(r)}function wr(e){if(!We){ct&&(ct=clearTimeout(ct));var t=e-ke;t>24?(e<1/0&&(ct=setTimeout(Ni,e-yt.now()-bn)),it&&(it=clearInterval(it))):(it||(fn=yt.now(),it=setInterval(Su,J2)),We=1,Q2(Ni))}}const Lu=1664525,Mu=1013904223,Bi=4294967296;function Ou(){let e=1;return()=>(e=(Lu*e+Mu)%Bi)/Bi}var zi=3;function Un(e){return e.x}function Zi(e){return e.y}function Ru(e){return e.z}var Pu=10,Tu=Math.PI*(3-Math.sqrt(5)),Hu=Math.PI*20/(9+Math.sqrt(221));function Iu(e,t){t=t||2;var n=Math.min(zi,Math.max(1,Math.round(t))),r,o=1,i=.001,s=1-Math.pow(i,1/300),a=0,l=.6,c=new Map,d=t3(g),f=X2("tick","end"),h=Ou();e==null&&(e=[]);function g(){C(),f.call("tick",r),o1&&(_.fy==null?_.y+=_.vy*=l:(_.y=_.fy,_.vy=0)),n>2&&(_.fz==null?_.z+=_.vz*=l:(_.z=_.fz,_.vz=0));return r}function v(){for(var m=0,w=e.length,y;m1&&isNaN(y.y)||n>2&&isNaN(y.z)){var _=Pu*(n>2?Math.cbrt(.5+m):n>1?Math.sqrt(.5+m):m),E=m*Tu,$=m*Hu;n===1?y.x=_:n===2?(y.x=_*Math.cos(E),y.y=_*Math.sin(E)):(y.x=_*Math.sin(E)*Math.cos($),y.y=_*Math.cos(E),y.z=_*Math.sin(E)*Math.sin($))}(isNaN(y.vx)||n>1&&isNaN(y.vy)||n>2&&isNaN(y.vz))&&(y.vx=0,n>1&&(y.vy=0),n>2&&(y.vz=0))}}function x(m){return m.initialize&&m.initialize(e,h,n),m}return v(),r={tick:C,restart:function(){return d.restart(g),r},stop:function(){return d.stop(),r},numDimensions:function(m){return arguments.length?(n=Math.min(zi,Math.max(1,Math.round(m))),c.forEach(x),r):n},nodes:function(m){return arguments.length?(e=m,v(),c.forEach(x),r):e},alpha:function(m){return arguments.length?(o=+m,r):o},alphaMin:function(m){return arguments.length?(i=+m,r):i},alphaDecay:function(m){return arguments.length?(s=+m,r):+s},alphaTarget:function(m){return arguments.length?(a=+m,r):a},velocityDecay:function(m){return arguments.length?(l=1-m,r):1-l},randomSource:function(m){return arguments.length?(h=m,c.forEach(x),r):h},force:function(m,w){return arguments.length>1?(w==null?c.delete(m):c.set(m,x(w)),r):c.get(m)},find:function(){var m=Array.prototype.slice.call(arguments),w=m.shift()||0,y=(n>1?m.shift():null)||0,_=(n>2?m.shift():null)||0,E=m.shift()||1/0,$=0,k=e.length,S,L,O,M,j,D;for(E*=E,$=0;$1?(f.on(m,w),r):f.on(m)}}}function Au(){var e,t,n,r,o,i=y1(-30),s,a=1,l=1/0,c=.81;function d(C){var v,x=e.length,m=(t===1?Fr(e,Un):t===2?Wr(e,Un,Zi):t===3?Gr(e,Un,Zi,Ru):null).visitAfter(h);for(o=C,v=0;v1&&(C.y=_/w),t>2&&(C.z=E/w)}else{x=C,x.x=x.data.x,t>1&&(x.y=x.data.y),t>2&&(x.z=x.data.z);do v+=s[x.data.index];while(x=x.next)}C.value=v}function g(C,v,x,m,w){if(!C.value)return!0;var y=[x,m,w][t-1],_=C.x-n.x,E=t>1?C.y-n.y:0,$=t>2?C.z-n.z:0,k=y-v,S=_*_+E*E+$*$;if(k*k/c1&&E===0&&(E=T1(r),S+=E*E),t>2&&$===0&&($=T1(r),S+=$*$),S1&&(n.vy+=E*C.value*o/S),t>2&&(n.vz+=$*C.value*o/S)),!0;if(C.length||S>=l)return;(C.data!==n||C.next)&&(_===0&&(_=T1(r),S+=_*_),t>1&&E===0&&(E=T1(r),S+=E*E),t>2&&$===0&&($=T1(r),S+=$*$),S1&&(n.vy+=E*k),t>2&&(n.vz+=$*k));while(C=C.next)}return d.initialize=function(C,...v){e=C,r=v.find(x=>typeof x=="function")||Math.random,t=v.find(x=>[1,2,3].includes(x))||2,f()},d.strength=function(C){return arguments.length?(i=typeof C=="function"?C:y1(+C),f(),d):i},d.distanceMin=function(C){return arguments.length?(a=C*C,d):Math.sqrt(a)},d.distanceMax=function(C){return arguments.length?(l=C*C,d):Math.sqrt(l)},d.theta=function(C){return arguments.length?(c=C*C,d):Math.sqrt(c)},d}function Fi(e,t,n,r){var o,i,s=y1(.1),a,l;typeof e!="function"&&(e=y1(+e)),t==null&&(t=0),n==null&&(n=0),r==null&&(r=0);function c(f){for(var h=0,g=o.length;h1&&(C.vy+=x*y),i>2&&(C.vz+=m*y)}}function d(){if(o){var f,h=o.length;for(a=new Array(h),l=new Array(h),f=0;f[1,2,3].includes(g))||2,d()},c.strength=function(f){return arguments.length?(s=typeof f=="function"?f:y1(+f),d(),c):s},c.radius=function(f){return arguments.length?(e=typeof f=="function"?f:y1(+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 Vu(e){var t=y1(.1),n,r,o;typeof e!="function"&&(e=y1(e==null?0:+e));function i(a){for(var l=0,c=n.length,d;l{},setForces:()=>{},addRadialForce:()=>{},addDefaultForce:()=>{},addSplitForce:()=>{},simulationRestart:()=>{},getLinks:()=>[]},Nu={data:null,simulation:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!1,scrollEventsDisabled:!1,graphRadius:1500,graphStyle:"sphere",hoveredNode:null,selectedNode:null,activeEdge:null,cameraFocusTrigger:!1,nearbyNodeIds:[],showSelectionGraph:!1,simulationHelpers:Du,isHovering:!1},Me=Gi()((e,t)=>({...Nu,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:"sphere"}),setHoveredNode:n=>{e({hoveredNode:n})},setActiveEdge:n=>{e({activeEdge:n})},setSelectedNode:n=>{const{selectedNode:r,simulation:o}=t();if((r==null?void 0:r.ref_id)!==(n==null?void 0:n.ref_id)){const i=o.nodes().find(s=>s.ref_id===(n==null?void 0:n.ref_id))||null;e({hoveredNode:null,selectedNode:i,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,o)=>{const i=structuredClone(n),s=structuredClone(r),{simulation:a,simulationHelpers:l}=t();a.stop();const c=o?[]:a.nodes().map(f=>({...f,fx:f.x,fy:f.y,fz:f.z})),d=o?[]:a.force("link").links();c.push(...i),d.push(...s);try{a.nodes(c);const f=d.filter(h=>{const{target:g,source:C}=h,v=a.nodes(),x=(g==null?void 0:g.ref_id)||g,m=(C==null?void 0:C.ref_id)||C;return v.some(w=>w.ref_id===x)&&v.some(w=>w.ref_id===m)});a.force("link").links([]).links(f),l.simulationRestart()}catch(f){console.error(f)}},addRadialForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(r=>({...r,...Wn}))).force("y",null).force("radial",Fi(200,0,0,0).strength(.1)).force("center",Pi().strength(1)).force("collide",Fn().radius(()=>250).strength(1).iterations(1))},addDefaultForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(r=>({...r,...Wn}))).force("y",null).force("charge",Au().strength(-20)).force("center",Pi().strength(1)).force("collide",Fn().radius(()=>250).strength(1).iterations(1))},addSplitForce:()=>{const{simulation:n}=t(),{nodeTypes:r}=pn.getState();n.stop().nodes(n.nodes().map(o=>({...o,...Wn}))).force("radial",Fi(200,0,0,0).strength(.1)).force("collide",Fn().radius(()=>250).strength(1).iterations(1)).force("y",Vu().y(o=>{const i=r.indexOf(o.node_type),s=Math.floor(i/2)*400;return i%2===0?s:-s}).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)=>{const o=structuredClone(n),i=structuredClone(r),s=Iu([]).numDimensions(3).stop().nodes(o).force("link",yu().links(i).id(a=>a.ref_id));e({simulation:s})}})),n3=()=>Me(e=>e.selectedNode),Sh=()=>Me(e=>e.hoveredNode),Bu=()=>Me(e=>e.setSelectedNode),jh=()=>{const e=Me(o=>o.selectedNode);if(!e)return[];const{dataInitial:t}=pn.getState();return((t==null?void 0:t.links)||[]).reduce((o,i)=>(i.source===(e==null?void 0:e.ref_id)&&o.push(i.target),i.target===(e==null?void 0:e.ref_id)&&o.push(i.source),o),[])},zu=()=>(Me(wc(e=>[e.graphStyle,e.setGraphStyle])),null);c1(n1).attrs({direction:"row",align:"center",justify:"space-between"})` padding: 6px 6px 6px 11px; background: ${s1.BG1}; border-radius: 200px; @@ -76,7 +76,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .icon + .icon { margin-left: 20px; } -`,a3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"center",children:[u.jsx("path",{id:"Vector 121",d:"M9 4L9 1",stroke:"white","stroke-linecap":"round"}),u.jsx("path",{id:"Vector 123",d:"M14 9H17",stroke:"white","stroke-linecap":"round"}),u.jsx("path",{id:"Vector 122",d:"M9 16L9 14",stroke:"white","stroke-linecap":"round"}),u.jsx("path",{id:"Vector 124",d:"M1 9L4 9",stroke:"white","stroke-linecap":"round"}),u.jsx("circle",{id:"Ellipse 2",cx:"9.00001",cy:"9.00001",r:"5.02857",stroke:"white"})]})}),Gu=()=>{const[e,t]=Me(n=>[n.cameraFocusTrigger,n.setCameraFocusTrigger]);return u.jsx(Ku,{href:"",onClick:()=>t(!e),size:"medium",startIcon:u.jsx(a3,{})})},Ku=c1(Yi)` +`;const r3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"center",children:[u.jsx("path",{id:"Vector 121",d:"M9 4L9 1",stroke:"white","stroke-linecap":"round"}),u.jsx("path",{id:"Vector 123",d:"M14 9H17",stroke:"white","stroke-linecap":"round"}),u.jsx("path",{id:"Vector 122",d:"M9 16L9 14",stroke:"white","stroke-linecap":"round"}),u.jsx("path",{id:"Vector 124",d:"M1 9L4 9",stroke:"white","stroke-linecap":"round"}),u.jsx("circle",{id:"Ellipse 2",cx:"9.00001",cy:"9.00001",r:"5.02857",stroke:"white"})]})}),Zu=()=>{const[e,t]=Me(n=>[n.cameraFocusTrigger,n.setCameraFocusTrigger]);return u.jsx(Fu,{href:"",onClick:()=>t(!e),size:"medium",startIcon:u.jsx(r3,{})})},Fu=c1(Yi)` && { padding: 0; width: 32px; @@ -90,11 +90,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho filter: brightness(0.65); } } -`,l3=c1.div` +`,o3=c1.div` position: relative; display: inline-flex; align-items: center; -`,Yu=c1.div` +`,Uu=c1.div` visibility: hidden; width: auto; background-color: ${({backgroundColor:e})=>e||"white"}; @@ -115,11 +115,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho font-size: ${({fontSize:e})=>e||"12px"}; font-weight: ${({fontWeight:e})=>e||"600"}; - ${l3}:hover & { + ${o3}:hover & { visibility: visible; opacity: 1; } -`,qu=({content:e,children:t,margin:n,backgroundColor:r,color:o,padding:i,fontSize:s,fontWeight:a,borderRadius:l,minWidth:c,whiteSpace:d,position:f,textAlign:h})=>u.jsxs(l3,{children:[t,u.jsx(Yu,{backgroundColor:r,borderRadius:l,color:o,fontSize:s,fontWeight:a,margin:n,minWidth:c,padding:i,position:f,textAlign:h,whiteSpace:d,children:e})]}),Xu=()=>{const{resetData:e}=pn(t=>t);return u.jsx(qu,{content:"Clear Graph",fontSize:"13px",position:"left",children:u.jsx(Ju,{href:"",onClick:()=>e(),size:"medium",startIcon:u.jsx(yr,{})})})},Ju=c1(Yi)` +`,Wu=({content:e,children:t,margin:n,backgroundColor:r,color:o,padding:i,fontSize:s,fontWeight:a,borderRadius:l,minWidth:c,whiteSpace:d,position:f,textAlign:h})=>u.jsxs(o3,{children:[t,u.jsx(Uu,{backgroundColor:r,borderRadius:l,color:o,fontSize:s,fontWeight:a,margin:n,minWidth:c,padding:i,position:f,textAlign:h,whiteSpace:d,children:e})]}),Ku=()=>{const{resetData:e}=pn(t=>t);return u.jsx(Wu,{content:"Clear Graph",fontSize:"13px",position:"left",children:u.jsx(Gu,{href:"",onClick:()=>e(),size:"medium",startIcon:u.jsx(yr,{})})})},Gu=c1(Yi)` && { padding: 0; width: 32px; @@ -134,15 +134,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho filter: brightness(0.65); } } -`,c3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Property 1=Pause Normal",children:u.jsx("path",{id:"Pause",d:"M19 3C10.15 3 3 10.15 3 19C3 27.85 10.15 35 19 35C27.85 35 35 27.85 35 19C35 10.15 27.8 3 19 3ZM17.25 23.3C17.25 24.25 16.5 25.05 15.5 25.05C14.55 25.05 13.75 24.3 13.75 23.3V14.65C13.75 13.7 14.5 12.9 15.5 12.9C16.45 12.9 17.25 13.65 17.25 14.65V23.3ZM24.2 23.3C24.2 24.25 23.45 25.05 22.45 25.05C21.5 25.05 20.7 24.3 20.7 23.3V14.65C20.7 13.7 21.45 12.9 22.45 12.9C23.4 12.9 24.2 13.65 24.2 14.65V23.3Z",fill:"currentColor"})})}),u3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Play & Pause",children:u.jsx("path",{id:"Play",d:"M19 3C10.1606 3 3 10.1606 3 19C3 27.8394 10.1606 35 19 35C27.8394 35 35 27.8394 35 19C35 10.1606 27.8338 3 19 3ZM24.0746 20.0898L16.936 24.6361C16.182 25.1149 15.1913 24.5755 15.1913 23.6784V14.5913C15.1913 13.6942 16.182 13.1548 16.936 13.6336L24.0746 18.1799C24.7736 18.6202 24.7736 19.644 24.0746 20.0898Z",fill:"currentColor"})})}),Qu={video:"video",podcast:"audio",episode:"audio",clip:"audio",tweet:"twitter",person:"person",guest:"person",twitter_space:"audio",show:"show",image:"image"},d3=c1.div` - background-image: ${({src:e,type:t="audio"})=>`url(${e}), url('/${Qu[t]||"generic"}_placeholder_img.png')`}; +`,i3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Property 1=Pause Normal",children:u.jsx("path",{id:"Pause",d:"M19 3C10.15 3 3 10.15 3 19C3 27.85 10.15 35 19 35C27.85 35 35 27.85 35 19C35 10.15 27.8 3 19 3ZM17.25 23.3C17.25 24.25 16.5 25.05 15.5 25.05C14.55 25.05 13.75 24.3 13.75 23.3V14.65C13.75 13.7 14.5 12.9 15.5 12.9C16.45 12.9 17.25 13.65 17.25 14.65V23.3ZM24.2 23.3C24.2 24.25 23.45 25.05 22.45 25.05C21.5 25.05 20.7 24.3 20.7 23.3V14.65C20.7 13.7 21.45 12.9 22.45 12.9C23.4 12.9 24.2 13.65 24.2 14.65V23.3Z",fill:"currentColor"})})}),s3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Play & Pause",children:u.jsx("path",{id:"Play",d:"M19 3C10.1606 3 3 10.1606 3 19C3 27.8394 10.1606 35 19 35C27.8394 35 35 27.8394 35 19C35 10.1606 27.8338 3 19 3ZM24.0746 20.0898L16.936 24.6361C16.182 25.1149 15.1913 24.5755 15.1913 23.6784V14.5913C15.1913 13.6942 16.182 13.1548 16.936 13.6336L24.0746 18.1799C24.7736 18.6202 24.7736 19.644 24.0746 20.0898Z",fill:"currentColor"})})}),Yu={video:"video",podcast:"audio",episode:"audio",clip:"audio",tweet:"twitter",person:"person",guest:"person",twitter_space:"audio",show:"show",image:"image"},a3=c1.div` + background-image: ${({src:e,type:t="audio"})=>`url(${e}), url('/${Yu[t]||"generic"}_placeholder_img.png')`}; background-size: cover; background-position: center; background-repeat: no-repeat; - width: ${({size:e=45})=>e}px; - height: ${({size:e=45})=>e}px; + width: ${({size:e=45,width:t})=>t||e}px; + height: ${({size:e=45,height:t})=>t||e}px; border-radius: ${({rounded:e})=>e?"50%":"2px"}; -`,st={isPlaying:!1,miniPlayerIsVisible:!1,hasError:!1,isSeeking:!1,playingTime:0,playingNode:null,duration:0,volume:.5,playerRef:null},ed=Ki()(m3((e,t)=>({...st,setIsSeeking:n=>e({isSeeking:n}),setIsPlaying:n=>e({isPlaying:n}),setPlayerRef:n=>e({playerRef:n}),setMiniPlayerIsVisible:n=>{e(n?{miniPlayerIsVisible:n}:{miniPlayerIsVisible:n,isPlaying:!1})},setHasError:n=>e({hasError:n}),setPlayingTime:n=>e({playingTime:n}),setDuration:n=>e({duration:n}),setVolume:n=>e({volume:n}),setPlayingNodeLink:n=>{const{playingNode:r}=t();r&&e({playingNode:{...r,link:n}})},setPlayingNode:n=>{n||e({...st});const r=t().playingNode;(r==null?void 0:r.ref_id)!==(n==null?void 0:n.ref_id)&&e({...st,miniPlayerIsVisible:!0,playingNode:n})},resetPlayer:()=>e({duration:st.duration,hasError:st.hasError})}))),td=()=>{var _,E,$,k,S;const e=p.useRef(null),[t,n]=p.useState(0),r=s3(),o=Zu(),[i,s]=qi(L=>[L.sidebarIsOpen,L.setSidebarOpen]),[a,l,c,d,f,h]=ed(L=>[L.isPlaying,L.setIsPlaying,L.playingTime,L.playingNode,L.miniPlayerIsVisible,L.setMiniPlayerIsVisible]),[g,C]=(_=d==null?void 0:d.properties)!=null&&_.timestamp?d.properties.timestamp.split("-").map(L=>E3(L)):[0,0],v=(c-g)/(C-g)*100;p.useEffect(()=>{var M,j;const L=((M=e.current)==null?void 0:M.offsetWidth)||0,O=((j=e.current)==null?void 0:j.scrollWidth)||0;n(O-L)},[]);const x=L=>{h(!1),L.stopPropagation()},m=()=>{o(d),s(!0)},w=i&&(r==null?void 0:r.ref_id)!==(d==null?void 0:d.ref_id)||d&&!i,y=((E=window.location)==null?void 0:E.hostname)==="graphmindset.sphinx.chat";return f&&d&&w&&!y?u.jsxs(nd,{onClick:m,children:[u.jsxs(rd,{children:[u.jsx(d3,{src:(($=d==null?void 0:d.properties)==null?void 0:$.image_url)||"",type:d.node_type}),u.jsxs(od,{children:[u.jsxs(cd,{ref:e,children:[u.jsx(ld,{className:"title",scrollValue:t,children:(k=d==null?void 0:d.properties)==null?void 0:k.episode_title}),u.jsx("div",{className:"subtitle",children:(S=d==null?void 0:d.properties)==null?void 0:S.show_title})]}),u.jsx(sd,{"data-testid":"play-pause-button",onClick:L=>{l(!a),L.stopPropagation()},size:"small",children:a?u.jsx(c3,{"data-testid":"pause-icon"}):u.jsx(u3,{"data-testid":"play-icon"})})]}),u.jsx(id,{onClick:L=>x(L),children:u.jsx(yr,{})})]}),u.jsx(ad,{value:v,variant:"determinate"})]}):null},nd=c1(t1).attrs({direction:"column",align:"stretch",justify:"space-between"})` +`,st={isPlaying:!1,miniPlayerIsVisible:!1,hasError:!1,isSeeking:!1,playingTime:0,playingNode:null,duration:0,volume:.5,playerRef:null},qu=Gi()(f3((e,t)=>({...st,setIsSeeking:n=>e({isSeeking:n}),setIsPlaying:n=>e({isPlaying:n}),setPlayerRef:n=>e({playerRef:n}),setMiniPlayerIsVisible:n=>{e(n?{miniPlayerIsVisible:n}:{miniPlayerIsVisible:n,isPlaying:!1})},setHasError:n=>e({hasError:n}),setPlayingTime:n=>e({playingTime:n}),setDuration:n=>e({duration:n}),setVolume:n=>e({volume:n}),setPlayingNodeLink:n=>{const{playingNode:r}=t();r&&e({playingNode:{...r,link:n}})},setPlayingNode:n=>{n||e({...st});const r=t().playingNode;(r==null?void 0:r.ref_id)!==(n==null?void 0:n.ref_id)&&e({...st,miniPlayerIsVisible:!0,playingNode:n})},resetPlayer:()=>e({duration:st.duration,hasError:st.hasError})}))),Xu=()=>{var _,E,$,k,S;const e=p.useRef(null),[t,n]=p.useState(0),r=n3(),o=Bu(),[i,s]=qi(L=>[L.sidebarIsOpen,L.setSidebarOpen]),[a,l,c,d,f,h]=qu(L=>[L.isPlaying,L.setIsPlaying,L.playingTime,L.playingNode,L.miniPlayerIsVisible,L.setMiniPlayerIsVisible]),[g,C]=(_=d==null?void 0:d.properties)!=null&&_.timestamp?d.properties.timestamp.split("-").map(L=>x3(L)):[0,0],v=(c-g)/(C-g)*100;p.useEffect(()=>{var M,j;const L=((M=e.current)==null?void 0:M.offsetWidth)||0,O=((j=e.current)==null?void 0:j.scrollWidth)||0;n(O-L)},[]);const x=L=>{h(!1),L.stopPropagation()},m=()=>{o(d),s(!0)},w=i&&(r==null?void 0:r.ref_id)!==(d==null?void 0:d.ref_id)||d&&!i,y=((E=window.location)==null?void 0:E.hostname)==="graphmindset.sphinx.chat";return f&&d&&w&&!y?u.jsxs(Ju,{onClick:m,children:[u.jsxs(Qu,{children:[u.jsx(a3,{src:(($=d==null?void 0:d.properties)==null?void 0:$.image_url)||"",type:d.node_type}),u.jsxs(ed,{children:[u.jsxs(id,{ref:e,children:[u.jsx(od,{className:"title",scrollValue:t,children:(k=d==null?void 0:d.properties)==null?void 0:k.episode_title}),u.jsx("div",{className:"subtitle",children:(S=d==null?void 0:d.properties)==null?void 0:S.show_title})]}),u.jsx(nd,{"data-testid":"play-pause-button",onClick:L=>{l(!a),L.stopPropagation()},size:"small",children:a?u.jsx(i3,{"data-testid":"pause-icon"}):u.jsx(s3,{"data-testid":"play-icon"})})]}),u.jsx(td,{onClick:L=>x(L),children:u.jsx(yr,{})})]}),u.jsx(rd,{value:v,variant:"determinate"})]}):null},Ju=c1(n1).attrs({direction:"column",align:"stretch",justify:"space-between"})` padding: 8px; background: ${s1.BG1}; border-radius: 6px; @@ -151,7 +151,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin-top: 16px; cursor: pointer; z-index: 0; -`,rd=c1(t1).attrs({direction:"row",align:"center",justify:"flex-start"})``,od=c1(t1).attrs({direction:"row",align:"center",justify:"space-between"})` +`,Qu=c1(n1).attrs({direction:"row",align:"center",justify:"flex-start"})``,ed=c1(n1).attrs({direction:"row",align:"center",justify:"space-between"})` flex: 1; color: ${s1.white}; margin-left: 11px; @@ -169,11 +169,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho white-space: nowrap; text-overflow: ellipsis; } -`,id=c1(n0)` +`,td=c1(n0)` padding: 8px; color: ${s1.GRAY6}; z-index: 100000; -`,sd=c1(n0)` +`,nd=c1(n0)` && { font-size: 36px; padding: 2px; @@ -181,7 +181,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho overflow: hidden; z-index: 100000; } -`,ad=c1(v3)` +`,rd=c1(h3)` && { flex-shrink: 0; height: 2px; @@ -192,7 +192,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho background: rgb(65, 90, 127); } } -`,ld=c1.div` +`,od=c1.div` white-space: nowrap; overflow: hidden; width: max-content; @@ -214,19 +214,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } color: #fff; -`,cd=c1(t1)` +`,id=c1(n1)` overflow: hidden; flex: 1; -`,ud=()=>{const e=s3(),t=pn(o=>o.isFetching),n=qi(o=>o.universeQuestionIsOpen),{isAdmin:r}=x3(o=>o);return u.jsxs(dd,{align:"flex-end",id:"actions-toolbar",children:[u.jsxs(fd,{children:[!t&&!n&&r&&u.jsx(Xu,{}),!t&&!n&&u.jsx(Gu,{})]}),u.jsx(t1,{align:"center",direction:"row",mt:16,children:!t&&!n&&u.jsx(Uu,{})}),u.jsx(td,{},e==null?void 0:e.ref_id)]})},dd=c1(t1)` +`,sd=()=>{const e=n3(),t=pn(o=>o.isFetching),n=qi(o=>o.universeQuestionIsOpen),{isAdmin:r}=p3(o=>o);return u.jsxs(ad,{align:"flex-end",id:"actions-toolbar",children:[u.jsxs(ld,{children:[!t&&!n&&r&&u.jsx(Ku,{}),!t&&!n&&u.jsx(Zu,{})]}),u.jsx(n1,{align:"center",direction:"row",mt:16,children:!t&&!n&&u.jsx(zu,{})}),u.jsx(Xu,{},e==null?void 0:e.ref_id)]})},ad=c1(n1)` position: absolute; right: 20px; bottom: 20px; pointer-events: all; -`,fd=c1.div` +`,ld=c1.div` display: flex; flex-direction: column; gap: 4px; -`,hd=({type:e})=>{var a,l;let t;const[n]=w3(c=>[c.normalizedSchemasByType]),r=e,o=(a=n[e])==null?void 0:a.primary_color,i=(l=n[e])==null?void 0:l.icon,s=i?`svg-icons/${i}.svg`:null;switch(r){case"video":case"twitter_space":case"podcast":case"clip":t={iconStart:s??"video_badge.svg",color:o??s1.CLIP};break;case"show":t={iconStart:s??"show_badge.svg",color:o??s1.SHOW};break;case"tweet":t={iconStart:s??"twitter_badge.svg",color:o??s1.TWEET};break;case"episode":t={iconStart:s??"audio_badge.svg",color:o??s1.EPISODE};break;case"document":t={iconStart:s??"notes_badge.svg",color:o??s1.TEXT};break;case(i??"organization"):t={iconStart:s??"organization_badge.svg",color:o??s1.ORGANIZATION};break;case"person":case"guest":case"host":t={iconStart:s??"person_badge.svg",color:o??s1.PERSON};break;case"event":t={iconStart:s??"event_badge.svg",color:o??s1.EVENT};break;default:t={iconStart:s??"thing_badge.svg",color:o??s1.THING};break}return u.jsx(pd,{...t,label:e})},pd=({iconStart:e,color:t,label:n})=>u.jsxs(Cd,{color:t,children:[u.jsx("img",{alt:n,className:"badge__img",src:e}),u.jsx("div",{className:"badge__label",children:n})]}),Cd=c1(t1).attrs({direction:"row"})` +`,cd=({type:e})=>{var a,l;let t;const[n]=C3(c=>[c.normalizedSchemasByType]),r=e,o=(a=n[e])==null?void 0:a.primary_color,i=(l=n[e])==null?void 0:l.icon,s=i?`svg-icons/${i}.svg`:null;switch(r){case"video":case"twitter_space":case"podcast":case"clip":t={iconStart:s??"video_badge.svg",color:o??s1.CLIP};break;case"show":t={iconStart:s??"show_badge.svg",color:o??s1.SHOW};break;case"tweet":t={iconStart:s??"twitter_badge.svg",color:o??s1.TWEET};break;case"episode":t={iconStart:s??"audio_badge.svg",color:o??s1.EPISODE};break;case"document":t={iconStart:s??"notes_badge.svg",color:o??s1.TEXT};break;case(i??"organization"):t={iconStart:s??"organization_badge.svg",color:o??s1.ORGANIZATION};break;case"person":case"guest":case"host":t={iconStart:s??"person_badge.svg",color:o??s1.PERSON};break;case"event":t={iconStart:s??"event_badge.svg",color:o??s1.EVENT};break;default:t={iconStart:s??"thing_badge.svg",color:o??s1.THING};break}return u.jsx(ud,{...t,label:e})},ud=({iconStart:e,color:t,label:n})=>u.jsxs(dd,{color:t,children:[u.jsx("img",{alt:n,className:"badge__img",src:e}),u.jsx("div",{className:"badge__label",children:n})]}),dd=c1(n1).attrs({direction:"row"})` cursor: pointer; background: ${({color:e})=>e}; border-radius: 3px; @@ -254,11 +254,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho letter-spacing: 0.48px; padding: 0 4px; } -`,gd=({twitterHandle:e})=>u.jsx(u.Fragment,{children:u.jsx(t1,{direction:"row",children:u.jsx(t1,{align:"flex-start",pb:12,children:u.jsxs(R1,{children:["Tweet by @",e]})})})}),md=c1(t1)(({theme:e})=>({width:"300px",pointerEvents:"auto",background:s1.BG3,boxShadow:"0px 1px 6px rgba(0, 0, 0, 0.1)",color:s1.primaryText1,maxHeight:"400px",overflowY:"auto",transition:"opacity 0.6s",padding:e.spacing(2,3),[e.breakpoints.down("sm")]:{padding:e.spacing(1,1.5)},"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-track":{borderRadius:"8px",margin:"8px",overflowY:"hidden"}})),vd=c1(t1)` +`,fd=({twitterHandle:e})=>u.jsx(u.Fragment,{children:u.jsx(n1,{direction:"row",children:u.jsx(n1,{align:"flex-start",pb:12,children:u.jsxs(R1,{children:["Tweet by @",e]})})})}),hd=c1(n1)(({theme:e})=>({width:"300px",pointerEvents:"auto",background:s1.BG3,boxShadow:"0px 1px 6px rgba(0, 0, 0, 0.1)",color:s1.primaryText1,maxHeight:"400px",overflowY:"auto",transition:"opacity 0.6s",padding:e.spacing(2,3),[e.breakpoints.down("sm")]:{padding:e.spacing(1,1.5)},"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-track":{borderRadius:"8px",margin:"8px",overflowY:"hidden"}})),pd=c1(n1)` width: 22.5%; -`,xd=({node:e})=>{if(!e)return null;const{node_type:t,show_title:n,episode_title:r,description:o,label:i,text:s,type:a,name:l,twitter_handle:c,image_url:d,guests:f}=e,h=f&&f.length>0,g=h&&typeof f[0]=="object";let C=d;return t==="guest"&&!d&&(C="person_placeholder2.png"),a==="twitter_space"&&(C="twitter_placeholder.png"),t==="topic"?null:u.jsx(md,{borderRadius:8,px:24,py:16,children:t==="tweet"?u.jsx(gd,{twitterHandle:c}):u.jsxs(u.Fragment,{children:[u.jsxs(t1,{direction:"row",children:[C&&u.jsx(vd,{}),u.jsx(t1,{align:"flex-start",pb:12,children:u.jsx(hd,{type:t})})]}),u.jsxs(t1,{direction:"row",children:[C&&u.jsx(t1,{pr:12,children:u.jsx(d3,{src:C,type:"person"})}),u.jsxs("div",{children:[(l||i)&&u.jsx(t1,{direction:"column",children:l?u.jsx(R1,{children:l}):u.jsxs(u.Fragment,{children:[u.jsx(R1,{children:i}),s&&u.jsx(t1,{pt:4,children:u.jsxs(R1,{color:"primaryText1",kind:"tiny",children:["@",s]})})]})}),n&&u.jsx(R1,{color:"primaryText1",kind:"tiny",children:n}),r&&u.jsx(t1,{pt:4,children:u.jsx(R1,{color:"primaryText1",kind:"tiny",children:r})}),o&&u.jsx(t1,{pt:12,children:u.jsx(R1,{as:"div",kind:"regularBold",children:_3(o)})}),c&&u.jsx(t1,{pt:4,children:u.jsxs(R1,{color:"primaryText1",kind:"tiny",children:["@",c]})}),f&&f.length>0&&u.jsxs(t1,{pt:12,children:[u.jsx(R1,{color:"primaryText1",children:"People"}),u.jsx(t1,{pt:4,children:u.jsx(R1,{color:"primaryText1",kind:"tiny",children:h&&u.jsxs(t1,{pt:12,children:[u.jsx(R1,{children:"Guests:"}),u.jsx(R1,{children:g?f.map(v=>`@${v==null?void 0:v.twitter_handle}`).join(", "):f.join(", ")})]})})})]})]})]})]})})},Ph=()=>{const[e,t]=Me(l=>[l.hoveredNode,l.isHovering]),[n,r]=p.useState(!1),[o,i]=p.useState(!1);p.useEffect(()=>{let l=null;return t||o?r(!0):l=setTimeout(()=>r(!1),300),()=>{l&&clearTimeout(l)}},[t,o]);const s=p.useCallback(()=>{i(!0)},[]),a=p.useCallback(()=>{i(!1)},[]);return u.jsxs(wd,{children:[e&&n&&u.jsx(yd,{onMouseEnter:s,onMouseLeave:a,children:u.jsx(xd,{node:e})}),u.jsx(ud,{})]})},wd=c1("div")(({theme:e})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",overflow:"hidden",[e.breakpoints.down("sm")]:{top:50}})),yd=c1.div` +`,Cd=({node:e})=>{if(!e)return null;const{node_type:t,show_title:n,episode_title:r,description:o,label:i,text:s,type:a,name:l,twitter_handle:c,image_url:d,guests:f}=e,h=f&&f.length>0,g=h&&typeof f[0]=="object";let C=d;return t==="guest"&&!d&&(C="person_placeholder2.png"),a==="twitter_space"&&(C="twitter_placeholder.png"),t==="topic"?null:u.jsx(hd,{borderRadius:8,px:24,py:16,children:t==="tweet"?u.jsx(fd,{twitterHandle:c}):u.jsxs(u.Fragment,{children:[u.jsxs(n1,{direction:"row",children:[C&&u.jsx(pd,{}),u.jsx(n1,{align:"flex-start",pb:12,children:u.jsx(cd,{type:t})})]}),u.jsxs(n1,{direction:"row",children:[C&&u.jsx(n1,{pr:12,children:u.jsx(a3,{src:C,type:"person"})}),u.jsxs("div",{children:[(l||i)&&u.jsx(n1,{direction:"column",children:l?u.jsx(R1,{children:l}):u.jsxs(u.Fragment,{children:[u.jsx(R1,{children:i}),s&&u.jsx(n1,{pt:4,children:u.jsxs(R1,{color:"primaryText1",kind:"tiny",children:["@",s]})})]})}),n&&u.jsx(R1,{color:"primaryText1",kind:"tiny",children:n}),r&&u.jsx(n1,{pt:4,children:u.jsx(R1,{color:"primaryText1",kind:"tiny",children:r})}),o&&u.jsx(n1,{pt:12,children:u.jsx(R1,{as:"div",kind:"regularBold",children:v3(o)})}),c&&u.jsx(n1,{pt:4,children:u.jsxs(R1,{color:"primaryText1",kind:"tiny",children:["@",c]})}),f&&f.length>0&&u.jsxs(n1,{pt:12,children:[u.jsx(R1,{color:"primaryText1",children:"People"}),u.jsx(n1,{pt:4,children:u.jsx(R1,{color:"primaryText1",kind:"tiny",children:h&&u.jsxs(n1,{pt:12,children:[u.jsx(R1,{children:"Guests:"}),u.jsx(R1,{children:g?f.map(v=>`@${v==null?void 0:v.twitter_handle}`).join(", "):f.join(", ")})]})})})]})]})]})]})})},Lh=()=>{const[e,t]=Me(l=>[l.hoveredNode,l.isHovering]),[n,r]=p.useState(!1),[o,i]=p.useState(!1);p.useEffect(()=>{let l=null;return t||o?r(!0):l=setTimeout(()=>r(!1),300),()=>{l&&clearTimeout(l)}},[t,o]);const s=p.useCallback(()=>{i(!0)},[]),a=p.useCallback(()=>{i(!1)},[]);return u.jsxs(gd,{children:[e&&n&&u.jsx(md,{onMouseEnter:s,onMouseLeave:a,children:u.jsx(Cd,{node:e})}),u.jsx(sd,{})]})},gd=c1("div")(({theme:e})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",paddingRight:"0",overflow:"hidden",[e.breakpoints.down("sm")]:{top:50}})),md=c1.div` position: absolute; top: 65px; right: 55px; z-index: 100; -`,Th=()=>{const e=p.useContext(y3);return e==null?void 0:e.socket},bd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M14 16C11.7667 16 9.875 15.225 8.325 13.675C6.775 12.125 6 10.2333 6 8C6 5.76667 6.775 3.875 8.325 2.325C9.875 0.775 11.7667 0 14 0C16.2333 0 18.125 0.775 19.675 2.325C21.225 3.875 22 5.76667 22 8C22 10.2333 21.225 12.125 19.675 13.675C18.125 15.225 16.2333 16 14 16ZM4.625 15.25C3.225 14.6 2.10433 13.625 1.263 12.325C0.421 11.025 0 9.58333 0 8C0 6.41667 0.421 4.975 1.263 3.675C2.10433 2.375 3.225 1.4 4.625 0.75C4.975 0.583333 5.29167 0.595667 5.575 0.787C5.85833 0.979 6 1.29167 6 1.725C6 1.89167 5.946 2.054 5.838 2.212C5.72933 2.37067 5.59167 2.49167 5.425 2.575C4.375 3.05833 3.54167 3.78733 2.925 4.762C2.30833 5.73733 2 6.81667 2 8C2 9.18333 2.30833 10.2623 2.925 11.237C3.54167 12.2123 4.375 12.9417 5.425 13.425C5.59167 13.5083 5.72933 13.625 5.838 13.775C5.946 13.925 6 14.0917 6 14.275C6 14.6917 5.85833 15 5.575 15.2C5.29167 15.4 4.975 15.4167 4.625 15.25ZM14 14C15.6667 14 17.0833 13.4167 18.25 12.25C19.4167 11.0833 20 9.66667 20 8C20 6.33333 19.4167 4.91667 18.25 3.75C17.0833 2.58333 15.6667 2 14 2C12.3333 2 10.9167 2.58333 9.75 3.75C8.58333 4.91667 8 6.33333 8 8C8 9.66667 8.58333 11.0833 9.75 12.25C10.9167 13.4167 12.3333 14 14 14Z",fill:"currentColor"})}),_d=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:"Nodes",children:[u.jsx("mask",{id:"mask0_1506_141",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_1506_141)",children:u.jsx("path",{id:"hub",d:"M4.00071 15.1667C3.49166 15.1667 3.05873 14.9886 2.70189 14.6322C2.34506 14.2759 2.16664 13.8432 2.16664 13.3341C2.16664 12.8251 2.3449 12.3922 2.70141 12.0353C3.05793 11.6785 3.49084 11.5001 4.00014 11.5001C4.14275 11.5001 4.28286 11.5178 4.42048 11.5533C4.55808 11.5887 4.68799 11.6364 4.81021 11.6962L6.13204 10.0513C5.85512 9.74962 5.66409 9.41201 5.55896 9.03851C5.45384 8.66501 5.43247 8.28938 5.49486 7.91161L3.57431 7.2757C3.40679 7.54493 3.18652 7.76074 2.91351 7.92313C2.6405 8.08552 2.33598 8.16671 1.99996 8.16671C1.4907 8.16671 1.05784 7.98855 0.701359 7.63221C0.344882 7.27588 0.166637 6.84319 0.166626 6.33415C0.166626 5.8251 0.344793 5.39217 0.701126 5.03533C1.05746 4.6785 1.49015 4.50008 1.99919 4.50008C2.50824 4.50008 2.94118 4.67832 3.29801 5.0348C3.65484 5.39128 3.83326 5.82414 3.83328 6.3334C3.83328 6.37272 3.83221 6.40563 3.83008 6.43211C3.82794 6.45861 3.82688 6.48511 3.82688 6.51161L5.74101 7.177C5.92476 6.83683 6.17711 6.54496 6.49806 6.30138C6.81899 6.05779 7.18715 5.90138 7.60253 5.83215V3.78595C7.17347 3.68509 6.82689 3.46821 6.56279 3.13531C6.29869 2.80241 6.16664 2.42312 6.16664 1.99742C6.16664 1.49064 6.34481 1.05883 6.70114 0.701999C7.05748 0.345166 7.49016 0.166748 7.99921 0.166748C8.50825 0.166748 8.94119 0.344987 9.29803 0.701465C9.65486 1.05794 9.83328 1.49081 9.83328 2.00007C9.83328 2.424 9.69951 2.80241 9.43199 3.13531C9.16448 3.46821 8.81961 3.68509 8.39739 3.78595V5.83215C8.81277 5.90138 9.17986 6.05779 9.49866 6.30138C9.81746 6.54496 10.0709 6.83683 10.2589 7.177L12.173 6.51161C12.1688 6.48084 12.1666 6.45327 12.1666 6.42892V6.3334C12.1666 5.82414 12.3448 5.39128 12.7011 5.0348C13.0575 4.67832 13.4902 4.50008 13.9992 4.50008C14.5083 4.50008 14.9412 4.67825 15.298 5.03458C15.6549 5.39091 15.8333 5.8236 15.8333 6.33265C15.8333 6.84169 15.655 7.27463 15.2986 7.63146C14.9421 7.9883 14.5092 8.16671 14 8.16671C13.6653 8.16671 13.3594 8.08552 13.0823 7.92313C12.8052 7.76074 12.5863 7.54493 12.4256 7.2757L10.5051 7.91161C10.5674 8.28938 10.5461 8.6633 10.441 9.03338C10.3358 9.40347 10.1448 9.74065 9.86788 10.0449L11.1897 11.6796C11.3119 11.624 11.4418 11.5802 11.5794 11.5481C11.7171 11.5161 11.8572 11.5001 11.9998 11.5001C12.5091 11.5001 12.942 11.6782 13.2985 12.0346C13.655 12.3909 13.8333 12.8236 13.8333 13.3326C13.8333 13.8417 13.6551 14.2746 13.2988 14.6315C12.9424 14.9883 12.5098 15.1667 12.0007 15.1667C11.4917 15.1667 11.0587 14.9885 10.7019 14.632C10.3451 14.2755 10.1666 13.8427 10.1666 13.3334C10.1666 13.1232 10.2006 12.9208 10.2686 12.7264C10.3365 12.5319 10.438 12.3535 10.573 12.1911L9.25123 10.5334C8.8726 10.759 8.45488 10.8718 7.99804 10.8718C7.54121 10.8718 7.12134 10.759 6.73844 10.5334L5.42688 12.1911C5.55764 12.3535 5.65807 12.5319 5.72816 12.7264C5.79824 12.9208 5.83328 13.1232 5.83328 13.3334C5.83328 13.8427 5.65511 14.2755 5.29878 14.632C4.94244 14.9885 4.50975 15.1667 4.00071 15.1667Z",fill:"currentColor"})})]})}),Ed=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),$d=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_25)",children:u.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),kd=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:"add_link",children:[u.jsx("mask",{id:"mask0_2659_52",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_2659_52)",children:u.jsx("path",{id:"add_link_2",d:"M14.1987 13.7821H12.3349C12.1629 13.7821 12.0192 13.7222 11.9039 13.6024C11.7885 13.4826 11.7308 13.3342 11.7308 13.1571C11.7308 12.9851 11.7907 12.8379 11.9105 12.7156C12.0303 12.5933 12.1787 12.5321 12.3558 12.5321H14.1987V10.6891C14.1987 10.5121 14.2587 10.3636 14.3785 10.2438C14.4983 10.124 14.6468 10.0641 14.824 10.0641C15.0012 10.0641 15.1496 10.124 15.2692 10.2438C15.3889 10.3636 15.4487 10.5121 15.4487 10.6891V12.5321H17.2917C17.4687 12.5321 17.6172 12.592 17.737 12.7119C17.8568 12.8317 17.9167 12.9802 17.9167 13.1574C17.9167 13.3345 17.8568 13.4829 17.737 13.6026C17.6172 13.7222 17.4687 13.7821 17.2917 13.7821H15.4487V15.625C15.4487 15.8021 15.3888 15.9505 15.2689 16.0703C15.1491 16.1901 15.0006 16.25 14.8234 16.25C14.6463 16.25 14.4979 16.1901 14.3782 16.0703C14.2586 15.9505 14.1987 15.8021 14.1987 15.625V13.7821ZM8.38142 13.7821H5.8654C4.81904 13.7821 3.92711 13.4134 3.18961 12.676C2.45211 11.9386 2.08336 11.0467 2.08336 10.0005C2.08336 8.95426 2.45211 8.06229 3.18961 7.32458C3.92711 6.58687 4.81904 6.21802 5.8654 6.21802H8.38142C8.55342 6.21802 8.70059 6.27918 8.82292 6.4015C8.94524 6.52383 9.0064 6.67233 9.0064 6.847C9.0064 7.02168 8.94524 7.16884 8.82292 7.2885C8.70059 7.40815 8.55342 7.46798 8.38142 7.46798H5.86444C5.16529 7.46798 4.56865 7.71504 4.07453 8.20916C3.5804 8.70329 3.33334 9.30025 3.33334 10C3.33334 10.6998 3.5804 11.2968 4.07453 11.7909C4.56865 12.285 5.16529 12.5321 5.86444 12.5321H8.38142C8.55342 12.5321 8.70059 12.5933 8.82292 12.7156C8.94524 12.8379 9.0064 12.9864 9.0064 13.1611C9.0064 13.3358 8.94524 13.4829 8.82292 13.6026C8.70059 13.7222 8.55342 13.7821 8.38142 13.7821ZM7.50001 10.625C7.32292 10.625 7.17449 10.5651 7.05471 10.4453C6.93492 10.3254 6.87503 10.1769 6.87503 9.99977C6.87503 9.8226 6.93492 9.67419 7.05471 9.55454C7.17449 9.43489 7.32292 9.37506 7.50001 9.37506H12.5C12.6771 9.37506 12.8255 9.43498 12.9453 9.55481C13.0651 9.67466 13.125 9.82316 13.125 10.0003C13.125 10.1775 13.0651 10.3259 12.9453 10.4455C12.8255 10.5652 12.6771 10.625 12.5 10.625H7.50001ZM17.9167 10H16.6667C16.6667 9.30025 16.4196 8.70329 15.9255 8.20916C15.4314 7.71504 14.8347 7.46798 14.1356 7.46798H11.5978C11.4258 7.46798 11.2821 7.40809 11.1667 7.28831C11.0513 7.16852 10.9936 7.02008 10.9936 6.843C10.9936 6.671 11.0535 6.52383 11.1733 6.4015C11.2931 6.27918 11.4415 6.21802 11.6186 6.21802H14.1346C15.181 6.21802 16.0729 6.58676 16.8104 7.32425C17.5479 8.06175 17.9167 8.95368 17.9167 10Z",fill:"currentColor"})})]})}),Sd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_27)",children:u.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),jd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.50033 10C7.27703 10 7.08233 9.91694 6.9162 9.75081C6.75006 9.58467 6.66699 9.38996 6.66699 9.16667V0.833333C6.66699 0.610042 6.75006 0.415326 6.9162 0.249187C7.08233 0.0830625 7.27703 0 7.50033 0H8.75033C8.97362 0 9.16833 0.0830625 9.33447 0.249187C9.5006 0.415326 9.58366 0.610042 9.58366 0.833333V9.16667C9.58366 9.38996 9.5006 9.58467 9.33447 9.75081C9.16833 9.91694 8.97362 10 8.75033 10H7.50033ZM1.25033 10C1.02703 10 0.832319 9.91694 0.66618 9.75081C0.500055 9.58467 0.416992 9.38996 0.416992 9.16667V0.833333C0.416992 0.610042 0.500055 0.415326 0.66618 0.249187C0.832319 0.0830625 1.02703 0 1.25033 0H2.50033C2.72362 0 2.91833 0.0830625 3.08445 0.249187C3.25059 0.415326 3.33366 0.610042 3.33366 0.833333V9.16667C3.33366 9.38996 3.25059 9.58467 3.08445 9.75081C2.91833 9.91694 2.72362 10 2.50033 10H1.25033Z",fill:"currentColor"})}),Ld=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M13.577 7.62502H11.8142C11.6368 7.62502 11.4883 7.56519 11.3687 7.44554C11.249 7.32589 11.1892 7.17739 11.1892 7.00004C11.1892 6.82269 11.249 6.67419 11.3687 6.55454C11.4883 6.43489 11.6368 6.37506 11.8142 6.37506H13.577C13.7543 6.37506 13.9028 6.43489 14.0225 6.55454C14.1421 6.67419 14.202 6.82269 14.202 7.00004C14.202 7.17739 14.1421 7.32589 14.0225 7.44554C13.9028 7.56519 13.7543 7.62502 13.577 7.62502ZM10.1106 10.9279C10.2175 10.7816 10.354 10.6972 10.5201 10.6747C10.6862 10.6523 10.8425 10.6945 10.9888 10.8013L12.3943 11.8574C12.5406 11.9642 12.625 12.1007 12.6475 12.2669C12.6699 12.433 12.6277 12.5892 12.5209 12.7356C12.4141 12.882 12.2776 12.9664 12.1114 12.9888C11.9453 13.0112 11.7891 12.969 11.6427 12.8622L10.2372 11.8061C10.0909 11.6993 10.0065 11.5628 9.98405 11.3967C9.96161 11.2305 10.0038 11.0743 10.1106 10.9279ZM12.3622 2.1106L10.9568 3.16671C10.8104 3.27354 10.6542 3.31574 10.488 3.29331C10.3219 3.27087 10.1854 3.18646 10.0786 3.0401C9.97176 2.89374 9.92956 2.7375 9.95199 2.57137C9.97442 2.40525 10.0588 2.26876 10.2052 2.16192L11.6106 1.10583C11.757 0.998998 11.9133 0.956796 12.0794 0.979227C12.2455 1.00166 12.382 1.08606 12.4888 1.23244C12.5957 1.3788 12.6379 1.53504 12.6154 1.70116C12.593 1.86729 12.5086 2.00377 12.3622 2.1106ZM4.05778 9.08335H1.71805C1.5033 9.08335 1.32408 9.0115 1.18039 8.86779C1.03669 8.7241 0.964844 8.54488 0.964844 8.33014V5.66994C0.964844 5.4552 1.03669 5.27599 1.18039 5.13229C1.32408 4.98858 1.5033 4.91673 1.71805 4.91673H4.05778L6.55134 2.42317C6.75114 2.22339 6.9811 2.17771 7.24124 2.28614C7.50138 2.39459 7.63145 2.5909 7.63145 2.87508V11.125C7.63145 11.4092 7.50138 11.6055 7.24124 11.7139C6.9811 11.8224 6.75114 11.7767 6.55134 11.5769L4.05778 9.08335Z",fill:"currentColor"})}),Md=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.28729 0.918723C7.41428 0.105284 8.58572 0.105284 8.71271 0.918723L8.76054 1.22508C9.2444 4.32436 11.6757 6.75568 14.775 7.23954L15.0814 7.28737C15.8948 7.41436 15.8948 8.5858 15.0814 8.71279L14.775 8.76062C11.6757 9.24448 9.2444 11.6758 8.76054 14.7751L8.71271 15.0814C8.58572 15.8949 7.41428 15.8949 7.28729 15.0814L7.23946 14.7751C6.7556 11.6758 4.32428 9.24448 1.225 8.76062L0.918643 8.71279C0.105204 8.5858 0.105204 7.41436 0.918642 7.28737L1.225 7.23954C4.32428 6.75568 6.7556 4.32436 7.23946 1.22508L7.28729 0.918723Z",fill:"currentColor"})}),Od=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_21694",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_21694)",children:u.jsx("path",{d:"M1.07697 10.4639C1.16067 9.50216 1.45574 8.61772 1.96217 7.81059C2.4687 7.00354 3.14323 6.36236 3.98576 5.88704L2.99074 4.16621C2.9361 4.0824 2.92244 3.99661 2.94976 3.90881C2.97708 3.82093 3.0356 3.75268 3.12534 3.70406C3.20312 3.65915 3.28503 3.65035 3.37107 3.67767C3.45701 3.70499 3.52692 3.75909 3.58078 3.83998L4.57697 5.56504C5.34872 5.24159 6.15639 5.07986 6.99999 5.07986C7.84358 5.07986 8.65126 5.24159 9.42301 5.56504L10.4192 3.83998C10.4731 3.75909 10.543 3.70499 10.6289 3.67767C10.7149 3.65035 10.7969 3.65915 10.8746 3.70406C10.9644 3.75268 11.0229 3.82093 11.0502 3.90881C11.0775 3.99661 11.0639 4.0824 11.0092 4.16621L10.0142 5.88704C10.8567 6.36236 11.5313 7.00354 12.0378 7.81059C12.5442 8.61772 12.8393 9.50216 12.923 10.4639H1.07697ZM4.30849 8.98323C4.49719 8.98323 4.6564 8.91809 4.78609 8.78782C4.91588 8.65744 4.98078 8.49795 4.98078 8.30934C4.98078 8.12063 4.91564 7.96138 4.78536 7.83159C4.65508 7.70189 4.49559 7.63704 4.30688 7.63704C4.11817 7.63704 3.95897 7.70218 3.82928 7.83246C3.69949 7.96274 3.63459 8.12223 3.63459 8.31094C3.63459 8.49955 3.69973 8.65875 3.83001 8.78854C3.96028 8.91834 4.11978 8.98323 4.30849 8.98323ZM9.69309 8.98323C9.8818 8.98323 10.041 8.91809 10.1707 8.78782C10.3005 8.65744 10.3654 8.49795 10.3654 8.30934C10.3654 8.12063 10.3002 7.96138 10.17 7.83159C10.0397 7.70189 9.88019 7.63704 9.69149 7.63704C9.50278 7.63704 9.34358 7.70218 9.21388 7.83246C9.08409 7.96274 9.0192 8.12223 9.0192 8.31094C9.0192 8.49955 9.08433 8.65875 9.21461 8.78854C9.34489 8.91834 9.50438 8.98323 9.69309 8.98323Z",fill:"currentColor"})})]}),Rd=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:"arrow_forward",children:[u.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_8980_24763)",children:u.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),Pd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M9.47019 6.56248H0.9375C0.777887 6.56248 0.644237 6.50863 0.53655 6.40094C0.42885 6.29326 0.375 6.15961 0.375 5.99999C0.375 5.84038 0.42885 5.70673 0.53655 5.59904C0.644237 5.49136 0.777887 5.43751 0.9375 5.43751H9.47019L5.59326 1.56058C5.48172 1.44904 5.42667 1.31851 5.42812 1.169C5.42956 1.01948 5.48846 0.886545 5.60481 0.770208C5.72114 0.661558 5.85287 0.605308 5.99998 0.601458C6.14709 0.597608 6.27882 0.653858 6.39516 0.770208L11.1504 5.52549C11.2206 5.59568 11.2701 5.66971 11.299 5.7476C11.3278 5.82548 11.3423 5.90961 11.3423 5.99999C11.3423 6.09038 11.3278 6.17451 11.299 6.25239C11.2701 6.33028 11.2206 6.40431 11.1504 6.4745L6.39516 11.2298C6.29132 11.3336 6.16272 11.3868 6.00936 11.3892C5.85599 11.3916 5.72114 11.3384 5.60481 11.2298C5.48846 11.1134 5.43028 10.9798 5.43028 10.8288C5.43028 10.6779 5.48846 10.5442 5.60481 10.4279L9.47019 6.56248Z",fill:"currentColor"})}),Td=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M6 5L6.90043e-08 9.33013L4.47556e-07 0.669872L6 5Z",fill:"currentColor"})}),Hd=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:"Audio",children:[u.jsx("mask",{id:"mask0_1506_147",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_1506_147)",children:u.jsx("path",{id:"headphones",d:"M4.48719 13.6667H3.53851C3.20175 13.6667 2.91671 13.55 2.68337 13.3167C2.45004 13.0833 2.33337 12.7983 2.33337 12.4615V8.00002C2.33337 7.21337 2.4821 6.47654 2.77954 5.78952C3.07697 5.10251 3.48124 4.50345 3.99234 3.99234C4.50345 3.48124 5.10247 3.07697 5.78941 2.77954C6.47634 2.4821 7.21309 2.33337 7.99966 2.33337C8.78622 2.33337 9.5231 2.4821 10.2103 2.77954C10.8975 3.07697 11.4966 3.48124 12.0077 3.99234C12.5188 4.50345 12.9231 5.10251 13.2205 5.78952C13.518 6.47654 13.6667 7.21337 13.6667 8.00002V12.4615C13.6667 12.7983 13.55 13.0833 13.3167 13.3167C13.0833 13.55 12.7983 13.6667 12.4615 13.6667H11.5129C11.1814 13.6667 10.8977 13.5487 10.6617 13.3127C10.4257 13.0767 10.3077 12.793 10.3077 12.4615V10.1539C10.3077 9.82247 10.4257 9.53878 10.6617 9.30278C10.8977 9.06676 11.1814 8.94876 11.5129 8.94876H12.6667V8.00002C12.6667 6.70002 12.2139 5.59725 11.3084 4.69169C10.4028 3.78614 9.30002 3.33336 8.00002 3.33336C6.70002 3.33336 5.59725 3.78614 4.69169 4.69169C3.78614 5.59725 3.33336 6.70002 3.33336 8.00002V8.94876H4.48719C4.8186 8.94876 5.10231 9.06676 5.33831 9.30278C5.57431 9.53878 5.69231 9.82247 5.69231 10.1539V12.4615C5.69231 12.793 5.57431 13.0767 5.33831 13.3127C5.10231 13.5487 4.8186 13.6667 4.48719 13.6667Z",fill:"currentColor"})})]})}),Id=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_45)",children:u.jsx("path",{d:"M5.13135 11.705V11.2019H4.04489C3.85871 11.2019 3.70155 11.1378 3.57341 11.0098C3.44537 10.8817 3.38135 10.7245 3.38135 10.5383C3.38135 10.3521 3.44537 10.195 3.57341 10.0668C3.70155 9.9388 3.85871 9.87478 4.04489 9.87478H4.54801V4.12516H4.04489C3.85871 4.12516 3.70155 4.06114 3.57341 3.9331C3.44537 3.80496 3.38135 3.6478 3.38135 3.46162C3.38135 3.27544 3.44537 3.11828 3.57341 2.99014C3.70155 2.8621 3.85871 2.79808 4.04489 2.79808H5.13135V2.29495C5.13135 2.10877 5.19537 1.95161 5.32341 1.82347C5.45155 1.69543 5.60871 1.63141 5.79489 1.63141C5.98107 1.63141 6.13823 1.69543 6.26637 1.82347C6.39441 1.95161 6.45843 2.10877 6.45843 2.29495V2.79808H7.54139V2.29495C7.54139 2.10877 7.60541 1.95161 7.73345 1.82347C7.86159 1.69543 8.01875 1.63141 8.20493 1.63141C8.39111 1.63141 8.54827 1.69543 8.67641 1.82347C8.80445 1.95161 8.86847 2.10877 8.86847 2.29495V2.89185C9.3857 3.04196 9.80958 3.33114 10.1401 3.75941C10.4707 4.18777 10.636 4.67879 10.636 5.23247C10.636 5.50985 10.5896 5.77794 10.497 6.03674C10.4044 6.29555 10.2742 6.52815 10.1062 6.73455C10.4418 6.94805 10.7112 7.2333 10.9144 7.5903C11.1177 7.9473 11.2193 8.33969 11.2193 8.76747C11.2193 9.42537 10.9908 9.99033 10.5339 10.4623C10.0769 10.9345 9.52181 11.1786 8.86847 11.1949V11.705C8.86847 11.8912 8.80445 12.0483 8.67641 12.1765C8.54827 12.3045 8.39111 12.3685 8.20493 12.3685C8.01875 12.3685 7.86159 12.3045 7.73345 12.1765C7.60541 12.0483 7.54139 11.8912 7.54139 11.705V11.2019H6.45843V11.705C6.45843 11.8912 6.39441 12.0483 6.26637 12.1765C6.13823 12.3045 5.98107 12.3685 5.79489 12.3685C5.60871 12.3685 5.45155 12.3045 5.32341 12.1765C5.19537 12.0483 5.13135 11.8912 5.13135 11.705ZM5.8751 6.33643H8.20493C8.50953 6.33643 8.76965 6.22861 8.98529 6.01297C9.20102 5.79724 9.30889 5.53707 9.30889 5.23247C9.30889 4.92797 9.20102 4.66727 8.98529 4.45037C8.76965 4.23356 8.50953 4.12516 8.20493 4.12516H5.8751V6.33643ZM5.8751 9.87478H8.78826C9.09286 9.87478 9.35298 9.76638 9.56862 9.54957C9.78436 9.33267 9.89222 9.07197 9.89222 8.76747C9.89222 8.46287 9.78436 8.20271 9.56862 7.98697C9.35298 7.77133 9.09286 7.66351 8.78826 7.66351H5.8751V9.87478Z",fill:"currentColor"})})]}),Ad=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 9 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{id:"Icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.97172 5.26825L8.23268 0.525927C8.24606 0.301673 8.05202 0.110397 7.81782 0.116993L3.00677 0.374226C2.66551 0.394014 2.51161 0.796353 2.7525 1.0338L7.30259 5.51889C7.54348 5.75633 7.95165 5.60463 7.97172 5.26825ZM5.56945 5.5915L2.67881 2.74215L1.79555 3.61278L4.6862 6.46213L5.56945 5.5915ZM1.14615 6.44238L0.0353953 5.34749L0.918648 4.47686L3.80929 7.32621L2.92604 8.19685L1.81528 7.10196L0.918648 7.98578C0.731292 8.17046 0.436874 8.17046 0.249518 7.98578C0.0621611 7.8011 0.0621611 7.51089 0.249517 7.32621L1.14615 6.44238Z",fill:"currentColor"})}),Vd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"browse_gallery",children:[u.jsx("mask",{id:"mask0_1360_27257",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1360_27257)",children:u.jsx("path",{id:"browse_gallery_2",d:"M11.8 15.8442L12.8442 14.8L9.74998 11.7026V7.25003H8.25003V12.2942L11.8 15.8442ZM18 19.9615V18.3C19.2333 17.7167 20.2083 16.8583 20.925 15.725C21.6417 14.5917 22 13.35 22 12C22 10.65 21.6417 9.40834 20.925 8.27501C20.2083 7.14167 19.2333 6.28334 18 5.70001V4.03851C19.6628 4.67184 20.9952 5.71318 21.9971 7.16253C22.999 8.61188 23.5 10.2244 23.5 12C23.5 13.7756 22.999 15.3881 21.9971 16.8375C20.9952 18.2868 19.6628 19.3282 18 19.9615ZM9.00055 20.5C7.8207 20.5 6.71539 20.2769 5.68463 19.8307C4.65386 19.3846 3.75514 18.7782 2.98848 18.0115C2.22181 17.2449 1.61541 16.3463 1.16927 15.3159C0.723092 14.2855 0.5 13.1804 0.5 12.0006C0.5 10.8207 0.723083 9.7154 1.16925 8.68463C1.6154 7.65386 2.2218 6.75515 2.98845 5.98848C3.75512 5.22183 4.65365 4.61543 5.68405 4.16928C6.71445 3.72311 7.81957 3.50003 8.99942 3.50003C10.1793 3.50003 11.2846 3.72311 12.3154 4.16928C13.3461 4.61543 14.2448 5.22183 15.0115 5.98848C15.7782 6.75515 16.3846 7.65368 16.8307 8.68408C17.2769 9.71448 17.5 10.8196 17.5 11.9995C17.5 13.1793 17.2769 14.2846 16.8307 15.3154C16.3846 16.3461 15.7782 17.2449 15.0115 18.0115C14.2448 18.7782 13.3463 19.3846 12.3159 19.8307C11.2855 20.2769 10.1804 20.5 9.00055 20.5ZM9 19C10.95 19 12.6042 18.3208 13.9625 16.9625C15.3208 15.6042 16 13.95 16 12C16 10.05 15.3208 8.39584 13.9625 7.03751C12.6042 5.67917 10.95 5.00001 9 5.00001C7.05 5.00001 5.39583 5.67917 4.0375 7.03751C2.67917 8.39584 2 10.05 2 12C2 13.95 2.67917 15.6042 4.0375 16.9625C5.39583 18.3208 7.05 19 9 19Z",fill:"currentColor"})})]})}),Dd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_21901",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_21901)",children:u.jsx("path",{d:"M5.21632 8.60415C4.28522 8.60415 3.49344 8.27787 2.84099 7.62531C2.18843 6.97285 1.86215 6.18108 1.86215 5.24998C1.86215 5.08917 1.87396 4.92744 1.89759 4.76479C1.92112 4.60214 1.96054 4.44639 2.01586 4.29754C2.05329 4.20781 2.1038 4.14145 2.16738 4.09848C2.23087 4.05551 2.30262 4.0243 2.38263 4.00485C2.46274 3.98541 2.54334 3.98687 2.62442 4.00923C2.7056 4.03169 2.77944 4.07622 2.84594 4.14281L4.39965 5.68529L5.65163 4.43331L4.11469 2.89083C4.04819 2.82424 4.00371 2.74947 3.98126 2.66654C3.9588 2.58351 3.95729 2.50199 3.97674 2.42198C3.99618 2.34197 4.02836 2.27017 4.07328 2.20658C4.1181 2.143 4.18353 2.09249 4.26957 2.05506C4.41842 1.99605 4.57324 1.95473 4.73405 1.9311C4.89476 1.90758 5.05551 1.89581 5.21632 1.89581C6.14742 1.89581 6.93924 2.22209 7.5918 2.87465C8.24426 3.5271 8.57049 4.31888 8.57049 5.24998C8.57049 5.49605 8.5473 5.72525 8.50092 5.93758C8.45455 6.15001 8.38498 6.35535 8.29223 6.55358L11.4625 9.70577C11.707 9.95029 11.8293 10.2487 11.8293 10.6009C11.8293 10.9531 11.707 11.2516 11.4625 11.4962C11.218 11.7407 10.9196 11.8629 10.5674 11.8629C10.2151 11.8629 9.91672 11.7377 9.67211 11.4871L6.51992 8.3259C6.3142 8.41495 6.10517 8.48359 5.89284 8.53181C5.68041 8.58004 5.4549 8.60415 5.21632 8.60415Z",fill:"currentColor"})})]}),Nd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M2.1875 11.4688C2.1875 12.0381 2.64941 12.5 3.21875 12.5H10.7812C11.3506 12.5 11.8125 12.0381 11.8125 11.4688V5.625H2.1875V11.4688ZM9.0625 7.25781C9.0625 7.11602 9.17852 7 9.32031 7H10.1797C10.3215 7 10.4375 7.11602 10.4375 7.25781V8.11719C10.4375 8.25898 10.3215 8.375 10.1797 8.375H9.32031C9.17852 8.375 9.0625 8.25898 9.0625 8.11719V7.25781ZM9.0625 10.0078C9.0625 9.86602 9.17852 9.75 9.32031 9.75H10.1797C10.3215 9.75 10.4375 9.86602 10.4375 10.0078V10.8672C10.4375 11.009 10.3215 11.125 10.1797 11.125H9.32031C9.17852 11.125 9.0625 11.009 9.0625 10.8672V10.0078ZM6.3125 7.25781C6.3125 7.11602 6.42852 7 6.57031 7H7.42969C7.57148 7 7.6875 7.11602 7.6875 7.25781V8.11719C7.6875 8.25898 7.57148 8.375 7.42969 8.375H6.57031C6.42852 8.375 6.3125 8.25898 6.3125 8.11719V7.25781ZM6.3125 10.0078C6.3125 9.86602 6.42852 9.75 6.57031 9.75H7.42969C7.57148 9.75 7.6875 9.86602 7.6875 10.0078V10.8672C7.6875 11.009 7.57148 11.125 7.42969 11.125H6.57031C6.42852 11.125 6.3125 11.009 6.3125 10.8672V10.0078ZM3.5625 7.25781C3.5625 7.11602 3.67852 7 3.82031 7H4.67969C4.82148 7 4.9375 7.11602 4.9375 7.25781V8.11719C4.9375 8.25898 4.82148 8.375 4.67969 8.375H3.82031C3.67852 8.375 3.5625 8.25898 3.5625 8.11719V7.25781ZM3.5625 10.0078C3.5625 9.86602 3.67852 9.75 3.82031 9.75H4.67969C4.82148 9.75 4.9375 9.86602 4.9375 10.0078V10.8672C4.9375 11.009 4.82148 11.125 4.67969 11.125H3.82031C3.67852 11.125 3.5625 11.009 3.5625 10.8672V10.0078ZM10.7812 2.875H9.75V1.84375C9.75 1.65469 9.59531 1.5 9.40625 1.5H8.71875C8.52969 1.5 8.375 1.65469 8.375 1.84375V2.875H5.625V1.84375C5.625 1.65469 5.47031 1.5 5.28125 1.5H4.59375C4.40469 1.5 4.25 1.65469 4.25 1.84375V2.875H3.21875C2.64941 2.875 2.1875 3.33691 2.1875 3.90625V4.9375H11.8125V3.90625C11.8125 3.33691 11.3506 2.875 10.7812 2.875Z",fill:"currentColor"})}),Bd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"cancel",children:[u.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1264_3381)",children:u.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),zd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})}),Zd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 11 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M10.6649 1.81615L4.76839 7.381C4.56014 7.57431 4.29239 7.67389 4.02463 7.67389C3.75688 7.67389 3.48913 7.57431 3.28088 7.381L0.329676 4.59858C-0.0987253 4.19439 -0.110625 3.52661 0.299926 3.10485C0.710477 2.6831 1.38878 2.67138 1.81718 3.07556L4.02463 5.16092L9.17735 0.293138C9.60575 -0.111046 10.2841 -0.0934726 10.6946 0.322427C11.1052 0.744184 11.0933 1.41197 10.6649 1.81615Z",fill:"currentColor"})}),Fd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M5.00031 5.21584C4.89989 5.21584 4.80642 5.1998 4.71989 5.16772C4.63337 5.13577 4.55107 5.08077 4.47302 5.00272L0.72781 1.25751C0.612533 1.14209 0.551421 0.999177 0.544477 0.82876C0.537532 0.658482 0.598644 0.508691 0.72781 0.379385C0.848644 0.258691 0.995032 0.198343 1.16698 0.198343C1.33892 0.198343 1.48531 0.258691 1.60614 0.379385L5.00031 3.76084L8.39448 0.379385C8.50989 0.263968 8.65281 0.202788 8.82323 0.195843C8.99364 0.188899 9.14351 0.250079 9.27281 0.379385C9.39351 0.50008 9.45385 0.646399 9.45385 0.818344C9.45385 0.990427 9.39351 1.13682 9.27281 1.25751L5.5276 5.00272C5.44955 5.08077 5.36725 5.13577 5.28073 5.16772C5.1942 5.1998 5.10073 5.21584 5.00031 5.21584Z",fill:"currentColor"})}),Ud=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"keyboard_arrow_left",children:[u.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:u.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1428_267)",children:u.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),Wd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"chevron_right",children:[u.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1247_21809)",children:u.jsx("path",{id:"chevron_right_2",d:"M9.44998 8.99998L6.52498 6.07498C6.38748 5.93748 6.31873 5.76248 6.31873 5.54998C6.31873 5.33748 6.38748 5.16248 6.52498 5.02498C6.66248 4.88748 6.83748 4.81873 7.04998 4.81873C7.26248 4.81873 7.43748 4.88748 7.57498 5.02498L11.025 8.47498C11.1 8.54997 11.1531 8.63123 11.1844 8.71873C11.2156 8.80623 11.2312 8.89998 11.2312 8.99998C11.2312 9.09998 11.2156 9.19373 11.1844 9.28123C11.1531 9.36873 11.1 9.44998 11.025 9.52497L7.57498 12.975C7.43748 13.1125 7.26248 13.1812 7.04998 13.1812C6.83748 13.1812 6.66248 13.1125 6.52498 12.975C6.38748 12.8375 6.31873 12.6625 6.31873 12.45C6.31873 12.2375 6.38748 12.0625 6.52498 11.925L9.44998 8.99998Z",fill:"currentColor"})})]})}),Gd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4.99993 1.71281L1.60576 5.10719C1.49034 5.22247 1.34528 5.28149 1.17055 5.28427C0.99597 5.28691 0.848262 5.22788 0.727428 5.10719C0.606734 4.98635 0.546387 4.83997 0.546387 4.66802C0.546387 4.49608 0.606734 4.34969 0.727428 4.22885L4.47264 0.483646C4.62333 0.333091 4.7991 0.257812 4.99993 0.257812C5.20076 0.257812 5.37653 0.333091 5.52722 0.483646L9.27243 4.22885C9.38771 4.34427 9.44673 4.48934 9.44951 4.66406C9.45215 4.83865 9.39312 4.98635 9.27243 5.10719C9.1516 5.22788 9.00521 5.28823 8.83326 5.28823C8.66132 5.28823 8.51493 5.22788 8.39409 5.10719L4.99993 1.71281Z",fill:"currentColor"})}),Kd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M9.16074 4.89288H4.83931C4.73083 4.89288 4.64288 4.98083 4.64288 5.08931V9.41074C4.64288 9.51923 4.73083 9.60717 4.83931 9.60717H9.16074C9.26923 9.60717 9.35717 9.51923 9.35717 9.41074V5.08931C9.35717 4.98083 9.26923 4.89288 9.16074 4.89288Z",fill:"currentColor"}),u.jsx("path",{d:"M12.1071 5.67857C12.2113 5.67857 12.3113 5.63718 12.3849 5.56351C12.4586 5.48983 12.5 5.38991 12.5 5.28571C12.5 5.18152 12.4586 5.0816 12.3849 5.00792C12.3113 4.93425 12.2113 4.89286 12.1071 4.89286H11.7143V4.10714C11.7138 3.69051 11.5481 3.29108 11.2535 2.99648C10.9589 2.70188 10.5595 2.53617 10.1429 2.53571H9.35714V2.14286C9.35714 2.03866 9.31575 1.93874 9.24208 1.86507C9.1684 1.79139 9.06848 1.75 8.96429 1.75C8.86009 1.75 8.76017 1.79139 8.68649 1.86507C8.61282 1.93874 8.57143 2.03866 8.57143 2.14286V2.53571H7.39286V2.14286C7.39286 2.03866 7.35147 1.93874 7.27779 1.86507C7.20412 1.79139 7.10419 1.75 7 1.75C6.89581 1.75 6.79588 1.79139 6.72221 1.86507C6.64853 1.93874 6.60714 2.03866 6.60714 2.14286V2.53571H5.42857V2.14286C5.42857 2.03866 5.38718 1.93874 5.31351 1.86507C5.23983 1.79139 5.13991 1.75 5.03571 1.75C4.93152 1.75 4.8316 1.79139 4.75792 1.86507C4.68425 1.93874 4.64286 2.03866 4.64286 2.14286V2.53571H3.85714C3.44051 2.53617 3.04108 2.70188 2.74648 2.99648C2.45188 3.29108 2.28617 3.69051 2.28571 4.10714V4.89286H1.89286C1.78866 4.89286 1.68874 4.93425 1.61507 5.00792C1.54139 5.0816 1.5 5.18152 1.5 5.28571C1.5 5.38991 1.54139 5.48983 1.61507 5.56351C1.68874 5.63718 1.78866 5.67857 1.89286 5.67857H2.28571V6.85714H1.89286C1.78866 6.85714 1.68874 6.89853 1.61507 6.97221C1.54139 7.04588 1.5 7.14581 1.5 7.25C1.5 7.35419 1.54139 7.45412 1.61507 7.52779C1.68874 7.60147 1.78866 7.64286 1.89286 7.64286H2.28571V8.82143H1.89286C1.78866 8.82143 1.68874 8.86282 1.61507 8.93649C1.54139 9.01017 1.5 9.11009 1.5 9.21429C1.5 9.31848 1.54139 9.4184 1.61507 9.49208C1.68874 9.56575 1.78866 9.60714 1.89286 9.60714H2.28571V10.3929C2.28617 10.8095 2.45188 11.2089 2.74648 11.5035C3.04108 11.7981 3.44051 11.9638 3.85714 11.9643H4.64286V12.3571C4.64286 12.4613 4.68425 12.5613 4.75792 12.6349C4.8316 12.7086 4.93152 12.75 5.03571 12.75C5.13991 12.75 5.23983 12.7086 5.31351 12.6349C5.38718 12.5613 5.42857 12.4613 5.42857 12.3571V11.9643H6.60714V12.3571C6.60714 12.4613 6.64853 12.5613 6.72221 12.6349C6.79588 12.7086 6.89581 12.75 7 12.75C7.10419 12.75 7.20412 12.7086 7.27779 12.6349C7.35147 12.5613 7.39286 12.4613 7.39286 12.3571V11.9643H8.57143V12.3571C8.57143 12.4613 8.61282 12.5613 8.68649 12.6349C8.76017 12.7086 8.86009 12.75 8.96429 12.75C9.06848 12.75 9.1684 12.7086 9.24208 12.6349C9.31575 12.5613 9.35714 12.4613 9.35714 12.3571V11.9643H10.1429C10.5595 11.9638 10.9589 11.7981 11.2535 11.5035C11.5481 11.2089 11.7138 10.8095 11.7143 10.3929V9.60714H12.1071C12.2113 9.60714 12.3113 9.56575 12.3849 9.49208C12.4586 9.4184 12.5 9.31848 12.5 9.21429C12.5 9.11009 12.4586 9.01017 12.3849 8.93649C12.3113 8.86282 12.2113 8.82143 12.1071 8.82143H11.7143V7.64286H12.1071C12.2113 7.64286 12.3113 7.60147 12.3849 7.52779C12.4586 7.45412 12.5 7.35419 12.5 7.25C12.5 7.14581 12.4586 7.04588 12.3849 6.97221C12.3113 6.89853 12.2113 6.85714 12.1071 6.85714H11.7143V5.67857H12.1071ZM10.1429 9.60714C10.1429 9.81553 10.0601 10.0154 9.91273 10.1627C9.76538 10.3101 9.56553 10.3929 9.35714 10.3929H4.64286C4.43447 10.3929 4.23462 10.3101 4.08727 10.1627C3.93992 10.0154 3.85714 9.81553 3.85714 9.60714V4.89286C3.85714 4.68447 3.93992 4.48462 4.08727 4.33727C4.23462 4.18992 4.43447 4.10714 4.64286 4.10714H9.35714C9.56553 4.10714 9.76538 4.18992 9.91273 4.33727C10.0601 4.48462 10.1429 4.68447 10.1429 4.89286V9.60714Z",fill:"currentColor"})]}),Yd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"cancel",children:[u.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1264_3381)",children:u.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),qd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M5.5884 4.12155L3.88306 2.41429C3.8396 2.37079 3.80894 2.32471 3.79108 2.27605C3.77323 2.22738 3.7643 2.17524 3.7643 2.11963C3.7643 2.06401 3.77323 2.01206 3.79108 1.96379C3.80894 1.91553 3.8396 1.86964 3.88306 1.82614L5.5884 0.118886C5.63185 0.0753881 5.67788 0.0446995 5.72649 0.0268199C5.7751 0.00894031 5.82719 0 5.88275 0C5.9383 0 5.99019 0.00894031 6.0384 0.0268199C6.08662 0.0446995 6.13245 0.0753881 6.1759 0.118886L7.88125 1.82614C7.9247 1.86964 7.95536 1.91573 7.97321 1.96439C7.99107 2.01306 8 2.0652 8 2.12081C8 2.17643 7.99107 2.22838 7.97321 2.27664C7.95536 2.32491 7.9247 2.37079 7.88125 2.41429L6.1759 4.12155C6.13245 4.16505 6.08642 4.19574 6.03781 4.21362C5.9892 4.23149 5.93711 4.24043 5.88155 4.24043C5.826 4.24043 5.77412 4.23149 5.7259 4.21362C5.67768 4.19574 5.63185 4.16505 5.5884 4.12155ZM0 3.21787V0.804477C0 0.68544 0.0402151 0.585661 0.120645 0.505141C0.201076 0.424621 0.300743 0.384361 0.419648 0.384361H2.83035C2.94925 0.384361 3.04891 0.424621 3.12934 0.505141C3.20977 0.585661 3.24999 0.68544 3.24999 0.804477V3.21787C3.24999 3.3369 3.20977 3.43668 3.12934 3.5172C3.04891 3.59772 2.94925 3.63798 2.83035 3.63798H0.419648C0.300743 3.63798 0.201076 3.59772 0.120645 3.5172C0.0402151 3.43668 0 3.3369 0 3.21787ZM4.35715 7.57988V5.16649C4.35715 5.04746 4.39737 4.94768 4.4778 4.86716C4.55823 4.78664 4.65789 4.74638 4.77679 4.74638H7.18749C7.3064 4.74638 7.40607 4.78664 7.4865 4.86716C7.56693 4.94768 7.60714 5.04746 7.60714 5.16649V7.57988C7.60714 7.69892 7.56693 7.7987 7.4865 7.87922C7.40607 7.95974 7.3064 8 7.18749 8H4.77679C4.65789 8 4.55823 7.95974 4.4778 7.87922C4.39737 7.7987 4.35715 7.69892 4.35715 7.57988ZM0 7.57988V5.16649C0 5.04746 0.0402151 4.94768 0.120645 4.86716C0.201076 4.78664 0.300743 4.74638 0.419648 4.74638H2.83035C2.94925 4.74638 3.04891 4.78664 3.12934 4.86716C3.20977 4.94768 3.24999 5.04746 3.24999 5.16649V7.57988C3.24999 7.69892 3.20977 7.7987 3.12934 7.87922C3.04891 7.95974 2.94925 8 2.83035 8H0.419648C0.300743 8 0.201076 7.95974 0.120645 7.87922C0.0402151 7.7987 0 7.69892 0 7.57988Z",fill:"currentColor"})}),Xd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7640_4256",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7640_4256)",children:u.jsx("path",{d:"M3.98234 10.0176L8.00952 8.00958L10.0175 3.9824L5.99031 5.99038L3.98234 10.0176ZM6.99992 7.58331C6.83464 7.58331 6.6961 7.52741 6.58429 7.4156C6.47249 7.3038 6.41658 7.16526 6.41658 6.99998C6.41658 6.8347 6.47249 6.69616 6.58429 6.58435C6.6961 6.47255 6.83464 6.41665 6.99992 6.41665C7.1652 6.41665 7.30374 6.47255 7.41554 6.58435C7.52735 6.69616 7.58325 6.8347 7.58325 6.99998C7.58325 7.16526 7.52735 7.3038 7.41554 7.4156C7.30374 7.52741 7.1652 7.58331 6.99992 7.58331ZM7.00094 12.5416C6.23444 12.5416 5.51397 12.3962 4.83954 12.1053C4.16511 11.8144 3.57847 11.4197 3.07963 10.921C2.58078 10.4223 2.18581 9.83595 1.89473 9.16181C1.60374 8.48767 1.45825 7.7674 1.45825 7.001C1.45825 6.2345 1.6037 5.51403 1.89459 4.8396C2.18547 4.16517 2.58025 3.57854 3.0789 3.07969C3.57755 2.58084 4.16395 2.18588 4.83809 1.89479C5.51222 1.60381 6.23249 1.45831 6.9989 1.45831C7.7654 1.45831 8.48586 1.60376 9.16029 1.89465C9.83472 2.18553 10.4214 2.58031 10.9202 3.07896C11.4191 3.57761 11.814 4.16401 12.1051 4.83815C12.3961 5.51229 12.5416 6.23256 12.5416 6.99896C12.5416 7.76546 12.3961 8.48592 12.1053 9.16035C11.8144 9.83479 11.4196 10.4214 10.9209 10.9203C10.4223 11.4191 9.83589 11.8141 9.16175 12.1052C8.48761 12.3962 7.76734 12.5416 7.00094 12.5416Z",fill:"currentColor"})})]}),Jd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22054",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22054)",children:u.jsx("path",{d:"M10.5808 11.4972L7.8257 8.74213L8.74765 7.82003L11.5029 10.5751C11.627 10.6993 11.6891 10.853 11.6891 11.0362C11.6891 11.2194 11.627 11.3731 11.5029 11.4972C11.3787 11.6214 11.225 11.6834 11.0418 11.6834C10.8586 11.6834 10.7049 11.6214 10.5808 11.4972ZM2.50278 11.4972C2.37863 11.3731 2.31655 11.2194 2.31655 11.0362C2.31655 10.853 2.37863 10.6993 2.50278 10.5751L6.08357 6.99446L4.72163 5.63807C4.62587 5.73383 4.50473 5.78171 4.35822 5.78171C4.21161 5.78171 4.09042 5.73383 3.99465 5.63807L3.70984 5.34757V6.56469C3.70984 6.68583 3.65617 6.76794 3.54884 6.811C3.44151 6.85398 3.34482 6.83244 3.25878 6.7464L1.78703 5.27465C1.70099 5.18861 1.6795 5.09197 1.72257 4.98473C1.76554 4.8774 1.8476 4.82373 1.96874 4.82373H3.18586L2.91549 4.55336C2.8101 4.44787 2.7574 4.32391 2.7574 4.18148C2.7574 4.03905 2.8101 3.91509 2.91549 3.80961L4.20786 2.51738C4.37236 2.35278 4.55052 2.23237 4.74234 2.15615C4.93416 2.07983 5.13366 2.04167 5.34084 2.04167C5.50534 2.04167 5.66051 2.06525 5.80634 2.1124C5.95217 2.15946 6.09465 2.23388 6.23378 2.33567C6.30028 2.38049 6.33693 2.44198 6.34374 2.52015C6.35045 2.59832 6.32351 2.66769 6.26295 2.72826L5.3229 3.6683L5.64374 3.98913C5.7394 4.0848 5.78724 4.20594 5.78724 4.35255C5.78724 4.49916 5.7394 4.6203 5.64374 4.71596L7.00553 6.07236L8.40786 4.67003C8.34282 4.5519 8.29533 4.42984 8.26538 4.30384C8.23544 4.17774 8.22047 4.04518 8.22047 3.90615C8.22047 3.38115 8.40145 2.93767 8.7634 2.57571C9.12536 2.21375 9.56884 2.03278 10.0938 2.03278C10.1604 2.03278 10.2212 2.03423 10.2761 2.03715C10.3312 2.04016 10.389 2.04955 10.4495 2.0653C10.5221 2.09067 10.5696 2.14205 10.592 2.21944C10.6144 2.29693 10.5972 2.36406 10.5404 2.42084L9.64847 3.31261C9.59392 3.36725 9.56665 3.42971 9.56665 3.5C9.56665 3.5703 9.59392 3.63276 9.64847 3.6874L10.3126 4.35153C10.3672 4.40607 10.4297 4.43334 10.5 4.43334C10.5703 4.43334 10.6327 4.40607 10.6874 4.35153L11.5792 3.45961C11.6359 3.40283 11.7031 3.38416 11.7806 3.40361C11.8579 3.42305 11.9093 3.47201 11.9347 3.55046C11.9504 3.61103 11.9598 3.66883 11.9628 3.72386C11.9658 3.77879 11.9672 3.83955 11.9672 3.90615C11.9672 4.43115 11.7862 4.87463 11.4243 5.23659C11.0623 5.59855 10.6188 5.77953 10.0938 5.77953C9.95481 5.77953 9.82225 5.76606 9.69615 5.73913C9.57015 5.7122 9.44809 5.6632 9.32997 5.59213L3.42488 11.4972C3.30073 11.6214 3.14702 11.6834 2.96376 11.6834C2.78059 11.6834 2.62693 11.6214 2.50278 11.4972Z",fill:"currentColor"})})]}),Qd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 56 56",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M4.75129 14.5773L28 1.1547L51.2487 14.5773V41.4226L28 54.8453L4.75129 41.4226V14.5773Z",stroke:"#47505E","stroke-width":"2"}),u.jsx("path",{d:"M51.5956 14.4722L28.0001 28.0003M28.0001 28.0003L4.40457 14.4722M28.0001 28.0003L28.0001 55.3711",stroke:"#47505E","stroke-width":"2"})]}),ef=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"content_copy",children:[u.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1489_75628)",children:u.jsx("path",{id:"content_copy_2",d:"M5.28363 10.2083C4.98897 10.2083 4.73956 10.1063 4.5354 9.9021C4.33124 9.69793 4.22915 9.44852 4.22915 9.15385V2.51287C4.22915 2.21821 4.33124 1.96879 4.5354 1.76462C4.73956 1.56046 4.98897 1.45837 5.28363 1.45837H10.1746C10.4693 1.45837 10.7187 1.56046 10.9229 1.76462C11.127 1.96879 11.2291 2.21821 11.2291 2.51287V9.15385C11.2291 9.44852 11.127 9.69793 10.9229 9.9021C10.7187 10.1063 10.4693 10.2083 10.1746 10.2083H5.28363ZM5.28363 9.33336H10.1746C10.2195 9.33336 10.2606 9.31466 10.298 9.27727C10.3354 9.23987 10.3541 9.19873 10.3541 9.15385V2.51287C10.3541 2.46799 10.3354 2.42685 10.298 2.38945C10.2606 2.35206 10.2195 2.33336 10.1746 2.33336H5.28363C5.23875 2.33336 5.19762 2.35206 5.16023 2.38945C5.12282 2.42685 5.10412 2.46799 5.10412 2.51287V9.15385C5.10412 9.19873 5.12282 9.23987 5.16023 9.27727C5.19762 9.31466 5.23875 9.33336 5.28363 9.33336ZM3.24198 12.25C2.94733 12.25 2.69792 12.1479 2.49375 11.9437C2.28958 11.7396 2.1875 11.4902 2.1875 11.1955V3.67953H3.06249V11.1955C3.06249 11.2404 3.08118 11.2815 3.11857 11.3189C3.15597 11.3563 3.19711 11.375 3.24198 11.375H9.00796V12.25H3.24198Z",fill:"currentColor"})})]})}),tf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_27)",children:u.jsx("path",{d:"M2.51277 11.9583C2.21809 11.9583 1.96867 11.8562 1.7645 11.6521C1.56034 11.4479 1.45825 11.1985 1.45825 10.9038V4.84619C1.45825 4.55151 1.56034 4.30208 1.7645 4.09792C1.96867 3.89375 2.21809 3.79167 2.51277 3.79167H4.95825V2.80452C4.95825 2.50984 5.06034 2.26042 5.2645 2.05625C5.46867 1.85208 5.71809 1.75 6.01277 1.75H7.98706C8.28174 1.75 8.53117 1.85208 8.73534 2.05625C8.9395 2.26042 9.04159 2.50984 9.04159 2.80452V3.79167H11.4871C11.7817 3.79167 12.0312 3.89375 12.2353 4.09792C12.4395 4.30208 12.5416 4.55151 12.5416 4.84619V10.9038C12.5416 11.1985 12.4395 11.4479 12.2353 11.6521C12.0312 11.8562 11.7817 11.9583 11.4871 11.9583H2.51277ZM5.83325 3.79167H8.16659V2.80452C8.16659 2.7596 8.14787 2.71848 8.11044 2.68115C8.07311 2.64371 8.03198 2.625 7.98706 2.625H6.01277C5.96786 2.625 5.92673 2.64371 5.8894 2.68115C5.85197 2.71848 5.83325 2.7596 5.83325 2.80452V3.79167Z",fill:"currentColor"})})]}),nf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 23 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_8954_27793",maskUnits:"userSpaceOnUse",x:"10",y:"-3",width:"16",height:"16",children:u.jsx("rect",{x:"10",y:"-3",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_8954_27793)",children:u.jsx("path",{d:"M17.5 5.50005H14.1666C14.025 5.50005 13.9062 5.45212 13.8104 5.35625C13.7145 5.26037 13.6666 5.14157 13.6666 4.99985C13.6666 4.85812 13.7145 4.73939 13.8104 4.64367C13.9062 4.54794 14.025 4.50008 14.1666 4.50008H17.5V1.16675C17.5 1.02508 17.5479 0.906331 17.6438 0.810498C17.7396 0.714665 17.8584 0.666748 18.0002 0.666748C18.1419 0.666748 18.2606 0.714665 18.3563 0.810498C18.4521 0.906331 18.4999 1.02508 18.4999 1.16675V4.50008H21.8333C21.9749 4.50008 22.0937 4.54802 22.1895 4.64388C22.2853 4.73976 22.3333 4.85856 22.3333 5.00028C22.3333 5.14202 22.2853 5.26074 22.1895 5.35647C22.0937 5.45219 21.9749 5.50005 21.8333 5.50005H18.4999V8.83338C18.4999 8.97505 18.452 9.0938 18.3561 9.18963C18.2602 9.28547 18.1414 9.33338 17.9997 9.33338C17.858 9.33338 17.7393 9.28547 17.6435 9.18963C17.5478 9.0938 17.5 8.97505 17.5 8.83338V5.50005Z",fill:"currentColor"})}),u.jsx("path",{d:"M1.33333 6C1.33333 7.47276 2.52724 8.66667 4 8.66667C5.47276 8.66667 6.66667 7.47276 6.66667 6C6.66667 4.52724 5.47276 3.33333 4 3.33333C2.52724 3.33333 1.33333 4.52724 1.33333 6ZM14.3333 19C14.3333 20.4728 15.5272 21.6667 17 21.6667C18.4728 21.6667 19.6667 20.4728 19.6667 19C19.6667 17.5272 18.4728 16.3333 17 16.3333C15.5272 16.3333 14.3333 17.5272 14.3333 19ZM3.64645 6.35355L16.6464 19.3536L17.3536 18.6464L4.35355 5.64645L3.64645 6.35355Z",fill:"currentColor"})]}),rf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 34 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsxs("g",{mask:"url(#mask0_2777_4506)",children:[u.jsx("mask",{id:"mask1_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask1_2777_4506)",children:u.jsx("path",{d:"M8.25212 29.988L10.5542 20.0359L2.83337 13.3421L13.0334 12.4567L17 3.07129L20.9667 12.4567L31.1667 13.3421L23.4459 20.0359L25.748 29.988L17 24.7109L8.25212 29.988Z",fill:"currentColor"})})]})]}),of=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:"delete",children:[u.jsx("mask",{id:"mask0_2401_3378",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",{children:u.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})}),sf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),u.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),u.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),af=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22108",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22108)",children:u.jsx("path",{d:"M5.22302 6.62316L6.51656 5.32073L5.50915 4.30427L5.15798 4.65543C5.07719 4.73623 4.97715 4.77905 4.85785 4.78391C4.73866 4.78877 4.63381 4.74595 4.54329 4.65543C4.45278 4.56492 4.40752 4.46099 4.40752 4.34364C4.40752 4.2262 4.45278 4.12222 4.54329 4.03171L4.88542 3.68958L3.98796 2.79212L2.68552 4.09456L5.22302 6.62316ZM9.8999 11.3088L11.2022 10.0064L10.3047 9.10889L9.95371 9.45116C9.86689 9.53789 9.76534 9.58217 9.64906 9.58402C9.53279 9.58587 9.42939 9.54158 9.33888 9.45116C9.24846 9.36065 9.20325 9.25818 9.20325 9.14375C9.20325 9.02932 9.24846 8.92684 9.33888 8.83633L9.68115 8.48531L8.67038 7.48343L7.37683 8.77698L9.8999 11.3088ZM9.2626 3.84329L10.1746 4.75533L11.0924 3.8376L10.1713 2.91666L9.2626 3.84329ZM2.569 11.9583C2.4186 11.9583 2.29313 11.908 2.1926 11.8074C2.09198 11.7069 2.04167 11.5814 2.04167 11.431V10.0187C2.04167 9.94846 2.0544 9.88152 2.07987 9.81793C2.10525 9.75435 2.14526 9.69529 2.1999 9.64075L4.59944 7.24121L1.953 4.58923C1.81767 4.45389 1.75 4.289 1.75 4.09456C1.75 3.90012 1.81767 3.73523 1.953 3.59989L3.49329 2.0596C3.62863 1.92427 3.79351 1.85811 3.98796 1.86112C4.1824 1.86404 4.34729 1.93321 4.48263 2.06864L7.14919 4.72048L9.55325 2.30752C9.64376 2.217 9.74322 2.15007 9.85163 2.10671C9.96003 2.06334 10.0733 2.04166 10.1916 2.04166C10.3097 2.04166 10.423 2.06334 10.5314 2.10671C10.6399 2.15007 10.7393 2.217 10.8297 2.30752L11.6925 3.19608C11.783 3.2865 11.849 3.38595 11.8904 3.49445C11.9319 3.60286 11.9526 3.71612 11.9526 3.83425C11.9526 3.95247 11.9319 4.06335 11.8904 4.16689C11.849 4.27043 11.783 4.36746 11.6925 4.45798L9.29965 6.86539L11.9404 9.51737C12.0757 9.65271 12.1434 9.81759 12.1434 10.012C12.1434 10.2065 12.0757 10.3714 11.9404 10.5067L10.4001 12.047C10.2648 12.1823 10.0999 12.25 9.90544 12.25C9.71099 12.25 9.5461 12.1823 9.41077 12.047L6.75879 9.40056L4.35925 11.8001C4.30471 11.8547 4.24565 11.8947 4.18206 11.9201C4.11848 11.9456 4.05154 11.9583 3.98125 11.9583H2.569Z",fill:"currentColor"})})]}),lf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM3.33333 9.33333H6.66667C6.85556 9.33333 7.01389 9.26945 7.14167 9.14167C7.26944 9.01389 7.33333 8.85556 7.33333 8.66667C7.33333 8.47778 7.26944 8.31945 7.14167 8.19167C7.01389 8.06389 6.85556 8 6.66667 8H3.33333C3.14444 8 2.98611 8.06389 2.85833 8.19167C2.73056 8.31945 2.66667 8.47778 2.66667 8.66667C2.66667 8.85556 2.73056 9.01389 2.85833 9.14167C2.98611 9.26945 3.14444 9.33333 3.33333 9.33333ZM3.33333 6.66667H8.66667C8.85556 6.66667 9.01389 6.60278 9.14167 6.475C9.26945 6.34722 9.33333 6.18889 9.33333 6C9.33333 5.81111 9.26945 5.65278 9.14167 5.525C9.01389 5.39722 8.85556 5.33333 8.66667 5.33333H3.33333C3.14444 5.33333 2.98611 5.39722 2.85833 5.525C2.73056 5.65278 2.66667 5.81111 2.66667 6C2.66667 6.18889 2.73056 6.34722 2.85833 6.475C2.98611 6.60278 3.14444 6.66667 3.33333 6.66667ZM3.33333 4H8.66667C8.85556 4 9.01389 3.93611 9.14167 3.80833C9.26945 3.68056 9.33333 3.52222 9.33333 3.33333C9.33333 3.14444 9.26945 2.98611 9.14167 2.85833C9.01389 2.73056 8.85556 2.66667 8.66667 2.66667H3.33333C3.14444 2.66667 2.98611 2.73056 2.85833 2.85833C2.73056 2.98611 2.66667 3.14444 2.66667 3.33333C2.66667 3.52222 2.73056 3.68056 2.85833 3.80833C2.98611 3.93611 3.14444 4 3.33333 4Z",fill:"currentColor"})}),cf=e=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",children:[u.jsx("mask",{id:"mask0_2638_2680",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_2638_2680)",children:u.jsx("path",{d:"M9.99732 16C9.90858 16 9.82421 15.985 9.74419 15.9551C9.66418 15.9252 9.5909 15.8765 9.52435 15.8091L6.18835 12.4277C6.06278 12.3004 6 12.1406 6 11.9483C6 11.7559 6.06278 11.5961 6.18835 11.4689C6.32145 11.3315 6.48099 11.2648 6.66697 11.2686C6.85295 11.2724 7.00873 11.3392 7.13429 11.4689L9.32114 13.674V4.68539C9.32114 4.49306 9.3864 4.33074 9.51692 4.19845C9.64744 4.06615 9.80758 4 9.99732 4C10.1871 4 10.3472 4.06615 10.4777 4.19845C10.6082 4.33074 10.6735 4.49306 10.6735 4.68539V13.674L12.849 11.4689C12.9845 11.3315 13.1447 11.2629 13.3294 11.2629C13.5143 11.2629 13.6744 11.3315 13.8099 11.4689C13.9378 11.6062 14.0012 11.7685 14 11.9558C13.9988 12.1431 13.9354 12.3004 13.8099 12.4277L10.4738 15.8091C10.4073 15.8765 10.3334 15.9252 10.2522 15.9551C10.171 15.985 10.0861 16 9.99732 16Z",fill:"currentColor"})})]}),uf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Type=Edit, Size=20x20",children:u.jsx("path",{id:"icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9243 3.3359L9.06461 9.19559C8.97523 9.28497 8.9036 9.39048 8.85353 9.50654L7.99772 11.49C7.89015 11.7394 8.14272 11.9919 8.39203 11.8843L10.3755 11.0285C10.4916 10.9785 10.5971 10.9068 10.6865 10.8175L16.5462 4.95777C16.994 4.50991 16.994 3.78377 16.5462 3.3359C16.0983 2.88804 15.3722 2.88804 14.9243 3.3359ZM14.5297 10.7363C14.5297 10.3876 14.8127 10.1047 15.1615 10.1047C15.5116 10.1047 15.7933 10.3889 15.7933 10.7363L15.7222 14.1051C15.7222 15.1499 14.8954 16 13.8506 16H5.87166C4.85054 16 4 15.1499 4 14.0814V6.0806C4 5.05918 4.85054 4.2091 5.87166 4.2091L9.68606 4.20936C10.0362 4.20936 10.3178 4.49228 10.3178 4.841C10.3178 5.18972 10.0349 5.47264 9.68606 5.47264H5.89535C5.54735 5.47264 5.26357 5.75609 5.26357 6.10428V14.1051C5.26357 14.4533 5.54735 14.7367 5.89535 14.7367H13.898C14.246 14.7367 14.5297 14.4533 14.5297 14.1051V10.7363Z",fill:"currentColor"})})}),df=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),u.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),ff=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1765 0.310088L4.72809 5.70971C4.63832 5.79868 4.56637 5.90372 4.51607 6.01926L3.74627 7.78746C3.63822 8.03565 3.89191 8.28707 4.14234 8.17999L5.92651 7.41707C6.04309 7.36722 6.14907 7.29592 6.23885 7.20695L11.6872 1.80733C12.1044 1.39388 12.1044 0.723539 11.6872 0.310088C11.27 -0.103363 10.5936 -0.103363 10.1765 0.310088ZM9.80835 7.14088C9.80835 6.81895 10.072 6.55777 10.3969 6.55777C10.723 6.55777 10.9854 6.82017 10.9854 7.14088L10.9191 10.2508C10.9191 11.2153 10.1489 12.0001 9.17571 12.0001H1.74343C0.79227 12.0001 0 11.2153 0 10.2289V2.84292C0 1.89999 0.79227 1.11523 1.74343 1.11523L5.29651 1.11548C5.62264 1.11548 5.88501 1.37666 5.88501 1.69858C5.88501 2.0205 5.62141 2.28168 5.29651 2.28168H1.7655C1.44134 2.28168 1.177 2.54335 1.177 2.86479V10.2508C1.177 10.5722 1.44134 10.8339 1.7655 10.8339H9.21985C9.54402 10.8339 9.80835 10.5722 9.80835 10.2508V7.14088Z",fill:"currentColor"})}),hf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"Episode",children:[u.jsx("path",{id:"Rectangle 4456 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 6.125H1L1 11H10V6.125ZM1 5.125C0.447715 5.125 0 5.57272 0 6.125V11C0 11.5523 0.447715 12 1 12H10C10.5523 12 11 11.5523 11 11V6.125C11 5.57272 10.5523 5.125 10 5.125H1Z",fill:"currentColor"}),u.jsx("path",{id:"Rectangle 4457 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0625 3.5625H2.0625V2.5625H12.0625C12.8909 2.5625 13.5625 3.23407 13.5625 4.0625V9.9375H12.5625V4.0625C12.5625 3.78636 12.3386 3.5625 12.0625 3.5625Z",fill:"currentColor"}),u.jsx("path",{id:"Rectangle 4458 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.125 1.5H4.125V0.5H14.125C14.9534 0.5 15.625 1.17157 15.625 2V7.875H14.625V2C14.625 1.72386 14.4011 1.5 14.125 1.5Z",fill:"currentColor"})]})}),pf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_31",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_31)",children:u.jsx("path",{d:"M4.2304 12.5416C3.33955 12.5416 2.5819 12.2297 1.95744 11.6058C1.33298 10.9821 1.02075 10.2245 1.02075 9.33331V6.59617C1.02075 6.30615 1.124 6.0579 1.3305 5.8514C1.537 5.6449 1.78526 5.54165 2.07527 5.54165H6.3829C6.67291 5.54165 6.92117 5.6449 7.12767 5.8514C7.33417 6.0579 7.43742 6.30615 7.43742 6.59617V9.33331C7.43742 10.2245 7.12563 10.9821 6.50204 11.6058C5.87846 12.2297 5.12125 12.5416 4.2304 12.5416ZM3.06242 8.40217C3.20903 8.40217 3.33357 8.35098 3.43604 8.2486C3.53842 8.14613 3.58961 8.02159 3.58961 7.87498C3.58961 7.72837 3.53842 7.60383 3.43604 7.50135C3.33357 7.39898 3.20903 7.34779 3.06242 7.34779C2.91581 7.34779 2.79131 7.39898 2.68894 7.50135C2.58647 7.60383 2.53523 7.72837 2.53523 7.87498C2.53523 8.02159 2.58647 8.14613 2.68894 8.2486C2.79131 8.35098 2.91581 8.40217 3.06242 8.40217ZM5.39575 8.40217C5.54236 8.40217 5.6669 8.35098 5.76938 8.2486C5.87175 8.14613 5.92294 8.02159 5.92294 7.87498C5.92294 7.72837 5.87175 7.60383 5.76938 7.50135C5.6669 7.39898 5.54236 7.34779 5.39575 7.34779C5.24914 7.34779 5.12465 7.39898 5.02227 7.50135C4.9198 7.60383 4.86856 7.72837 4.86856 7.87498C4.86856 8.02159 4.9198 8.14613 5.02227 8.2486C5.12465 8.35098 5.24914 8.40217 5.39575 8.40217ZM12.9791 2.51283V5.24998C12.9791 6.14122 12.6671 6.89872 12.0433 7.5225C11.4195 8.14638 10.662 8.45831 9.77075 8.45831C9.59575 8.45831 9.42318 8.4449 9.25304 8.41806C9.0829 8.39133 8.9152 8.35113 8.74992 8.29746C8.61381 8.24389 8.50686 8.15595 8.42908 8.03365C8.35131 7.91144 8.31242 7.77552 8.31242 7.6259V6.23713C8.31242 5.83628 8.19575 5.48161 7.96242 5.17313C7.72909 4.86464 7.42546 4.7104 7.05154 4.7104C6.91057 4.7104 6.79381 4.65916 6.70125 4.55669C6.6087 4.45422 6.56242 4.32972 6.56242 4.18321V2.51283C6.56242 2.22282 6.66567 1.97456 6.87217 1.76806C7.07867 1.56156 7.32693 1.45831 7.61694 1.45831H11.9246C12.2146 1.45831 12.4628 1.56156 12.6693 1.76806C12.8758 1.97456 12.9791 2.22282 12.9791 2.51283ZM8.60409 4.31883C8.7507 4.31883 8.87519 4.26765 8.97756 4.16527C9.08004 4.0628 9.13127 3.93826 9.13127 3.79165C9.13127 3.64504 9.08004 3.52049 8.97756 3.41802C8.87519 3.31565 8.7507 3.26446 8.60409 3.26446C8.45747 3.26446 8.33293 3.31565 8.23046 3.41802C8.12809 3.52049 8.0769 3.64504 8.0769 3.79165C8.0769 3.93826 8.12809 4.0628 8.23046 4.16527C8.33293 4.26765 8.45747 4.31883 8.60409 4.31883ZM10.9374 4.31883C11.084 4.31883 11.2085 4.26765 11.3109 4.16527C11.4134 4.0628 11.4646 3.93826 11.4646 3.79165C11.4646 3.64504 11.4134 3.52049 11.3109 3.41802C11.2085 3.31565 11.084 3.26446 10.9374 3.26446C10.7908 3.26446 10.6663 3.31565 10.5638 3.41802C10.4614 3.52049 10.4102 3.64504 10.4102 3.79165C10.4102 3.93826 10.4614 4.0628 10.5638 4.16527C10.6663 4.26765 10.7908 4.31883 10.9374 4.31883ZM9.77046 5.30613C9.51486 5.30613 9.26947 5.35362 9.03429 5.4486C8.79911 5.54349 8.61945 5.70051 8.49529 5.91965C8.44289 6.00938 8.4494 6.09557 8.51484 6.17821C8.58027 6.26085 8.67131 6.30217 8.78798 6.30217H10.7534C10.8663 6.30217 10.9555 6.26085 11.021 6.17821C11.0864 6.09557 11.093 6.00938 11.0407 5.91965C10.9165 5.70051 10.7377 5.54349 10.5041 5.4486C10.2706 5.35362 10.0261 5.30613 9.77046 5.30613ZM4.22909 10.3855C4.47885 10.3855 4.71685 10.3395 4.94309 10.2475C5.16932 10.1556 5.3505 10.006 5.48661 9.79881C5.54494 9.70781 5.54586 9.61686 5.48938 9.52596C5.43299 9.43496 5.34646 9.38946 5.22979 9.38946H3.22852C3.1137 9.38946 3.02756 9.43525 2.97011 9.52683C2.91274 9.61842 2.91323 9.70908 2.97156 9.79881C3.10768 10.006 3.28885 10.1556 3.51509 10.2475C3.74132 10.3395 3.97932 10.3855 4.22909 10.3855Z",fill:"currentColor"})})]}),Cf=e=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[u.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_4160_9271)",children:u.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),gf=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:"captive_portal",children:[u.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[u.jsx("path",{id:"captive_portal_2",d:"M9.99992 17.9154C8.90589 17.9154 7.87735 17.7073 6.91429 17.2912C5.9511 16.8751 5.11318 16.3107 4.40054 15.5981C3.6879 14.8854 3.12353 14.0475 2.70742 13.0843C2.29131 12.1213 2.08325 11.0927 2.08325 9.9987C2.08325 8.90467 2.29131 7.87613 2.70742 6.91307C3.12353 5.94988 3.6879 5.11196 4.40054 4.39932C5.11318 3.68668 5.9511 3.12231 6.91429 2.7062C7.87735 2.29009 8.90589 2.08203 9.99992 2.08203C11.0939 2.08203 12.1225 2.29009 13.0855 2.7062C14.0487 3.12231 14.8867 3.68668 15.5993 4.39932C16.3119 5.11196 16.8763 5.94988 17.2924 6.91307C17.7085 7.87613 17.9166 8.90467 17.9166 9.9987C17.9166 10.1429 17.9131 10.2983 17.9062 10.4649C17.8992 10.6316 17.8861 10.7871 17.8668 10.9314C17.8444 11.1088 17.7699 11.2487 17.6433 11.3512C17.5167 11.4538 17.3605 11.5052 17.1745 11.5052C17.011 11.5052 16.8717 11.4346 16.7564 11.2935C16.641 11.1525 16.5945 10.9977 16.617 10.8289C16.6448 10.6846 16.66 10.5462 16.6626 10.4137C16.6653 10.2812 16.6666 10.1429 16.6666 9.9987C16.6666 9.69425 16.6466 9.39113 16.6066 9.08932C16.5664 8.78738 16.5037 8.48689 16.4183 8.18786H13.3203C13.3727 8.48689 13.4107 8.78738 13.4343 9.08932C13.4578 9.39113 13.4695 9.69425 13.4695 9.9987C13.4695 10.1429 13.4682 10.2962 13.4655 10.4587C13.4628 10.6211 13.4544 10.7743 13.4405 10.9185C13.4182 11.0959 13.345 11.2379 13.221 11.3447C13.0971 11.4517 12.9464 11.5052 12.7691 11.5052C12.6056 11.5052 12.4628 11.4389 12.3405 11.3064C12.2182 11.1739 12.1682 11.0233 12.1905 10.8545C12.2044 10.7102 12.2128 10.5676 12.2155 10.4266C12.2182 10.2855 12.2195 10.1429 12.2195 9.9987C12.2195 9.69425 12.2078 9.39113 12.1843 9.08932C12.1607 8.78738 12.1228 8.48689 12.0705 8.18786H7.92929C7.87707 8.48689 7.83915 8.78738 7.81554 9.08932C7.79207 9.39113 7.78033 9.69425 7.78033 9.9987C7.78033 10.3031 7.79207 10.6063 7.81554 10.9081C7.83915 11.21 7.87707 11.5105 7.92929 11.8095H10.3685C10.5458 11.8095 10.6944 11.8694 10.8141 11.9891C10.9337 12.1087 10.9935 12.2572 10.9935 12.4345C10.9935 12.6119 10.9337 12.7604 10.8141 12.8802C10.6944 12.9997 10.5458 13.0595 10.3685 13.0595H8.21617C8.39895 13.7155 8.63693 14.3445 8.93013 14.9466C9.22346 15.5487 9.58006 16.1157 9.99992 16.6477C10.1495 16.6477 10.2991 16.6485 10.4487 16.6502C10.5983 16.6517 10.7451 16.6429 10.8893 16.6237C11.0614 16.6012 11.2051 16.6455 11.3203 16.7566C11.4358 16.8677 11.4935 17.0093 11.4935 17.1814C11.4935 17.3672 11.4457 17.5222 11.3501 17.6462C11.2544 17.7701 11.1179 17.8432 10.9405 17.8656C10.7964 17.8849 10.641 17.898 10.4743 17.9049C10.3076 17.9119 10.1495 17.9154 9.99992 17.9154ZM3.58159 11.8095H6.6795C6.62714 11.5105 6.58915 11.21 6.56554 10.9081C6.54207 10.6063 6.53033 10.3031 6.53033 9.9987C6.53033 9.69425 6.54207 9.39113 6.56554 9.08932C6.58915 8.78738 6.62714 8.48689 6.6795 8.18786H3.58159C3.49617 8.48689 3.43339 8.78738 3.39325 9.08932C3.35325 9.39113 3.33325 9.69425 3.33325 9.9987C3.33325 10.3031 3.35325 10.6063 3.39325 10.9081C3.43339 11.21 3.49617 11.5105 3.58159 11.8095ZM8.38617 16.4345C8.05075 15.9143 7.76256 15.3715 7.52159 14.8064C7.28061 14.2413 7.08429 13.659 6.93263 13.0595H4.10575C4.54047 13.9174 5.1302 14.6413 5.87492 15.231C6.61964 15.8209 7.45672 16.222 8.38617 16.4345ZM4.10575 6.93786H6.93263C7.0736 6.33314 7.26325 5.74821 7.50159 5.18307C7.73978 4.61779 8.03464 4.07773 8.38617 3.56286C7.45131 3.77009 6.6129 4.16856 5.87096 4.75828C5.12888 5.348 4.54047 6.07453 4.10575 6.93786ZM8.21617 6.93786H11.7837C11.6063 6.28189 11.3669 5.65557 11.0655 5.05891C10.7643 4.4621 10.4091 3.89238 9.99992 3.34974C9.58534 3.88168 9.22874 4.4487 8.93013 5.05078C8.63152 5.65286 8.39353 6.28189 8.21617 6.93786ZM13.0672 6.93786H15.8941C15.4594 6.07453 14.871 5.34668 14.1289 4.75432C13.3869 4.16182 12.5485 3.76467 11.6137 3.56286C11.9491 4.08314 12.2333 4.62717 12.4662 5.19495C12.6991 5.76286 12.8994 6.34384 13.0672 6.93786Z",fill:"currentColor"}),u.jsx("path",{id:"travel_explore",d:"M18.0634 18.7783L16.8556 17.5822C16.6378 17.7211 16.4031 17.8331 16.1517 17.9184C15.9003 18.0038 15.6342 18.0465 15.3535 18.0465C14.6044 18.0465 13.9694 17.7857 13.4484 17.2642C12.9275 16.7428 12.667 16.1071 12.667 15.3572C12.667 14.6074 12.9275 13.9717 13.4484 13.4502C13.9694 12.9287 14.6044 12.668 15.3535 12.668C16.1026 12.668 16.7376 12.9287 17.2586 13.4502C17.7795 13.9717 18.04 14.6074 18.04 15.3572C18.04 15.6425 17.9963 15.9121 17.9089 16.166C17.8215 16.4198 17.7063 16.6557 17.5633 16.8738L18.7711 18.0698C18.8684 18.1628 18.917 18.2798 18.917 18.4208C18.917 18.5618 18.8684 18.6809 18.7711 18.7783C18.6781 18.8714 18.5611 18.918 18.4203 18.918C18.2796 18.918 18.1606 18.8714 18.0634 18.7783ZM15.3535 17.038C15.8236 17.038 16.221 16.8755 16.5456 16.5506C16.8703 16.2256 17.0326 15.8278 17.0326 15.3572C17.0326 14.8866 16.8703 14.4888 16.5456 14.1639C16.221 13.8389 15.8236 13.6764 15.3535 13.6764C14.8834 13.6764 14.486 13.8389 14.1614 14.1639C13.8367 14.4888 13.6744 14.8866 13.6744 15.3572C13.6744 15.8278 13.8367 16.2256 14.1614 16.5506C14.486 16.8755 14.8834 17.038 15.3535 17.038Z",fill:"currentColor"})]})]})}),mf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M9.5002 0.270145C10.3742 0.270145 11.1128 0.571885 11.7161 1.17537C12.3193 1.77868 12.6209 2.51732 12.6209 3.39129C12.6209 4.17273 12.3716 4.85117 11.873 5.42662C11.3744 6.00189 10.7483 6.34792 9.99474 6.46469L9.99474 9.0052L13.8388 9.0052C14.2785 9.0052 14.6549 9.16172 14.9679 9.47476C15.2809 9.78779 15.4375 10.1642 15.4375 10.6039L15.4375 12.564L17.0171 12.564C17.2435 12.564 17.4334 12.6405 17.5866 12.7936C17.7396 12.9468 17.8162 13.1366 17.8162 13.3631L17.8162 17.5042C17.8162 17.7389 17.7396 17.9321 17.5866 18.0836C17.4334 18.2352 17.2435 18.311 17.0171 18.311L12.8759 18.311C12.6412 18.311 12.4481 18.2345 12.2965 18.0814C12.1449 17.9282 12.0692 17.7384 12.0692 17.5119L12.0692 13.3707C12.0692 13.136 12.1457 12.9429 12.2987 12.7913C12.452 12.6398 12.6418 12.564 12.8682 12.564L14.4479 12.564L14.4479 10.6039C14.4479 10.4262 14.3908 10.2803 14.2767 10.166C14.1624 10.0518 14.0164 9.99478 13.8388 9.99478L5.16112 9.99478C4.98349 9.99478 4.83753 10.0518 4.72323 10.166C4.6091 10.2803 4.55203 10.4262 4.55203 10.6039L4.55203 12.6115C5.3056 12.7283 5.93168 13.0743 6.43026 13.6496C6.92885 14.225 7.17814 14.9034 7.17814 15.6849C7.17814 16.5587 6.87648 17.2973 6.27317 17.9008C5.66969 18.5041 4.93096 18.8058 4.05699 18.8058C3.18303 18.8058 2.44439 18.5041 1.84107 17.9008C1.23792 17.2973 0.936342 16.5587 0.936343 15.6849C0.936343 14.9034 1.18564 14.225 1.68422 13.6496C2.18281 13.0743 2.80888 12.7283 3.56245 12.6115L3.56245 10.6039C3.56245 10.1642 3.71897 9.78779 4.03201 9.47476C4.34504 9.16172 4.72142 9.0052 5.16112 9.0052L9.00516 9.0052L9.00516 6.46469C8.25159 6.34792 7.62552 6.00189 7.12693 5.42662C6.62835 4.85117 6.37905 4.17273 6.37905 3.39129C6.37905 2.51732 6.68071 1.77868 7.28403 1.17537C7.88751 0.571885 8.62623 0.270145 9.5002 0.270145Z",fill:"currentColor"})}),vf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),xf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"filter_alt_off",children:[u.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1543_23288)",children:u.jsx("path",{id:"filter_alt_off_2",d:"M14.8 11.9748L6.82503 3.9998H19C19.4167 3.9998 19.7167 4.18314 19.9 4.5498C20.0834 4.91647 20.05 5.26647 19.8 5.5998L14.8 11.9748ZM19.775 22.5998L14 16.8248V18.9998C14 19.2831 13.9042 19.5206 13.7125 19.7123C13.5209 19.904 13.2834 19.9998 13 19.9998H11C10.7167 19.9998 10.4792 19.904 10.2875 19.7123C10.0959 19.5206 10 19.2831 10 18.9998V12.8248L1.40002 4.2248L2.80002 2.7998L21.2 21.1998L19.775 22.5998Z",fill:"currentColor"})})]})}),wf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22315",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22315)",children:u.jsx("path",{d:"M7.02156 2.82555C8.05212 2.82555 9.02376 3.04731 9.93648 3.49084C10.8492 3.93437 11.6095 4.57535 12.2173 5.4138C12.2947 5.5152 12.3195 5.60635 12.2917 5.68724C12.2639 5.76803 12.2161 5.83623 12.1485 5.89184C12.0809 5.94512 12.003 5.96874 11.9147 5.96271C11.8264 5.95669 11.7508 5.90895 11.6879 5.81951C11.1625 5.06817 10.4856 4.49369 9.6575 4.09605C8.82926 3.69841 7.95062 3.49842 7.02156 3.49609C6.09241 3.49376 5.21989 3.69258 4.404 4.09255C3.58811 4.49252 2.91606 5.06934 2.38785 5.82301C2.32019 5.92451 2.2411 5.98012 2.15058 5.98984C2.05997 5.99956 1.98088 5.97895 1.91331 5.92801C1.83592 5.87473 1.7876 5.80638 1.76835 5.72296C1.7491 5.63964 1.77098 5.5556 1.83398 5.47082C2.43209 4.63276 3.18741 3.9824 4.09994 3.51971C5.01247 3.05694 5.98634 2.82555 7.02156 2.82555ZM7.02156 4.20338C8.3364 4.20338 9.46301 4.64492 10.4014 5.52798C11.3398 6.41115 11.809 7.50043 11.809 8.79582C11.809 9.2936 11.6341 9.7117 11.2843 10.0501C10.9345 10.3887 10.5082 10.5579 10.0055 10.5579C9.50263 10.5579 9.07144 10.3916 8.71192 10.0589C8.35239 9.72619 8.17263 9.31212 8.17263 8.81667C8.17263 8.50517 8.06053 8.24238 7.83633 8.0283C7.61204 7.81421 7.34162 7.70717 7.02506 7.70717C6.70841 7.70717 6.43799 7.81421 6.21379 8.0283C5.9895 8.24238 5.87735 8.50517 5.87735 8.81667C5.87735 9.75282 6.14992 10.5369 6.69504 11.1688C7.24007 11.8008 7.9724 12.2373 8.89202 12.4784C8.99109 12.5052 9.05754 12.5573 9.09137 12.6347C9.12521 12.7121 9.13124 12.7943 9.10946 12.8813C9.08768 12.9587 9.04359 13.0258 8.97719 13.0826C8.91069 13.1393 8.82324 13.1567 8.71483 13.1349C7.65715 12.8892 6.80806 12.382 6.16756 11.6135C5.52706 10.8448 5.20681 9.91256 5.20681 8.81667C5.20681 8.31666 5.38415 7.89496 5.73881 7.55157C6.09348 7.20828 6.52223 7.03663 7.02506 7.03663C7.5278 7.03663 7.9565 7.20599 8.31117 7.54471C8.66583 7.88334 8.84317 8.30037 8.84317 8.79582C8.84317 9.10498 8.95774 9.36666 9.1869 9.58084C9.41595 9.79492 9.68881 9.90196 10.0055 9.90196C10.322 9.90196 10.5906 9.79492 10.8112 9.58084C11.0317 9.36666 11.1419 9.10498 11.1419 8.79582C11.1419 7.68661 10.7386 6.75323 9.93196 5.99567C9.1254 5.23812 8.15897 4.85934 7.03265 4.85934C5.90633 4.85934 4.94159 5.24103 4.13844 6.00442C3.33529 6.76781 2.93371 7.70153 2.93371 8.80559C2.93371 9.08083 2.95617 9.38878 3.00108 9.72944C3.046 10.0702 3.14298 10.4518 3.29202 10.8742C3.32585 10.9757 3.32401 11.0657 3.28648 11.1442C3.24895 11.2227 3.18663 11.2789 3.09952 11.3128C3.00784 11.3466 2.92088 11.3442 2.83863 11.3055C2.75647 11.2668 2.69615 11.1992 2.65765 11.1029C2.52115 10.7493 2.4213 10.3842 2.3581 10.0075C2.29491 9.63091 2.26331 9.23395 2.26331 8.81667C2.26331 7.51438 2.72949 6.4199 3.66185 5.53324C4.59422 4.64667 5.71412 4.20338 7.02156 4.20338ZM7.02506 1.40338C7.65195 1.40338 8.26304 1.47873 8.85833 1.62942C9.45372 1.78012 10.0297 1.9976 10.5862 2.28188C10.6877 2.3374 10.7475 2.4056 10.7655 2.48648C10.7836 2.56728 10.7758 2.64637 10.7419 2.72376C10.7058 2.80114 10.6478 2.86103 10.5681 2.90342C10.4885 2.94571 10.3954 2.9391 10.2888 2.88359C9.7782 2.61876 9.24883 2.41702 8.70069 2.27838C8.15255 2.13974 7.59401 2.07042 7.02506 2.07042C6.46117 2.07042 5.90642 2.13605 5.36081 2.2673C4.8152 2.39855 4.29448 2.60398 3.79865 2.88359C3.70687 2.9391 3.61572 2.95412 3.52521 2.92865C3.4346 2.90328 3.3664 2.84703 3.3206 2.75992C3.27938 2.67748 3.27078 2.59654 3.29479 2.51711C3.3189 2.43758 3.37451 2.37118 3.46163 2.3179C4.01074 2.01467 4.58644 1.78644 5.18873 1.63321C5.79112 1.47999 6.40323 1.40338 7.02506 1.40338ZM7.02506 5.61446C7.93156 5.61446 8.71051 5.92178 9.3619 6.53642C10.0133 7.15096 10.339 7.9041 10.339 8.79582C10.339 8.89955 10.3093 8.98399 10.25 9.04913C10.1907 9.11427 10.1092 9.14684 10.0055 9.14684C9.90901 9.14684 9.82876 9.11427 9.76469 9.04913C9.70052 8.98399 9.66844 8.89955 9.66844 8.79582C9.66844 8.08522 9.40793 7.48852 8.88692 7.00571C8.3659 6.52291 7.74529 6.28151 7.02506 6.28151C6.30241 6.28151 5.68485 6.52524 5.1724 7.01271C4.66004 7.50019 4.40385 8.10151 4.40385 8.81667C4.40385 9.5856 4.53297 10.2441 4.79119 10.7923C5.04951 11.3404 5.44 11.8904 5.96267 12.4422C6.03033 12.5099 6.06475 12.5879 6.06592 12.6762C6.06708 12.7643 6.03733 12.8411 5.97667 12.9064C5.909 12.9787 5.82699 13.0131 5.73065 13.0097C5.6342 13.0062 5.55219 12.9706 5.48463 12.9029C4.91101 12.3048 4.47628 11.6864 4.18044 11.0476C3.88469 10.409 3.73681 9.66533 3.73681 8.81667C3.73681 7.92038 4.05765 7.16258 4.69931 6.54328C5.34098 5.92407 6.11623 5.61446 7.02506 5.61446ZM7.01398 8.4623C7.11538 8.4623 7.19632 8.49613 7.25679 8.5638C7.31726 8.63137 7.3475 8.71104 7.3475 8.80282C7.3475 9.55055 7.6065 10.1479 8.1245 10.5948C8.6425 11.0417 9.255 11.2652 9.962 11.2652C10.0297 11.2652 10.1187 11.2592 10.229 11.2471C10.3395 11.2351 10.4519 11.2217 10.5662 11.2069C10.663 11.192 10.7465 11.2099 10.8167 11.2607C10.8868 11.3114 10.9293 11.3852 10.9442 11.4821C10.959 11.5737 10.9397 11.6505 10.8864 11.7123C10.8332 11.7742 10.7653 11.8171 10.6829 11.8413C10.5172 11.8899 10.3676 11.9178 10.234 11.925C10.1004 11.9321 10.0097 11.9356 9.962 11.9356C9.07115 11.9356 8.30149 11.6469 7.65302 11.0694C7.00465 10.4919 6.68046 9.73635 6.68046 8.80282C6.68046 8.71104 6.71065 8.63137 6.77102 8.5638C6.83149 8.49613 6.91248 8.4623 7.01398 8.4623Z",fill:"currentColor"})})]}),yf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M4.5 6.04386L7.83333 2.83398V13.6673",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M15.5 13.9581L12.1667 17.168L12.1667 6.33463",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),bf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_23",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_23)",children:u.jsx("path",{d:"M0.729248 11.2291V10.3418C0.729248 10.2273 0.751123 10.1166 0.794873 10.0095C0.838526 9.9025 0.900408 9.80834 0.980519 9.72706L1.89591 8.81167V5.18931L1.03666 4.32904C0.940901 4.23328 0.865748 4.12094 0.811206 3.99202C0.756567 3.8631 0.729248 3.72753 0.729248 3.58529V2.33331C0.729248 2.20935 0.771199 2.10547 0.855102 2.02167C0.939005 1.93776 1.04294 1.89581 1.16689 1.89581C1.29095 1.89581 1.39483 1.93776 1.47854 2.02167C1.56235 2.10547 1.60425 2.20935 1.60425 2.33331V3.06248H3.06258V2.33331C3.06258 2.20935 3.10453 2.10547 3.18844 2.02167C3.27234 1.93776 3.37627 1.89581 3.50023 1.89581C3.62428 1.89581 3.72816 1.93776 3.81187 2.02167C3.89568 2.10547 3.93758 2.20935 3.93758 2.33331V3.06248H5.39592V2.33331C5.39592 2.20935 5.43787 2.10547 5.52177 2.02167C5.60567 1.93776 5.7096 1.89581 5.83356 1.89581C5.95762 1.89581 6.0615 1.93776 6.14521 2.02167C6.22901 2.10547 6.27092 2.20935 6.27092 2.33331V3.58529C6.27092 3.72753 6.2436 3.8631 6.18896 3.99202C6.13442 4.12094 6.05926 4.23328 5.9635 4.32904L5.10425 5.18829V5.97915H8.89592V5.18829L8.03667 4.32904C7.9409 4.23328 7.86575 4.12094 7.81121 3.99202C7.75657 3.8631 7.72925 3.72753 7.72925 3.58529V2.33331C7.72925 2.20935 7.7712 2.10547 7.8551 2.02167C7.93901 1.93776 8.04294 1.89581 8.16689 1.89581C8.29095 1.89581 8.39483 1.93776 8.47854 2.02167C8.56235 2.10547 8.60425 2.20935 8.60425 2.33331V3.06248H10.0626V2.33331C10.0626 2.20935 10.1045 2.10547 10.1884 2.02167C10.2723 1.93776 10.3763 1.89581 10.5002 1.89581C10.6243 1.89581 10.7282 1.93776 10.8119 2.02167C10.8957 2.10547 10.9376 2.20935 10.9376 2.33331V3.06248H12.3959V2.33331C12.3959 2.20935 12.4379 2.10547 12.5218 2.02167C12.6057 1.93776 12.7096 1.89581 12.8336 1.89581C12.9576 1.89581 13.0615 1.93776 13.1452 2.02167C13.229 2.10547 13.2709 2.20935 13.2709 2.33331V3.58529C13.2709 3.72753 13.2436 3.8631 13.189 3.99202C13.1344 4.12094 13.0593 4.23328 12.9635 4.32904L12.1042 5.18931V8.81167L13.0196 9.72706C13.0998 9.80834 13.1616 9.9025 13.2053 10.0095C13.249 10.1166 13.2709 10.2273 13.2709 10.3418V11.2291C13.2709 11.4677 13.1847 11.6732 13.0124 11.8456C12.84 12.018 12.6345 12.1041 12.3959 12.1041H8.83977C8.69044 12.1041 8.56521 12.0536 8.4641 11.9526C8.36309 11.8515 8.31258 11.7263 8.31258 11.577V10.5C8.31258 10.139 8.18396 9.83002 7.92671 9.57306C7.66946 9.31601 7.36024 9.18748 6.99906 9.18748C6.63778 9.18748 6.32886 9.31601 6.07229 9.57306C5.81582 9.83002 5.68758 10.139 5.68758 10.5V11.5742C5.68758 11.7263 5.63707 11.8527 5.53606 11.9532C5.43495 12.0538 5.30973 12.1041 5.16039 12.1041H1.60425C1.36566 12.1041 1.16019 12.018 0.987811 11.8456C0.815436 11.6732 0.729248 11.4677 0.729248 11.2291Z",fill:"currentColor"})})]}),_f=e=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[u.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_3130_18463)",children:u.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),Ef=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22375",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22375)",children:u.jsx("path",{d:"M3.2509 12.3541C2.86201 12.3541 2.54458 12.2487 2.29861 12.0378C2.05254 11.8269 1.9295 11.5475 1.9295 11.1999C1.9295 10.9374 1.99809 10.7263 2.13528 10.5665C2.27255 10.4069 2.44702 10.3271 2.65867 10.3271C2.8606 10.3271 3.03259 10.3966 3.17463 10.5358C3.31677 10.6749 3.38784 10.8424 3.38784 11.0383C3.38784 11.1168 3.37044 11.1858 3.33563 11.2452C3.30082 11.3047 3.258 11.3513 3.20715 11.3849C3.22582 11.4036 3.25202 11.4195 3.28575 11.4326C3.31939 11.4457 3.35678 11.4522 3.3979 11.4522C3.52507 11.4462 3.62905 11.3878 3.70984 11.2767C3.79053 11.1656 3.85557 10.9945 3.90496 10.7634L4.81482 5.93748H3.55613C3.43198 5.93748 3.328 5.89558 3.24419 5.81177C3.16048 5.72806 3.11863 5.62413 3.11863 5.49998C3.11863 5.37583 3.16048 5.2719 3.24419 5.18819C3.328 5.10438 3.43198 5.06248 3.55613 5.06248H4.97742L5.27244 3.46735C5.34798 3.05679 5.5172 2.73386 5.78009 2.49858C6.04298 2.2634 6.36546 2.14581 6.74755 2.14581C7.13051 2.14581 7.44497 2.2582 7.69094 2.48298C7.93701 2.70766 8.06005 2.99087 8.06005 3.3326C8.06005 3.58315 7.99146 3.78829 7.85428 3.94802C7.717 4.10766 7.54253 4.18748 7.33088 4.18748C7.12895 4.18748 6.95696 4.11884 6.81492 3.98156C6.67278 3.84438 6.60171 3.67483 6.60171 3.4729C6.60171 3.39434 6.61912 3.32536 6.65392 3.26596C6.68873 3.20646 6.7334 3.15989 6.78794 3.12625C6.76928 3.10379 6.7403 3.08508 6.70103 3.0701C6.66175 3.05523 6.62155 3.04779 6.58042 3.04779C6.45851 3.05975 6.36148 3.11322 6.28934 3.20821C6.2172 3.30319 6.16203 3.44378 6.12382 3.62996L5.8759 5.06248H8.11051C8.23466 5.06248 8.33864 5.10438 8.42244 5.18819C8.50615 5.2719 8.54801 5.37583 8.54801 5.49998C8.54801 5.61217 8.51213 5.70867 8.44038 5.78946C8.36853 5.87015 8.27953 5.91648 8.17336 5.92844H7.89846L8.98551 7.16817L10.0725 5.92844H9.7978C9.69153 5.91648 9.60253 5.87015 9.53078 5.78946C9.45893 5.70867 9.42301 5.61217 9.42301 5.49998C9.42301 5.37583 9.46491 5.2719 9.54871 5.18819C9.63242 5.10438 9.73635 5.06248 9.86051 5.06248H11.6105C11.7347 5.06248 11.8386 5.10438 11.9224 5.18819C12.0062 5.2719 12.048 5.37583 12.048 5.49998C12.048 5.62413 12.0062 5.72806 11.9224 5.81177C11.8386 5.89558 11.7347 5.93748 11.6105 5.93748H11.2224L9.56782 7.83331L11.228 9.72915H11.6105C11.7347 9.72915 11.8386 9.77105 11.9224 9.85485C12.0062 9.93856 12.048 10.0425 12.048 10.1666C12.048 10.2908 12.0062 10.3947 11.9224 10.4784C11.8386 10.5622 11.7347 10.6041 11.6105 10.6041H9.86051C9.73635 10.6041 9.63242 10.5622 9.54871 10.4784C9.46491 10.3947 9.42301 10.2908 9.42301 10.1666C9.42301 10.0545 9.45893 9.95796 9.53078 9.87717C9.60253 9.79647 9.69153 9.75015 9.7978 9.73819H10.0725L8.98551 8.48956L7.89846 9.73819H8.17336C8.27953 9.75015 8.36853 9.79647 8.44038 9.87717C8.51213 9.95796 8.54801 10.0545 8.54801 10.1666C8.54801 10.2908 8.50615 10.3947 8.42244 10.4784C8.33864 10.5622 8.23466 10.6041 8.11051 10.6041H6.3605C6.23635 10.6041 6.13242 10.5622 6.04871 10.4784C5.96491 10.3947 5.923 10.2908 5.923 10.1666C5.923 10.0425 5.96491 9.93856 6.04871 9.85485C6.13242 9.77105 6.23635 9.72915 6.3605 9.72915H6.74871L8.40334 7.83331L6.74871 5.93748H5.70761L4.77428 10.8363C4.68162 11.3337 4.50648 11.711 4.24884 11.9683C3.9912 12.2255 3.65855 12.3541 3.2509 12.3541Z",fill:"currentColor"})})]}),$f=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.00261 14C6.03462 14 5.12456 13.8163 4.27241 13.449C3.42026 13.0816 2.67901 12.583 2.04865 11.9533C1.4183 11.3235 0.919269 10.5829 0.551561 9.73159C0.183854 8.88024 0 7.97058 0 7.00261C0 6.03462 0.183679 5.12456 0.551036 4.27241C0.918407 3.42026 1.41698 2.67901 2.04674 2.04865C2.67651 1.4183 3.41706 0.919269 4.26841 0.551562C5.11976 0.183854 6.02942 0 6.99739 0C7.96538 0 8.87544 0.183679 9.72759 0.551036C10.5797 0.918406 11.321 1.41697 11.9514 2.04674C12.5817 2.67651 13.0807 3.41706 13.4484 4.26841C13.8161 5.11976 14 6.02942 14 6.99739C14 7.96538 13.8163 8.87544 13.449 9.72759C13.0816 10.5797 12.583 11.321 11.9533 11.9514C11.3235 12.5817 10.5829 13.0807 9.73159 13.4484C8.88024 13.8161 7.97058 14 7.00261 14ZM6.22222 13.1833V11.6667C5.79444 11.6667 5.42824 11.5144 5.12361 11.2097C4.81898 10.9051 4.66667 10.5389 4.66667 10.1111V9.33333L0.933333 5.6C0.894445 5.83333 0.858796 6.06667 0.826389 6.3C0.793981 6.53333 0.777778 6.76667 0.777778 7C0.777778 8.56852 1.29306 9.94259 2.32361 11.1222C3.35417 12.3019 4.6537 12.9889 6.22222 13.1833ZM11.5889 11.2C11.8481 10.9148 12.0815 10.6069 12.2889 10.2764C12.4963 9.94583 12.6681 9.60231 12.8042 9.24583C12.9403 8.88935 13.044 8.52315 13.1153 8.14722C13.1866 7.7713 13.2222 7.38889 13.2222 7C13.2222 5.72211 12.8715 4.55506 12.17 3.49885C11.4685 2.44264 10.5229 1.68121 9.33333 1.21454V1.55556C9.33333 1.98333 9.18102 2.34954 8.87639 2.65417C8.57176 2.9588 8.20556 3.11111 7.77778 3.11111H6.22222V4.66667C6.22222 4.88704 6.14769 5.07176 5.99861 5.22083C5.84954 5.36991 5.66481 5.44444 5.44444 5.44444H3.88889V7H8.55556C8.77593 7 8.96065 7.07454 9.10972 7.22361C9.2588 7.37269 9.33333 7.55741 9.33333 7.77778V10.1111H10.1111C10.4481 10.1111 10.7528 10.2116 11.025 10.4125C11.2972 10.6134 11.4852 10.8759 11.5889 11.2Z",fill:"currentColor"})}),kf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22441",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22441)",children:u.jsx("path",{d:"M10.8837 12.5271C10.8134 12.5271 10.748 12.5159 10.6874 12.4934C10.6267 12.471 10.5691 12.4325 10.5146 12.3779L7.57328 9.44214C7.51864 9.3875 7.48009 9.3299 7.45764 9.26933C7.43528 9.20876 7.42409 9.14333 7.42409 9.07304C7.42409 9.00274 7.43528 8.93731 7.45764 8.87674C7.48009 8.81618 7.51864 8.75862 7.57328 8.70408L8.67826 7.5991C8.7328 7.54446 8.79036 7.50591 8.85093 7.48345C8.9115 7.46109 8.97693 7.44991 9.04722 7.44991C9.11751 7.44991 9.18294 7.46109 9.24351 7.48345C9.30418 7.50591 9.36178 7.54446 9.41632 7.5991L12.3576 10.5404C12.4123 10.595 12.4508 10.6525 12.4733 10.7131C12.4956 10.7737 12.5068 10.8392 12.5068 10.9095C12.5068 10.9798 12.4956 11.0452 12.4733 11.1058C12.4508 11.1664 12.4123 11.2239 12.3576 11.2785L11.2527 12.3779C11.1981 12.4325 11.1406 12.471 11.08 12.4934C11.0194 12.5159 10.954 12.5271 10.8837 12.5271ZM3.10174 12.536C3.03145 12.536 2.96451 12.5233 2.90093 12.4979C2.83744 12.4725 2.77838 12.4325 2.72374 12.3779L1.6278 11.2875C1.57316 11.2329 1.53316 11.1738 1.50778 11.1103C1.48231 11.0467 1.46957 10.9798 1.46957 10.9095C1.46957 10.8392 1.48231 10.7728 1.50778 10.7103C1.53316 10.6479 1.57316 10.5894 1.6278 10.5347L4.67455 7.48797H5.90291L6.37628 7.0146L3.93635 4.57466H3.10509L1.48634 2.95591L2.93243 1.50997L4.55118 3.12872V3.95997L6.99097 6.39991L8.71632 4.67456L7.86495 3.82304L8.60301 3.08497H7.11784L6.79366 2.76633L8.65682 0.903015L8.97547 1.22166V2.71252L9.71353 1.97445L11.9079 4.15743C12.0619 4.30774 12.178 4.47899 12.2561 4.6712C12.3343 4.86341 12.3734 5.0668 12.3734 5.28137C12.3734 5.46988 12.3409 5.65145 12.2758 5.82606C12.2108 6.00067 12.1162 6.15938 11.992 6.3022L10.7749 5.08508L9.95255 5.90743L9.33451 5.28925L6.51205 8.1117V9.34225L3.47084 12.3779C3.4163 12.4325 3.3587 12.4725 3.29803 12.4979C3.23746 12.5233 3.17203 12.536 3.10174 12.536Z",fill:"currentColor"})})]}),Sf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22444",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22444)",children:u.jsx("path",{d:"M6.13623 11.9584C5.99341 11.9584 5.87169 11.908 5.77107 11.8074C5.67054 11.7069 5.62028 11.5852 5.62028 11.4423V7.44306H8.5368V11.4423C8.5368 11.5852 8.48653 11.7069 8.386 11.8074C8.28538 11.908 8.16366 11.9584 8.02084 11.9584H6.13623ZM5.62028 6.56252V4.37502H3.53821C3.37216 4.37502 3.23921 4.31071 3.13936 4.18208C3.03951 4.05346 3.01467 3.90797 3.06484 3.7456C3.22107 3.23412 3.52018 2.82228 3.96215 2.5101C4.40422 2.19783 4.89709 2.04169 5.44075 2.04169H8.02084C8.16366 2.04169 8.28538 2.092 8.386 2.19262C8.48653 2.29315 8.5368 2.41487 8.5368 2.55779V3.758L10.0355 2.25927C10.1021 2.19277 10.1792 2.13988 10.2667 2.1006C10.3542 2.06133 10.445 2.04169 10.5392 2.04169H10.6738C10.8017 2.04169 10.9094 2.08359 10.9969 2.1674C11.0844 2.2511 11.1281 2.35503 11.1281 2.47919V5.91196C11.1281 6.03601 11.0844 6.13994 10.9969 6.22375C10.9094 6.30746 10.8017 6.34931 10.6738 6.34931H10.5392C10.445 6.34931 10.3542 6.32972 10.2667 6.29054C10.1792 6.25126 10.1021 6.19833 10.0355 6.13173L8.5368 4.633V6.56252H5.62028Z",fill:"currentColor"})})]}),jf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),Lf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),Mf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M8.95833 14.0013C9.25 14.0013 9.49653 13.9006 9.69792 13.6992C9.89931 13.4978 10 13.2513 10 12.9596C10 12.668 9.89931 12.4214 9.69792 12.2201C9.49653 12.0187 9.25 11.918 8.95833 11.918C8.66667 11.918 8.42014 12.0187 8.21875 12.2201C8.01736 12.4214 7.91667 12.668 7.91667 12.9596C7.91667 13.2513 8.01736 13.4978 8.21875 13.6992C8.42014 13.9006 8.66667 14.0013 8.95833 14.0013ZM9 17.3346C7.84722 17.3346 6.76389 17.1159 5.75 16.6784C4.73611 16.2409 3.85417 15.6471 3.10417 14.8971C2.35417 14.1471 1.76042 13.2652 1.32292 12.2513C0.885416 11.2374 0.666666 10.1541 0.666666 9.0013C0.666666 7.84852 0.885416 6.76519 1.32292 5.7513C1.76042 4.73741 2.35417 3.85547 3.10417 3.10547C3.85417 2.35547 4.73611 1.76172 5.75 1.32422C6.76389 0.886719 7.84722 0.667969 9 0.667969C10.1528 0.667969 11.2361 0.886719 12.25 1.32422C13.2639 1.76172 14.1458 2.35547 14.8958 3.10547C15.6458 3.85547 16.2396 4.73741 16.6771 5.7513C17.1146 6.76519 17.3333 7.84852 17.3333 9.0013C17.3333 10.1541 17.1146 11.2374 16.6771 12.2513C16.2396 13.2652 15.6458 14.1471 14.8958 14.8971C14.1458 15.6471 13.2639 16.2409 12.25 16.6784C11.2361 17.1159 10.1528 17.3346 9 17.3346ZM9.08333 5.41797C9.43056 5.41797 9.73264 5.52908 9.98958 5.7513C10.2465 5.97352 10.375 6.2513 10.375 6.58464C10.375 6.89019 10.2812 7.16102 10.0937 7.39714C9.90625 7.63325 9.69444 7.85547 9.45833 8.0638C9.13889 8.34158 8.85764 8.64714 8.61458 8.98047C8.37153 9.3138 8.25 9.6888 8.25 10.1055C8.25 10.2999 8.32292 10.4631 8.46875 10.5951C8.61458 10.727 8.78472 10.793 8.97917 10.793C9.1875 10.793 9.36458 10.7235 9.51042 10.5846C9.65625 10.4457 9.75 10.2721 9.79167 10.0638C9.84722 9.77214 9.97222 9.51172 10.1667 9.28255C10.3611 9.05339 10.5694 8.83464 10.7917 8.6263C11.1111 8.32075 11.3854 7.98741 11.6146 7.6263C11.8437 7.26519 11.9583 6.86241 11.9583 6.41797C11.9583 5.70964 11.6701 5.12977 11.0937 4.67839C10.5174 4.227 9.84722 4.0013 9.08333 4.0013C8.55555 4.0013 8.05208 4.11241 7.57292 4.33464C7.09375 4.55686 6.72917 4.89714 6.47917 5.35547C6.38194 5.52214 6.35069 5.69922 6.38542 5.88672C6.42014 6.07422 6.51389 6.21658 6.66667 6.3138C6.86111 6.42491 7.0625 6.45964 7.27083 6.41797C7.47917 6.3763 7.65278 6.25825 7.79167 6.0638C7.94444 5.85547 8.13542 5.69575 8.36458 5.58464C8.59375 5.47352 8.83333 5.41797 9.08333 5.41797Z",fill:"currentColor"})}),Of=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_19",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_19)",children:u.jsx("path",{d:"M2.625 11.0833V5.923C2.625 5.75607 2.66233 5.59794 2.737 5.44861C2.81176 5.29918 2.91501 5.17614 3.04675 5.0795L6.36737 2.57788C6.55161 2.4373 6.76219 2.367 6.99913 2.367C7.23606 2.367 7.44722 2.4373 7.63263 2.57788L10.9532 5.0795C11.085 5.17614 11.1882 5.29918 11.263 5.44861C11.3377 5.59794 11.375 5.75607 11.375 5.923V11.0833C11.375 11.3219 11.2888 11.5274 11.1164 11.6998C10.9441 11.8721 10.7386 11.9583 10.5 11.9583H8.63785C8.48842 11.9583 8.3632 11.9078 8.26219 11.8067C8.16108 11.7056 8.11052 11.5804 8.11052 11.431V8.58169C8.11052 8.43236 8.06001 8.30714 7.959 8.20603C7.85799 8.10501 7.73276 8.0545 7.58333 8.0545H6.41667C6.26724 8.0545 6.14201 8.10501 6.041 8.20603C5.93999 8.30714 5.88948 8.43236 5.88948 8.58169V11.431C5.88948 11.5804 5.83892 11.7056 5.73781 11.8067C5.6368 11.9078 5.51158 11.9583 5.36215 11.9583H3.5C3.26142 11.9583 3.05594 11.8721 2.88356 11.6998C2.71119 11.5274 2.625 11.3219 2.625 11.0833Z",fill:"currentColor"})})]}),Rf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22519",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22519)",children:u.jsx("path",{d:"M6.56249 5.32954V4.85719C6.17963 4.76074 5.86516 4.55755 5.61909 4.2476C5.37302 3.93756 5.24999 3.57726 5.24999 3.16669C5.24999 2.68135 5.42032 2.26835 5.76099 1.92769C6.10166 1.58702 6.51466 1.41669 6.99999 1.41669C7.48532 1.41669 7.89832 1.58702 8.23899 1.92769C8.57966 2.26835 8.74999 2.68135 8.74999 3.16669C8.74999 3.57726 8.62696 3.93756 8.38089 4.2476C8.13482 4.55755 7.82035 4.76074 7.43749 4.85719V5.32954L11.431 7.627C11.597 7.72267 11.7264 7.85202 11.8192 8.01506C11.9119 8.1781 11.9583 8.35534 11.9583 8.54677V9.45327C11.9583 9.6447 11.9119 9.82194 11.8192 9.98498C11.7264 10.148 11.597 10.2774 11.431 10.373L7.52718 12.62C7.36122 12.7158 7.18549 12.7637 6.99999 12.7637C6.81449 12.7637 6.63876 12.7158 6.4728 12.62L2.56899 10.373C2.40293 10.2774 2.27353 10.148 2.18078 9.98498C2.08803 9.82194 2.04166 9.6447 2.04166 9.45327V8.54677C2.04166 8.35534 2.08803 8.1781 2.18078 8.01506C2.27353 7.85202 2.40293 7.72267 2.56899 7.627L6.56249 5.32954ZM3.65253 8.01287L6.9103 9.89194C6.94015 9.9106 6.97005 9.91994 6.99999 9.91994C7.02993 9.91994 7.05983 9.9106 7.08968 9.89194L10.3419 8.01287L7.43749 6.33462V8.27085H6.56249V6.33462L3.65253 8.01287Z",fill:"currentColor"})})]}),Pf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Icons 20x20",children:u.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5661 2.056C17.7371 2.12703 17.873 2.26296 17.9441 2.434C17.9799 2.51816 17.999 2.60853 18.0001 2.7V6.9C18.0001 7.08565 17.9263 7.2637 17.795 7.39497C17.6638 7.52625 17.4857 7.6 17.3001 7.6C17.1144 7.6 16.9364 7.52625 16.8051 7.39497C16.6738 7.2637 16.6001 7.08565 16.6001 6.9V4.387L10.0971 10.897C10.032 10.9626 9.95456 11.0147 9.86926 11.0502C9.78396 11.0858 9.69246 11.1041 9.60006 11.1041C9.50765 11.1041 9.41615 11.0858 9.33085 11.0502C9.24555 11.0147 9.16813 10.9626 9.10306 10.897C9.03745 10.8319 8.98537 10.7545 8.94983 10.6692C8.91429 10.5839 8.896 10.4924 8.896 10.4C8.896 10.3076 8.91429 10.2161 8.94983 10.1308C8.98537 10.0455 9.03745 9.96807 9.10306 9.903L15.6131 3.4H13.1001C12.9144 3.4 12.7364 3.32625 12.6051 3.19497C12.4738 3.0637 12.4001 2.88565 12.4001 2.7C12.4001 2.51435 12.4738 2.3363 12.6051 2.20503C12.7364 2.07375 12.9144 2 13.1001 2H17.3001C17.3915 2.00111 17.4819 2.02013 17.5661 2.056ZM14.705 9.20463C14.8363 9.07336 15.0143 8.99961 15.2 8.99961C15.3857 8.99961 15.5637 9.07336 15.695 9.20463C15.8263 9.33591 15.9 9.51396 15.9 9.69961V13.8996C15.9 14.4566 15.6788 14.9907 15.2849 15.3845C14.8911 15.7784 14.357 15.9996 13.8 15.9996H6.1C5.54305 15.9996 5.0089 15.7784 4.61508 15.3845C4.22125 14.9907 4 14.4566 4 13.8996V6.19961C4 5.64265 4.22125 5.10851 4.61508 4.71469C5.0089 4.32086 5.54305 4.09961 6.1 4.09961H10.3C10.4857 4.09961 10.6637 4.17336 10.795 4.30463C10.9263 4.43591 11 4.61396 11 4.79961C11 4.98526 10.9263 5.16331 10.795 5.29458C10.6637 5.42586 10.4857 5.49961 10.3 5.49961H6.1C5.91435 5.49961 5.7363 5.57336 5.60503 5.70463C5.47375 5.83591 5.4 6.01396 5.4 6.19961V13.8996C5.4 14.0853 5.47375 14.2633 5.60503 14.3946C5.7363 14.5259 5.91435 14.5996 6.1 14.5996H13.8C13.9857 14.5996 14.1637 14.5259 14.295 14.3946C14.4263 14.2633 14.5 14.0853 14.5 13.8996V9.69961C14.5 9.51396 14.5737 9.33591 14.705 9.20463Z",fill:"currentColor"})})}),Tf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Menu icons",children:u.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2669 9.02431C16.2669 13.346 12.7635 16.8494 8.44179 16.8494C7.27934 16.8494 6.1761 16.5959 5.18431 16.1412L1.18187 17.1418C0.90723 17.2105 0.658457 16.9617 0.727118 16.6871L1.66434 12.9382C0.998057 11.7869 0.616699 10.4502 0.616699 9.02431C0.616699 4.70263 4.12011 1.19922 8.44179 1.19922C12.7635 1.19922 16.2669 4.70263 16.2669 9.02431ZM4.73511 7.77304C4.73511 7.31812 5.10389 6.94934 5.5588 6.94934H11.3247C11.7796 6.94934 12.1484 7.31812 12.1484 7.77304C12.1484 8.22795 11.7796 8.59673 11.3247 8.59673H5.5588C5.10389 8.59673 4.73511 8.22795 4.73511 7.77304ZM4.73505 11.068C4.73505 10.613 5.10383 10.2443 5.55874 10.2443H8.85352C9.30843 10.2443 9.67721 10.613 9.67721 11.068C9.67721 11.5229 9.30843 11.8917 8.85352 11.8917H5.55874C5.10383 11.8917 4.73505 11.5229 4.73505 11.068Z",fill:"currentColor"})})}),Hf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})}),If=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_49",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_49)",children:u.jsx("path",{d:"M7.02162 12.3023C6.84934 12.3023 6.70438 12.2441 6.58675 12.1276C6.4692 12.0112 6.41043 11.8668 6.41043 11.6945V11.0377C5.96593 10.9381 5.57665 10.7639 5.2426 10.515C4.90854 10.2661 4.63827 9.92181 4.43177 9.48207C4.35904 9.33196 4.35836 9.1746 4.42972 9.01001C4.50109 8.84531 4.62636 8.72777 4.80554 8.65738C4.95331 8.59438 5.10532 8.5974 5.26156 8.66642C5.41789 8.73545 5.5419 8.84983 5.63358 9.00957C5.79662 9.28733 6.00103 9.49748 6.24681 9.64001C6.49259 9.78263 6.78975 9.85395 7.13829 9.85395C7.5299 9.85395 7.85671 9.76922 8.11872 9.59976C8.38064 9.4304 8.5116 9.16658 8.5116 8.80832C8.5116 8.48428 8.40349 8.22319 8.18727 8.02505C7.97104 7.82691 7.47638 7.60495 6.70327 7.35917C5.87649 7.10134 5.30521 6.78488 4.98943 6.4098C4.67365 6.03481 4.51577 5.58015 4.51577 5.04582C4.51577 4.42321 4.71702 3.93107 5.11952 3.5694C5.52211 3.20783 5.95242 2.99574 6.41043 2.93313V2.30547C6.41043 2.13319 6.4692 1.98881 6.58675 1.87234C6.70438 1.75587 6.84934 1.69763 7.02162 1.69763C7.19613 1.69763 7.34104 1.75587 7.45635 1.87234C7.57165 1.98881 7.62931 2.13319 7.62931 2.30547V2.93313C7.99875 2.99847 8.32134 3.12106 8.59706 3.30092C8.87278 3.48078 9.10047 3.7043 9.28014 3.97147C9.37688 4.10942 9.39506 4.26376 9.33468 4.43449C9.27421 4.60511 9.15322 4.72795 8.9717 4.80301C8.83093 4.86367 8.68295 4.86669 8.52779 4.81205C8.37262 4.75741 8.22022 4.65737 8.0706 4.51192C7.94888 4.38515 7.80528 4.28763 7.63981 4.21938C7.47434 4.15104 7.27216 4.11686 7.03329 4.11686C6.62184 4.11686 6.31185 4.2047 6.10331 4.38038C5.89486 4.55597 5.79064 4.77428 5.79064 5.03532C5.79064 5.33992 5.92772 5.58108 6.20189 5.7588C6.47615 5.93652 6.97763 6.1298 7.70631 6.33863C8.38647 6.53774 8.90321 6.85167 9.25652 7.28042C9.60982 7.70917 9.78647 8.20875 9.78647 8.77915C9.78647 9.47876 9.57997 10.0119 9.16697 10.3785C8.75397 10.7452 8.24142 10.9747 7.62931 11.0668V11.6945C7.62931 11.8668 7.57107 12.0112 7.4546 12.1276C7.33822 12.2441 7.1939 12.3023 7.02162 12.3023Z",fill:"currentColor"})})]}),Af=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"volume_mute",children:[u.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[u.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),u.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),Vf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("circle",{cx:"5",cy:"5",r:"4.5",fill:"currentColor",stroke:"#6B7A8D"})}),Df=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:"notes",children:[u.jsx("mask",{id:"mask0_1473_73722",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_1473_73722)",children:u.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),Nf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M1.16675 4.66669V7.0006H1.75008V10.5H1.16675V12.25H10.5001L12.2501 12.2506L12.8334 12.25V10.5H12.2501V7.0006H12.8334V4.66669L7.00008 1.16669L1.16675 4.66669ZM3.50008 10.5V7.0006H4.66675V10.5H3.50008ZM6.41675 10.5V7.0006H7.58342V10.5H6.41675ZM10.5001 10.5H9.33342V7.0006H10.5001V10.5ZM8.16675 4.66669C8.16671 4.81993 8.13649 4.97167 8.07781 5.11324C8.01913 5.25481 7.93314 5.38343 7.82475 5.49177C7.71636 5.6001 7.58769 5.68603 7.4461 5.74464C7.3045 5.80325 7.15275 5.83339 6.9995 5.83335C6.84625 5.83332 6.69451 5.80309 6.55294 5.74441C6.41138 5.68573 6.28275 5.59974 6.17442 5.49135C6.06608 5.38296 5.98016 5.2543 5.92155 5.1127C5.86294 4.97111 5.83279 4.81935 5.83283 4.6661C5.83291 4.35661 5.95593 4.05982 6.17483 3.84103C6.39373 3.62223 6.69059 3.49936 7.00008 3.49944C7.30958 3.49951 7.60637 3.62254 7.82516 3.84144C8.04395 4.06034 8.16683 4.35719 8.16675 4.66669Z",fill:"currentColor"})}),Bf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M17 7H15C14.7167 7 14.4792 6.90417 14.2875 6.7125C14.0958 6.52083 14 6.28333 14 6C14 5.71667 14.0958 5.47917 14.2875 5.2875C14.4792 5.09583 14.7167 5 15 5H17V3C17 2.71667 17.0958 2.47917 17.2875 2.2875C17.4792 2.09583 17.7167 2 18 2C18.2833 2 18.5208 2.09583 18.7125 2.2875C18.9042 2.47917 19 2.71667 19 3V5H21C21.2833 5 21.5208 5.09583 21.7125 5.2875C21.9042 5.47917 22 5.71667 22 6C22 6.28333 21.9042 6.52083 21.7125 6.7125C21.5208 6.90417 21.2833 7 21 7H19V9C19 9.28333 18.9042 9.52083 18.7125 9.7125C18.5208 9.90417 18.2833 10 18 10C17.7167 10 17.4792 9.90417 17.2875 9.7125C17.0958 9.52083 17 9.28333 17 9V7ZM8 8C6.9 8 5.95833 7.60833 5.175 6.825C4.39167 6.04167 4 5.1 4 4C4 2.9 4.39167 1.95833 5.175 1.175C5.95833 0.391667 6.9 0 8 0C9.1 0 10.0417 0.391667 10.825 1.175C11.6083 1.95833 12 2.9 12 4C12 5.1 11.6083 6.04167 10.825 6.825C10.0417 7.60833 9.1 8 8 8ZM0 14V13.2C0 12.6333 0.145833 12.1125 0.4375 11.6375C0.729167 11.1625 1.11667 10.8 1.6 10.55C2.63333 10.0333 3.68333 9.64583 4.75 9.3875C5.81667 9.12917 6.9 9 8 9C9.1 9 10.1833 9.12917 11.25 9.3875C12.3167 9.64583 13.3667 10.0333 14.4 10.55C14.8833 10.8 15.2708 11.1625 15.5625 11.6375C15.8542 12.1125 16 12.6333 16 13.2V14C16 14.55 15.8042 15.0208 15.4125 15.4125C15.0208 15.8042 14.55 16 14 16H2C1.45 16 0.979167 15.8042 0.5875 15.4125C0.195833 15.0208 0 14.55 0 14Z",fill:"currentColor"})}),zf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7640_2772",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7640_2772)",children:u.jsx("path",{d:"M3.51334 10.0871C4.00917 9.71924 4.54934 9.42869 5.13384 9.21548C5.71824 9.00237 6.34027 8.89581 6.99992 8.89581C7.65957 8.89581 8.2816 9.00237 8.866 9.21548C9.4505 9.42869 9.99067 9.71924 10.4865 10.0871C10.8491 9.68851 11.1365 9.2271 11.3485 8.70288C11.5606 8.17865 11.6666 7.61102 11.6666 6.99998C11.6666 5.70692 11.2121 4.60588 10.303 3.69685C9.39402 2.78783 8.29297 2.33331 6.99992 2.33331C5.70686 2.33331 4.60582 2.78783 3.69679 3.69685C2.78777 4.60588 2.33325 5.70692 2.33325 6.99998C2.33325 7.61102 2.43927 8.17865 2.65131 8.70288C2.86336 9.2271 3.1507 9.68851 3.51334 10.0871ZM6.99992 7.43748C6.46743 7.43748 6.01836 7.2546 5.65271 6.88885C5.28696 6.5232 5.10409 6.07413 5.10409 5.54165C5.10409 5.00916 5.28696 4.56009 5.65271 4.19444C6.01836 3.82869 6.46743 3.64581 6.99992 3.64581C7.5324 3.64581 7.98147 3.82869 8.34713 4.19444C8.71288 4.56009 8.89575 5.00916 8.89575 5.54165C8.89575 6.07413 8.71288 6.5232 8.34713 6.88885C7.98147 7.2546 7.5324 7.43748 6.99992 7.43748ZM6.99992 12.5416C6.2304 12.5416 5.50853 12.3969 4.83429 12.1075C4.16006 11.8181 3.57356 11.4239 3.07481 10.9251C2.57597 10.4263 2.18183 9.83984 1.8924 9.1656C1.60297 8.49137 1.45825 7.76949 1.45825 6.99998C1.45825 6.23047 1.60297 5.50859 1.8924 4.83435C2.18183 4.16012 2.57597 3.57363 3.07481 3.07488C3.57356 2.57603 4.16006 2.18189 4.83429 1.89246C5.50853 1.60303 6.2304 1.45831 6.99992 1.45831C7.76943 1.45831 8.49131 1.60303 9.16554 1.89246C9.83978 2.18189 10.4263 2.57603 10.925 3.07488C11.4239 3.57363 11.818 4.16012 12.1074 4.83435C12.3969 5.50859 12.5416 6.23047 12.5416 6.99998C12.5416 7.76949 12.3969 8.49137 12.1074 9.1656C11.818 9.83984 11.4239 10.4263 10.925 10.9251C10.4263 11.4239 9.83978 11.8181 9.16554 12.1075C8.49131 12.3969 7.76943 12.5416 6.99992 12.5416Z",fill:"currentColor"})})]}),Zf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22741)",children:u.jsx("path",{d:"M4.26283 13.375C3.96815 13.375 3.71873 13.2729 3.51456 13.0687C3.3104 12.8646 3.20831 12.6152 3.20831 12.3205V2.17952C3.20831 1.88484 3.3104 1.63542 3.51456 1.43125C3.71873 1.22708 3.96815 1.125 4.26283 1.125H9.73713C10.0318 1.125 10.2812 1.22708 10.4854 1.43125C10.6896 1.63542 10.7916 1.88484 10.7916 2.17952V12.3205C10.7916 12.6152 10.6896 12.8646 10.4854 13.0687C10.2812 13.2729 10.0318 13.375 9.73713 13.375H4.26283ZM6.99998 12.0737C7.1428 12.0737 7.26452 12.0234 7.36515 11.9228C7.46567 11.8223 7.51594 11.7005 7.51594 11.5576C7.51594 11.4148 7.46567 11.2931 7.36515 11.1926C7.26452 11.092 7.1428 11.0417 6.99998 11.0417C6.85716 11.0417 6.73544 11.092 6.63481 11.1926C6.53429 11.2931 6.48402 11.4148 6.48402 11.5576C6.48402 11.7005 6.53429 11.8223 6.63481 11.9228C6.73544 12.0234 6.85716 12.0737 6.99998 12.0737ZM4.08331 9.7404H9.91665V3.60417H4.08331V9.7404Z",fill:"currentColor"})})]}),Ff=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7640_3741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7640_3741)",children:u.jsx("path",{d:"M6.99992 12.2151C6.88627 12.2151 6.77262 12.1955 6.65897 12.1564C6.54522 12.1171 6.44235 12.0563 6.35038 11.9741C5.82694 11.4916 5.33708 10.9948 4.88082 10.4836C4.42465 9.97255 4.02813 9.4616 3.69126 8.95079C3.35428 8.43999 3.08765 7.9337 2.89136 7.43194C2.69507 6.93008 2.59692 6.44542 2.59692 5.97798C2.59692 4.63184 3.03233 3.54203 3.90315 2.70854C4.77407 1.87506 5.80633 1.45831 6.99992 1.45831C8.19352 1.45831 9.22578 1.87506 10.0967 2.70854C10.9675 3.54203 11.4029 4.63184 11.4029 5.97798C11.4029 6.44542 11.3048 6.92911 11.1085 7.42902C10.9122 7.92904 10.6465 8.43537 10.3115 8.94802C9.97638 9.46067 9.58074 9.97163 9.12457 10.4809C8.6684 10.9902 8.17855 11.4861 7.65501 11.9684C7.5644 12.0506 7.46139 12.1123 7.34599 12.1534C7.23068 12.1946 7.11533 12.2151 6.99992 12.2151ZM7.00094 6.92138C7.29115 6.92138 7.53926 6.81803 7.74528 6.61133C7.95139 6.40464 8.05444 6.15619 8.05444 5.86598C8.05444 5.57577 7.9511 5.32761 7.7444 5.1215C7.53771 4.91549 7.28921 4.81248 6.9989 4.81248C6.70869 4.81248 6.46058 4.91583 6.25457 5.12252C6.04846 5.32922 5.9454 5.57772 5.9454 5.86802C5.9454 6.15823 6.04875 6.40634 6.25544 6.61236C6.46214 6.81837 6.71064 6.92138 7.00094 6.92138Z",fill:"currentColor"})})]}),Uf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:u.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{children:u.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]}),Wf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{opacity:"0.4",children:[u.jsx("mask",{id:"mask0_5162_13105",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5162_13105)",children:u.jsx("path",{d:"M19.7615 21.8691L15.7154 17.8537C15.1256 18.0819 14.5195 18.2467 13.8971 18.348C13.2747 18.4493 12.6423 18.4999 12 18.4999C9.89486 18.4999 7.96698 17.94 6.21635 16.8201C4.46572 15.7002 3.07822 14.2243 2.05385 12.3922C1.97052 12.2486 1.90963 12.1025 1.87118 11.9538C1.83271 11.8051 1.81348 11.6538 1.81348 11.4999C1.81348 11.3461 1.83431 11.1932 1.87598 11.0413C1.91764 10.8894 1.98014 10.7448 2.06348 10.6076C2.46219 9.9448 2.88591 9.30345 3.33463 8.68357C3.78336 8.0637 4.30516 7.51531 4.90003 7.0384L2.13078 4.2384L3.18463 3.18457L20.8153 20.8153L19.7615 21.8691ZM12 15.5768C12.2218 15.5768 12.4336 15.5637 12.6356 15.5374C12.8375 15.5111 13.0346 15.4537 13.2269 15.3653L8.13463 10.273C8.05258 10.4653 7.99681 10.6624 7.96733 10.8643C7.93783 11.0663 7.92308 11.2781 7.92308 11.4999C7.92308 12.6345 8.31891 13.5977 9.11058 14.3893C9.90224 15.181 10.8654 15.5768 12 15.5768ZM18.9538 16.0845L15.8173 12.973C15.9019 12.7345 15.9663 12.4941 16.0105 12.2518C16.0548 12.0095 16.0769 11.7589 16.0769 11.4999C16.0769 10.3653 15.681 9.40219 14.8894 8.61052C14.0977 7.81885 13.1346 7.42302 12 7.42302C11.741 7.42302 11.4904 7.44674 11.2481 7.49417C11.0058 7.5416 10.7686 7.61917 10.5366 7.72687L8.03463 5.23457C8.67051 4.98329 9.3189 4.79803 9.9798 4.6788C10.6407 4.55956 11.3141 4.49995 12 4.49995C14.1115 4.49995 16.0484 5.06245 17.8105 6.18745C19.5727 7.31245 20.9628 8.79738 21.9807 10.6422C22.0576 10.7692 22.1169 10.9054 22.1586 11.0509C22.2003 11.1964 22.2211 11.3461 22.2211 11.4999C22.2211 11.6538 22.2028 11.8034 22.1663 11.9489C22.1297 12.0945 22.073 12.2307 21.9961 12.3576C21.6089 13.0832 21.1673 13.7605 20.6711 14.3893C20.175 15.0182 19.6025 15.5832 18.9538 16.0845ZM14.6846 11.8499L11.675 8.84992C12.0955 8.76659 12.5051 8.79671 12.9038 8.9403C13.3025 9.0839 13.6468 9.30761 13.9365 9.61145C14.2327 9.91145 14.4465 10.2563 14.5779 10.6461C14.7093 11.0358 14.7449 11.4371 14.6846 11.8499Z",fill:"currentColor"})})]})}),Gf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_5162_13106",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5162_13106)",children:u.jsx("path",{d:"M12.0023 15.5769C13.1354 15.5769 14.0978 15.1803 14.8895 14.3871C15.6811 13.5939 16.077 12.6308 16.077 11.4977C16.077 10.3646 15.6804 9.40224 14.8872 8.61058C14.094 7.81891 13.1309 7.42308 11.9978 7.42308C10.8647 7.42308 9.90234 7.81966 9.11067 8.61282C8.31901 9.40601 7.92317 10.3692 7.92317 11.5023C7.92317 12.6353 8.31976 13.5977 9.11293 14.3894C9.90611 15.181 10.8692 15.5769 12.0023 15.5769ZM12.0001 14.2C11.2501 14.2 10.6126 13.9375 10.0876 13.4125C9.56258 12.8875 9.30007 12.25 9.30007 11.5C9.30007 10.75 9.56258 10.1125 10.0876 9.58748C10.6126 9.06248 11.2501 8.79998 12.0001 8.79998C12.7501 8.79998 13.3876 9.06248 13.9126 9.58748C14.4376 10.1125 14.7001 10.75 14.7001 11.5C14.7001 12.25 14.4376 12.8875 13.9126 13.4125C13.3876 13.9375 12.7501 14.2 12.0001 14.2ZM12.0014 18.5C9.70183 18.5 7.60651 17.8657 5.71547 16.5971C3.82446 15.3285 2.43216 13.6295 1.53857 11.5C2.43216 9.37049 3.82401 7.67146 5.71412 6.40288C7.60422 5.13429 9.69908 4.5 11.9987 4.5C14.2983 4.5 16.3936 5.13429 18.2847 6.40288C20.1757 7.67146 21.568 9.37049 22.4616 11.5C21.568 13.6295 20.1761 15.3285 18.286 16.5971C16.3959 17.8657 14.3011 18.5 12.0014 18.5Z",fill:"currentColor"})})]}),Kf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22801",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22801)",children:u.jsx("path",{d:"M7.58335 12.2196V11.1089H8.69387V12.2196H7.58335ZM6.47283 11.1089V8.36054H7.58335V11.1089H6.47283ZM10.8589 9.24677V7.25002H11.9696V9.24677H10.8589ZM9.74839 7.25002V6.1395H10.8589V7.25002H9.74839ZM3.14112 8.36054V7.25002H4.25164V8.36054H3.14112ZM2.03046 7.25002V6.1395H3.14112V7.25002H2.03046ZM7.00002 3.39112V2.28046H8.11054V3.39112H7.00002ZM2.72594 4.91669H4.66669V2.97594H2.72594V4.91669ZM2.03046 5.08498V2.80779C2.03046 2.65836 2.08101 2.53314 2.18212 2.43212C2.28314 2.33101 2.40836 2.28046 2.55779 2.28046H4.83498C4.98431 2.28046 5.10953 2.33101 5.21064 2.43212C5.31166 2.53314 5.36216 2.65836 5.36216 2.80779V5.08498C5.36216 5.23431 5.31166 5.35953 5.21064 5.46064C5.10953 5.56166 4.98431 5.61217 4.83498 5.61217H2.55779C2.40836 5.61217 2.28314 5.56166 2.18212 5.46064C2.08101 5.35953 2.03046 5.23431 2.03046 5.08498ZM2.72594 11.5241H4.7116V9.58335H2.72594V11.5241ZM2.03046 11.6922V9.41506C2.03046 9.26573 2.08101 9.14051 2.18212 9.03939C2.28314 8.93838 2.40836 8.88787 2.55779 8.88787H4.87989C5.02923 8.88787 5.15445 8.93838 5.25556 9.03939C5.35657 9.14051 5.40708 9.26573 5.40708 9.41506V11.6922C5.40708 11.8417 5.35657 11.9669 5.25556 12.0679C5.15445 12.169 5.02923 12.2196 4.87989 12.2196H2.55779C2.40836 12.2196 2.28314 12.169 2.18212 12.0679C2.08101 11.9669 2.03046 11.8417 2.03046 11.6922ZM9.33335 4.91669H11.2741V2.97594H9.33335V4.91669ZM8.63787 5.08498V2.80779C8.63787 2.65836 8.68838 2.53314 8.78939 2.43212C8.89051 2.33101 9.01573 2.28046 9.16506 2.28046H11.4422C11.5917 2.28046 11.7169 2.33101 11.8179 2.43212C11.919 2.53314 11.9696 2.65836 11.9696 2.80779V5.08498C11.9696 5.23431 11.919 5.35953 11.8179 5.46064C11.7169 5.56166 11.5917 5.61217 11.4422 5.61217H9.16506C9.01573 5.61217 8.89051 5.56166 8.78939 5.46064C8.68838 5.35953 8.63787 5.23431 8.63787 5.08498ZM9.74839 12.2196V10.3573H8.63787V9.24677H10.8589V11.1089H11.9696V12.2196H9.74839ZM7.58335 8.36054V7.25002H9.74839V8.36054H7.58335ZM5.36216 8.36054V7.25002H4.25164V6.1395H7.58335V7.25002H6.47283V8.36054H5.36216ZM5.8895 5.61217V3.39112H7.00002V4.50164H8.11054V5.61217H5.8895ZM3.2925 4.35012V3.5425H4.10012V4.35012H3.2925ZM3.33173 10.9183V10.1105H4.1395V10.9183H3.33173ZM9.89991 4.35012V3.5425H10.7075V4.35012H9.89991Z",fill:"currentColor"})})]}),Yf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:u.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5099_7163)",children:u.jsx("path",{d:"M10 16.6667C9.16667 16.6667 8.38611 16.5083 7.65833 16.1917C6.93056 15.875 6.29722 15.4472 5.75833 14.9083C5.21944 14.3695 4.79167 13.7361 4.475 13.0083C4.15833 12.2806 4 11.5 4 10.6667C4 10.4778 4.06389 10.3195 4.19167 10.1917C4.31944 10.0639 4.47778 10 4.66667 10C4.85556 10 5.01389 10.0639 5.14167 10.1917C5.26944 10.3195 5.33333 10.4778 5.33333 10.6667C5.33333 11.9667 5.78611 13.0695 6.69167 13.975C7.59722 14.8806 8.7 15.3333 10 15.3333C11.3 15.3333 12.4028 14.8806 13.3083 13.975C14.2139 13.0695 14.6667 11.9667 14.6667 10.6667C14.6667 9.36667 14.2139 8.2639 13.3083 7.35834C12.4028 6.45279 11.3 6.00001 10 6.00001H9.9L10.4667 6.56667C10.6 6.70001 10.6639 6.85556 10.6583 7.03334C10.6528 7.21112 10.5889 7.36667 10.4667 7.50001C10.3333 7.63334 10.175 7.70279 9.99167 7.70834C9.80833 7.7139 9.65 7.65001 9.51667 7.51667L7.8 5.80001C7.66667 5.66667 7.6 5.51112 7.6 5.33334C7.6 5.15556 7.66667 5.00001 7.8 4.86667L9.51667 3.15001C9.65 3.01667 9.80833 2.95279 9.99167 2.95834C10.175 2.9639 10.3333 3.03334 10.4667 3.16667C10.5889 3.30001 10.6528 3.45556 10.6583 3.63334C10.6639 3.81112 10.6 3.96667 10.4667 4.10001L9.9 4.66667H10C10.8333 4.66667 11.6139 4.82501 12.3417 5.14167C13.0694 5.45834 13.7028 5.88612 14.2417 6.42501C14.7806 6.9639 15.2083 7.59723 15.525 8.32501C15.8417 9.05279 16 9.83334 16 10.6667C16 11.5 15.8417 12.2806 15.525 13.0083C15.2083 13.7361 14.7806 14.3695 14.2417 14.9083C13.7028 15.4472 13.0694 15.875 12.3417 16.1917C11.6139 16.5083 10.8333 16.6667 10 16.6667Z",fill:"currentColor"})})]}),qf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22828",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22828)",children:u.jsx("path",{d:"M5.24999 7.10419C5.53339 7.10419 5.77441 7.00492 5.97303 6.8064C6.17156 6.60777 6.27082 6.36676 6.27082 6.08335C6.27082 5.79995 6.17156 5.55894 5.97303 5.36031C5.77441 5.16178 5.53339 5.06252 5.24999 5.06252C4.96659 5.06252 4.72557 5.16178 4.52695 5.36031C4.32842 5.55894 4.22916 5.79995 4.22916 6.08335C4.22916 6.36676 4.32842 6.60777 4.52695 6.8064C4.72557 7.00492 4.96659 7.10419 5.24999 7.10419ZM8.74999 7.10419C9.03339 7.10419 9.27441 7.00492 9.47303 6.8064C9.67156 6.60777 9.77082 6.36676 9.77082 6.08335C9.77082 5.79995 9.67156 5.55894 9.47303 5.36031C9.27441 5.16178 9.03339 5.06252 8.74999 5.06252C8.46659 5.06252 8.22557 5.16178 8.02695 5.36031C7.82842 5.55894 7.72916 5.79995 7.72916 6.08335C7.72916 6.36676 7.82842 6.60777 8.02695 6.8064C8.22557 7.00492 8.46659 7.10419 8.74999 7.10419ZM5.10416 12.2084V10.2004C5.10416 10.148 5.12098 10.105 5.15461 10.0713C5.18825 10.0377 5.23127 10.0209 5.28368 10.0209H6.56249V12.2084H5.10416ZM7.43749 12.2084V10.0209H8.7163C8.76871 10.0209 8.81173 10.0377 8.84537 10.0713C8.879 10.105 8.89582 10.148 8.89582 10.2004V12.2084H7.43749ZM3.09618 12.2084C2.80616 12.2084 2.55791 12.1051 2.35141 11.8986C2.14491 11.6921 2.04166 11.4438 2.04166 11.1538V5.50002C2.04166 4.60878 2.35359 3.85128 2.97747 3.2275C3.60125 2.60362 4.35875 2.29169 5.24999 2.29169H8.74999C9.64123 2.29169 10.3987 2.60362 11.0225 3.2275C11.6464 3.85128 11.9583 4.60878 11.9583 5.50002V11.1538C11.9583 11.4438 11.8551 11.6921 11.6486 11.8986C11.4421 12.1051 11.1938 12.2084 10.9038 12.2084H9.77082V10.2004C9.77082 9.91036 9.66757 9.6621 9.46107 9.4556C9.25457 9.2491 9.00632 9.14585 8.7163 9.14585H5.28368C4.99366 9.14585 4.74541 9.2491 4.53891 9.4556C4.33241 9.6621 4.22916 9.91036 4.22916 10.2004V12.2084H3.09618Z",fill:"currentColor"})})]}),Xf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22840",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22840)",children:u.jsx("path",{d:"M3.09619 12.2084C2.80151 12.2084 2.55209 12.1063 2.34792 11.9021C2.14376 11.6979 2.04167 11.4485 2.04167 11.1538V3.34621C2.04167 3.05153 2.14376 2.8021 2.34792 2.59794C2.55209 2.39377 2.80151 2.29169 3.09619 2.29169H9.35682C9.49915 2.29169 9.63478 2.31901 9.76369 2.37365C9.89261 2.42819 10.0049 2.50334 10.1006 2.5991L11.6509 4.14946C11.7467 4.24512 11.8218 4.35742 11.8764 4.48633C11.931 4.61525 11.9583 4.75087 11.9583 4.89321V11.1538C11.9583 11.4485 11.8563 11.6979 11.6521 11.9021C11.4479 12.1063 11.1985 12.2084 10.9038 12.2084H3.09619ZM6.99869 10.3238C7.40343 10.3238 7.74789 10.1821 8.03207 9.89879C8.31625 9.61549 8.45834 9.27146 8.45834 8.86673C8.45834 8.46199 8.31669 8.11753 8.03338 7.83335C7.75007 7.54917 7.40605 7.40708 7.00132 7.40708C6.59658 7.40708 6.25212 7.54874 5.96794 7.83204C5.68376 8.11535 5.54167 8.45937 5.54167 8.8641C5.54167 9.26884 5.68333 9.6133 5.96663 9.89748C6.24994 10.1817 6.59396 10.3238 6.99869 10.3238ZM4.25163 6.01598H7.98598C8.13707 6.01598 8.26292 5.96547 8.36355 5.86446C8.46408 5.76344 8.51434 5.63822 8.51434 5.48879V4.50165C8.51434 4.35221 8.46383 4.22699 8.36282 4.12598C8.2618 4.02497 8.13658 3.97446 7.98715 3.97446H4.2528C4.10171 3.97446 3.97586 4.02497 3.87523 4.12598C3.77471 4.22699 3.72444 4.35221 3.72444 4.50165V5.48879C3.72444 5.63822 3.77495 5.76344 3.87596 5.86446C3.97698 5.96547 4.1022 6.01598 4.25163 6.01598Z",fill:"currentColor"})})]}),Jf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"schedule",children:[u.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_4051_4016)",children:u.jsx("path",{id:"schedule_2",d:"M12.75 11.6961V7.74995C12.75 7.53747 12.6781 7.35935 12.5343 7.2156C12.3904 7.07185 12.2122 6.99998 11.9997 6.99998C11.7871 6.99998 11.609 7.07185 11.4654 7.2156C11.3218 7.35935 11.25 7.53747 11.25 7.74995V11.9269C11.25 12.0446 11.2718 12.1587 11.3154 12.269C11.359 12.3794 11.4276 12.4814 11.5212 12.575L14.9462 16C15.0846 16.1384 15.2587 16.2093 15.4683 16.2125C15.6779 16.2157 15.8551 16.1448 16 16C16.1448 15.8551 16.2173 15.6795 16.2173 15.4731C16.2173 15.2667 16.1448 15.091 16 14.9462L12.75 11.6961ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5765 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0016 21.5Z",fill:"currentColor"})})]})}),Qf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_35",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_35)",children:u.jsx("path",{d:"M12.2501 9.33332V5.89165L7.55426 8.44373C7.37926 8.54096 7.19454 8.58957 7.0001 8.58957C6.80565 8.58957 6.62093 8.54096 6.44593 8.44373L1.51676 5.7604C1.40982 5.70207 1.33447 5.62915 1.29072 5.54165C1.24697 5.45415 1.2251 5.35693 1.2251 5.24998C1.2251 5.14304 1.24697 5.04582 1.29072 4.95832C1.33447 4.87082 1.40982 4.7979 1.51676 4.73957L6.44593 2.05623C6.53343 2.00762 6.62336 1.97116 6.71572 1.94686C6.80808 1.92255 6.90288 1.9104 7.0001 1.9104C7.09732 1.9104 7.19211 1.92255 7.28447 1.94686C7.37683 1.97116 7.46676 2.00762 7.55426 2.05623L13.1105 5.08957C13.2077 5.13818 13.2831 5.20866 13.3366 5.30103C13.39 5.39339 13.4168 5.49304 13.4168 5.59998V9.33332C13.4168 9.49859 13.3609 9.63714 13.2491 9.74894C13.1373 9.86075 12.9987 9.91665 12.8334 9.91665C12.6682 9.91665 12.5296 9.86075 12.4178 9.74894C12.306 9.63714 12.2501 9.49859 12.2501 9.33332ZM6.44593 11.9437L3.52926 10.3687C3.33482 10.2618 3.18413 10.116 3.07718 9.93123C2.97024 9.74651 2.91676 9.54721 2.91676 9.33332V7.11665L6.44593 9.02707C6.62093 9.12429 6.80565 9.1729 7.0001 9.1729C7.19454 9.1729 7.37926 9.12429 7.55426 9.02707L11.0834 7.11665V9.33332C11.0834 9.54721 11.03 9.74651 10.923 9.93123C10.8161 10.116 10.6654 10.2618 10.4709 10.3687L7.55426 11.9437C7.46676 11.9923 7.37683 12.0288 7.28447 12.0531C7.19211 12.0774 7.09732 12.0896 7.0001 12.0896C6.90288 12.0896 6.80808 12.0774 6.71572 12.0531C6.62336 12.0288 6.53343 11.9923 6.44593 11.9437Z",fill:"currentColor"})})]}),eh=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M5.99995 7.22422L1.71245 11.5117C1.55203 11.6721 1.34787 11.7523 1.09995 11.7523C0.852035 11.7523 0.647868 11.6721 0.487451 11.5117C0.327035 11.3513 0.246826 11.1471 0.246826 10.8992C0.246826 10.6513 0.327035 10.4471 0.487451 10.2867L4.77495 5.99922L0.487451 1.71172C0.327035 1.5513 0.246826 1.34714 0.246826 1.09922C0.246826 0.851302 0.327035 0.647135 0.487451 0.486719C0.647868 0.326302 0.852035 0.246094 1.09995 0.246094C1.34787 0.246094 1.55203 0.326302 1.71245 0.486719L5.99995 4.77422L10.2875 0.486719C10.4479 0.326302 10.652 0.246094 10.9 0.246094C11.1479 0.246094 11.352 0.326302 11.5125 0.486719C11.6729 0.647135 11.7531 0.851302 11.7531 1.09922C11.7531 1.34714 11.6729 1.5513 11.5125 1.71172L7.22495 5.99922L11.5125 10.2867C11.6729 10.4471 11.7531 10.6513 11.7531 10.8992C11.7531 11.1471 11.6729 11.3513 11.5125 11.5117C11.352 11.6721 11.1479 11.7523 10.9 11.7523C10.652 11.7523 10.4479 11.6721 10.2875 11.5117L5.99995 7.22422Z",fill:"currentColor"})}),th=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.38474 15.5C7.13341 15.5 6.92316 15.4153 6.75399 15.246C6.58466 15.0768 6.49999 14.8666 6.49999 14.6152V8.827L0.901988 1.7155C0.709655 1.459 0.681738 1.19233 0.818238 0.9155C0.954905 0.6385 1.18541 0.5 1.50974 0.5H14.4902C14.8146 0.5 15.0451 0.6385 15.1817 0.9155C15.3182 1.19233 15.2903 1.459 15.098 1.7155L9.49999 8.827V14.6152C9.49999 14.8666 9.41532 15.0768 9.24599 15.246C9.07682 15.4153 8.86657 15.5 8.61524 15.5H7.38474Z",fill:"currentColor"})}),nh=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Property 1=Normal",children:u.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})}),rh=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:"sensors",children:[u.jsx("mask",{id:"mask0_1506_161",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_1506_161)",children:u.jsx("path",{id:"sensors_2",d:"M5 8.97359C4.73205 8.97359 4.49839 8.87655 4.29903 8.68246C4.09968 8.48836 4 8.26087 4 8C4 7.73913 4.09968 7.51164 4.29903 7.31754C4.49839 7.12345 4.73205 7.02641 5 7.02641C5.26795 7.02641 5.50161 7.12345 5.70097 7.31754C5.90032 7.51164 6 7.73913 6 8C6 8.26087 5.90032 8.48836 5.70097 8.68246C5.50161 8.87655 5.26795 8.97359 5 8.97359ZM8.17885 11.0949C8.08527 11.0038 8.03431 10.893 8.02597 10.7626C8.01764 10.6321 8.05642 10.5076 8.1423 10.389C8.40257 10.0595 8.61058 9.69099 8.76635 9.28346C8.92212 8.87591 9 8.44809 9 8C9 7.5519 8.92212 7.12408 8.76635 6.71654C8.61058 6.30901 8.40257 5.94048 8.1423 5.61095C8.05642 5.49239 8.01539 5.37006 8.01922 5.24398C8.02308 5.11792 8.07821 5.00308 8.18463 4.89948C8.29488 4.79214 8.41699 4.7394 8.55097 4.74127C8.68494 4.74315 8.79488 4.79964 8.88077 4.91072C9.23077 5.33136 9.50482 5.80567 9.7029 6.33365C9.90097 6.86165 10 7.41709 10 8C10 8.5829 9.90097 9.13648 9.7029 9.66073C9.50482 10.185 9.23077 10.6593 8.88077 11.0837C8.79488 11.1948 8.68397 11.2512 8.54807 11.2531C8.41217 11.255 8.2891 11.2022 8.17885 11.0949ZM11.0096 13.8509C10.916 13.7598 10.8663 13.6481 10.8606 13.5158C10.8548 13.3834 10.8987 13.2599 10.9923 13.1451C11.6154 12.4548 12.1058 11.6737 12.4635 10.8019C12.8212 9.93002 13 8.99606 13 8C13 7.00394 12.8221 6.06998 12.4663 5.19813C12.1106 4.32626 11.6212 3.5452 10.9981 2.85494C10.9045 2.74012 10.8555 2.62061 10.851 2.49641C10.8465 2.37222 10.8994 2.25644 11.0096 2.14908C11.1071 2.05422 11.225 2.00461 11.3635 2.00025C11.5019 1.99588 11.6179 2.04924 11.7115 2.16033C12.4244 2.9417 12.984 3.82667 13.3904 4.81524C13.7968 5.80381 14 6.86539 14 8C14 9.13086 13.7968 10.1915 13.3904 11.182C12.984 12.1724 12.4244 13.0583 11.7115 13.8397C11.6179 13.9508 11.5019 14.0041 11.3635 13.9998C11.225 13.9954 11.1071 13.9458 11.0096 13.8509Z",fill:"currentColor"})})]})}),oh=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_28)",children:u.jsx("path",{d:"M3 20.75L2.91345 19.4327L4.74998 17.6058V20.75H3ZM7.25003 20.75V15.1058L8.74998 13.6058V20.75H7.25003ZM11.25 20.75V13.6058L12.75 15.1308V20.75H11.25ZM15.25 20.75V15.1308L16.75 13.6308V20.75H15.25ZM19.25 20.75V11.1058L20.75 9.60583V20.75H19.25ZM3.25003 15.2192V13.1058L10 6.35581L14 10.3558L20.75 3.60583V5.71924L14 12.4692L10 8.46921L3.25003 15.2192Z",fill:"currentColor"})})]}),ih=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_29)",children:u.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),sh=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:"shield_person",children:[u.jsx("mask",{id:"mask0_1543_22988",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_1543_22988)",children:u.jsx("path",{id:"shield_person_2",d:"M9.99998 10.6249C10.7521 10.6249 11.3915 10.3616 11.9182 9.83486C12.4449 9.30816 12.7083 8.66875 12.7083 7.91661C12.7083 7.16447 12.4449 6.52505 11.9182 5.99836C11.3915 5.47165 10.7521 5.20829 9.99998 5.20829C9.24784 5.20829 8.60842 5.47165 8.08173 5.99836C7.55502 6.52505 7.29167 7.16447 7.29167 7.91661C7.29167 8.66875 7.55502 9.30816 8.08173 9.83486C8.60842 10.3616 9.24784 10.6249 9.99998 10.6249ZM9.99998 17.9005C8.08973 17.376 6.57051 16.3049 5.44231 14.6874C4.3141 13.0699 3.75 11.2574 3.75 9.24994V4.45509L9.99998 2.11536L16.25 4.45509V9.24994C16.25 11.2574 15.6859 13.0699 14.5576 14.6874C13.4295 16.3049 11.9102 17.376 9.99998 17.9005ZM9.99998 16.5833C10.782 16.3301 11.4823 15.9422 12.1009 15.4198C12.7195 14.8974 13.2569 14.298 13.7131 13.6218C13.1373 13.3269 12.5371 13.1009 11.9126 12.9439C11.2882 12.7868 10.6506 12.7083 9.99998 12.7083C9.34934 12.7083 8.71179 12.7868 8.08733 12.9439C7.46286 13.1009 6.8627 13.3269 6.28685 13.6218C6.74305 14.298 7.28044 14.8974 7.89902 15.4198C8.51762 15.9422 9.21794 16.3301 9.99998 16.5833Z",fill:"currentColor"})})]})}),ah=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M0.333496 7.66704V6.66706H3.91681V7.66704H0.333496ZM0.333496 4.50037V3.50041H7.7886V4.50037H0.333496ZM0.333496 1.33372V0.33374H11.6668V1.33372H0.333496Z",fill:"currentColor"})}),lh=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:"brand_awareness",children:[u.jsx("mask",{id:"mask0_3696_4540",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_3696_4540)",children:u.jsx("path",{id:"brand_awareness_2",d:"M15.577 10.625H13.8142C13.6368 10.625 13.4883 10.5652 13.3687 10.4455C13.249 10.3259 13.1892 10.1774 13.1892 10C13.1892 9.82269 13.249 9.67419 13.3687 9.55454C13.4883 9.43489 13.6368 9.37506 13.8142 9.37506H15.577C15.7543 9.37506 15.9028 9.43489 16.0225 9.55454C16.1421 9.67419 16.202 9.82269 16.202 10C16.202 10.1774 16.1421 10.3259 16.0225 10.4455C15.9028 10.5652 15.7543 10.625 15.577 10.625ZM12.1106 13.9279C12.2175 13.7816 12.354 13.6972 12.5201 13.6747C12.6862 13.6523 12.8425 13.6945 12.9888 13.8013L14.3943 14.8574C14.5406 14.9642 14.625 15.1007 14.6475 15.2669C14.6699 15.433 14.6277 15.5892 14.5209 15.7356C14.4141 15.882 14.2776 15.9664 14.1114 15.9888C13.9453 16.0112 13.7891 15.969 13.6427 15.8622L12.2372 14.8061C12.0909 14.6993 12.0065 14.5628 11.9841 14.3967C11.9616 14.2305 12.0038 14.0743 12.1106 13.9279ZM14.3622 5.1106L12.9568 6.16671C12.8104 6.27354 12.6542 6.31574 12.488 6.29331C12.3219 6.27087 12.1854 6.18646 12.0786 6.0401C11.9718 5.89374 11.9296 5.7375 11.952 5.57137C11.9744 5.40525 12.0588 5.26876 12.2052 5.16192L13.6106 4.10583C13.757 3.999 13.9133 3.9568 14.0794 3.97923C14.2455 4.00166 14.382 4.08606 14.4888 4.23244C14.5957 4.3788 14.6379 4.53504 14.6154 4.70116C14.593 4.86729 14.5086 5.00377 14.3622 5.1106ZM6.05778 12.0834H3.71805C3.5033 12.0834 3.32408 12.0115 3.18039 11.8678C3.03669 11.7241 2.96484 11.5449 2.96484 11.3301V8.66994C2.96484 8.4552 3.03669 8.27599 3.18039 8.13229C3.32408 7.98858 3.5033 7.91673 3.71805 7.91673H6.05778L8.55134 5.42317C8.75114 5.22339 8.9811 5.17771 9.24124 5.28614C9.50138 5.39459 9.63145 5.5909 9.63145 5.87508V14.125C9.63145 14.4092 9.50138 14.6055 9.24124 14.7139C8.9811 14.8224 8.75114 14.7767 8.55134 14.5769L6.05778 12.0834Z",fill:"currentColor"})})]})}),ch=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Menu icons",children:u.jsx("path",{id:"Subtract",d:"M9.56745 16.1438C9.44134 16.1438 9.31606 16.1269 9.19162 16.0931C9.06718 16.0595 8.95315 16.0133 8.84954 15.9546C8.2587 15.602 7.64141 15.3367 6.99766 15.159C6.35405 14.981 5.68822 14.8921 5.00016 14.8921C4.49169 14.8921 3.99225 14.9484 3.50183 15.061C3.01141 15.1738 2.53863 15.3397 2.0835 15.5588C1.78655 15.6954 1.50398 15.6751 1.23579 15.4977C0.967593 15.3205 0.833496 15.0695 0.833496 14.7446V5.71272C0.833496 5.53313 0.881066 5.36723 0.976204 5.21501C1.0712 5.06279 1.20315 4.95195 1.37204 4.88251C1.93607 4.60792 2.52391 4.40202 3.13558 4.2648C3.74725 4.12744 4.36877 4.05876 5.00016 4.05876C5.811 4.05876 6.60051 4.17362 7.3687 4.40334C8.1369 4.63306 8.87516 4.95626 9.5835 5.37292V14.9433C10.2866 14.4989 11.0283 14.1709 11.8087 13.9594C12.5891 13.7479 13.3752 13.6421 14.1668 13.6421C14.6454 13.6421 15.0816 13.6717 15.4754 13.731C15.869 13.7904 16.3249 13.9006 16.8431 14.0619C16.9018 14.078 16.9566 14.0794 17.0075 14.066C17.0581 14.0526 17.0835 14.0085 17.0835 13.9338V4.5748C17.2277 4.61758 17.3684 4.66515 17.5058 4.71751C17.643 4.76987 17.7768 4.83556 17.9072 4.91459C18.0493 4.98404 18.1559 5.08549 18.2268 5.21897C18.2979 5.35258 18.3335 5.49577 18.3335 5.64855V14.7285C18.3335 15.0534 18.1954 15.3031 17.9191 15.4777C17.643 15.6524 17.3484 15.6741 17.0354 15.5427C16.5856 15.329 16.1196 15.1671 15.6372 15.0571C15.1549 14.9471 14.6647 14.8921 14.1668 14.8921C13.4735 14.8921 12.7996 14.981 12.1452 15.159C11.4909 15.3367 10.8683 15.602 10.2775 15.9546C10.1738 16.0133 10.0611 16.0595 9.93933 16.0931C9.81752 16.1269 9.69357 16.1438 9.56745 16.1438ZM11.8895 12.2319C11.7613 12.3462 11.6227 12.3692 11.4737 12.3008C11.3247 12.2324 11.2502 12.1132 11.2502 11.9433V5.46751C11.2502 5.41723 11.2606 5.36778 11.2814 5.31917C11.3022 5.27056 11.3309 5.22813 11.3672 5.19188L14.7645 1.79438C14.8927 1.66619 15.0335 1.63549 15.1868 1.7023C15.3402 1.76897 15.4168 1.89153 15.4168 2.07001V8.8873C15.4168 8.95133 15.4043 9.00633 15.3791 9.0523C15.354 9.09827 15.3233 9.13945 15.287 9.17584L11.8895 12.2319Z",fill:"currentColor"})})}),uh=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_26)",children:u.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),dh=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"stacks",children:[u.jsx("mask",{id:"mask0_8417_33308",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_8417_33308)",children:u.jsx("path",{id:"stacks_2",d:"M11.9998 13.1877C11.8717 13.1877 11.7477 13.1701 11.6278 13.135C11.5078 13.0996 11.3857 13.0531 11.2613 12.9955L3.38833 8.91472C3.2435 8.82755 3.13675 8.7218 3.06808 8.59747C2.99958 8.47297 2.96533 8.3383 2.96533 8.19347C2.96533 8.04864 2.99958 7.91405 3.06808 7.78972C3.13675 7.66539 3.2435 7.55964 3.38833 7.47247L11.2613 3.39172C11.3857 3.33389 11.5078 3.28739 11.6278 3.25222C11.7477 3.21689 11.8717 3.19922 11.9998 3.19922C12.128 3.19922 12.252 3.21689 12.3718 3.25222C12.4918 3.28739 12.614 3.33389 12.7383 3.39172L20.6306 7.47247C20.7754 7.55964 20.8822 7.66539 20.9508 7.78972C21.0193 7.91405 21.0536 8.04864 21.0536 8.19347C21.0536 8.3383 21.0193 8.47297 20.9508 8.59747C20.8822 8.7218 20.7754 8.82755 20.6306 8.91472L12.7383 12.9955C12.614 13.0531 12.4918 13.0996 12.3718 13.135C12.252 13.1701 12.128 13.1877 11.9998 13.1877ZM11.9998 12.2455L19.9211 8.19347L11.9998 4.14172L4.09783 8.19347L11.9998 12.2455ZM11.9998 16.0532L20.1576 11.855C20.2038 11.8255 20.3172 11.8223 20.4978 11.8455C20.6145 11.8711 20.7046 11.9253 20.7681 12.008C20.8316 12.0906 20.8633 12.1903 20.8633 12.307C20.8633 12.4006 20.8441 12.484 20.8056 12.557C20.7671 12.6301 20.7011 12.6911 20.6076 12.7397L12.7383 16.8032C12.614 16.8609 12.4918 16.9073 12.3718 16.9425C12.252 16.9778 12.128 16.9955 11.9998 16.9955C11.8717 16.9955 11.7477 16.9778 11.6278 16.9425C11.5078 16.9073 11.3857 16.8609 11.2613 16.8032L3.41133 12.7397C3.31783 12.6911 3.24858 12.6301 3.20358 12.557C3.15875 12.484 3.13633 12.4006 3.13633 12.307C3.13633 12.1903 3.17125 12.0906 3.24108 12.008C3.31108 11.9253 3.40442 11.8711 3.52108 11.8455C3.57875 11.8198 3.63542 11.8066 3.69108 11.806C3.74692 11.8053 3.80367 11.8216 3.86133 11.855L11.9998 16.0532ZM11.9998 19.8607L20.1576 15.6627C20.2038 15.6332 20.3172 15.6301 20.4978 15.6532C20.6145 15.6789 20.7046 15.7331 20.7681 15.8157C20.8316 15.8984 20.8633 15.9981 20.8633 16.1147C20.8633 16.2082 20.8441 16.2916 20.8056 16.3647C20.7671 16.4377 20.7011 16.4986 20.6076 16.5475L12.7383 20.6107C12.614 20.6686 12.4918 20.7151 12.3718 20.7502C12.252 20.7856 12.128 20.8032 11.9998 20.8032C11.8717 20.8032 11.7477 20.7856 11.6278 20.7502C11.5078 20.7151 11.3857 20.6686 11.2613 20.6107L3.41133 16.5475C3.31783 16.4986 3.24858 16.4377 3.20358 16.3647C3.15875 16.2916 3.13633 16.2082 3.13633 16.1147C3.13633 15.9981 3.17125 15.8984 3.24108 15.8157C3.31108 15.7331 3.40442 15.6789 3.52108 15.6532C3.57875 15.6276 3.63542 15.6144 3.69108 15.6137C3.74692 15.6131 3.80367 15.6294 3.86133 15.6627L11.9998 19.8607Z",fill:"currentColor"})})]})}),fh=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9529_33",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9529_33)",children:u.jsx("path",{d:"M4.05992 11.7788C3.80539 11.7788 3.5794 11.6954 3.38194 11.5287C3.18448 11.3621 3.06383 11.1515 3.01998 10.8971L2.19982 5.98194C2.17298 5.82084 2.21036 5.67725 2.31196 5.55115C2.41346 5.42515 2.54811 5.36215 2.71592 5.36215H11.2842C11.452 5.36215 11.5867 5.42515 11.6882 5.55115C11.7898 5.67725 11.8271 5.82084 11.8003 5.98194L10.9801 10.8971C10.9363 11.1515 10.8156 11.3621 10.6182 11.5287C10.4207 11.6954 10.1947 11.7788 9.94021 11.7788H4.05992ZM5.8334 8.42465H8.16673C8.29069 8.42465 8.39457 8.3827 8.47838 8.2988C8.56228 8.21489 8.60423 8.11096 8.60423 7.987C8.60423 7.86295 8.56228 7.75907 8.47838 7.67536C8.39457 7.59155 8.29069 7.54965 8.16673 7.54965H5.8334C5.70944 7.54965 5.60556 7.5916 5.52175 7.6755C5.43785 7.75941 5.3959 7.86334 5.3959 7.9873C5.3959 8.11135 5.43785 8.21528 5.52175 8.29909C5.60556 8.38279 5.70944 8.42465 5.8334 8.42465ZM3.50007 4.66667C3.37611 4.66667 3.27223 4.62472 3.18842 4.54082C3.10452 4.45691 3.06257 4.35298 3.06257 4.22902C3.06257 4.10497 3.10452 4.00109 3.18842 3.91738C3.27223 3.83357 3.37611 3.79167 3.50007 3.79167H10.5001C10.624 3.79167 10.7279 3.83362 10.8117 3.91752C10.8956 4.00143 10.9376 4.10536 10.9376 4.22932C10.9376 4.35337 10.8956 4.45725 10.8117 4.54096C10.7279 4.62477 10.624 4.66667 10.5001 4.66667H3.50007ZM4.66673 3.09619C4.54277 3.09619 4.43889 3.05424 4.35509 2.97034C4.27118 2.88643 4.22923 2.7825 4.22923 2.65855C4.22923 2.53449 4.27118 2.43061 4.35509 2.3469C4.43889 2.26309 4.54277 2.22119 4.66673 2.22119H9.3334C9.45736 2.22119 9.56124 2.26314 9.64505 2.34705C9.72895 2.43095 9.7709 2.53488 9.7709 2.65884C9.7709 2.78289 9.72895 2.88677 9.64505 2.97048C9.56124 3.05429 9.45736 3.09619 9.3334 3.09619H4.66673Z",fill:"currentColor"})})]}),hh=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 50 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6982 23.8981C38.314 33.2849 30.2251 40.4893 20.4536 40.4893C17.5648 40.4893 14.8231 39.8596 12.3582 38.7301L1.90313 41.3438C1.44763 41.4577 1.03503 41.0451 1.14891 40.5896L3.60474 30.7663C1.94817 27.904 1 24.5806 1 21.0357C1 10.2917 9.70969 1.58203 20.4536 1.58203C22.4575 1.58203 24.3907 1.88502 26.2097 2.44769C24.8111 4.62659 24 7.21857 24 10C24 12.0989 24.4619 14.0899 25.2895 15.877H13.2863C12.1553 15.877 11.2385 16.7938 11.2385 17.9247C11.2385 19.0556 12.1553 19.9725 13.2863 19.9725H27.6205C27.7906 19.9725 27.9557 19.9517 28.1137 19.9127C30.6462 22.4384 34.1407 24 38 24C38.5748 24 39.1415 23.9654 39.6982 23.8981ZM13.2863 24.0664C12.1553 24.0664 11.2385 24.9832 11.2385 26.1142C11.2385 27.2451 12.1553 28.1619 13.2863 28.1619H21.4773C22.6082 28.1619 23.525 27.2451 23.525 26.1142C23.525 24.9832 22.6082 24.0664 21.4773 24.0664H13.2863Z",fill:"currentColor"}),u.jsx("circle",{cx:"38",cy:"10",r:"10",fill:"currentColor"}),u.jsx("path",{d:"M34 9.5L37 12.5L42.5 7",stroke:"#23252F","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),ph=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22378)",children:u.jsx("path",{d:"M7.46552 7.25L3.91958 3.8184C3.87622 3.77503 3.84409 3.72778 3.82319 3.67665C3.80219 3.6256 3.79169 3.57281 3.79169 3.51827V3.28319C3.79169 3.1674 3.83092 3.07042 3.90937 2.99225C3.98793 2.91408 4.0852 2.875 4.20119 2.875H9.59133C9.76274 2.875 9.90842 2.93503 10.0284 3.0551C10.1484 3.17527 10.2084 3.3211 10.2084 3.4926C10.2084 3.6642 10.1484 3.81076 10.0284 3.93229C9.90842 4.05382 9.76274 4.11458 9.59133 4.11458H5.79748L8.61542 6.872C8.72304 6.97593 8.77685 7.10154 8.77685 7.24883C8.77685 7.39622 8.72304 7.52261 8.61542 7.628L5.79748 10.3911H9.59133C9.76274 10.3911 9.90842 10.4511 10.0284 10.5712C10.1484 10.6913 10.2084 10.8371 10.2084 11.0087C10.2084 11.1802 10.1484 11.3258 10.0284 11.4455C9.90842 11.5652 9.76274 11.625 9.59133 11.625H4.08554C4.00455 11.625 3.93533 11.5963 3.87787 11.5388C3.82042 11.4814 3.79169 11.4121 3.79169 11.3311V10.932C3.79169 10.8899 3.79849 10.8512 3.8121 10.8158C3.82571 10.7803 3.84958 10.7464 3.88371 10.7141L7.46552 7.25Z",fill:"currentColor"})})]}),Ch=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_5577_416",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5577_416)",children:u.jsx("path",{d:"M11 17.6634C10.6219 17.6634 10.2982 17.5287 10.0289 17.2595C9.75964 16.9902 9.625 16.6665 9.625 16.2884C9.625 15.9103 9.75964 15.5866 10.0289 15.3173C10.2982 15.0481 10.6219 14.9134 11 14.9134C11.3781 14.9134 11.7018 15.0481 11.971 15.3173C12.2403 15.5866 12.375 15.9103 12.375 16.2884C12.375 16.6665 12.2403 16.9902 11.971 17.2595C11.7018 17.5287 11.3781 17.6634 11 17.6634ZM11 12.3749C10.6219 12.3749 10.2982 12.2403 10.0289 11.971C9.75964 11.7018 9.625 11.3781 9.625 11C9.625 10.6218 9.75964 10.2982 10.0289 10.0289C10.2982 9.75962 10.6219 9.62498 11 9.62498C11.3781 9.62498 11.7018 9.75962 11.971 10.0289C12.2403 10.2982 12.375 10.6218 12.375 11C12.375 11.3781 12.2403 11.7018 11.971 11.971C11.7018 12.2403 11.3781 12.3749 11 12.3749ZM11 7.08648C10.6219 7.08648 10.2982 6.95184 10.0289 6.68257C9.75964 6.41332 9.625 6.08963 9.625 5.7115C9.625 5.33339 9.75964 5.0097 10.0289 4.74043C10.2982 4.47118 10.6219 4.33655 11 4.33655C11.3781 4.33655 11.7018 4.47118 11.971 4.74043C12.2403 5.0097 12.375 5.33339 12.375 5.7115C12.375 6.08963 12.2403 6.41332 11.971 6.68257C11.7018 6.95184 11.3781 7.08648 11 7.08648Z",fill:"currentColor"})})]}),gh=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:"Twitter",children:[u.jsx("mask",{id:"mask0_1506_167",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_1506_167)",children:u.jsx("g",{id:"X",children:u.jsx("path",{id:"path1009",d:"M2.0317 2L7.05085 8.71109L2 14.1675H3.13674L7.55875 9.39033L11.1316 14.1675H15L9.69845 7.07891L14.3997 2H13.263L9.19054 6.39967L5.90008 2H2.0317ZM3.70336 2.83733H5.48051L13.3281 13.33H11.5509L3.70336 2.83733Z",fill:"currentColor"})})})]})}),mh=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:"Video",children:[u.jsx("mask",{id:"mask0_1506_153",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_1506_153)",children:u.jsx("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3782 3.03719C15.0725 3.22309 15.6201 3.76987 15.8053 4.46427C16.1429 5.72367 16.1429 8.35001 16.1429 8.35001C16.1429 8.35001 16.1429 10.9773 15.8053 12.2358C15.6201 12.9302 15.0725 13.4769 14.3782 13.6628C13.1197 14 8.07143 14 8.07143 14C8.07143 14 3.02403 14 1.76471 13.6628C1.07038 13.4769 0.522808 12.9302 0.337533 12.2358C0 10.9764 0 8.35001 0 8.35001C0 8.35001 0 5.72367 0.337533 4.46427C0.522808 3.76987 1.07038 3.22309 1.76471 3.03719C3.02312 2.70001 8.07143 2.70001 8.07143 2.70001C8.07143 2.70001 13.1197 2.70001 14.3782 3.03719ZM10.4931 8.35003L6.45735 5.9286V10.7715L10.4931 8.35003Z",fill:"currentColor"})})]})}),vh=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M14.0716 15L10.8994 11.7764C10.437 11.9597 9.96181 12.0919 9.47381 12.1732C8.98581 12.2545 8.49002 12.2952 7.98643 12.2952C6.33597 12.2952 4.82448 11.8457 3.45194 10.9466C2.07941 10.0476 0.991584 8.86271 0.188459 7.39193C0.123124 7.27666 0.0753836 7.15933 0.045238 7.03994C0.0150793 6.92055 0 6.7991 0 6.67559C0 6.55208 0.0163338 6.42935 0.0490013 6.30739C0.0816688 6.18543 0.13067 6.06938 0.196005 5.95925C0.508607 5.42714 0.84081 4.91226 1.19261 4.41462C1.54443 3.91699 1.95353 3.47673 2.41992 3.09386L0.24877 0.846015L1.07501 0L14.8978 14.154L14.0716 15ZM7.98643 9.94854C8.16032 9.94854 8.32642 9.93799 8.48473 9.91689C8.64305 9.89579 8.7976 9.84973 8.94838 9.77871L4.95591 5.69059C4.89158 5.84498 4.84786 6.00324 4.82475 6.16535C4.80162 6.32745 4.79005 6.49753 4.79005 6.67559C4.79005 7.58645 5.10039 8.35966 5.72108 8.99521C6.34176 9.63076 7.09688 9.94854 7.98643 9.94854ZM13.4384 10.3561L10.9792 7.85816C11.0456 7.66673 11.0961 7.47375 11.1308 7.27922C11.1655 7.0847 11.1828 6.88349 11.1828 6.67559C11.1828 5.76473 10.8725 4.99152 10.2518 4.35597C9.63109 3.72042 8.87598 3.40264 7.98643 3.40264C7.78339 3.40264 7.58689 3.42168 7.39692 3.45976C7.20694 3.49784 7.02099 3.56011 6.83907 3.64657L4.87751 1.64575C5.37606 1.44402 5.88441 1.29529 6.40257 1.19957C6.92071 1.10385 7.44867 1.05599 7.98643 1.05599C9.64191 1.05599 11.1604 1.50756 12.542 2.41072C13.9236 3.31387 15.0134 4.50598 15.8115 5.98705C15.8718 6.08894 15.9183 6.19829 15.951 6.31511C15.9837 6.43192 16 6.55208 16 6.67559C16 6.7991 15.9857 6.91926 15.957 7.03607C15.9284 7.15289 15.8839 7.26225 15.8236 7.36414C15.52 7.94669 15.1738 8.49038 14.7848 8.99521C14.3958 9.50005 13.947 9.95369 13.4384 10.3561ZM10.0912 6.95657L7.73162 4.54816C8.06131 4.48126 8.38246 4.50545 8.69506 4.62072C9.00767 4.736 9.27754 4.9156 9.5047 5.15952C9.7369 5.40036 9.90451 5.67723 10.0075 5.99012C10.1106 6.30301 10.1385 6.62516 10.0912 6.95657Z",fill:"currentColor"})}),xh=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M9.00204 9.98073C9.94628 9.98073 10.7483 9.65024 11.408 8.98927C12.0677 8.32829 12.3976 7.52567 12.3976 6.58142C12.3976 5.63718 12.0671 4.8352 11.4061 4.17548C10.7451 3.51576 9.9425 3.1859 8.99825 3.1859C8.05401 3.1859 7.25203 3.51638 6.59231 4.17735C5.93259 4.83834 5.60273 5.64096 5.60273 6.58521C5.60273 7.52944 5.93321 8.33142 6.59419 8.99115C7.25517 9.65087 8.05779 9.98073 9.00204 9.98073ZM9.00014 8.83331C8.37514 8.83331 7.84389 8.61456 7.40639 8.17706C6.96889 7.73956 6.75014 7.20831 6.75014 6.58331C6.75014 5.95831 6.96889 5.42706 7.40639 4.98956C7.84389 4.55206 8.37514 4.33331 9.00014 4.33331C9.62514 4.33331 10.1564 4.55206 10.5939 4.98956C11.0314 5.42706 11.2501 5.95831 11.2501 6.58331C11.2501 7.20831 11.0314 7.73956 10.5939 8.17706C10.1564 8.61456 9.62514 8.83331 9.00014 8.83331ZM9.00129 12.4166C7.08494 12.4166 5.33884 11.888 3.76298 10.8309C2.18713 9.77374 1.02688 8.35788 0.282227 6.58331C1.02688 4.80874 2.18675 3.39288 3.76185 2.33573C5.33694 1.27858 7.08265 0.75 8.999 0.75C10.9153 0.75 12.6614 1.27858 14.2373 2.33573C15.8132 3.39288 16.9734 4.80874 17.7181 6.58331C16.9734 8.35788 15.8135 9.77374 14.2384 10.8309C12.6634 11.888 10.9176 12.4166 9.00129 12.4166Z",fill:"currentColor"})}),wh=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"volume_up",children:[u.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1483_75386)",children:u.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),Hh={AddCircleIcon:Ed,AddContentIcon:$d,AddLinkIcon:kd,AddSourceIcon:Sd,AiPauseIcon:jd,AiPlayIcon:Ld,AiSummaryIcon:Md,AndroidIcon:Od,ArrowBackIcon:Rd,ArrowForwardIcon:Pd,ArrowRight:Td,AudioIcon:Hd,BitcoinIcon:Id,BoostIcon:Ad,BrowseGalleryIcon:Vd,BubbleChartIcon:K2,BudgetIcon:bd,BuildIcon:Dd,CalendarIcon:Nd,CameraCenterIcon:a3,CancelIcon:Bd,CheckIcon:zd,CheckedIcon:Zd,ChevronDownIcon:Fd,ChevronLeftIcon:Ud,ChevronRightIcon:Wd,ChevronUpIcon:Gd,ChipIcon:Kd,ClearIcon:yr,CloseIcon:Yd,ColorPickerIcon:qd,CommunitiesIcon:Y2,CompassIcon:Xd,ConstructionIcon:Jd,ContentIcon:Qd,CopyIcon:ef,CorporationIcon:tf,CreateEdgeIcon:nf,DefaultShowIcon:rf,DeleteIcon:of,DeleteNodeIcon:sf,DesignServicesIcon:af,DocumentIcon:lf,DownloadIcon:cf,EditIcon:uf,EditNodeIcon:df,EditTopicIcon:ff,EpisodeIcon:hf,EventIcon:pf,ExitFullScreen:Cf,ExploreIcon:gf,FamilyHistoryIcon:mf,FeedbackIcon:vf,FilterOffIcon:xf,FingerprintIcon:wf,FlipIcon:yf,FortIcon:bf,FullScreenIcon:_f,FunctionIcon:Ef,GlobeIcon:$f,GrainIcon:q2,HandymanIcon:kf,HardwareIcon:Sf,HashTag:jf,HashtagIcon:Lf,HelpIcon:Mf,HomeIcon:Of,InfoIcon:b3,JoystickIcon:Rf,LinkIcon:Pf,MenuIcon:Tf,MergeIcon:Hf,MoneyIcon:If,MuteVolumeIcon:Af,NodeCircleIcon:Vf,NodesIcon:_d,NotesIcon:Df,OrganizationIcon:Nf,PauseIcon:c3,PersonAdd:Bf,PersonIcon:zf,PhoneIcon:Zf,PlaceIcon:Ff,PlayIcon:u3,PlusIcon:Uf,PropertyHide:Wf,PropertyShow:Gf,PublicIcon:X2,QrCodeIcon:Kf,ReloadIcon:Yf,RobotIcon:qf,SaveIcon:Xf,ScheduleIcon:Jf,SchoolIcon:Qf,SearchFilterCloseIcon:eh,SearchFilterIcon:th,SearchIcon:nh,SensorsIcon:rh,SentimentDataIcon:oh,SettingsIcon:ih,ShieldPersonIcon:sh,SortFilterIcon:ah,SoundIcon:lh,SourcesIcon:ch,SourcesTableIcon:uh,StackIcon:dh,StorageIcon:fh,SucessFeedBackIcon:hh,SumFunctionIcon:ph,ThreeDotsIcons:Ch,TwitterIcon:gh,VideoIcon:mh,VisibilityOff:vh,VisibilityOn:xh,VolumeIcon:wh};export{Gt as $,ud as A,bd as B,Y2 as C,of as D,gf as E,vf as F,Jd as G,Mf as H,Hh as I,uf as J,Mh as K,wc as L,Tf as M,_d as N,Ph as O,bh as P,E3 as Q,qf as R,uh as S,qu as T,Y1 as U,o0 as V,Ct as W,e0 as X,M3 as Y,t0 as Z,Qe as _,Th as a,O3 as a$,r0 as a0,Kt as a1,ms as a2,G3 as a3,nh as a4,dh as a5,Ad as a6,Pf as a7,$f as a8,Lf as a9,Wd as aA,Bu as aB,q2 as aC,K2 as aD,X2 as aE,Qd as aF,xf as aG,D3 as aH,Vf as aI,yf as aJ,Td as aK,Gf as aL,Wf as aM,Ch as aN,xh as aO,vh as aP,ah as aQ,ff as aR,df as aS,sf as aT,r9 as aU,Vu as aV,Pi as aW,mf as aX,nf as aY,_h as aZ,hh as a_,ch as aa,Gd as ab,Fd as ac,_3 as ad,Md as ae,jd as af,Ld as ag,Rd as ah,zd as ai,Vd as aj,cf as ak,Yf as al,oh as am,jf as an,eh as ao,th as ap,Df as aq,ef as ar,Jf as as,L3 as at,Af as au,wh as av,_f as aw,Cf as ax,Yd as ay,Ud as az,ed as b,Es as b0,i5 as b1,lh as b2,c3 as c,u3 as d,n0 as e,hd as f,Uf as g,Me as h,d3 as i,Sd as j,$d as k,ih as l,Q as m,Pd as n,Lh as o,s3 as p,Oh as q,$c as r,Rh as s,Au as t,Zu as u,bu as v,Fn as w,Hf as x,Ed as y,lf as z}; +`,Mh=()=>{const e=p.useContext(g3);return e==null?void 0:e.socket},vd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M14 16C11.7667 16 9.875 15.225 8.325 13.675C6.775 12.125 6 10.2333 6 8C6 5.76667 6.775 3.875 8.325 2.325C9.875 0.775 11.7667 0 14 0C16.2333 0 18.125 0.775 19.675 2.325C21.225 3.875 22 5.76667 22 8C22 10.2333 21.225 12.125 19.675 13.675C18.125 15.225 16.2333 16 14 16ZM4.625 15.25C3.225 14.6 2.10433 13.625 1.263 12.325C0.421 11.025 0 9.58333 0 8C0 6.41667 0.421 4.975 1.263 3.675C2.10433 2.375 3.225 1.4 4.625 0.75C4.975 0.583333 5.29167 0.595667 5.575 0.787C5.85833 0.979 6 1.29167 6 1.725C6 1.89167 5.946 2.054 5.838 2.212C5.72933 2.37067 5.59167 2.49167 5.425 2.575C4.375 3.05833 3.54167 3.78733 2.925 4.762C2.30833 5.73733 2 6.81667 2 8C2 9.18333 2.30833 10.2623 2.925 11.237C3.54167 12.2123 4.375 12.9417 5.425 13.425C5.59167 13.5083 5.72933 13.625 5.838 13.775C5.946 13.925 6 14.0917 6 14.275C6 14.6917 5.85833 15 5.575 15.2C5.29167 15.4 4.975 15.4167 4.625 15.25ZM14 14C15.6667 14 17.0833 13.4167 18.25 12.25C19.4167 11.0833 20 9.66667 20 8C20 6.33333 19.4167 4.91667 18.25 3.75C17.0833 2.58333 15.6667 2 14 2C12.3333 2 10.9167 2.58333 9.75 3.75C8.58333 4.91667 8 6.33333 8 8C8 9.66667 8.58333 11.0833 9.75 12.25C10.9167 13.4167 12.3333 14 14 14Z",fill:"currentColor"})}),xd=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:"Nodes",children:[u.jsx("mask",{id:"mask0_1506_141",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_1506_141)",children:u.jsx("path",{id:"hub",d:"M4.00071 15.1667C3.49166 15.1667 3.05873 14.9886 2.70189 14.6322C2.34506 14.2759 2.16664 13.8432 2.16664 13.3341C2.16664 12.8251 2.3449 12.3922 2.70141 12.0353C3.05793 11.6785 3.49084 11.5001 4.00014 11.5001C4.14275 11.5001 4.28286 11.5178 4.42048 11.5533C4.55808 11.5887 4.68799 11.6364 4.81021 11.6962L6.13204 10.0513C5.85512 9.74962 5.66409 9.41201 5.55896 9.03851C5.45384 8.66501 5.43247 8.28938 5.49486 7.91161L3.57431 7.2757C3.40679 7.54493 3.18652 7.76074 2.91351 7.92313C2.6405 8.08552 2.33598 8.16671 1.99996 8.16671C1.4907 8.16671 1.05784 7.98855 0.701359 7.63221C0.344882 7.27588 0.166637 6.84319 0.166626 6.33415C0.166626 5.8251 0.344793 5.39217 0.701126 5.03533C1.05746 4.6785 1.49015 4.50008 1.99919 4.50008C2.50824 4.50008 2.94118 4.67832 3.29801 5.0348C3.65484 5.39128 3.83326 5.82414 3.83328 6.3334C3.83328 6.37272 3.83221 6.40563 3.83008 6.43211C3.82794 6.45861 3.82688 6.48511 3.82688 6.51161L5.74101 7.177C5.92476 6.83683 6.17711 6.54496 6.49806 6.30138C6.81899 6.05779 7.18715 5.90138 7.60253 5.83215V3.78595C7.17347 3.68509 6.82689 3.46821 6.56279 3.13531C6.29869 2.80241 6.16664 2.42312 6.16664 1.99742C6.16664 1.49064 6.34481 1.05883 6.70114 0.701999C7.05748 0.345166 7.49016 0.166748 7.99921 0.166748C8.50825 0.166748 8.94119 0.344987 9.29803 0.701465C9.65486 1.05794 9.83328 1.49081 9.83328 2.00007C9.83328 2.424 9.69951 2.80241 9.43199 3.13531C9.16448 3.46821 8.81961 3.68509 8.39739 3.78595V5.83215C8.81277 5.90138 9.17986 6.05779 9.49866 6.30138C9.81746 6.54496 10.0709 6.83683 10.2589 7.177L12.173 6.51161C12.1688 6.48084 12.1666 6.45327 12.1666 6.42892V6.3334C12.1666 5.82414 12.3448 5.39128 12.7011 5.0348C13.0575 4.67832 13.4902 4.50008 13.9992 4.50008C14.5083 4.50008 14.9412 4.67825 15.298 5.03458C15.6549 5.39091 15.8333 5.8236 15.8333 6.33265C15.8333 6.84169 15.655 7.27463 15.2986 7.63146C14.9421 7.9883 14.5092 8.16671 14 8.16671C13.6653 8.16671 13.3594 8.08552 13.0823 7.92313C12.8052 7.76074 12.5863 7.54493 12.4256 7.2757L10.5051 7.91161C10.5674 8.28938 10.5461 8.6633 10.441 9.03338C10.3358 9.40347 10.1448 9.74065 9.86788 10.0449L11.1897 11.6796C11.3119 11.624 11.4418 11.5802 11.5794 11.5481C11.7171 11.5161 11.8572 11.5001 11.9998 11.5001C12.5091 11.5001 12.942 11.6782 13.2985 12.0346C13.655 12.3909 13.8333 12.8236 13.8333 13.3326C13.8333 13.8417 13.6551 14.2746 13.2988 14.6315C12.9424 14.9883 12.5098 15.1667 12.0007 15.1667C11.4917 15.1667 11.0587 14.9885 10.7019 14.632C10.3451 14.2755 10.1666 13.8427 10.1666 13.3334C10.1666 13.1232 10.2006 12.9208 10.2686 12.7264C10.3365 12.5319 10.438 12.3535 10.573 12.1911L9.25123 10.5334C8.8726 10.759 8.45488 10.8718 7.99804 10.8718C7.54121 10.8718 7.12134 10.759 6.73844 10.5334L5.42688 12.1911C5.55764 12.3535 5.65807 12.5319 5.72816 12.7264C5.79824 12.9208 5.83328 13.1232 5.83328 13.3334C5.83328 13.8427 5.65511 14.2755 5.29878 14.632C4.94244 14.9885 4.50975 15.1667 4.00071 15.1667Z",fill:"currentColor"})})]})}),wd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),yd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_25)",children:u.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),bd=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:"add_link",children:[u.jsx("mask",{id:"mask0_2659_52",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_2659_52)",children:u.jsx("path",{id:"add_link_2",d:"M14.1987 13.7821H12.3349C12.1629 13.7821 12.0192 13.7222 11.9039 13.6024C11.7885 13.4826 11.7308 13.3342 11.7308 13.1571C11.7308 12.9851 11.7907 12.8379 11.9105 12.7156C12.0303 12.5933 12.1787 12.5321 12.3558 12.5321H14.1987V10.6891C14.1987 10.5121 14.2587 10.3636 14.3785 10.2438C14.4983 10.124 14.6468 10.0641 14.824 10.0641C15.0012 10.0641 15.1496 10.124 15.2692 10.2438C15.3889 10.3636 15.4487 10.5121 15.4487 10.6891V12.5321H17.2917C17.4687 12.5321 17.6172 12.592 17.737 12.7119C17.8568 12.8317 17.9167 12.9802 17.9167 13.1574C17.9167 13.3345 17.8568 13.4829 17.737 13.6026C17.6172 13.7222 17.4687 13.7821 17.2917 13.7821H15.4487V15.625C15.4487 15.8021 15.3888 15.9505 15.2689 16.0703C15.1491 16.1901 15.0006 16.25 14.8234 16.25C14.6463 16.25 14.4979 16.1901 14.3782 16.0703C14.2586 15.9505 14.1987 15.8021 14.1987 15.625V13.7821ZM8.38142 13.7821H5.8654C4.81904 13.7821 3.92711 13.4134 3.18961 12.676C2.45211 11.9386 2.08336 11.0467 2.08336 10.0005C2.08336 8.95426 2.45211 8.06229 3.18961 7.32458C3.92711 6.58687 4.81904 6.21802 5.8654 6.21802H8.38142C8.55342 6.21802 8.70059 6.27918 8.82292 6.4015C8.94524 6.52383 9.0064 6.67233 9.0064 6.847C9.0064 7.02168 8.94524 7.16884 8.82292 7.2885C8.70059 7.40815 8.55342 7.46798 8.38142 7.46798H5.86444C5.16529 7.46798 4.56865 7.71504 4.07453 8.20916C3.5804 8.70329 3.33334 9.30025 3.33334 10C3.33334 10.6998 3.5804 11.2968 4.07453 11.7909C4.56865 12.285 5.16529 12.5321 5.86444 12.5321H8.38142C8.55342 12.5321 8.70059 12.5933 8.82292 12.7156C8.94524 12.8379 9.0064 12.9864 9.0064 13.1611C9.0064 13.3358 8.94524 13.4829 8.82292 13.6026C8.70059 13.7222 8.55342 13.7821 8.38142 13.7821ZM7.50001 10.625C7.32292 10.625 7.17449 10.5651 7.05471 10.4453C6.93492 10.3254 6.87503 10.1769 6.87503 9.99977C6.87503 9.8226 6.93492 9.67419 7.05471 9.55454C7.17449 9.43489 7.32292 9.37506 7.50001 9.37506H12.5C12.6771 9.37506 12.8255 9.43498 12.9453 9.55481C13.0651 9.67466 13.125 9.82316 13.125 10.0003C13.125 10.1775 13.0651 10.3259 12.9453 10.4455C12.8255 10.5652 12.6771 10.625 12.5 10.625H7.50001ZM17.9167 10H16.6667C16.6667 9.30025 16.4196 8.70329 15.9255 8.20916C15.4314 7.71504 14.8347 7.46798 14.1356 7.46798H11.5978C11.4258 7.46798 11.2821 7.40809 11.1667 7.28831C11.0513 7.16852 10.9936 7.02008 10.9936 6.843C10.9936 6.671 11.0535 6.52383 11.1733 6.4015C11.2931 6.27918 11.4415 6.21802 11.6186 6.21802H14.1346C15.181 6.21802 16.0729 6.58676 16.8104 7.32425C17.5479 8.06175 17.9167 8.95368 17.9167 10Z",fill:"currentColor"})})]})}),_d=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_27)",children:u.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),Ed=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.50033 10C7.27703 10 7.08233 9.91694 6.9162 9.75081C6.75006 9.58467 6.66699 9.38996 6.66699 9.16667V0.833333C6.66699 0.610042 6.75006 0.415326 6.9162 0.249187C7.08233 0.0830625 7.27703 0 7.50033 0H8.75033C8.97362 0 9.16833 0.0830625 9.33447 0.249187C9.5006 0.415326 9.58366 0.610042 9.58366 0.833333V9.16667C9.58366 9.38996 9.5006 9.58467 9.33447 9.75081C9.16833 9.91694 8.97362 10 8.75033 10H7.50033ZM1.25033 10C1.02703 10 0.832319 9.91694 0.66618 9.75081C0.500055 9.58467 0.416992 9.38996 0.416992 9.16667V0.833333C0.416992 0.610042 0.500055 0.415326 0.66618 0.249187C0.832319 0.0830625 1.02703 0 1.25033 0H2.50033C2.72362 0 2.91833 0.0830625 3.08445 0.249187C3.25059 0.415326 3.33366 0.610042 3.33366 0.833333V9.16667C3.33366 9.38996 3.25059 9.58467 3.08445 9.75081C2.91833 9.91694 2.72362 10 2.50033 10H1.25033Z",fill:"currentColor"})}),$d=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M13.577 7.62502H11.8142C11.6368 7.62502 11.4883 7.56519 11.3687 7.44554C11.249 7.32589 11.1892 7.17739 11.1892 7.00004C11.1892 6.82269 11.249 6.67419 11.3687 6.55454C11.4883 6.43489 11.6368 6.37506 11.8142 6.37506H13.577C13.7543 6.37506 13.9028 6.43489 14.0225 6.55454C14.1421 6.67419 14.202 6.82269 14.202 7.00004C14.202 7.17739 14.1421 7.32589 14.0225 7.44554C13.9028 7.56519 13.7543 7.62502 13.577 7.62502ZM10.1106 10.9279C10.2175 10.7816 10.354 10.6972 10.5201 10.6747C10.6862 10.6523 10.8425 10.6945 10.9888 10.8013L12.3943 11.8574C12.5406 11.9642 12.625 12.1007 12.6475 12.2669C12.6699 12.433 12.6277 12.5892 12.5209 12.7356C12.4141 12.882 12.2776 12.9664 12.1114 12.9888C11.9453 13.0112 11.7891 12.969 11.6427 12.8622L10.2372 11.8061C10.0909 11.6993 10.0065 11.5628 9.98405 11.3967C9.96161 11.2305 10.0038 11.0743 10.1106 10.9279ZM12.3622 2.1106L10.9568 3.16671C10.8104 3.27354 10.6542 3.31574 10.488 3.29331C10.3219 3.27087 10.1854 3.18646 10.0786 3.0401C9.97176 2.89374 9.92956 2.7375 9.95199 2.57137C9.97442 2.40525 10.0588 2.26876 10.2052 2.16192L11.6106 1.10583C11.757 0.998998 11.9133 0.956796 12.0794 0.979227C12.2455 1.00166 12.382 1.08606 12.4888 1.23244C12.5957 1.3788 12.6379 1.53504 12.6154 1.70116C12.593 1.86729 12.5086 2.00377 12.3622 2.1106ZM4.05778 9.08335H1.71805C1.5033 9.08335 1.32408 9.0115 1.18039 8.86779C1.03669 8.7241 0.964844 8.54488 0.964844 8.33014V5.66994C0.964844 5.4552 1.03669 5.27599 1.18039 5.13229C1.32408 4.98858 1.5033 4.91673 1.71805 4.91673H4.05778L6.55134 2.42317C6.75114 2.22339 6.9811 2.17771 7.24124 2.28614C7.50138 2.39459 7.63145 2.5909 7.63145 2.87508V11.125C7.63145 11.4092 7.50138 11.6055 7.24124 11.7139C6.9811 11.8224 6.75114 11.7767 6.55134 11.5769L4.05778 9.08335Z",fill:"currentColor"})}),kd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.28729 0.918723C7.41428 0.105284 8.58572 0.105284 8.71271 0.918723L8.76054 1.22508C9.2444 4.32436 11.6757 6.75568 14.775 7.23954L15.0814 7.28737C15.8948 7.41436 15.8948 8.5858 15.0814 8.71279L14.775 8.76062C11.6757 9.24448 9.2444 11.6758 8.76054 14.7751L8.71271 15.0814C8.58572 15.8949 7.41428 15.8949 7.28729 15.0814L7.23946 14.7751C6.7556 11.6758 4.32428 9.24448 1.225 8.76062L0.918643 8.71279C0.105204 8.5858 0.105204 7.41436 0.918642 7.28737L1.225 7.23954C4.32428 6.75568 6.7556 4.32436 7.23946 1.22508L7.28729 0.918723Z",fill:"currentColor"})}),Sd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_21694",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_21694)",children:u.jsx("path",{d:"M1.07697 10.4639C1.16067 9.50216 1.45574 8.61772 1.96217 7.81059C2.4687 7.00354 3.14323 6.36236 3.98576 5.88704L2.99074 4.16621C2.9361 4.0824 2.92244 3.99661 2.94976 3.90881C2.97708 3.82093 3.0356 3.75268 3.12534 3.70406C3.20312 3.65915 3.28503 3.65035 3.37107 3.67767C3.45701 3.70499 3.52692 3.75909 3.58078 3.83998L4.57697 5.56504C5.34872 5.24159 6.15639 5.07986 6.99999 5.07986C7.84358 5.07986 8.65126 5.24159 9.42301 5.56504L10.4192 3.83998C10.4731 3.75909 10.543 3.70499 10.6289 3.67767C10.7149 3.65035 10.7969 3.65915 10.8746 3.70406C10.9644 3.75268 11.0229 3.82093 11.0502 3.90881C11.0775 3.99661 11.0639 4.0824 11.0092 4.16621L10.0142 5.88704C10.8567 6.36236 11.5313 7.00354 12.0378 7.81059C12.5442 8.61772 12.8393 9.50216 12.923 10.4639H1.07697ZM4.30849 8.98323C4.49719 8.98323 4.6564 8.91809 4.78609 8.78782C4.91588 8.65744 4.98078 8.49795 4.98078 8.30934C4.98078 8.12063 4.91564 7.96138 4.78536 7.83159C4.65508 7.70189 4.49559 7.63704 4.30688 7.63704C4.11817 7.63704 3.95897 7.70218 3.82928 7.83246C3.69949 7.96274 3.63459 8.12223 3.63459 8.31094C3.63459 8.49955 3.69973 8.65875 3.83001 8.78854C3.96028 8.91834 4.11978 8.98323 4.30849 8.98323ZM9.69309 8.98323C9.8818 8.98323 10.041 8.91809 10.1707 8.78782C10.3005 8.65744 10.3654 8.49795 10.3654 8.30934C10.3654 8.12063 10.3002 7.96138 10.17 7.83159C10.0397 7.70189 9.88019 7.63704 9.69149 7.63704C9.50278 7.63704 9.34358 7.70218 9.21388 7.83246C9.08409 7.96274 9.0192 8.12223 9.0192 8.31094C9.0192 8.49955 9.08433 8.65875 9.21461 8.78854C9.34489 8.91834 9.50438 8.98323 9.69309 8.98323Z",fill:"currentColor"})})]}),jd=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:"arrow_forward",children:[u.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_8980_24763)",children:u.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),Ld=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M9.47019 6.56248H0.9375C0.777887 6.56248 0.644237 6.50863 0.53655 6.40094C0.42885 6.29326 0.375 6.15961 0.375 5.99999C0.375 5.84038 0.42885 5.70673 0.53655 5.59904C0.644237 5.49136 0.777887 5.43751 0.9375 5.43751H9.47019L5.59326 1.56058C5.48172 1.44904 5.42667 1.31851 5.42812 1.169C5.42956 1.01948 5.48846 0.886545 5.60481 0.770208C5.72114 0.661558 5.85287 0.605308 5.99998 0.601458C6.14709 0.597608 6.27882 0.653858 6.39516 0.770208L11.1504 5.52549C11.2206 5.59568 11.2701 5.66971 11.299 5.7476C11.3278 5.82548 11.3423 5.90961 11.3423 5.99999C11.3423 6.09038 11.3278 6.17451 11.299 6.25239C11.2701 6.33028 11.2206 6.40431 11.1504 6.4745L6.39516 11.2298C6.29132 11.3336 6.16272 11.3868 6.00936 11.3892C5.85599 11.3916 5.72114 11.3384 5.60481 11.2298C5.48846 11.1134 5.43028 10.9798 5.43028 10.8288C5.43028 10.6779 5.48846 10.5442 5.60481 10.4279L9.47019 6.56248Z",fill:"currentColor"})}),Md=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M6 5L6.90043e-08 9.33013L4.47556e-07 0.669872L6 5Z",fill:"currentColor"})}),Od=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:"Audio",children:[u.jsx("mask",{id:"mask0_1506_147",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_1506_147)",children:u.jsx("path",{id:"headphones",d:"M4.48719 13.6667H3.53851C3.20175 13.6667 2.91671 13.55 2.68337 13.3167C2.45004 13.0833 2.33337 12.7983 2.33337 12.4615V8.00002C2.33337 7.21337 2.4821 6.47654 2.77954 5.78952C3.07697 5.10251 3.48124 4.50345 3.99234 3.99234C4.50345 3.48124 5.10247 3.07697 5.78941 2.77954C6.47634 2.4821 7.21309 2.33337 7.99966 2.33337C8.78622 2.33337 9.5231 2.4821 10.2103 2.77954C10.8975 3.07697 11.4966 3.48124 12.0077 3.99234C12.5188 4.50345 12.9231 5.10251 13.2205 5.78952C13.518 6.47654 13.6667 7.21337 13.6667 8.00002V12.4615C13.6667 12.7983 13.55 13.0833 13.3167 13.3167C13.0833 13.55 12.7983 13.6667 12.4615 13.6667H11.5129C11.1814 13.6667 10.8977 13.5487 10.6617 13.3127C10.4257 13.0767 10.3077 12.793 10.3077 12.4615V10.1539C10.3077 9.82247 10.4257 9.53878 10.6617 9.30278C10.8977 9.06676 11.1814 8.94876 11.5129 8.94876H12.6667V8.00002C12.6667 6.70002 12.2139 5.59725 11.3084 4.69169C10.4028 3.78614 9.30002 3.33336 8.00002 3.33336C6.70002 3.33336 5.59725 3.78614 4.69169 4.69169C3.78614 5.59725 3.33336 6.70002 3.33336 8.00002V8.94876H4.48719C4.8186 8.94876 5.10231 9.06676 5.33831 9.30278C5.57431 9.53878 5.69231 9.82247 5.69231 10.1539V12.4615C5.69231 12.793 5.57431 13.0767 5.33831 13.3127C5.10231 13.5487 4.8186 13.6667 4.48719 13.6667Z",fill:"currentColor"})})]})}),Rd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_45)",children:u.jsx("path",{d:"M5.13135 11.705V11.2019H4.04489C3.85871 11.2019 3.70155 11.1378 3.57341 11.0098C3.44537 10.8817 3.38135 10.7245 3.38135 10.5383C3.38135 10.3521 3.44537 10.195 3.57341 10.0668C3.70155 9.9388 3.85871 9.87478 4.04489 9.87478H4.54801V4.12516H4.04489C3.85871 4.12516 3.70155 4.06114 3.57341 3.9331C3.44537 3.80496 3.38135 3.6478 3.38135 3.46162C3.38135 3.27544 3.44537 3.11828 3.57341 2.99014C3.70155 2.8621 3.85871 2.79808 4.04489 2.79808H5.13135V2.29495C5.13135 2.10877 5.19537 1.95161 5.32341 1.82347C5.45155 1.69543 5.60871 1.63141 5.79489 1.63141C5.98107 1.63141 6.13823 1.69543 6.26637 1.82347C6.39441 1.95161 6.45843 2.10877 6.45843 2.29495V2.79808H7.54139V2.29495C7.54139 2.10877 7.60541 1.95161 7.73345 1.82347C7.86159 1.69543 8.01875 1.63141 8.20493 1.63141C8.39111 1.63141 8.54827 1.69543 8.67641 1.82347C8.80445 1.95161 8.86847 2.10877 8.86847 2.29495V2.89185C9.3857 3.04196 9.80958 3.33114 10.1401 3.75941C10.4707 4.18777 10.636 4.67879 10.636 5.23247C10.636 5.50985 10.5896 5.77794 10.497 6.03674C10.4044 6.29555 10.2742 6.52815 10.1062 6.73455C10.4418 6.94805 10.7112 7.2333 10.9144 7.5903C11.1177 7.9473 11.2193 8.33969 11.2193 8.76747C11.2193 9.42537 10.9908 9.99033 10.5339 10.4623C10.0769 10.9345 9.52181 11.1786 8.86847 11.1949V11.705C8.86847 11.8912 8.80445 12.0483 8.67641 12.1765C8.54827 12.3045 8.39111 12.3685 8.20493 12.3685C8.01875 12.3685 7.86159 12.3045 7.73345 12.1765C7.60541 12.0483 7.54139 11.8912 7.54139 11.705V11.2019H6.45843V11.705C6.45843 11.8912 6.39441 12.0483 6.26637 12.1765C6.13823 12.3045 5.98107 12.3685 5.79489 12.3685C5.60871 12.3685 5.45155 12.3045 5.32341 12.1765C5.19537 12.0483 5.13135 11.8912 5.13135 11.705ZM5.8751 6.33643H8.20493C8.50953 6.33643 8.76965 6.22861 8.98529 6.01297C9.20102 5.79724 9.30889 5.53707 9.30889 5.23247C9.30889 4.92797 9.20102 4.66727 8.98529 4.45037C8.76965 4.23356 8.50953 4.12516 8.20493 4.12516H5.8751V6.33643ZM5.8751 9.87478H8.78826C9.09286 9.87478 9.35298 9.76638 9.56862 9.54957C9.78436 9.33267 9.89222 9.07197 9.89222 8.76747C9.89222 8.46287 9.78436 8.20271 9.56862 7.98697C9.35298 7.77133 9.09286 7.66351 8.78826 7.66351H5.8751V9.87478Z",fill:"currentColor"})})]}),Pd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 9 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{id:"Icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.97172 5.26825L8.23268 0.525927C8.24606 0.301673 8.05202 0.110397 7.81782 0.116993L3.00677 0.374226C2.66551 0.394014 2.51161 0.796353 2.7525 1.0338L7.30259 5.51889C7.54348 5.75633 7.95165 5.60463 7.97172 5.26825ZM5.56945 5.5915L2.67881 2.74215L1.79555 3.61278L4.6862 6.46213L5.56945 5.5915ZM1.14615 6.44238L0.0353953 5.34749L0.918648 4.47686L3.80929 7.32621L2.92604 8.19685L1.81528 7.10196L0.918648 7.98578C0.731292 8.17046 0.436874 8.17046 0.249518 7.98578C0.0621611 7.8011 0.0621611 7.51089 0.249517 7.32621L1.14615 6.44238Z",fill:"currentColor"})}),Td=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"browse_gallery",children:[u.jsx("mask",{id:"mask0_1360_27257",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1360_27257)",children:u.jsx("path",{id:"browse_gallery_2",d:"M11.8 15.8442L12.8442 14.8L9.74998 11.7026V7.25003H8.25003V12.2942L11.8 15.8442ZM18 19.9615V18.3C19.2333 17.7167 20.2083 16.8583 20.925 15.725C21.6417 14.5917 22 13.35 22 12C22 10.65 21.6417 9.40834 20.925 8.27501C20.2083 7.14167 19.2333 6.28334 18 5.70001V4.03851C19.6628 4.67184 20.9952 5.71318 21.9971 7.16253C22.999 8.61188 23.5 10.2244 23.5 12C23.5 13.7756 22.999 15.3881 21.9971 16.8375C20.9952 18.2868 19.6628 19.3282 18 19.9615ZM9.00055 20.5C7.8207 20.5 6.71539 20.2769 5.68463 19.8307C4.65386 19.3846 3.75514 18.7782 2.98848 18.0115C2.22181 17.2449 1.61541 16.3463 1.16927 15.3159C0.723092 14.2855 0.5 13.1804 0.5 12.0006C0.5 10.8207 0.723083 9.7154 1.16925 8.68463C1.6154 7.65386 2.2218 6.75515 2.98845 5.98848C3.75512 5.22183 4.65365 4.61543 5.68405 4.16928C6.71445 3.72311 7.81957 3.50003 8.99942 3.50003C10.1793 3.50003 11.2846 3.72311 12.3154 4.16928C13.3461 4.61543 14.2448 5.22183 15.0115 5.98848C15.7782 6.75515 16.3846 7.65368 16.8307 8.68408C17.2769 9.71448 17.5 10.8196 17.5 11.9995C17.5 13.1793 17.2769 14.2846 16.8307 15.3154C16.3846 16.3461 15.7782 17.2449 15.0115 18.0115C14.2448 18.7782 13.3463 19.3846 12.3159 19.8307C11.2855 20.2769 10.1804 20.5 9.00055 20.5ZM9 19C10.95 19 12.6042 18.3208 13.9625 16.9625C15.3208 15.6042 16 13.95 16 12C16 10.05 15.3208 8.39584 13.9625 7.03751C12.6042 5.67917 10.95 5.00001 9 5.00001C7.05 5.00001 5.39583 5.67917 4.0375 7.03751C2.67917 8.39584 2 10.05 2 12C2 13.95 2.67917 15.6042 4.0375 16.9625C5.39583 18.3208 7.05 19 9 19Z",fill:"currentColor"})})]})}),Hd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_21901",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_21901)",children:u.jsx("path",{d:"M5.21632 8.60415C4.28522 8.60415 3.49344 8.27787 2.84099 7.62531C2.18843 6.97285 1.86215 6.18108 1.86215 5.24998C1.86215 5.08917 1.87396 4.92744 1.89759 4.76479C1.92112 4.60214 1.96054 4.44639 2.01586 4.29754C2.05329 4.20781 2.1038 4.14145 2.16738 4.09848C2.23087 4.05551 2.30262 4.0243 2.38263 4.00485C2.46274 3.98541 2.54334 3.98687 2.62442 4.00923C2.7056 4.03169 2.77944 4.07622 2.84594 4.14281L4.39965 5.68529L5.65163 4.43331L4.11469 2.89083C4.04819 2.82424 4.00371 2.74947 3.98126 2.66654C3.9588 2.58351 3.95729 2.50199 3.97674 2.42198C3.99618 2.34197 4.02836 2.27017 4.07328 2.20658C4.1181 2.143 4.18353 2.09249 4.26957 2.05506C4.41842 1.99605 4.57324 1.95473 4.73405 1.9311C4.89476 1.90758 5.05551 1.89581 5.21632 1.89581C6.14742 1.89581 6.93924 2.22209 7.5918 2.87465C8.24426 3.5271 8.57049 4.31888 8.57049 5.24998C8.57049 5.49605 8.5473 5.72525 8.50092 5.93758C8.45455 6.15001 8.38498 6.35535 8.29223 6.55358L11.4625 9.70577C11.707 9.95029 11.8293 10.2487 11.8293 10.6009C11.8293 10.9531 11.707 11.2516 11.4625 11.4962C11.218 11.7407 10.9196 11.8629 10.5674 11.8629C10.2151 11.8629 9.91672 11.7377 9.67211 11.4871L6.51992 8.3259C6.3142 8.41495 6.10517 8.48359 5.89284 8.53181C5.68041 8.58004 5.4549 8.60415 5.21632 8.60415Z",fill:"currentColor"})})]}),Id=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M2.1875 11.4688C2.1875 12.0381 2.64941 12.5 3.21875 12.5H10.7812C11.3506 12.5 11.8125 12.0381 11.8125 11.4688V5.625H2.1875V11.4688ZM9.0625 7.25781C9.0625 7.11602 9.17852 7 9.32031 7H10.1797C10.3215 7 10.4375 7.11602 10.4375 7.25781V8.11719C10.4375 8.25898 10.3215 8.375 10.1797 8.375H9.32031C9.17852 8.375 9.0625 8.25898 9.0625 8.11719V7.25781ZM9.0625 10.0078C9.0625 9.86602 9.17852 9.75 9.32031 9.75H10.1797C10.3215 9.75 10.4375 9.86602 10.4375 10.0078V10.8672C10.4375 11.009 10.3215 11.125 10.1797 11.125H9.32031C9.17852 11.125 9.0625 11.009 9.0625 10.8672V10.0078ZM6.3125 7.25781C6.3125 7.11602 6.42852 7 6.57031 7H7.42969C7.57148 7 7.6875 7.11602 7.6875 7.25781V8.11719C7.6875 8.25898 7.57148 8.375 7.42969 8.375H6.57031C6.42852 8.375 6.3125 8.25898 6.3125 8.11719V7.25781ZM6.3125 10.0078C6.3125 9.86602 6.42852 9.75 6.57031 9.75H7.42969C7.57148 9.75 7.6875 9.86602 7.6875 10.0078V10.8672C7.6875 11.009 7.57148 11.125 7.42969 11.125H6.57031C6.42852 11.125 6.3125 11.009 6.3125 10.8672V10.0078ZM3.5625 7.25781C3.5625 7.11602 3.67852 7 3.82031 7H4.67969C4.82148 7 4.9375 7.11602 4.9375 7.25781V8.11719C4.9375 8.25898 4.82148 8.375 4.67969 8.375H3.82031C3.67852 8.375 3.5625 8.25898 3.5625 8.11719V7.25781ZM3.5625 10.0078C3.5625 9.86602 3.67852 9.75 3.82031 9.75H4.67969C4.82148 9.75 4.9375 9.86602 4.9375 10.0078V10.8672C4.9375 11.009 4.82148 11.125 4.67969 11.125H3.82031C3.67852 11.125 3.5625 11.009 3.5625 10.8672V10.0078ZM10.7812 2.875H9.75V1.84375C9.75 1.65469 9.59531 1.5 9.40625 1.5H8.71875C8.52969 1.5 8.375 1.65469 8.375 1.84375V2.875H5.625V1.84375C5.625 1.65469 5.47031 1.5 5.28125 1.5H4.59375C4.40469 1.5 4.25 1.65469 4.25 1.84375V2.875H3.21875C2.64941 2.875 2.1875 3.33691 2.1875 3.90625V4.9375H11.8125V3.90625C11.8125 3.33691 11.3506 2.875 10.7812 2.875Z",fill:"currentColor"})}),Ad=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"cancel",children:[u.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1264_3381)",children:u.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),Vd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})}),Dd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 11 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M10.6649 1.81615L4.76839 7.381C4.56014 7.57431 4.29239 7.67389 4.02463 7.67389C3.75688 7.67389 3.48913 7.57431 3.28088 7.381L0.329676 4.59858C-0.0987253 4.19439 -0.110625 3.52661 0.299926 3.10485C0.710477 2.6831 1.38878 2.67138 1.81718 3.07556L4.02463 5.16092L9.17735 0.293138C9.60575 -0.111046 10.2841 -0.0934726 10.6946 0.322427C11.1052 0.744184 11.0933 1.41197 10.6649 1.81615Z",fill:"currentColor"})}),Nd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M5.00031 5.21584C4.89989 5.21584 4.80642 5.1998 4.71989 5.16772C4.63337 5.13577 4.55107 5.08077 4.47302 5.00272L0.72781 1.25751C0.612533 1.14209 0.551421 0.999177 0.544477 0.82876C0.537532 0.658482 0.598644 0.508691 0.72781 0.379385C0.848644 0.258691 0.995032 0.198343 1.16698 0.198343C1.33892 0.198343 1.48531 0.258691 1.60614 0.379385L5.00031 3.76084L8.39448 0.379385C8.50989 0.263968 8.65281 0.202788 8.82323 0.195843C8.99364 0.188899 9.14351 0.250079 9.27281 0.379385C9.39351 0.50008 9.45385 0.646399 9.45385 0.818344C9.45385 0.990427 9.39351 1.13682 9.27281 1.25751L5.5276 5.00272C5.44955 5.08077 5.36725 5.13577 5.28073 5.16772C5.1942 5.1998 5.10073 5.21584 5.00031 5.21584Z",fill:"currentColor"})}),Bd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"keyboard_arrow_left",children:[u.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:u.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1428_267)",children:u.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),zd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"chevron_right",children:[u.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1247_21809)",children:u.jsx("path",{id:"chevron_right_2",d:"M9.44998 8.99998L6.52498 6.07498C6.38748 5.93748 6.31873 5.76248 6.31873 5.54998C6.31873 5.33748 6.38748 5.16248 6.52498 5.02498C6.66248 4.88748 6.83748 4.81873 7.04998 4.81873C7.26248 4.81873 7.43748 4.88748 7.57498 5.02498L11.025 8.47498C11.1 8.54997 11.1531 8.63123 11.1844 8.71873C11.2156 8.80623 11.2312 8.89998 11.2312 8.99998C11.2312 9.09998 11.2156 9.19373 11.1844 9.28123C11.1531 9.36873 11.1 9.44998 11.025 9.52497L7.57498 12.975C7.43748 13.1125 7.26248 13.1812 7.04998 13.1812C6.83748 13.1812 6.66248 13.1125 6.52498 12.975C6.38748 12.8375 6.31873 12.6625 6.31873 12.45C6.31873 12.2375 6.38748 12.0625 6.52498 11.925L9.44998 8.99998Z",fill:"currentColor"})})]})}),Zd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4.99993 1.71281L1.60576 5.10719C1.49034 5.22247 1.34528 5.28149 1.17055 5.28427C0.99597 5.28691 0.848262 5.22788 0.727428 5.10719C0.606734 4.98635 0.546387 4.83997 0.546387 4.66802C0.546387 4.49608 0.606734 4.34969 0.727428 4.22885L4.47264 0.483646C4.62333 0.333091 4.7991 0.257812 4.99993 0.257812C5.20076 0.257812 5.37653 0.333091 5.52722 0.483646L9.27243 4.22885C9.38771 4.34427 9.44673 4.48934 9.44951 4.66406C9.45215 4.83865 9.39312 4.98635 9.27243 5.10719C9.1516 5.22788 9.00521 5.28823 8.83326 5.28823C8.66132 5.28823 8.51493 5.22788 8.39409 5.10719L4.99993 1.71281Z",fill:"currentColor"})}),Fd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M9.16074 4.89288H4.83931C4.73083 4.89288 4.64288 4.98083 4.64288 5.08931V9.41074C4.64288 9.51923 4.73083 9.60717 4.83931 9.60717H9.16074C9.26923 9.60717 9.35717 9.51923 9.35717 9.41074V5.08931C9.35717 4.98083 9.26923 4.89288 9.16074 4.89288Z",fill:"currentColor"}),u.jsx("path",{d:"M12.1071 5.67857C12.2113 5.67857 12.3113 5.63718 12.3849 5.56351C12.4586 5.48983 12.5 5.38991 12.5 5.28571C12.5 5.18152 12.4586 5.0816 12.3849 5.00792C12.3113 4.93425 12.2113 4.89286 12.1071 4.89286H11.7143V4.10714C11.7138 3.69051 11.5481 3.29108 11.2535 2.99648C10.9589 2.70188 10.5595 2.53617 10.1429 2.53571H9.35714V2.14286C9.35714 2.03866 9.31575 1.93874 9.24208 1.86507C9.1684 1.79139 9.06848 1.75 8.96429 1.75C8.86009 1.75 8.76017 1.79139 8.68649 1.86507C8.61282 1.93874 8.57143 2.03866 8.57143 2.14286V2.53571H7.39286V2.14286C7.39286 2.03866 7.35147 1.93874 7.27779 1.86507C7.20412 1.79139 7.10419 1.75 7 1.75C6.89581 1.75 6.79588 1.79139 6.72221 1.86507C6.64853 1.93874 6.60714 2.03866 6.60714 2.14286V2.53571H5.42857V2.14286C5.42857 2.03866 5.38718 1.93874 5.31351 1.86507C5.23983 1.79139 5.13991 1.75 5.03571 1.75C4.93152 1.75 4.8316 1.79139 4.75792 1.86507C4.68425 1.93874 4.64286 2.03866 4.64286 2.14286V2.53571H3.85714C3.44051 2.53617 3.04108 2.70188 2.74648 2.99648C2.45188 3.29108 2.28617 3.69051 2.28571 4.10714V4.89286H1.89286C1.78866 4.89286 1.68874 4.93425 1.61507 5.00792C1.54139 5.0816 1.5 5.18152 1.5 5.28571C1.5 5.38991 1.54139 5.48983 1.61507 5.56351C1.68874 5.63718 1.78866 5.67857 1.89286 5.67857H2.28571V6.85714H1.89286C1.78866 6.85714 1.68874 6.89853 1.61507 6.97221C1.54139 7.04588 1.5 7.14581 1.5 7.25C1.5 7.35419 1.54139 7.45412 1.61507 7.52779C1.68874 7.60147 1.78866 7.64286 1.89286 7.64286H2.28571V8.82143H1.89286C1.78866 8.82143 1.68874 8.86282 1.61507 8.93649C1.54139 9.01017 1.5 9.11009 1.5 9.21429C1.5 9.31848 1.54139 9.4184 1.61507 9.49208C1.68874 9.56575 1.78866 9.60714 1.89286 9.60714H2.28571V10.3929C2.28617 10.8095 2.45188 11.2089 2.74648 11.5035C3.04108 11.7981 3.44051 11.9638 3.85714 11.9643H4.64286V12.3571C4.64286 12.4613 4.68425 12.5613 4.75792 12.6349C4.8316 12.7086 4.93152 12.75 5.03571 12.75C5.13991 12.75 5.23983 12.7086 5.31351 12.6349C5.38718 12.5613 5.42857 12.4613 5.42857 12.3571V11.9643H6.60714V12.3571C6.60714 12.4613 6.64853 12.5613 6.72221 12.6349C6.79588 12.7086 6.89581 12.75 7 12.75C7.10419 12.75 7.20412 12.7086 7.27779 12.6349C7.35147 12.5613 7.39286 12.4613 7.39286 12.3571V11.9643H8.57143V12.3571C8.57143 12.4613 8.61282 12.5613 8.68649 12.6349C8.76017 12.7086 8.86009 12.75 8.96429 12.75C9.06848 12.75 9.1684 12.7086 9.24208 12.6349C9.31575 12.5613 9.35714 12.4613 9.35714 12.3571V11.9643H10.1429C10.5595 11.9638 10.9589 11.7981 11.2535 11.5035C11.5481 11.2089 11.7138 10.8095 11.7143 10.3929V9.60714H12.1071C12.2113 9.60714 12.3113 9.56575 12.3849 9.49208C12.4586 9.4184 12.5 9.31848 12.5 9.21429C12.5 9.11009 12.4586 9.01017 12.3849 8.93649C12.3113 8.86282 12.2113 8.82143 12.1071 8.82143H11.7143V7.64286H12.1071C12.2113 7.64286 12.3113 7.60147 12.3849 7.52779C12.4586 7.45412 12.5 7.35419 12.5 7.25C12.5 7.14581 12.4586 7.04588 12.3849 6.97221C12.3113 6.89853 12.2113 6.85714 12.1071 6.85714H11.7143V5.67857H12.1071ZM10.1429 9.60714C10.1429 9.81553 10.0601 10.0154 9.91273 10.1627C9.76538 10.3101 9.56553 10.3929 9.35714 10.3929H4.64286C4.43447 10.3929 4.23462 10.3101 4.08727 10.1627C3.93992 10.0154 3.85714 9.81553 3.85714 9.60714V4.89286C3.85714 4.68447 3.93992 4.48462 4.08727 4.33727C4.23462 4.18992 4.43447 4.10714 4.64286 4.10714H9.35714C9.56553 4.10714 9.76538 4.18992 9.91273 4.33727C10.0601 4.48462 10.1429 4.68447 10.1429 4.89286V9.60714Z",fill:"currentColor"})]}),Ud=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"cancel",children:[u.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1264_3381)",children:u.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),Wd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M5.5884 4.12155L3.88306 2.41429C3.8396 2.37079 3.80894 2.32471 3.79108 2.27605C3.77323 2.22738 3.7643 2.17524 3.7643 2.11963C3.7643 2.06401 3.77323 2.01206 3.79108 1.96379C3.80894 1.91553 3.8396 1.86964 3.88306 1.82614L5.5884 0.118886C5.63185 0.0753881 5.67788 0.0446995 5.72649 0.0268199C5.7751 0.00894031 5.82719 0 5.88275 0C5.9383 0 5.99019 0.00894031 6.0384 0.0268199C6.08662 0.0446995 6.13245 0.0753881 6.1759 0.118886L7.88125 1.82614C7.9247 1.86964 7.95536 1.91573 7.97321 1.96439C7.99107 2.01306 8 2.0652 8 2.12081C8 2.17643 7.99107 2.22838 7.97321 2.27664C7.95536 2.32491 7.9247 2.37079 7.88125 2.41429L6.1759 4.12155C6.13245 4.16505 6.08642 4.19574 6.03781 4.21362C5.9892 4.23149 5.93711 4.24043 5.88155 4.24043C5.826 4.24043 5.77412 4.23149 5.7259 4.21362C5.67768 4.19574 5.63185 4.16505 5.5884 4.12155ZM0 3.21787V0.804477C0 0.68544 0.0402151 0.585661 0.120645 0.505141C0.201076 0.424621 0.300743 0.384361 0.419648 0.384361H2.83035C2.94925 0.384361 3.04891 0.424621 3.12934 0.505141C3.20977 0.585661 3.24999 0.68544 3.24999 0.804477V3.21787C3.24999 3.3369 3.20977 3.43668 3.12934 3.5172C3.04891 3.59772 2.94925 3.63798 2.83035 3.63798H0.419648C0.300743 3.63798 0.201076 3.59772 0.120645 3.5172C0.0402151 3.43668 0 3.3369 0 3.21787ZM4.35715 7.57988V5.16649C4.35715 5.04746 4.39737 4.94768 4.4778 4.86716C4.55823 4.78664 4.65789 4.74638 4.77679 4.74638H7.18749C7.3064 4.74638 7.40607 4.78664 7.4865 4.86716C7.56693 4.94768 7.60714 5.04746 7.60714 5.16649V7.57988C7.60714 7.69892 7.56693 7.7987 7.4865 7.87922C7.40607 7.95974 7.3064 8 7.18749 8H4.77679C4.65789 8 4.55823 7.95974 4.4778 7.87922C4.39737 7.7987 4.35715 7.69892 4.35715 7.57988ZM0 7.57988V5.16649C0 5.04746 0.0402151 4.94768 0.120645 4.86716C0.201076 4.78664 0.300743 4.74638 0.419648 4.74638H2.83035C2.94925 4.74638 3.04891 4.78664 3.12934 4.86716C3.20977 4.94768 3.24999 5.04746 3.24999 5.16649V7.57988C3.24999 7.69892 3.20977 7.7987 3.12934 7.87922C3.04891 7.95974 2.94925 8 2.83035 8H0.419648C0.300743 8 0.201076 7.95974 0.120645 7.87922C0.0402151 7.7987 0 7.69892 0 7.57988Z",fill:"currentColor"})}),Kd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7640_4256",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7640_4256)",children:u.jsx("path",{d:"M3.98234 10.0176L8.00952 8.00958L10.0175 3.9824L5.99031 5.99038L3.98234 10.0176ZM6.99992 7.58331C6.83464 7.58331 6.6961 7.52741 6.58429 7.4156C6.47249 7.3038 6.41658 7.16526 6.41658 6.99998C6.41658 6.8347 6.47249 6.69616 6.58429 6.58435C6.6961 6.47255 6.83464 6.41665 6.99992 6.41665C7.1652 6.41665 7.30374 6.47255 7.41554 6.58435C7.52735 6.69616 7.58325 6.8347 7.58325 6.99998C7.58325 7.16526 7.52735 7.3038 7.41554 7.4156C7.30374 7.52741 7.1652 7.58331 6.99992 7.58331ZM7.00094 12.5416C6.23444 12.5416 5.51397 12.3962 4.83954 12.1053C4.16511 11.8144 3.57847 11.4197 3.07963 10.921C2.58078 10.4223 2.18581 9.83595 1.89473 9.16181C1.60374 8.48767 1.45825 7.7674 1.45825 7.001C1.45825 6.2345 1.6037 5.51403 1.89459 4.8396C2.18547 4.16517 2.58025 3.57854 3.0789 3.07969C3.57755 2.58084 4.16395 2.18588 4.83809 1.89479C5.51222 1.60381 6.23249 1.45831 6.9989 1.45831C7.7654 1.45831 8.48586 1.60376 9.16029 1.89465C9.83472 2.18553 10.4214 2.58031 10.9202 3.07896C11.4191 3.57761 11.814 4.16401 12.1051 4.83815C12.3961 5.51229 12.5416 6.23256 12.5416 6.99896C12.5416 7.76546 12.3961 8.48592 12.1053 9.16035C11.8144 9.83479 11.4196 10.4214 10.9209 10.9203C10.4223 11.4191 9.83589 11.8141 9.16175 12.1052C8.48761 12.3962 7.76734 12.5416 7.00094 12.5416Z",fill:"currentColor"})})]}),Gd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22054",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22054)",children:u.jsx("path",{d:"M10.5808 11.4972L7.8257 8.74213L8.74765 7.82003L11.5029 10.5751C11.627 10.6993 11.6891 10.853 11.6891 11.0362C11.6891 11.2194 11.627 11.3731 11.5029 11.4972C11.3787 11.6214 11.225 11.6834 11.0418 11.6834C10.8586 11.6834 10.7049 11.6214 10.5808 11.4972ZM2.50278 11.4972C2.37863 11.3731 2.31655 11.2194 2.31655 11.0362C2.31655 10.853 2.37863 10.6993 2.50278 10.5751L6.08357 6.99446L4.72163 5.63807C4.62587 5.73383 4.50473 5.78171 4.35822 5.78171C4.21161 5.78171 4.09042 5.73383 3.99465 5.63807L3.70984 5.34757V6.56469C3.70984 6.68583 3.65617 6.76794 3.54884 6.811C3.44151 6.85398 3.34482 6.83244 3.25878 6.7464L1.78703 5.27465C1.70099 5.18861 1.6795 5.09197 1.72257 4.98473C1.76554 4.8774 1.8476 4.82373 1.96874 4.82373H3.18586L2.91549 4.55336C2.8101 4.44787 2.7574 4.32391 2.7574 4.18148C2.7574 4.03905 2.8101 3.91509 2.91549 3.80961L4.20786 2.51738C4.37236 2.35278 4.55052 2.23237 4.74234 2.15615C4.93416 2.07983 5.13366 2.04167 5.34084 2.04167C5.50534 2.04167 5.66051 2.06525 5.80634 2.1124C5.95217 2.15946 6.09465 2.23388 6.23378 2.33567C6.30028 2.38049 6.33693 2.44198 6.34374 2.52015C6.35045 2.59832 6.32351 2.66769 6.26295 2.72826L5.3229 3.6683L5.64374 3.98913C5.7394 4.0848 5.78724 4.20594 5.78724 4.35255C5.78724 4.49916 5.7394 4.6203 5.64374 4.71596L7.00553 6.07236L8.40786 4.67003C8.34282 4.5519 8.29533 4.42984 8.26538 4.30384C8.23544 4.17774 8.22047 4.04518 8.22047 3.90615C8.22047 3.38115 8.40145 2.93767 8.7634 2.57571C9.12536 2.21375 9.56884 2.03278 10.0938 2.03278C10.1604 2.03278 10.2212 2.03423 10.2761 2.03715C10.3312 2.04016 10.389 2.04955 10.4495 2.0653C10.5221 2.09067 10.5696 2.14205 10.592 2.21944C10.6144 2.29693 10.5972 2.36406 10.5404 2.42084L9.64847 3.31261C9.59392 3.36725 9.56665 3.42971 9.56665 3.5C9.56665 3.5703 9.59392 3.63276 9.64847 3.6874L10.3126 4.35153C10.3672 4.40607 10.4297 4.43334 10.5 4.43334C10.5703 4.43334 10.6327 4.40607 10.6874 4.35153L11.5792 3.45961C11.6359 3.40283 11.7031 3.38416 11.7806 3.40361C11.8579 3.42305 11.9093 3.47201 11.9347 3.55046C11.9504 3.61103 11.9598 3.66883 11.9628 3.72386C11.9658 3.77879 11.9672 3.83955 11.9672 3.90615C11.9672 4.43115 11.7862 4.87463 11.4243 5.23659C11.0623 5.59855 10.6188 5.77953 10.0938 5.77953C9.95481 5.77953 9.82225 5.76606 9.69615 5.73913C9.57015 5.7122 9.44809 5.6632 9.32997 5.59213L3.42488 11.4972C3.30073 11.6214 3.14702 11.6834 2.96376 11.6834C2.78059 11.6834 2.62693 11.6214 2.50278 11.4972Z",fill:"currentColor"})})]}),Yd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 56 56",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M4.75129 14.5773L28 1.1547L51.2487 14.5773V41.4226L28 54.8453L4.75129 41.4226V14.5773Z",stroke:"#47505E","stroke-width":"2"}),u.jsx("path",{d:"M51.5956 14.4722L28.0001 28.0003M28.0001 28.0003L4.40457 14.4722M28.0001 28.0003L28.0001 55.3711",stroke:"#47505E","stroke-width":"2"})]}),qd=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"content_copy",children:[u.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1489_75628)",children:u.jsx("path",{id:"content_copy_2",d:"M5.28363 10.2083C4.98897 10.2083 4.73956 10.1063 4.5354 9.9021C4.33124 9.69793 4.22915 9.44852 4.22915 9.15385V2.51287C4.22915 2.21821 4.33124 1.96879 4.5354 1.76462C4.73956 1.56046 4.98897 1.45837 5.28363 1.45837H10.1746C10.4693 1.45837 10.7187 1.56046 10.9229 1.76462C11.127 1.96879 11.2291 2.21821 11.2291 2.51287V9.15385C11.2291 9.44852 11.127 9.69793 10.9229 9.9021C10.7187 10.1063 10.4693 10.2083 10.1746 10.2083H5.28363ZM5.28363 9.33336H10.1746C10.2195 9.33336 10.2606 9.31466 10.298 9.27727C10.3354 9.23987 10.3541 9.19873 10.3541 9.15385V2.51287C10.3541 2.46799 10.3354 2.42685 10.298 2.38945C10.2606 2.35206 10.2195 2.33336 10.1746 2.33336H5.28363C5.23875 2.33336 5.19762 2.35206 5.16023 2.38945C5.12282 2.42685 5.10412 2.46799 5.10412 2.51287V9.15385C5.10412 9.19873 5.12282 9.23987 5.16023 9.27727C5.19762 9.31466 5.23875 9.33336 5.28363 9.33336ZM3.24198 12.25C2.94733 12.25 2.69792 12.1479 2.49375 11.9437C2.28958 11.7396 2.1875 11.4902 2.1875 11.1955V3.67953H3.06249V11.1955C3.06249 11.2404 3.08118 11.2815 3.11857 11.3189C3.15597 11.3563 3.19711 11.375 3.24198 11.375H9.00796V12.25H3.24198Z",fill:"currentColor"})})]})}),Xd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_27)",children:u.jsx("path",{d:"M2.51277 11.9583C2.21809 11.9583 1.96867 11.8562 1.7645 11.6521C1.56034 11.4479 1.45825 11.1985 1.45825 10.9038V4.84619C1.45825 4.55151 1.56034 4.30208 1.7645 4.09792C1.96867 3.89375 2.21809 3.79167 2.51277 3.79167H4.95825V2.80452C4.95825 2.50984 5.06034 2.26042 5.2645 2.05625C5.46867 1.85208 5.71809 1.75 6.01277 1.75H7.98706C8.28174 1.75 8.53117 1.85208 8.73534 2.05625C8.9395 2.26042 9.04159 2.50984 9.04159 2.80452V3.79167H11.4871C11.7817 3.79167 12.0312 3.89375 12.2353 4.09792C12.4395 4.30208 12.5416 4.55151 12.5416 4.84619V10.9038C12.5416 11.1985 12.4395 11.4479 12.2353 11.6521C12.0312 11.8562 11.7817 11.9583 11.4871 11.9583H2.51277ZM5.83325 3.79167H8.16659V2.80452C8.16659 2.7596 8.14787 2.71848 8.11044 2.68115C8.07311 2.64371 8.03198 2.625 7.98706 2.625H6.01277C5.96786 2.625 5.92673 2.64371 5.8894 2.68115C5.85197 2.71848 5.83325 2.7596 5.83325 2.80452V3.79167Z",fill:"currentColor"})})]}),Jd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 23 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_8954_27793",maskUnits:"userSpaceOnUse",x:"10",y:"-3",width:"16",height:"16",children:u.jsx("rect",{x:"10",y:"-3",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_8954_27793)",children:u.jsx("path",{d:"M17.5 5.50005H14.1666C14.025 5.50005 13.9062 5.45212 13.8104 5.35625C13.7145 5.26037 13.6666 5.14157 13.6666 4.99985C13.6666 4.85812 13.7145 4.73939 13.8104 4.64367C13.9062 4.54794 14.025 4.50008 14.1666 4.50008H17.5V1.16675C17.5 1.02508 17.5479 0.906331 17.6438 0.810498C17.7396 0.714665 17.8584 0.666748 18.0002 0.666748C18.1419 0.666748 18.2606 0.714665 18.3563 0.810498C18.4521 0.906331 18.4999 1.02508 18.4999 1.16675V4.50008H21.8333C21.9749 4.50008 22.0937 4.54802 22.1895 4.64388C22.2853 4.73976 22.3333 4.85856 22.3333 5.00028C22.3333 5.14202 22.2853 5.26074 22.1895 5.35647C22.0937 5.45219 21.9749 5.50005 21.8333 5.50005H18.4999V8.83338C18.4999 8.97505 18.452 9.0938 18.3561 9.18963C18.2602 9.28547 18.1414 9.33338 17.9997 9.33338C17.858 9.33338 17.7393 9.28547 17.6435 9.18963C17.5478 9.0938 17.5 8.97505 17.5 8.83338V5.50005Z",fill:"currentColor"})}),u.jsx("path",{d:"M1.33333 6C1.33333 7.47276 2.52724 8.66667 4 8.66667C5.47276 8.66667 6.66667 7.47276 6.66667 6C6.66667 4.52724 5.47276 3.33333 4 3.33333C2.52724 3.33333 1.33333 4.52724 1.33333 6ZM14.3333 19C14.3333 20.4728 15.5272 21.6667 17 21.6667C18.4728 21.6667 19.6667 20.4728 19.6667 19C19.6667 17.5272 18.4728 16.3333 17 16.3333C15.5272 16.3333 14.3333 17.5272 14.3333 19ZM3.64645 6.35355L16.6464 19.3536L17.3536 18.6464L4.35355 5.64645L3.64645 6.35355Z",fill:"currentColor"})]}),Qd=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 34 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsxs("g",{mask:"url(#mask0_2777_4506)",children:[u.jsx("mask",{id:"mask1_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask1_2777_4506)",children:u.jsx("path",{d:"M8.25212 29.988L10.5542 20.0359L2.83337 13.3421L13.0334 12.4567L17 3.07129L20.9667 12.4567L31.1667 13.3421L23.4459 20.0359L25.748 29.988L17 24.7109L8.25212 29.988Z",fill:"currentColor"})})]})]}),ef=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:"delete",children:[u.jsx("mask",{id:"mask0_2401_3378",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",{children:u.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})}),tf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),u.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),u.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),nf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22108",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22108)",children:u.jsx("path",{d:"M5.22302 6.62316L6.51656 5.32073L5.50915 4.30427L5.15798 4.65543C5.07719 4.73623 4.97715 4.77905 4.85785 4.78391C4.73866 4.78877 4.63381 4.74595 4.54329 4.65543C4.45278 4.56492 4.40752 4.46099 4.40752 4.34364C4.40752 4.2262 4.45278 4.12222 4.54329 4.03171L4.88542 3.68958L3.98796 2.79212L2.68552 4.09456L5.22302 6.62316ZM9.8999 11.3088L11.2022 10.0064L10.3047 9.10889L9.95371 9.45116C9.86689 9.53789 9.76534 9.58217 9.64906 9.58402C9.53279 9.58587 9.42939 9.54158 9.33888 9.45116C9.24846 9.36065 9.20325 9.25818 9.20325 9.14375C9.20325 9.02932 9.24846 8.92684 9.33888 8.83633L9.68115 8.48531L8.67038 7.48343L7.37683 8.77698L9.8999 11.3088ZM9.2626 3.84329L10.1746 4.75533L11.0924 3.8376L10.1713 2.91666L9.2626 3.84329ZM2.569 11.9583C2.4186 11.9583 2.29313 11.908 2.1926 11.8074C2.09198 11.7069 2.04167 11.5814 2.04167 11.431V10.0187C2.04167 9.94846 2.0544 9.88152 2.07987 9.81793C2.10525 9.75435 2.14526 9.69529 2.1999 9.64075L4.59944 7.24121L1.953 4.58923C1.81767 4.45389 1.75 4.289 1.75 4.09456C1.75 3.90012 1.81767 3.73523 1.953 3.59989L3.49329 2.0596C3.62863 1.92427 3.79351 1.85811 3.98796 1.86112C4.1824 1.86404 4.34729 1.93321 4.48263 2.06864L7.14919 4.72048L9.55325 2.30752C9.64376 2.217 9.74322 2.15007 9.85163 2.10671C9.96003 2.06334 10.0733 2.04166 10.1916 2.04166C10.3097 2.04166 10.423 2.06334 10.5314 2.10671C10.6399 2.15007 10.7393 2.217 10.8297 2.30752L11.6925 3.19608C11.783 3.2865 11.849 3.38595 11.8904 3.49445C11.9319 3.60286 11.9526 3.71612 11.9526 3.83425C11.9526 3.95247 11.9319 4.06335 11.8904 4.16689C11.849 4.27043 11.783 4.36746 11.6925 4.45798L9.29965 6.86539L11.9404 9.51737C12.0757 9.65271 12.1434 9.81759 12.1434 10.012C12.1434 10.2065 12.0757 10.3714 11.9404 10.5067L10.4001 12.047C10.2648 12.1823 10.0999 12.25 9.90544 12.25C9.71099 12.25 9.5461 12.1823 9.41077 12.047L6.75879 9.40056L4.35925 11.8001C4.30471 11.8547 4.24565 11.8947 4.18206 11.9201C4.11848 11.9456 4.05154 11.9583 3.98125 11.9583H2.569Z",fill:"currentColor"})})]}),rf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM3.33333 9.33333H6.66667C6.85556 9.33333 7.01389 9.26945 7.14167 9.14167C7.26944 9.01389 7.33333 8.85556 7.33333 8.66667C7.33333 8.47778 7.26944 8.31945 7.14167 8.19167C7.01389 8.06389 6.85556 8 6.66667 8H3.33333C3.14444 8 2.98611 8.06389 2.85833 8.19167C2.73056 8.31945 2.66667 8.47778 2.66667 8.66667C2.66667 8.85556 2.73056 9.01389 2.85833 9.14167C2.98611 9.26945 3.14444 9.33333 3.33333 9.33333ZM3.33333 6.66667H8.66667C8.85556 6.66667 9.01389 6.60278 9.14167 6.475C9.26945 6.34722 9.33333 6.18889 9.33333 6C9.33333 5.81111 9.26945 5.65278 9.14167 5.525C9.01389 5.39722 8.85556 5.33333 8.66667 5.33333H3.33333C3.14444 5.33333 2.98611 5.39722 2.85833 5.525C2.73056 5.65278 2.66667 5.81111 2.66667 6C2.66667 6.18889 2.73056 6.34722 2.85833 6.475C2.98611 6.60278 3.14444 6.66667 3.33333 6.66667ZM3.33333 4H8.66667C8.85556 4 9.01389 3.93611 9.14167 3.80833C9.26945 3.68056 9.33333 3.52222 9.33333 3.33333C9.33333 3.14444 9.26945 2.98611 9.14167 2.85833C9.01389 2.73056 8.85556 2.66667 8.66667 2.66667H3.33333C3.14444 2.66667 2.98611 2.73056 2.85833 2.85833C2.73056 2.98611 2.66667 3.14444 2.66667 3.33333C2.66667 3.52222 2.73056 3.68056 2.85833 3.80833C2.98611 3.93611 3.14444 4 3.33333 4Z",fill:"currentColor"})}),of=e=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",children:[u.jsx("mask",{id:"mask0_2638_2680",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_2638_2680)",children:u.jsx("path",{d:"M9.99732 16C9.90858 16 9.82421 15.985 9.74419 15.9551C9.66418 15.9252 9.5909 15.8765 9.52435 15.8091L6.18835 12.4277C6.06278 12.3004 6 12.1406 6 11.9483C6 11.7559 6.06278 11.5961 6.18835 11.4689C6.32145 11.3315 6.48099 11.2648 6.66697 11.2686C6.85295 11.2724 7.00873 11.3392 7.13429 11.4689L9.32114 13.674V4.68539C9.32114 4.49306 9.3864 4.33074 9.51692 4.19845C9.64744 4.06615 9.80758 4 9.99732 4C10.1871 4 10.3472 4.06615 10.4777 4.19845C10.6082 4.33074 10.6735 4.49306 10.6735 4.68539V13.674L12.849 11.4689C12.9845 11.3315 13.1447 11.2629 13.3294 11.2629C13.5143 11.2629 13.6744 11.3315 13.8099 11.4689C13.9378 11.6062 14.0012 11.7685 14 11.9558C13.9988 12.1431 13.9354 12.3004 13.8099 12.4277L10.4738 15.8091C10.4073 15.8765 10.3334 15.9252 10.2522 15.9551C10.171 15.985 10.0861 16 9.99732 16Z",fill:"currentColor"})})]}),sf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Type=Edit, Size=20x20",children:u.jsx("path",{id:"icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9243 3.3359L9.06461 9.19559C8.97523 9.28497 8.9036 9.39048 8.85353 9.50654L7.99772 11.49C7.89015 11.7394 8.14272 11.9919 8.39203 11.8843L10.3755 11.0285C10.4916 10.9785 10.5971 10.9068 10.6865 10.8175L16.5462 4.95777C16.994 4.50991 16.994 3.78377 16.5462 3.3359C16.0983 2.88804 15.3722 2.88804 14.9243 3.3359ZM14.5297 10.7363C14.5297 10.3876 14.8127 10.1047 15.1615 10.1047C15.5116 10.1047 15.7933 10.3889 15.7933 10.7363L15.7222 14.1051C15.7222 15.1499 14.8954 16 13.8506 16H5.87166C4.85054 16 4 15.1499 4 14.0814V6.0806C4 5.05918 4.85054 4.2091 5.87166 4.2091L9.68606 4.20936C10.0362 4.20936 10.3178 4.49228 10.3178 4.841C10.3178 5.18972 10.0349 5.47264 9.68606 5.47264H5.89535C5.54735 5.47264 5.26357 5.75609 5.26357 6.10428V14.1051C5.26357 14.4533 5.54735 14.7367 5.89535 14.7367H13.898C14.246 14.7367 14.5297 14.4533 14.5297 14.1051V10.7363Z",fill:"currentColor"})})}),af=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),u.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),lf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1765 0.310088L4.72809 5.70971C4.63832 5.79868 4.56637 5.90372 4.51607 6.01926L3.74627 7.78746C3.63822 8.03565 3.89191 8.28707 4.14234 8.17999L5.92651 7.41707C6.04309 7.36722 6.14907 7.29592 6.23885 7.20695L11.6872 1.80733C12.1044 1.39388 12.1044 0.723539 11.6872 0.310088C11.27 -0.103363 10.5936 -0.103363 10.1765 0.310088ZM9.80835 7.14088C9.80835 6.81895 10.072 6.55777 10.3969 6.55777C10.723 6.55777 10.9854 6.82017 10.9854 7.14088L10.9191 10.2508C10.9191 11.2153 10.1489 12.0001 9.17571 12.0001H1.74343C0.79227 12.0001 0 11.2153 0 10.2289V2.84292C0 1.89999 0.79227 1.11523 1.74343 1.11523L5.29651 1.11548C5.62264 1.11548 5.88501 1.37666 5.88501 1.69858C5.88501 2.0205 5.62141 2.28168 5.29651 2.28168H1.7655C1.44134 2.28168 1.177 2.54335 1.177 2.86479V10.2508C1.177 10.5722 1.44134 10.8339 1.7655 10.8339H9.21985C9.54402 10.8339 9.80835 10.5722 9.80835 10.2508V7.14088Z",fill:"currentColor"})}),cf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"Episode",children:[u.jsx("path",{id:"Rectangle 4456 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 6.125H1L1 11H10V6.125ZM1 5.125C0.447715 5.125 0 5.57272 0 6.125V11C0 11.5523 0.447715 12 1 12H10C10.5523 12 11 11.5523 11 11V6.125C11 5.57272 10.5523 5.125 10 5.125H1Z",fill:"currentColor"}),u.jsx("path",{id:"Rectangle 4457 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0625 3.5625H2.0625V2.5625H12.0625C12.8909 2.5625 13.5625 3.23407 13.5625 4.0625V9.9375H12.5625V4.0625C12.5625 3.78636 12.3386 3.5625 12.0625 3.5625Z",fill:"currentColor"}),u.jsx("path",{id:"Rectangle 4458 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.125 1.5H4.125V0.5H14.125C14.9534 0.5 15.625 1.17157 15.625 2V7.875H14.625V2C14.625 1.72386 14.4011 1.5 14.125 1.5Z",fill:"currentColor"})]})}),uf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_31",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_31)",children:u.jsx("path",{d:"M4.2304 12.5416C3.33955 12.5416 2.5819 12.2297 1.95744 11.6058C1.33298 10.9821 1.02075 10.2245 1.02075 9.33331V6.59617C1.02075 6.30615 1.124 6.0579 1.3305 5.8514C1.537 5.6449 1.78526 5.54165 2.07527 5.54165H6.3829C6.67291 5.54165 6.92117 5.6449 7.12767 5.8514C7.33417 6.0579 7.43742 6.30615 7.43742 6.59617V9.33331C7.43742 10.2245 7.12563 10.9821 6.50204 11.6058C5.87846 12.2297 5.12125 12.5416 4.2304 12.5416ZM3.06242 8.40217C3.20903 8.40217 3.33357 8.35098 3.43604 8.2486C3.53842 8.14613 3.58961 8.02159 3.58961 7.87498C3.58961 7.72837 3.53842 7.60383 3.43604 7.50135C3.33357 7.39898 3.20903 7.34779 3.06242 7.34779C2.91581 7.34779 2.79131 7.39898 2.68894 7.50135C2.58647 7.60383 2.53523 7.72837 2.53523 7.87498C2.53523 8.02159 2.58647 8.14613 2.68894 8.2486C2.79131 8.35098 2.91581 8.40217 3.06242 8.40217ZM5.39575 8.40217C5.54236 8.40217 5.6669 8.35098 5.76938 8.2486C5.87175 8.14613 5.92294 8.02159 5.92294 7.87498C5.92294 7.72837 5.87175 7.60383 5.76938 7.50135C5.6669 7.39898 5.54236 7.34779 5.39575 7.34779C5.24914 7.34779 5.12465 7.39898 5.02227 7.50135C4.9198 7.60383 4.86856 7.72837 4.86856 7.87498C4.86856 8.02159 4.9198 8.14613 5.02227 8.2486C5.12465 8.35098 5.24914 8.40217 5.39575 8.40217ZM12.9791 2.51283V5.24998C12.9791 6.14122 12.6671 6.89872 12.0433 7.5225C11.4195 8.14638 10.662 8.45831 9.77075 8.45831C9.59575 8.45831 9.42318 8.4449 9.25304 8.41806C9.0829 8.39133 8.9152 8.35113 8.74992 8.29746C8.61381 8.24389 8.50686 8.15595 8.42908 8.03365C8.35131 7.91144 8.31242 7.77552 8.31242 7.6259V6.23713C8.31242 5.83628 8.19575 5.48161 7.96242 5.17313C7.72909 4.86464 7.42546 4.7104 7.05154 4.7104C6.91057 4.7104 6.79381 4.65916 6.70125 4.55669C6.6087 4.45422 6.56242 4.32972 6.56242 4.18321V2.51283C6.56242 2.22282 6.66567 1.97456 6.87217 1.76806C7.07867 1.56156 7.32693 1.45831 7.61694 1.45831H11.9246C12.2146 1.45831 12.4628 1.56156 12.6693 1.76806C12.8758 1.97456 12.9791 2.22282 12.9791 2.51283ZM8.60409 4.31883C8.7507 4.31883 8.87519 4.26765 8.97756 4.16527C9.08004 4.0628 9.13127 3.93826 9.13127 3.79165C9.13127 3.64504 9.08004 3.52049 8.97756 3.41802C8.87519 3.31565 8.7507 3.26446 8.60409 3.26446C8.45747 3.26446 8.33293 3.31565 8.23046 3.41802C8.12809 3.52049 8.0769 3.64504 8.0769 3.79165C8.0769 3.93826 8.12809 4.0628 8.23046 4.16527C8.33293 4.26765 8.45747 4.31883 8.60409 4.31883ZM10.9374 4.31883C11.084 4.31883 11.2085 4.26765 11.3109 4.16527C11.4134 4.0628 11.4646 3.93826 11.4646 3.79165C11.4646 3.64504 11.4134 3.52049 11.3109 3.41802C11.2085 3.31565 11.084 3.26446 10.9374 3.26446C10.7908 3.26446 10.6663 3.31565 10.5638 3.41802C10.4614 3.52049 10.4102 3.64504 10.4102 3.79165C10.4102 3.93826 10.4614 4.0628 10.5638 4.16527C10.6663 4.26765 10.7908 4.31883 10.9374 4.31883ZM9.77046 5.30613C9.51486 5.30613 9.26947 5.35362 9.03429 5.4486C8.79911 5.54349 8.61945 5.70051 8.49529 5.91965C8.44289 6.00938 8.4494 6.09557 8.51484 6.17821C8.58027 6.26085 8.67131 6.30217 8.78798 6.30217H10.7534C10.8663 6.30217 10.9555 6.26085 11.021 6.17821C11.0864 6.09557 11.093 6.00938 11.0407 5.91965C10.9165 5.70051 10.7377 5.54349 10.5041 5.4486C10.2706 5.35362 10.0261 5.30613 9.77046 5.30613ZM4.22909 10.3855C4.47885 10.3855 4.71685 10.3395 4.94309 10.2475C5.16932 10.1556 5.3505 10.006 5.48661 9.79881C5.54494 9.70781 5.54586 9.61686 5.48938 9.52596C5.43299 9.43496 5.34646 9.38946 5.22979 9.38946H3.22852C3.1137 9.38946 3.02756 9.43525 2.97011 9.52683C2.91274 9.61842 2.91323 9.70908 2.97156 9.79881C3.10768 10.006 3.28885 10.1556 3.51509 10.2475C3.74132 10.3395 3.97932 10.3855 4.22909 10.3855Z",fill:"currentColor"})})]}),df=e=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[u.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_4160_9271)",children:u.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),ff=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:"captive_portal",children:[u.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[u.jsx("path",{id:"captive_portal_2",d:"M9.99992 17.9154C8.90589 17.9154 7.87735 17.7073 6.91429 17.2912C5.9511 16.8751 5.11318 16.3107 4.40054 15.5981C3.6879 14.8854 3.12353 14.0475 2.70742 13.0843C2.29131 12.1213 2.08325 11.0927 2.08325 9.9987C2.08325 8.90467 2.29131 7.87613 2.70742 6.91307C3.12353 5.94988 3.6879 5.11196 4.40054 4.39932C5.11318 3.68668 5.9511 3.12231 6.91429 2.7062C7.87735 2.29009 8.90589 2.08203 9.99992 2.08203C11.0939 2.08203 12.1225 2.29009 13.0855 2.7062C14.0487 3.12231 14.8867 3.68668 15.5993 4.39932C16.3119 5.11196 16.8763 5.94988 17.2924 6.91307C17.7085 7.87613 17.9166 8.90467 17.9166 9.9987C17.9166 10.1429 17.9131 10.2983 17.9062 10.4649C17.8992 10.6316 17.8861 10.7871 17.8668 10.9314C17.8444 11.1088 17.7699 11.2487 17.6433 11.3512C17.5167 11.4538 17.3605 11.5052 17.1745 11.5052C17.011 11.5052 16.8717 11.4346 16.7564 11.2935C16.641 11.1525 16.5945 10.9977 16.617 10.8289C16.6448 10.6846 16.66 10.5462 16.6626 10.4137C16.6653 10.2812 16.6666 10.1429 16.6666 9.9987C16.6666 9.69425 16.6466 9.39113 16.6066 9.08932C16.5664 8.78738 16.5037 8.48689 16.4183 8.18786H13.3203C13.3727 8.48689 13.4107 8.78738 13.4343 9.08932C13.4578 9.39113 13.4695 9.69425 13.4695 9.9987C13.4695 10.1429 13.4682 10.2962 13.4655 10.4587C13.4628 10.6211 13.4544 10.7743 13.4405 10.9185C13.4182 11.0959 13.345 11.2379 13.221 11.3447C13.0971 11.4517 12.9464 11.5052 12.7691 11.5052C12.6056 11.5052 12.4628 11.4389 12.3405 11.3064C12.2182 11.1739 12.1682 11.0233 12.1905 10.8545C12.2044 10.7102 12.2128 10.5676 12.2155 10.4266C12.2182 10.2855 12.2195 10.1429 12.2195 9.9987C12.2195 9.69425 12.2078 9.39113 12.1843 9.08932C12.1607 8.78738 12.1228 8.48689 12.0705 8.18786H7.92929C7.87707 8.48689 7.83915 8.78738 7.81554 9.08932C7.79207 9.39113 7.78033 9.69425 7.78033 9.9987C7.78033 10.3031 7.79207 10.6063 7.81554 10.9081C7.83915 11.21 7.87707 11.5105 7.92929 11.8095H10.3685C10.5458 11.8095 10.6944 11.8694 10.8141 11.9891C10.9337 12.1087 10.9935 12.2572 10.9935 12.4345C10.9935 12.6119 10.9337 12.7604 10.8141 12.8802C10.6944 12.9997 10.5458 13.0595 10.3685 13.0595H8.21617C8.39895 13.7155 8.63693 14.3445 8.93013 14.9466C9.22346 15.5487 9.58006 16.1157 9.99992 16.6477C10.1495 16.6477 10.2991 16.6485 10.4487 16.6502C10.5983 16.6517 10.7451 16.6429 10.8893 16.6237C11.0614 16.6012 11.2051 16.6455 11.3203 16.7566C11.4358 16.8677 11.4935 17.0093 11.4935 17.1814C11.4935 17.3672 11.4457 17.5222 11.3501 17.6462C11.2544 17.7701 11.1179 17.8432 10.9405 17.8656C10.7964 17.8849 10.641 17.898 10.4743 17.9049C10.3076 17.9119 10.1495 17.9154 9.99992 17.9154ZM3.58159 11.8095H6.6795C6.62714 11.5105 6.58915 11.21 6.56554 10.9081C6.54207 10.6063 6.53033 10.3031 6.53033 9.9987C6.53033 9.69425 6.54207 9.39113 6.56554 9.08932C6.58915 8.78738 6.62714 8.48689 6.6795 8.18786H3.58159C3.49617 8.48689 3.43339 8.78738 3.39325 9.08932C3.35325 9.39113 3.33325 9.69425 3.33325 9.9987C3.33325 10.3031 3.35325 10.6063 3.39325 10.9081C3.43339 11.21 3.49617 11.5105 3.58159 11.8095ZM8.38617 16.4345C8.05075 15.9143 7.76256 15.3715 7.52159 14.8064C7.28061 14.2413 7.08429 13.659 6.93263 13.0595H4.10575C4.54047 13.9174 5.1302 14.6413 5.87492 15.231C6.61964 15.8209 7.45672 16.222 8.38617 16.4345ZM4.10575 6.93786H6.93263C7.0736 6.33314 7.26325 5.74821 7.50159 5.18307C7.73978 4.61779 8.03464 4.07773 8.38617 3.56286C7.45131 3.77009 6.6129 4.16856 5.87096 4.75828C5.12888 5.348 4.54047 6.07453 4.10575 6.93786ZM8.21617 6.93786H11.7837C11.6063 6.28189 11.3669 5.65557 11.0655 5.05891C10.7643 4.4621 10.4091 3.89238 9.99992 3.34974C9.58534 3.88168 9.22874 4.4487 8.93013 5.05078C8.63152 5.65286 8.39353 6.28189 8.21617 6.93786ZM13.0672 6.93786H15.8941C15.4594 6.07453 14.871 5.34668 14.1289 4.75432C13.3869 4.16182 12.5485 3.76467 11.6137 3.56286C11.9491 4.08314 12.2333 4.62717 12.4662 5.19495C12.6991 5.76286 12.8994 6.34384 13.0672 6.93786Z",fill:"currentColor"}),u.jsx("path",{id:"travel_explore",d:"M18.0634 18.7783L16.8556 17.5822C16.6378 17.7211 16.4031 17.8331 16.1517 17.9184C15.9003 18.0038 15.6342 18.0465 15.3535 18.0465C14.6044 18.0465 13.9694 17.7857 13.4484 17.2642C12.9275 16.7428 12.667 16.1071 12.667 15.3572C12.667 14.6074 12.9275 13.9717 13.4484 13.4502C13.9694 12.9287 14.6044 12.668 15.3535 12.668C16.1026 12.668 16.7376 12.9287 17.2586 13.4502C17.7795 13.9717 18.04 14.6074 18.04 15.3572C18.04 15.6425 17.9963 15.9121 17.9089 16.166C17.8215 16.4198 17.7063 16.6557 17.5633 16.8738L18.7711 18.0698C18.8684 18.1628 18.917 18.2798 18.917 18.4208C18.917 18.5618 18.8684 18.6809 18.7711 18.7783C18.6781 18.8714 18.5611 18.918 18.4203 18.918C18.2796 18.918 18.1606 18.8714 18.0634 18.7783ZM15.3535 17.038C15.8236 17.038 16.221 16.8755 16.5456 16.5506C16.8703 16.2256 17.0326 15.8278 17.0326 15.3572C17.0326 14.8866 16.8703 14.4888 16.5456 14.1639C16.221 13.8389 15.8236 13.6764 15.3535 13.6764C14.8834 13.6764 14.486 13.8389 14.1614 14.1639C13.8367 14.4888 13.6744 14.8866 13.6744 15.3572C13.6744 15.8278 13.8367 16.2256 14.1614 16.5506C14.486 16.8755 14.8834 17.038 15.3535 17.038Z",fill:"currentColor"})]})]})}),hf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M9.5002 0.270145C10.3742 0.270145 11.1128 0.571885 11.7161 1.17537C12.3193 1.77868 12.6209 2.51732 12.6209 3.39129C12.6209 4.17273 12.3716 4.85117 11.873 5.42662C11.3744 6.00189 10.7483 6.34792 9.99474 6.46469L9.99474 9.0052L13.8388 9.0052C14.2785 9.0052 14.6549 9.16172 14.9679 9.47476C15.2809 9.78779 15.4375 10.1642 15.4375 10.6039L15.4375 12.564L17.0171 12.564C17.2435 12.564 17.4334 12.6405 17.5866 12.7936C17.7396 12.9468 17.8162 13.1366 17.8162 13.3631L17.8162 17.5042C17.8162 17.7389 17.7396 17.9321 17.5866 18.0836C17.4334 18.2352 17.2435 18.311 17.0171 18.311L12.8759 18.311C12.6412 18.311 12.4481 18.2345 12.2965 18.0814C12.1449 17.9282 12.0692 17.7384 12.0692 17.5119L12.0692 13.3707C12.0692 13.136 12.1457 12.9429 12.2987 12.7913C12.452 12.6398 12.6418 12.564 12.8682 12.564L14.4479 12.564L14.4479 10.6039C14.4479 10.4262 14.3908 10.2803 14.2767 10.166C14.1624 10.0518 14.0164 9.99478 13.8388 9.99478L5.16112 9.99478C4.98349 9.99478 4.83753 10.0518 4.72323 10.166C4.6091 10.2803 4.55203 10.4262 4.55203 10.6039L4.55203 12.6115C5.3056 12.7283 5.93168 13.0743 6.43026 13.6496C6.92885 14.225 7.17814 14.9034 7.17814 15.6849C7.17814 16.5587 6.87648 17.2973 6.27317 17.9008C5.66969 18.5041 4.93096 18.8058 4.05699 18.8058C3.18303 18.8058 2.44439 18.5041 1.84107 17.9008C1.23792 17.2973 0.936342 16.5587 0.936343 15.6849C0.936343 14.9034 1.18564 14.225 1.68422 13.6496C2.18281 13.0743 2.80888 12.7283 3.56245 12.6115L3.56245 10.6039C3.56245 10.1642 3.71897 9.78779 4.03201 9.47476C4.34504 9.16172 4.72142 9.0052 5.16112 9.0052L9.00516 9.0052L9.00516 6.46469C8.25159 6.34792 7.62552 6.00189 7.12693 5.42662C6.62835 4.85117 6.37905 4.17273 6.37905 3.39129C6.37905 2.51732 6.68071 1.77868 7.28403 1.17537C7.88751 0.571885 8.62623 0.270145 9.5002 0.270145Z",fill:"currentColor"})}),pf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),Cf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"filter_alt_off",children:[u.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1543_23288)",children:u.jsx("path",{id:"filter_alt_off_2",d:"M14.8 11.9748L6.82503 3.9998H19C19.4167 3.9998 19.7167 4.18314 19.9 4.5498C20.0834 4.91647 20.05 5.26647 19.8 5.5998L14.8 11.9748ZM19.775 22.5998L14 16.8248V18.9998C14 19.2831 13.9042 19.5206 13.7125 19.7123C13.5209 19.904 13.2834 19.9998 13 19.9998H11C10.7167 19.9998 10.4792 19.904 10.2875 19.7123C10.0959 19.5206 10 19.2831 10 18.9998V12.8248L1.40002 4.2248L2.80002 2.7998L21.2 21.1998L19.775 22.5998Z",fill:"currentColor"})})]})}),gf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22315",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22315)",children:u.jsx("path",{d:"M7.02156 2.82555C8.05212 2.82555 9.02376 3.04731 9.93648 3.49084C10.8492 3.93437 11.6095 4.57535 12.2173 5.4138C12.2947 5.5152 12.3195 5.60635 12.2917 5.68724C12.2639 5.76803 12.2161 5.83623 12.1485 5.89184C12.0809 5.94512 12.003 5.96874 11.9147 5.96271C11.8264 5.95669 11.7508 5.90895 11.6879 5.81951C11.1625 5.06817 10.4856 4.49369 9.6575 4.09605C8.82926 3.69841 7.95062 3.49842 7.02156 3.49609C6.09241 3.49376 5.21989 3.69258 4.404 4.09255C3.58811 4.49252 2.91606 5.06934 2.38785 5.82301C2.32019 5.92451 2.2411 5.98012 2.15058 5.98984C2.05997 5.99956 1.98088 5.97895 1.91331 5.92801C1.83592 5.87473 1.7876 5.80638 1.76835 5.72296C1.7491 5.63964 1.77098 5.5556 1.83398 5.47082C2.43209 4.63276 3.18741 3.9824 4.09994 3.51971C5.01247 3.05694 5.98634 2.82555 7.02156 2.82555ZM7.02156 4.20338C8.3364 4.20338 9.46301 4.64492 10.4014 5.52798C11.3398 6.41115 11.809 7.50043 11.809 8.79582C11.809 9.2936 11.6341 9.7117 11.2843 10.0501C10.9345 10.3887 10.5082 10.5579 10.0055 10.5579C9.50263 10.5579 9.07144 10.3916 8.71192 10.0589C8.35239 9.72619 8.17263 9.31212 8.17263 8.81667C8.17263 8.50517 8.06053 8.24238 7.83633 8.0283C7.61204 7.81421 7.34162 7.70717 7.02506 7.70717C6.70841 7.70717 6.43799 7.81421 6.21379 8.0283C5.9895 8.24238 5.87735 8.50517 5.87735 8.81667C5.87735 9.75282 6.14992 10.5369 6.69504 11.1688C7.24007 11.8008 7.9724 12.2373 8.89202 12.4784C8.99109 12.5052 9.05754 12.5573 9.09137 12.6347C9.12521 12.7121 9.13124 12.7943 9.10946 12.8813C9.08768 12.9587 9.04359 13.0258 8.97719 13.0826C8.91069 13.1393 8.82324 13.1567 8.71483 13.1349C7.65715 12.8892 6.80806 12.382 6.16756 11.6135C5.52706 10.8448 5.20681 9.91256 5.20681 8.81667C5.20681 8.31666 5.38415 7.89496 5.73881 7.55157C6.09348 7.20828 6.52223 7.03663 7.02506 7.03663C7.5278 7.03663 7.9565 7.20599 8.31117 7.54471C8.66583 7.88334 8.84317 8.30037 8.84317 8.79582C8.84317 9.10498 8.95774 9.36666 9.1869 9.58084C9.41595 9.79492 9.68881 9.90196 10.0055 9.90196C10.322 9.90196 10.5906 9.79492 10.8112 9.58084C11.0317 9.36666 11.1419 9.10498 11.1419 8.79582C11.1419 7.68661 10.7386 6.75323 9.93196 5.99567C9.1254 5.23812 8.15897 4.85934 7.03265 4.85934C5.90633 4.85934 4.94159 5.24103 4.13844 6.00442C3.33529 6.76781 2.93371 7.70153 2.93371 8.80559C2.93371 9.08083 2.95617 9.38878 3.00108 9.72944C3.046 10.0702 3.14298 10.4518 3.29202 10.8742C3.32585 10.9757 3.32401 11.0657 3.28648 11.1442C3.24895 11.2227 3.18663 11.2789 3.09952 11.3128C3.00784 11.3466 2.92088 11.3442 2.83863 11.3055C2.75647 11.2668 2.69615 11.1992 2.65765 11.1029C2.52115 10.7493 2.4213 10.3842 2.3581 10.0075C2.29491 9.63091 2.26331 9.23395 2.26331 8.81667C2.26331 7.51438 2.72949 6.4199 3.66185 5.53324C4.59422 4.64667 5.71412 4.20338 7.02156 4.20338ZM7.02506 1.40338C7.65195 1.40338 8.26304 1.47873 8.85833 1.62942C9.45372 1.78012 10.0297 1.9976 10.5862 2.28188C10.6877 2.3374 10.7475 2.4056 10.7655 2.48648C10.7836 2.56728 10.7758 2.64637 10.7419 2.72376C10.7058 2.80114 10.6478 2.86103 10.5681 2.90342C10.4885 2.94571 10.3954 2.9391 10.2888 2.88359C9.7782 2.61876 9.24883 2.41702 8.70069 2.27838C8.15255 2.13974 7.59401 2.07042 7.02506 2.07042C6.46117 2.07042 5.90642 2.13605 5.36081 2.2673C4.8152 2.39855 4.29448 2.60398 3.79865 2.88359C3.70687 2.9391 3.61572 2.95412 3.52521 2.92865C3.4346 2.90328 3.3664 2.84703 3.3206 2.75992C3.27938 2.67748 3.27078 2.59654 3.29479 2.51711C3.3189 2.43758 3.37451 2.37118 3.46163 2.3179C4.01074 2.01467 4.58644 1.78644 5.18873 1.63321C5.79112 1.47999 6.40323 1.40338 7.02506 1.40338ZM7.02506 5.61446C7.93156 5.61446 8.71051 5.92178 9.3619 6.53642C10.0133 7.15096 10.339 7.9041 10.339 8.79582C10.339 8.89955 10.3093 8.98399 10.25 9.04913C10.1907 9.11427 10.1092 9.14684 10.0055 9.14684C9.90901 9.14684 9.82876 9.11427 9.76469 9.04913C9.70052 8.98399 9.66844 8.89955 9.66844 8.79582C9.66844 8.08522 9.40793 7.48852 8.88692 7.00571C8.3659 6.52291 7.74529 6.28151 7.02506 6.28151C6.30241 6.28151 5.68485 6.52524 5.1724 7.01271C4.66004 7.50019 4.40385 8.10151 4.40385 8.81667C4.40385 9.5856 4.53297 10.2441 4.79119 10.7923C5.04951 11.3404 5.44 11.8904 5.96267 12.4422C6.03033 12.5099 6.06475 12.5879 6.06592 12.6762C6.06708 12.7643 6.03733 12.8411 5.97667 12.9064C5.909 12.9787 5.82699 13.0131 5.73065 13.0097C5.6342 13.0062 5.55219 12.9706 5.48463 12.9029C4.91101 12.3048 4.47628 11.6864 4.18044 11.0476C3.88469 10.409 3.73681 9.66533 3.73681 8.81667C3.73681 7.92038 4.05765 7.16258 4.69931 6.54328C5.34098 5.92407 6.11623 5.61446 7.02506 5.61446ZM7.01398 8.4623C7.11538 8.4623 7.19632 8.49613 7.25679 8.5638C7.31726 8.63137 7.3475 8.71104 7.3475 8.80282C7.3475 9.55055 7.6065 10.1479 8.1245 10.5948C8.6425 11.0417 9.255 11.2652 9.962 11.2652C10.0297 11.2652 10.1187 11.2592 10.229 11.2471C10.3395 11.2351 10.4519 11.2217 10.5662 11.2069C10.663 11.192 10.7465 11.2099 10.8167 11.2607C10.8868 11.3114 10.9293 11.3852 10.9442 11.4821C10.959 11.5737 10.9397 11.6505 10.8864 11.7123C10.8332 11.7742 10.7653 11.8171 10.6829 11.8413C10.5172 11.8899 10.3676 11.9178 10.234 11.925C10.1004 11.9321 10.0097 11.9356 9.962 11.9356C9.07115 11.9356 8.30149 11.6469 7.65302 11.0694C7.00465 10.4919 6.68046 9.73635 6.68046 8.80282C6.68046 8.71104 6.71065 8.63137 6.77102 8.5638C6.83149 8.49613 6.91248 8.4623 7.01398 8.4623Z",fill:"currentColor"})})]}),mf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M4.5 6.04386L7.83333 2.83398V13.6673",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M15.5 13.9581L12.1667 17.168L12.1667 6.33463",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),vf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_23",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_23)",children:u.jsx("path",{d:"M0.729248 11.2291V10.3418C0.729248 10.2273 0.751123 10.1166 0.794873 10.0095C0.838526 9.9025 0.900408 9.80834 0.980519 9.72706L1.89591 8.81167V5.18931L1.03666 4.32904C0.940901 4.23328 0.865748 4.12094 0.811206 3.99202C0.756567 3.8631 0.729248 3.72753 0.729248 3.58529V2.33331C0.729248 2.20935 0.771199 2.10547 0.855102 2.02167C0.939005 1.93776 1.04294 1.89581 1.16689 1.89581C1.29095 1.89581 1.39483 1.93776 1.47854 2.02167C1.56235 2.10547 1.60425 2.20935 1.60425 2.33331V3.06248H3.06258V2.33331C3.06258 2.20935 3.10453 2.10547 3.18844 2.02167C3.27234 1.93776 3.37627 1.89581 3.50023 1.89581C3.62428 1.89581 3.72816 1.93776 3.81187 2.02167C3.89568 2.10547 3.93758 2.20935 3.93758 2.33331V3.06248H5.39592V2.33331C5.39592 2.20935 5.43787 2.10547 5.52177 2.02167C5.60567 1.93776 5.7096 1.89581 5.83356 1.89581C5.95762 1.89581 6.0615 1.93776 6.14521 2.02167C6.22901 2.10547 6.27092 2.20935 6.27092 2.33331V3.58529C6.27092 3.72753 6.2436 3.8631 6.18896 3.99202C6.13442 4.12094 6.05926 4.23328 5.9635 4.32904L5.10425 5.18829V5.97915H8.89592V5.18829L8.03667 4.32904C7.9409 4.23328 7.86575 4.12094 7.81121 3.99202C7.75657 3.8631 7.72925 3.72753 7.72925 3.58529V2.33331C7.72925 2.20935 7.7712 2.10547 7.8551 2.02167C7.93901 1.93776 8.04294 1.89581 8.16689 1.89581C8.29095 1.89581 8.39483 1.93776 8.47854 2.02167C8.56235 2.10547 8.60425 2.20935 8.60425 2.33331V3.06248H10.0626V2.33331C10.0626 2.20935 10.1045 2.10547 10.1884 2.02167C10.2723 1.93776 10.3763 1.89581 10.5002 1.89581C10.6243 1.89581 10.7282 1.93776 10.8119 2.02167C10.8957 2.10547 10.9376 2.20935 10.9376 2.33331V3.06248H12.3959V2.33331C12.3959 2.20935 12.4379 2.10547 12.5218 2.02167C12.6057 1.93776 12.7096 1.89581 12.8336 1.89581C12.9576 1.89581 13.0615 1.93776 13.1452 2.02167C13.229 2.10547 13.2709 2.20935 13.2709 2.33331V3.58529C13.2709 3.72753 13.2436 3.8631 13.189 3.99202C13.1344 4.12094 13.0593 4.23328 12.9635 4.32904L12.1042 5.18931V8.81167L13.0196 9.72706C13.0998 9.80834 13.1616 9.9025 13.2053 10.0095C13.249 10.1166 13.2709 10.2273 13.2709 10.3418V11.2291C13.2709 11.4677 13.1847 11.6732 13.0124 11.8456C12.84 12.018 12.6345 12.1041 12.3959 12.1041H8.83977C8.69044 12.1041 8.56521 12.0536 8.4641 11.9526C8.36309 11.8515 8.31258 11.7263 8.31258 11.577V10.5C8.31258 10.139 8.18396 9.83002 7.92671 9.57306C7.66946 9.31601 7.36024 9.18748 6.99906 9.18748C6.63778 9.18748 6.32886 9.31601 6.07229 9.57306C5.81582 9.83002 5.68758 10.139 5.68758 10.5V11.5742C5.68758 11.7263 5.63707 11.8527 5.53606 11.9532C5.43495 12.0538 5.30973 12.1041 5.16039 12.1041H1.60425C1.36566 12.1041 1.16019 12.018 0.987811 11.8456C0.815436 11.6732 0.729248 11.4677 0.729248 11.2291Z",fill:"currentColor"})})]}),xf=e=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[u.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_3130_18463)",children:u.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),wf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22375",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22375)",children:u.jsx("path",{d:"M3.2509 12.3541C2.86201 12.3541 2.54458 12.2487 2.29861 12.0378C2.05254 11.8269 1.9295 11.5475 1.9295 11.1999C1.9295 10.9374 1.99809 10.7263 2.13528 10.5665C2.27255 10.4069 2.44702 10.3271 2.65867 10.3271C2.8606 10.3271 3.03259 10.3966 3.17463 10.5358C3.31677 10.6749 3.38784 10.8424 3.38784 11.0383C3.38784 11.1168 3.37044 11.1858 3.33563 11.2452C3.30082 11.3047 3.258 11.3513 3.20715 11.3849C3.22582 11.4036 3.25202 11.4195 3.28575 11.4326C3.31939 11.4457 3.35678 11.4522 3.3979 11.4522C3.52507 11.4462 3.62905 11.3878 3.70984 11.2767C3.79053 11.1656 3.85557 10.9945 3.90496 10.7634L4.81482 5.93748H3.55613C3.43198 5.93748 3.328 5.89558 3.24419 5.81177C3.16048 5.72806 3.11863 5.62413 3.11863 5.49998C3.11863 5.37583 3.16048 5.2719 3.24419 5.18819C3.328 5.10438 3.43198 5.06248 3.55613 5.06248H4.97742L5.27244 3.46735C5.34798 3.05679 5.5172 2.73386 5.78009 2.49858C6.04298 2.2634 6.36546 2.14581 6.74755 2.14581C7.13051 2.14581 7.44497 2.2582 7.69094 2.48298C7.93701 2.70766 8.06005 2.99087 8.06005 3.3326C8.06005 3.58315 7.99146 3.78829 7.85428 3.94802C7.717 4.10766 7.54253 4.18748 7.33088 4.18748C7.12895 4.18748 6.95696 4.11884 6.81492 3.98156C6.67278 3.84438 6.60171 3.67483 6.60171 3.4729C6.60171 3.39434 6.61912 3.32536 6.65392 3.26596C6.68873 3.20646 6.7334 3.15989 6.78794 3.12625C6.76928 3.10379 6.7403 3.08508 6.70103 3.0701C6.66175 3.05523 6.62155 3.04779 6.58042 3.04779C6.45851 3.05975 6.36148 3.11322 6.28934 3.20821C6.2172 3.30319 6.16203 3.44378 6.12382 3.62996L5.8759 5.06248H8.11051C8.23466 5.06248 8.33864 5.10438 8.42244 5.18819C8.50615 5.2719 8.54801 5.37583 8.54801 5.49998C8.54801 5.61217 8.51213 5.70867 8.44038 5.78946C8.36853 5.87015 8.27953 5.91648 8.17336 5.92844H7.89846L8.98551 7.16817L10.0725 5.92844H9.7978C9.69153 5.91648 9.60253 5.87015 9.53078 5.78946C9.45893 5.70867 9.42301 5.61217 9.42301 5.49998C9.42301 5.37583 9.46491 5.2719 9.54871 5.18819C9.63242 5.10438 9.73635 5.06248 9.86051 5.06248H11.6105C11.7347 5.06248 11.8386 5.10438 11.9224 5.18819C12.0062 5.2719 12.048 5.37583 12.048 5.49998C12.048 5.62413 12.0062 5.72806 11.9224 5.81177C11.8386 5.89558 11.7347 5.93748 11.6105 5.93748H11.2224L9.56782 7.83331L11.228 9.72915H11.6105C11.7347 9.72915 11.8386 9.77105 11.9224 9.85485C12.0062 9.93856 12.048 10.0425 12.048 10.1666C12.048 10.2908 12.0062 10.3947 11.9224 10.4784C11.8386 10.5622 11.7347 10.6041 11.6105 10.6041H9.86051C9.73635 10.6041 9.63242 10.5622 9.54871 10.4784C9.46491 10.3947 9.42301 10.2908 9.42301 10.1666C9.42301 10.0545 9.45893 9.95796 9.53078 9.87717C9.60253 9.79647 9.69153 9.75015 9.7978 9.73819H10.0725L8.98551 8.48956L7.89846 9.73819H8.17336C8.27953 9.75015 8.36853 9.79647 8.44038 9.87717C8.51213 9.95796 8.54801 10.0545 8.54801 10.1666C8.54801 10.2908 8.50615 10.3947 8.42244 10.4784C8.33864 10.5622 8.23466 10.6041 8.11051 10.6041H6.3605C6.23635 10.6041 6.13242 10.5622 6.04871 10.4784C5.96491 10.3947 5.923 10.2908 5.923 10.1666C5.923 10.0425 5.96491 9.93856 6.04871 9.85485C6.13242 9.77105 6.23635 9.72915 6.3605 9.72915H6.74871L8.40334 7.83331L6.74871 5.93748H5.70761L4.77428 10.8363C4.68162 11.3337 4.50648 11.711 4.24884 11.9683C3.9912 12.2255 3.65855 12.3541 3.2509 12.3541Z",fill:"currentColor"})})]}),yf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.00261 14C6.03462 14 5.12456 13.8163 4.27241 13.449C3.42026 13.0816 2.67901 12.583 2.04865 11.9533C1.4183 11.3235 0.919269 10.5829 0.551561 9.73159C0.183854 8.88024 0 7.97058 0 7.00261C0 6.03462 0.183679 5.12456 0.551036 4.27241C0.918407 3.42026 1.41698 2.67901 2.04674 2.04865C2.67651 1.4183 3.41706 0.919269 4.26841 0.551562C5.11976 0.183854 6.02942 0 6.99739 0C7.96538 0 8.87544 0.183679 9.72759 0.551036C10.5797 0.918406 11.321 1.41697 11.9514 2.04674C12.5817 2.67651 13.0807 3.41706 13.4484 4.26841C13.8161 5.11976 14 6.02942 14 6.99739C14 7.96538 13.8163 8.87544 13.449 9.72759C13.0816 10.5797 12.583 11.321 11.9533 11.9514C11.3235 12.5817 10.5829 13.0807 9.73159 13.4484C8.88024 13.8161 7.97058 14 7.00261 14ZM6.22222 13.1833V11.6667C5.79444 11.6667 5.42824 11.5144 5.12361 11.2097C4.81898 10.9051 4.66667 10.5389 4.66667 10.1111V9.33333L0.933333 5.6C0.894445 5.83333 0.858796 6.06667 0.826389 6.3C0.793981 6.53333 0.777778 6.76667 0.777778 7C0.777778 8.56852 1.29306 9.94259 2.32361 11.1222C3.35417 12.3019 4.6537 12.9889 6.22222 13.1833ZM11.5889 11.2C11.8481 10.9148 12.0815 10.6069 12.2889 10.2764C12.4963 9.94583 12.6681 9.60231 12.8042 9.24583C12.9403 8.88935 13.044 8.52315 13.1153 8.14722C13.1866 7.7713 13.2222 7.38889 13.2222 7C13.2222 5.72211 12.8715 4.55506 12.17 3.49885C11.4685 2.44264 10.5229 1.68121 9.33333 1.21454V1.55556C9.33333 1.98333 9.18102 2.34954 8.87639 2.65417C8.57176 2.9588 8.20556 3.11111 7.77778 3.11111H6.22222V4.66667C6.22222 4.88704 6.14769 5.07176 5.99861 5.22083C5.84954 5.36991 5.66481 5.44444 5.44444 5.44444H3.88889V7H8.55556C8.77593 7 8.96065 7.07454 9.10972 7.22361C9.2588 7.37269 9.33333 7.55741 9.33333 7.77778V10.1111H10.1111C10.4481 10.1111 10.7528 10.2116 11.025 10.4125C11.2972 10.6134 11.4852 10.8759 11.5889 11.2Z",fill:"currentColor"})}),bf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22441",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22441)",children:u.jsx("path",{d:"M10.8837 12.5271C10.8134 12.5271 10.748 12.5159 10.6874 12.4934C10.6267 12.471 10.5691 12.4325 10.5146 12.3779L7.57328 9.44214C7.51864 9.3875 7.48009 9.3299 7.45764 9.26933C7.43528 9.20876 7.42409 9.14333 7.42409 9.07304C7.42409 9.00274 7.43528 8.93731 7.45764 8.87674C7.48009 8.81618 7.51864 8.75862 7.57328 8.70408L8.67826 7.5991C8.7328 7.54446 8.79036 7.50591 8.85093 7.48345C8.9115 7.46109 8.97693 7.44991 9.04722 7.44991C9.11751 7.44991 9.18294 7.46109 9.24351 7.48345C9.30418 7.50591 9.36178 7.54446 9.41632 7.5991L12.3576 10.5404C12.4123 10.595 12.4508 10.6525 12.4733 10.7131C12.4956 10.7737 12.5068 10.8392 12.5068 10.9095C12.5068 10.9798 12.4956 11.0452 12.4733 11.1058C12.4508 11.1664 12.4123 11.2239 12.3576 11.2785L11.2527 12.3779C11.1981 12.4325 11.1406 12.471 11.08 12.4934C11.0194 12.5159 10.954 12.5271 10.8837 12.5271ZM3.10174 12.536C3.03145 12.536 2.96451 12.5233 2.90093 12.4979C2.83744 12.4725 2.77838 12.4325 2.72374 12.3779L1.6278 11.2875C1.57316 11.2329 1.53316 11.1738 1.50778 11.1103C1.48231 11.0467 1.46957 10.9798 1.46957 10.9095C1.46957 10.8392 1.48231 10.7728 1.50778 10.7103C1.53316 10.6479 1.57316 10.5894 1.6278 10.5347L4.67455 7.48797H5.90291L6.37628 7.0146L3.93635 4.57466H3.10509L1.48634 2.95591L2.93243 1.50997L4.55118 3.12872V3.95997L6.99097 6.39991L8.71632 4.67456L7.86495 3.82304L8.60301 3.08497H7.11784L6.79366 2.76633L8.65682 0.903015L8.97547 1.22166V2.71252L9.71353 1.97445L11.9079 4.15743C12.0619 4.30774 12.178 4.47899 12.2561 4.6712C12.3343 4.86341 12.3734 5.0668 12.3734 5.28137C12.3734 5.46988 12.3409 5.65145 12.2758 5.82606C12.2108 6.00067 12.1162 6.15938 11.992 6.3022L10.7749 5.08508L9.95255 5.90743L9.33451 5.28925L6.51205 8.1117V9.34225L3.47084 12.3779C3.4163 12.4325 3.3587 12.4725 3.29803 12.4979C3.23746 12.5233 3.17203 12.536 3.10174 12.536Z",fill:"currentColor"})})]}),_f=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22444",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22444)",children:u.jsx("path",{d:"M6.13623 11.9584C5.99341 11.9584 5.87169 11.908 5.77107 11.8074C5.67054 11.7069 5.62028 11.5852 5.62028 11.4423V7.44306H8.5368V11.4423C8.5368 11.5852 8.48653 11.7069 8.386 11.8074C8.28538 11.908 8.16366 11.9584 8.02084 11.9584H6.13623ZM5.62028 6.56252V4.37502H3.53821C3.37216 4.37502 3.23921 4.31071 3.13936 4.18208C3.03951 4.05346 3.01467 3.90797 3.06484 3.7456C3.22107 3.23412 3.52018 2.82228 3.96215 2.5101C4.40422 2.19783 4.89709 2.04169 5.44075 2.04169H8.02084C8.16366 2.04169 8.28538 2.092 8.386 2.19262C8.48653 2.29315 8.5368 2.41487 8.5368 2.55779V3.758L10.0355 2.25927C10.1021 2.19277 10.1792 2.13988 10.2667 2.1006C10.3542 2.06133 10.445 2.04169 10.5392 2.04169H10.6738C10.8017 2.04169 10.9094 2.08359 10.9969 2.1674C11.0844 2.2511 11.1281 2.35503 11.1281 2.47919V5.91196C11.1281 6.03601 11.0844 6.13994 10.9969 6.22375C10.9094 6.30746 10.8017 6.34931 10.6738 6.34931H10.5392C10.445 6.34931 10.3542 6.32972 10.2667 6.29054C10.1792 6.25126 10.1021 6.19833 10.0355 6.13173L8.5368 4.633V6.56252H5.62028Z",fill:"currentColor"})})]}),Ef=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),$f=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),kf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M8.95833 14.0013C9.25 14.0013 9.49653 13.9006 9.69792 13.6992C9.89931 13.4978 10 13.2513 10 12.9596C10 12.668 9.89931 12.4214 9.69792 12.2201C9.49653 12.0187 9.25 11.918 8.95833 11.918C8.66667 11.918 8.42014 12.0187 8.21875 12.2201C8.01736 12.4214 7.91667 12.668 7.91667 12.9596C7.91667 13.2513 8.01736 13.4978 8.21875 13.6992C8.42014 13.9006 8.66667 14.0013 8.95833 14.0013ZM9 17.3346C7.84722 17.3346 6.76389 17.1159 5.75 16.6784C4.73611 16.2409 3.85417 15.6471 3.10417 14.8971C2.35417 14.1471 1.76042 13.2652 1.32292 12.2513C0.885416 11.2374 0.666666 10.1541 0.666666 9.0013C0.666666 7.84852 0.885416 6.76519 1.32292 5.7513C1.76042 4.73741 2.35417 3.85547 3.10417 3.10547C3.85417 2.35547 4.73611 1.76172 5.75 1.32422C6.76389 0.886719 7.84722 0.667969 9 0.667969C10.1528 0.667969 11.2361 0.886719 12.25 1.32422C13.2639 1.76172 14.1458 2.35547 14.8958 3.10547C15.6458 3.85547 16.2396 4.73741 16.6771 5.7513C17.1146 6.76519 17.3333 7.84852 17.3333 9.0013C17.3333 10.1541 17.1146 11.2374 16.6771 12.2513C16.2396 13.2652 15.6458 14.1471 14.8958 14.8971C14.1458 15.6471 13.2639 16.2409 12.25 16.6784C11.2361 17.1159 10.1528 17.3346 9 17.3346ZM9.08333 5.41797C9.43056 5.41797 9.73264 5.52908 9.98958 5.7513C10.2465 5.97352 10.375 6.2513 10.375 6.58464C10.375 6.89019 10.2812 7.16102 10.0937 7.39714C9.90625 7.63325 9.69444 7.85547 9.45833 8.0638C9.13889 8.34158 8.85764 8.64714 8.61458 8.98047C8.37153 9.3138 8.25 9.6888 8.25 10.1055C8.25 10.2999 8.32292 10.4631 8.46875 10.5951C8.61458 10.727 8.78472 10.793 8.97917 10.793C9.1875 10.793 9.36458 10.7235 9.51042 10.5846C9.65625 10.4457 9.75 10.2721 9.79167 10.0638C9.84722 9.77214 9.97222 9.51172 10.1667 9.28255C10.3611 9.05339 10.5694 8.83464 10.7917 8.6263C11.1111 8.32075 11.3854 7.98741 11.6146 7.6263C11.8437 7.26519 11.9583 6.86241 11.9583 6.41797C11.9583 5.70964 11.6701 5.12977 11.0937 4.67839C10.5174 4.227 9.84722 4.0013 9.08333 4.0013C8.55555 4.0013 8.05208 4.11241 7.57292 4.33464C7.09375 4.55686 6.72917 4.89714 6.47917 5.35547C6.38194 5.52214 6.35069 5.69922 6.38542 5.88672C6.42014 6.07422 6.51389 6.21658 6.66667 6.3138C6.86111 6.42491 7.0625 6.45964 7.27083 6.41797C7.47917 6.3763 7.65278 6.25825 7.79167 6.0638C7.94444 5.85547 8.13542 5.69575 8.36458 5.58464C8.59375 5.47352 8.83333 5.41797 9.08333 5.41797Z",fill:"currentColor"})}),Sf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_19",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_19)",children:u.jsx("path",{d:"M2.625 11.0833V5.923C2.625 5.75607 2.66233 5.59794 2.737 5.44861C2.81176 5.29918 2.91501 5.17614 3.04675 5.0795L6.36737 2.57788C6.55161 2.4373 6.76219 2.367 6.99913 2.367C7.23606 2.367 7.44722 2.4373 7.63263 2.57788L10.9532 5.0795C11.085 5.17614 11.1882 5.29918 11.263 5.44861C11.3377 5.59794 11.375 5.75607 11.375 5.923V11.0833C11.375 11.3219 11.2888 11.5274 11.1164 11.6998C10.9441 11.8721 10.7386 11.9583 10.5 11.9583H8.63785C8.48842 11.9583 8.3632 11.9078 8.26219 11.8067C8.16108 11.7056 8.11052 11.5804 8.11052 11.431V8.58169C8.11052 8.43236 8.06001 8.30714 7.959 8.20603C7.85799 8.10501 7.73276 8.0545 7.58333 8.0545H6.41667C6.26724 8.0545 6.14201 8.10501 6.041 8.20603C5.93999 8.30714 5.88948 8.43236 5.88948 8.58169V11.431C5.88948 11.5804 5.83892 11.7056 5.73781 11.8067C5.6368 11.9078 5.51158 11.9583 5.36215 11.9583H3.5C3.26142 11.9583 3.05594 11.8721 2.88356 11.6998C2.71119 11.5274 2.625 11.3219 2.625 11.0833Z",fill:"currentColor"})})]}),jf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22519",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22519)",children:u.jsx("path",{d:"M6.56249 5.32954V4.85719C6.17963 4.76074 5.86516 4.55755 5.61909 4.2476C5.37302 3.93756 5.24999 3.57726 5.24999 3.16669C5.24999 2.68135 5.42032 2.26835 5.76099 1.92769C6.10166 1.58702 6.51466 1.41669 6.99999 1.41669C7.48532 1.41669 7.89832 1.58702 8.23899 1.92769C8.57966 2.26835 8.74999 2.68135 8.74999 3.16669C8.74999 3.57726 8.62696 3.93756 8.38089 4.2476C8.13482 4.55755 7.82035 4.76074 7.43749 4.85719V5.32954L11.431 7.627C11.597 7.72267 11.7264 7.85202 11.8192 8.01506C11.9119 8.1781 11.9583 8.35534 11.9583 8.54677V9.45327C11.9583 9.6447 11.9119 9.82194 11.8192 9.98498C11.7264 10.148 11.597 10.2774 11.431 10.373L7.52718 12.62C7.36122 12.7158 7.18549 12.7637 6.99999 12.7637C6.81449 12.7637 6.63876 12.7158 6.4728 12.62L2.56899 10.373C2.40293 10.2774 2.27353 10.148 2.18078 9.98498C2.08803 9.82194 2.04166 9.6447 2.04166 9.45327V8.54677C2.04166 8.35534 2.08803 8.1781 2.18078 8.01506C2.27353 7.85202 2.40293 7.72267 2.56899 7.627L6.56249 5.32954ZM3.65253 8.01287L6.9103 9.89194C6.94015 9.9106 6.97005 9.91994 6.99999 9.91994C7.02993 9.91994 7.05983 9.9106 7.08968 9.89194L10.3419 8.01287L7.43749 6.33462V8.27085H6.56249V6.33462L3.65253 8.01287Z",fill:"currentColor"})})]}),Lf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Icons 20x20",children:u.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5661 2.056C17.7371 2.12703 17.873 2.26296 17.9441 2.434C17.9799 2.51816 17.999 2.60853 18.0001 2.7V6.9C18.0001 7.08565 17.9263 7.2637 17.795 7.39497C17.6638 7.52625 17.4857 7.6 17.3001 7.6C17.1144 7.6 16.9364 7.52625 16.8051 7.39497C16.6738 7.2637 16.6001 7.08565 16.6001 6.9V4.387L10.0971 10.897C10.032 10.9626 9.95456 11.0147 9.86926 11.0502C9.78396 11.0858 9.69246 11.1041 9.60006 11.1041C9.50765 11.1041 9.41615 11.0858 9.33085 11.0502C9.24555 11.0147 9.16813 10.9626 9.10306 10.897C9.03745 10.8319 8.98537 10.7545 8.94983 10.6692C8.91429 10.5839 8.896 10.4924 8.896 10.4C8.896 10.3076 8.91429 10.2161 8.94983 10.1308C8.98537 10.0455 9.03745 9.96807 9.10306 9.903L15.6131 3.4H13.1001C12.9144 3.4 12.7364 3.32625 12.6051 3.19497C12.4738 3.0637 12.4001 2.88565 12.4001 2.7C12.4001 2.51435 12.4738 2.3363 12.6051 2.20503C12.7364 2.07375 12.9144 2 13.1001 2H17.3001C17.3915 2.00111 17.4819 2.02013 17.5661 2.056ZM14.705 9.20463C14.8363 9.07336 15.0143 8.99961 15.2 8.99961C15.3857 8.99961 15.5637 9.07336 15.695 9.20463C15.8263 9.33591 15.9 9.51396 15.9 9.69961V13.8996C15.9 14.4566 15.6788 14.9907 15.2849 15.3845C14.8911 15.7784 14.357 15.9996 13.8 15.9996H6.1C5.54305 15.9996 5.0089 15.7784 4.61508 15.3845C4.22125 14.9907 4 14.4566 4 13.8996V6.19961C4 5.64265 4.22125 5.10851 4.61508 4.71469C5.0089 4.32086 5.54305 4.09961 6.1 4.09961H10.3C10.4857 4.09961 10.6637 4.17336 10.795 4.30463C10.9263 4.43591 11 4.61396 11 4.79961C11 4.98526 10.9263 5.16331 10.795 5.29458C10.6637 5.42586 10.4857 5.49961 10.3 5.49961H6.1C5.91435 5.49961 5.7363 5.57336 5.60503 5.70463C5.47375 5.83591 5.4 6.01396 5.4 6.19961V13.8996C5.4 14.0853 5.47375 14.2633 5.60503 14.3946C5.7363 14.5259 5.91435 14.5996 6.1 14.5996H13.8C13.9857 14.5996 14.1637 14.5259 14.295 14.3946C14.4263 14.2633 14.5 14.0853 14.5 13.8996V9.69961C14.5 9.51396 14.5737 9.33591 14.705 9.20463Z",fill:"currentColor"})})}),Mf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Menu icons",children:u.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2669 9.02431C16.2669 13.346 12.7635 16.8494 8.44179 16.8494C7.27934 16.8494 6.1761 16.5959 5.18431 16.1412L1.18187 17.1418C0.90723 17.2105 0.658457 16.9617 0.727118 16.6871L1.66434 12.9382C0.998057 11.7869 0.616699 10.4502 0.616699 9.02431C0.616699 4.70263 4.12011 1.19922 8.44179 1.19922C12.7635 1.19922 16.2669 4.70263 16.2669 9.02431ZM4.73511 7.77304C4.73511 7.31812 5.10389 6.94934 5.5588 6.94934H11.3247C11.7796 6.94934 12.1484 7.31812 12.1484 7.77304C12.1484 8.22795 11.7796 8.59673 11.3247 8.59673H5.5588C5.10389 8.59673 4.73511 8.22795 4.73511 7.77304ZM4.73505 11.068C4.73505 10.613 5.10383 10.2443 5.55874 10.2443H8.85352C9.30843 10.2443 9.67721 10.613 9.67721 11.068C9.67721 11.5229 9.30843 11.8917 8.85352 11.8917H5.55874C5.10383 11.8917 4.73505 11.5229 4.73505 11.068Z",fill:"currentColor"})})}),Of=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})}),Rf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_49",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_49)",children:u.jsx("path",{d:"M7.02162 12.3023C6.84934 12.3023 6.70438 12.2441 6.58675 12.1276C6.4692 12.0112 6.41043 11.8668 6.41043 11.6945V11.0377C5.96593 10.9381 5.57665 10.7639 5.2426 10.515C4.90854 10.2661 4.63827 9.92181 4.43177 9.48207C4.35904 9.33196 4.35836 9.1746 4.42972 9.01001C4.50109 8.84531 4.62636 8.72777 4.80554 8.65738C4.95331 8.59438 5.10532 8.5974 5.26156 8.66642C5.41789 8.73545 5.5419 8.84983 5.63358 9.00957C5.79662 9.28733 6.00103 9.49748 6.24681 9.64001C6.49259 9.78263 6.78975 9.85395 7.13829 9.85395C7.5299 9.85395 7.85671 9.76922 8.11872 9.59976C8.38064 9.4304 8.5116 9.16658 8.5116 8.80832C8.5116 8.48428 8.40349 8.22319 8.18727 8.02505C7.97104 7.82691 7.47638 7.60495 6.70327 7.35917C5.87649 7.10134 5.30521 6.78488 4.98943 6.4098C4.67365 6.03481 4.51577 5.58015 4.51577 5.04582C4.51577 4.42321 4.71702 3.93107 5.11952 3.5694C5.52211 3.20783 5.95242 2.99574 6.41043 2.93313V2.30547C6.41043 2.13319 6.4692 1.98881 6.58675 1.87234C6.70438 1.75587 6.84934 1.69763 7.02162 1.69763C7.19613 1.69763 7.34104 1.75587 7.45635 1.87234C7.57165 1.98881 7.62931 2.13319 7.62931 2.30547V2.93313C7.99875 2.99847 8.32134 3.12106 8.59706 3.30092C8.87278 3.48078 9.10047 3.7043 9.28014 3.97147C9.37688 4.10942 9.39506 4.26376 9.33468 4.43449C9.27421 4.60511 9.15322 4.72795 8.9717 4.80301C8.83093 4.86367 8.68295 4.86669 8.52779 4.81205C8.37262 4.75741 8.22022 4.65737 8.0706 4.51192C7.94888 4.38515 7.80528 4.28763 7.63981 4.21938C7.47434 4.15104 7.27216 4.11686 7.03329 4.11686C6.62184 4.11686 6.31185 4.2047 6.10331 4.38038C5.89486 4.55597 5.79064 4.77428 5.79064 5.03532C5.79064 5.33992 5.92772 5.58108 6.20189 5.7588C6.47615 5.93652 6.97763 6.1298 7.70631 6.33863C8.38647 6.53774 8.90321 6.85167 9.25652 7.28042C9.60982 7.70917 9.78647 8.20875 9.78647 8.77915C9.78647 9.47876 9.57997 10.0119 9.16697 10.3785C8.75397 10.7452 8.24142 10.9747 7.62931 11.0668V11.6945C7.62931 11.8668 7.57107 12.0112 7.4546 12.1276C7.33822 12.2441 7.1939 12.3023 7.02162 12.3023Z",fill:"currentColor"})})]}),Pf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"volume_mute",children:[u.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[u.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),u.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),Tf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("circle",{cx:"5",cy:"5",r:"4.5",fill:"currentColor",stroke:"#6B7A8D"})}),Hf=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:"notes",children:[u.jsx("mask",{id:"mask0_1473_73722",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_1473_73722)",children:u.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),If=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M1.16675 4.66669V7.0006H1.75008V10.5H1.16675V12.25H10.5001L12.2501 12.2506L12.8334 12.25V10.5H12.2501V7.0006H12.8334V4.66669L7.00008 1.16669L1.16675 4.66669ZM3.50008 10.5V7.0006H4.66675V10.5H3.50008ZM6.41675 10.5V7.0006H7.58342V10.5H6.41675ZM10.5001 10.5H9.33342V7.0006H10.5001V10.5ZM8.16675 4.66669C8.16671 4.81993 8.13649 4.97167 8.07781 5.11324C8.01913 5.25481 7.93314 5.38343 7.82475 5.49177C7.71636 5.6001 7.58769 5.68603 7.4461 5.74464C7.3045 5.80325 7.15275 5.83339 6.9995 5.83335C6.84625 5.83332 6.69451 5.80309 6.55294 5.74441C6.41138 5.68573 6.28275 5.59974 6.17442 5.49135C6.06608 5.38296 5.98016 5.2543 5.92155 5.1127C5.86294 4.97111 5.83279 4.81935 5.83283 4.6661C5.83291 4.35661 5.95593 4.05982 6.17483 3.84103C6.39373 3.62223 6.69059 3.49936 7.00008 3.49944C7.30958 3.49951 7.60637 3.62254 7.82516 3.84144C8.04395 4.06034 8.16683 4.35719 8.16675 4.66669Z",fill:"currentColor"})}),Af=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M17 7H15C14.7167 7 14.4792 6.90417 14.2875 6.7125C14.0958 6.52083 14 6.28333 14 6C14 5.71667 14.0958 5.47917 14.2875 5.2875C14.4792 5.09583 14.7167 5 15 5H17V3C17 2.71667 17.0958 2.47917 17.2875 2.2875C17.4792 2.09583 17.7167 2 18 2C18.2833 2 18.5208 2.09583 18.7125 2.2875C18.9042 2.47917 19 2.71667 19 3V5H21C21.2833 5 21.5208 5.09583 21.7125 5.2875C21.9042 5.47917 22 5.71667 22 6C22 6.28333 21.9042 6.52083 21.7125 6.7125C21.5208 6.90417 21.2833 7 21 7H19V9C19 9.28333 18.9042 9.52083 18.7125 9.7125C18.5208 9.90417 18.2833 10 18 10C17.7167 10 17.4792 9.90417 17.2875 9.7125C17.0958 9.52083 17 9.28333 17 9V7ZM8 8C6.9 8 5.95833 7.60833 5.175 6.825C4.39167 6.04167 4 5.1 4 4C4 2.9 4.39167 1.95833 5.175 1.175C5.95833 0.391667 6.9 0 8 0C9.1 0 10.0417 0.391667 10.825 1.175C11.6083 1.95833 12 2.9 12 4C12 5.1 11.6083 6.04167 10.825 6.825C10.0417 7.60833 9.1 8 8 8ZM0 14V13.2C0 12.6333 0.145833 12.1125 0.4375 11.6375C0.729167 11.1625 1.11667 10.8 1.6 10.55C2.63333 10.0333 3.68333 9.64583 4.75 9.3875C5.81667 9.12917 6.9 9 8 9C9.1 9 10.1833 9.12917 11.25 9.3875C12.3167 9.64583 13.3667 10.0333 14.4 10.55C14.8833 10.8 15.2708 11.1625 15.5625 11.6375C15.8542 12.1125 16 12.6333 16 13.2V14C16 14.55 15.8042 15.0208 15.4125 15.4125C15.0208 15.8042 14.55 16 14 16H2C1.45 16 0.979167 15.8042 0.5875 15.4125C0.195833 15.0208 0 14.55 0 14Z",fill:"currentColor"})}),Vf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7640_2772",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7640_2772)",children:u.jsx("path",{d:"M3.51334 10.0871C4.00917 9.71924 4.54934 9.42869 5.13384 9.21548C5.71824 9.00237 6.34027 8.89581 6.99992 8.89581C7.65957 8.89581 8.2816 9.00237 8.866 9.21548C9.4505 9.42869 9.99067 9.71924 10.4865 10.0871C10.8491 9.68851 11.1365 9.2271 11.3485 8.70288C11.5606 8.17865 11.6666 7.61102 11.6666 6.99998C11.6666 5.70692 11.2121 4.60588 10.303 3.69685C9.39402 2.78783 8.29297 2.33331 6.99992 2.33331C5.70686 2.33331 4.60582 2.78783 3.69679 3.69685C2.78777 4.60588 2.33325 5.70692 2.33325 6.99998C2.33325 7.61102 2.43927 8.17865 2.65131 8.70288C2.86336 9.2271 3.1507 9.68851 3.51334 10.0871ZM6.99992 7.43748C6.46743 7.43748 6.01836 7.2546 5.65271 6.88885C5.28696 6.5232 5.10409 6.07413 5.10409 5.54165C5.10409 5.00916 5.28696 4.56009 5.65271 4.19444C6.01836 3.82869 6.46743 3.64581 6.99992 3.64581C7.5324 3.64581 7.98147 3.82869 8.34713 4.19444C8.71288 4.56009 8.89575 5.00916 8.89575 5.54165C8.89575 6.07413 8.71288 6.5232 8.34713 6.88885C7.98147 7.2546 7.5324 7.43748 6.99992 7.43748ZM6.99992 12.5416C6.2304 12.5416 5.50853 12.3969 4.83429 12.1075C4.16006 11.8181 3.57356 11.4239 3.07481 10.9251C2.57597 10.4263 2.18183 9.83984 1.8924 9.1656C1.60297 8.49137 1.45825 7.76949 1.45825 6.99998C1.45825 6.23047 1.60297 5.50859 1.8924 4.83435C2.18183 4.16012 2.57597 3.57363 3.07481 3.07488C3.57356 2.57603 4.16006 2.18189 4.83429 1.89246C5.50853 1.60303 6.2304 1.45831 6.99992 1.45831C7.76943 1.45831 8.49131 1.60303 9.16554 1.89246C9.83978 2.18189 10.4263 2.57603 10.925 3.07488C11.4239 3.57363 11.818 4.16012 12.1074 4.83435C12.3969 5.50859 12.5416 6.23047 12.5416 6.99998C12.5416 7.76949 12.3969 8.49137 12.1074 9.1656C11.818 9.83984 11.4239 10.4263 10.925 10.9251C10.4263 11.4239 9.83978 11.8181 9.16554 12.1075C8.49131 12.3969 7.76943 12.5416 6.99992 12.5416Z",fill:"currentColor"})})]}),Df=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22741)",children:u.jsx("path",{d:"M4.26283 13.375C3.96815 13.375 3.71873 13.2729 3.51456 13.0687C3.3104 12.8646 3.20831 12.6152 3.20831 12.3205V2.17952C3.20831 1.88484 3.3104 1.63542 3.51456 1.43125C3.71873 1.22708 3.96815 1.125 4.26283 1.125H9.73713C10.0318 1.125 10.2812 1.22708 10.4854 1.43125C10.6896 1.63542 10.7916 1.88484 10.7916 2.17952V12.3205C10.7916 12.6152 10.6896 12.8646 10.4854 13.0687C10.2812 13.2729 10.0318 13.375 9.73713 13.375H4.26283ZM6.99998 12.0737C7.1428 12.0737 7.26452 12.0234 7.36515 11.9228C7.46567 11.8223 7.51594 11.7005 7.51594 11.5576C7.51594 11.4148 7.46567 11.2931 7.36515 11.1926C7.26452 11.092 7.1428 11.0417 6.99998 11.0417C6.85716 11.0417 6.73544 11.092 6.63481 11.1926C6.53429 11.2931 6.48402 11.4148 6.48402 11.5576C6.48402 11.7005 6.53429 11.8223 6.63481 11.9228C6.73544 12.0234 6.85716 12.0737 6.99998 12.0737ZM4.08331 9.7404H9.91665V3.60417H4.08331V9.7404Z",fill:"currentColor"})})]}),Nf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7640_3741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7640_3741)",children:u.jsx("path",{d:"M6.99992 12.2151C6.88627 12.2151 6.77262 12.1955 6.65897 12.1564C6.54522 12.1171 6.44235 12.0563 6.35038 11.9741C5.82694 11.4916 5.33708 10.9948 4.88082 10.4836C4.42465 9.97255 4.02813 9.4616 3.69126 8.95079C3.35428 8.43999 3.08765 7.9337 2.89136 7.43194C2.69507 6.93008 2.59692 6.44542 2.59692 5.97798C2.59692 4.63184 3.03233 3.54203 3.90315 2.70854C4.77407 1.87506 5.80633 1.45831 6.99992 1.45831C8.19352 1.45831 9.22578 1.87506 10.0967 2.70854C10.9675 3.54203 11.4029 4.63184 11.4029 5.97798C11.4029 6.44542 11.3048 6.92911 11.1085 7.42902C10.9122 7.92904 10.6465 8.43537 10.3115 8.94802C9.97638 9.46067 9.58074 9.97163 9.12457 10.4809C8.6684 10.9902 8.17855 11.4861 7.65501 11.9684C7.5644 12.0506 7.46139 12.1123 7.34599 12.1534C7.23068 12.1946 7.11533 12.2151 6.99992 12.2151ZM7.00094 6.92138C7.29115 6.92138 7.53926 6.81803 7.74528 6.61133C7.95139 6.40464 8.05444 6.15619 8.05444 5.86598C8.05444 5.57577 7.9511 5.32761 7.7444 5.1215C7.53771 4.91549 7.28921 4.81248 6.9989 4.81248C6.70869 4.81248 6.46058 4.91583 6.25457 5.12252C6.04846 5.32922 5.9454 5.57772 5.9454 5.86802C5.9454 6.15823 6.04875 6.40634 6.25544 6.61236C6.46214 6.81837 6.71064 6.92138 7.00094 6.92138Z",fill:"currentColor"})})]}),Bf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:u.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{children:u.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]}),zf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{opacity:"0.4",children:[u.jsx("mask",{id:"mask0_5162_13105",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5162_13105)",children:u.jsx("path",{d:"M19.7615 21.8691L15.7154 17.8537C15.1256 18.0819 14.5195 18.2467 13.8971 18.348C13.2747 18.4493 12.6423 18.4999 12 18.4999C9.89486 18.4999 7.96698 17.94 6.21635 16.8201C4.46572 15.7002 3.07822 14.2243 2.05385 12.3922C1.97052 12.2486 1.90963 12.1025 1.87118 11.9538C1.83271 11.8051 1.81348 11.6538 1.81348 11.4999C1.81348 11.3461 1.83431 11.1932 1.87598 11.0413C1.91764 10.8894 1.98014 10.7448 2.06348 10.6076C2.46219 9.9448 2.88591 9.30345 3.33463 8.68357C3.78336 8.0637 4.30516 7.51531 4.90003 7.0384L2.13078 4.2384L3.18463 3.18457L20.8153 20.8153L19.7615 21.8691ZM12 15.5768C12.2218 15.5768 12.4336 15.5637 12.6356 15.5374C12.8375 15.5111 13.0346 15.4537 13.2269 15.3653L8.13463 10.273C8.05258 10.4653 7.99681 10.6624 7.96733 10.8643C7.93783 11.0663 7.92308 11.2781 7.92308 11.4999C7.92308 12.6345 8.31891 13.5977 9.11058 14.3893C9.90224 15.181 10.8654 15.5768 12 15.5768ZM18.9538 16.0845L15.8173 12.973C15.9019 12.7345 15.9663 12.4941 16.0105 12.2518C16.0548 12.0095 16.0769 11.7589 16.0769 11.4999C16.0769 10.3653 15.681 9.40219 14.8894 8.61052C14.0977 7.81885 13.1346 7.42302 12 7.42302C11.741 7.42302 11.4904 7.44674 11.2481 7.49417C11.0058 7.5416 10.7686 7.61917 10.5366 7.72687L8.03463 5.23457C8.67051 4.98329 9.3189 4.79803 9.9798 4.6788C10.6407 4.55956 11.3141 4.49995 12 4.49995C14.1115 4.49995 16.0484 5.06245 17.8105 6.18745C19.5727 7.31245 20.9628 8.79738 21.9807 10.6422C22.0576 10.7692 22.1169 10.9054 22.1586 11.0509C22.2003 11.1964 22.2211 11.3461 22.2211 11.4999C22.2211 11.6538 22.2028 11.8034 22.1663 11.9489C22.1297 12.0945 22.073 12.2307 21.9961 12.3576C21.6089 13.0832 21.1673 13.7605 20.6711 14.3893C20.175 15.0182 19.6025 15.5832 18.9538 16.0845ZM14.6846 11.8499L11.675 8.84992C12.0955 8.76659 12.5051 8.79671 12.9038 8.9403C13.3025 9.0839 13.6468 9.30761 13.9365 9.61145C14.2327 9.91145 14.4465 10.2563 14.5779 10.6461C14.7093 11.0358 14.7449 11.4371 14.6846 11.8499Z",fill:"currentColor"})})]})}),Zf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_5162_13106",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5162_13106)",children:u.jsx("path",{d:"M12.0023 15.5769C13.1354 15.5769 14.0978 15.1803 14.8895 14.3871C15.6811 13.5939 16.077 12.6308 16.077 11.4977C16.077 10.3646 15.6804 9.40224 14.8872 8.61058C14.094 7.81891 13.1309 7.42308 11.9978 7.42308C10.8647 7.42308 9.90234 7.81966 9.11067 8.61282C8.31901 9.40601 7.92317 10.3692 7.92317 11.5023C7.92317 12.6353 8.31976 13.5977 9.11293 14.3894C9.90611 15.181 10.8692 15.5769 12.0023 15.5769ZM12.0001 14.2C11.2501 14.2 10.6126 13.9375 10.0876 13.4125C9.56258 12.8875 9.30007 12.25 9.30007 11.5C9.30007 10.75 9.56258 10.1125 10.0876 9.58748C10.6126 9.06248 11.2501 8.79998 12.0001 8.79998C12.7501 8.79998 13.3876 9.06248 13.9126 9.58748C14.4376 10.1125 14.7001 10.75 14.7001 11.5C14.7001 12.25 14.4376 12.8875 13.9126 13.4125C13.3876 13.9375 12.7501 14.2 12.0001 14.2ZM12.0014 18.5C9.70183 18.5 7.60651 17.8657 5.71547 16.5971C3.82446 15.3285 2.43216 13.6295 1.53857 11.5C2.43216 9.37049 3.82401 7.67146 5.71412 6.40288C7.60422 5.13429 9.69908 4.5 11.9987 4.5C14.2983 4.5 16.3936 5.13429 18.2847 6.40288C20.1757 7.67146 21.568 9.37049 22.4616 11.5C21.568 13.6295 20.1761 15.3285 18.286 16.5971C16.3959 17.8657 14.3011 18.5 12.0014 18.5Z",fill:"currentColor"})})]}),Ff=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22801",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22801)",children:u.jsx("path",{d:"M7.58335 12.2196V11.1089H8.69387V12.2196H7.58335ZM6.47283 11.1089V8.36054H7.58335V11.1089H6.47283ZM10.8589 9.24677V7.25002H11.9696V9.24677H10.8589ZM9.74839 7.25002V6.1395H10.8589V7.25002H9.74839ZM3.14112 8.36054V7.25002H4.25164V8.36054H3.14112ZM2.03046 7.25002V6.1395H3.14112V7.25002H2.03046ZM7.00002 3.39112V2.28046H8.11054V3.39112H7.00002ZM2.72594 4.91669H4.66669V2.97594H2.72594V4.91669ZM2.03046 5.08498V2.80779C2.03046 2.65836 2.08101 2.53314 2.18212 2.43212C2.28314 2.33101 2.40836 2.28046 2.55779 2.28046H4.83498C4.98431 2.28046 5.10953 2.33101 5.21064 2.43212C5.31166 2.53314 5.36216 2.65836 5.36216 2.80779V5.08498C5.36216 5.23431 5.31166 5.35953 5.21064 5.46064C5.10953 5.56166 4.98431 5.61217 4.83498 5.61217H2.55779C2.40836 5.61217 2.28314 5.56166 2.18212 5.46064C2.08101 5.35953 2.03046 5.23431 2.03046 5.08498ZM2.72594 11.5241H4.7116V9.58335H2.72594V11.5241ZM2.03046 11.6922V9.41506C2.03046 9.26573 2.08101 9.14051 2.18212 9.03939C2.28314 8.93838 2.40836 8.88787 2.55779 8.88787H4.87989C5.02923 8.88787 5.15445 8.93838 5.25556 9.03939C5.35657 9.14051 5.40708 9.26573 5.40708 9.41506V11.6922C5.40708 11.8417 5.35657 11.9669 5.25556 12.0679C5.15445 12.169 5.02923 12.2196 4.87989 12.2196H2.55779C2.40836 12.2196 2.28314 12.169 2.18212 12.0679C2.08101 11.9669 2.03046 11.8417 2.03046 11.6922ZM9.33335 4.91669H11.2741V2.97594H9.33335V4.91669ZM8.63787 5.08498V2.80779C8.63787 2.65836 8.68838 2.53314 8.78939 2.43212C8.89051 2.33101 9.01573 2.28046 9.16506 2.28046H11.4422C11.5917 2.28046 11.7169 2.33101 11.8179 2.43212C11.919 2.53314 11.9696 2.65836 11.9696 2.80779V5.08498C11.9696 5.23431 11.919 5.35953 11.8179 5.46064C11.7169 5.56166 11.5917 5.61217 11.4422 5.61217H9.16506C9.01573 5.61217 8.89051 5.56166 8.78939 5.46064C8.68838 5.35953 8.63787 5.23431 8.63787 5.08498ZM9.74839 12.2196V10.3573H8.63787V9.24677H10.8589V11.1089H11.9696V12.2196H9.74839ZM7.58335 8.36054V7.25002H9.74839V8.36054H7.58335ZM5.36216 8.36054V7.25002H4.25164V6.1395H7.58335V7.25002H6.47283V8.36054H5.36216ZM5.8895 5.61217V3.39112H7.00002V4.50164H8.11054V5.61217H5.8895ZM3.2925 4.35012V3.5425H4.10012V4.35012H3.2925ZM3.33173 10.9183V10.1105H4.1395V10.9183H3.33173ZM9.89991 4.35012V3.5425H10.7075V4.35012H9.89991Z",fill:"currentColor"})})]}),Uf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:u.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5099_7163)",children:u.jsx("path",{d:"M10 16.6667C9.16667 16.6667 8.38611 16.5083 7.65833 16.1917C6.93056 15.875 6.29722 15.4472 5.75833 14.9083C5.21944 14.3695 4.79167 13.7361 4.475 13.0083C4.15833 12.2806 4 11.5 4 10.6667C4 10.4778 4.06389 10.3195 4.19167 10.1917C4.31944 10.0639 4.47778 10 4.66667 10C4.85556 10 5.01389 10.0639 5.14167 10.1917C5.26944 10.3195 5.33333 10.4778 5.33333 10.6667C5.33333 11.9667 5.78611 13.0695 6.69167 13.975C7.59722 14.8806 8.7 15.3333 10 15.3333C11.3 15.3333 12.4028 14.8806 13.3083 13.975C14.2139 13.0695 14.6667 11.9667 14.6667 10.6667C14.6667 9.36667 14.2139 8.2639 13.3083 7.35834C12.4028 6.45279 11.3 6.00001 10 6.00001H9.9L10.4667 6.56667C10.6 6.70001 10.6639 6.85556 10.6583 7.03334C10.6528 7.21112 10.5889 7.36667 10.4667 7.50001C10.3333 7.63334 10.175 7.70279 9.99167 7.70834C9.80833 7.7139 9.65 7.65001 9.51667 7.51667L7.8 5.80001C7.66667 5.66667 7.6 5.51112 7.6 5.33334C7.6 5.15556 7.66667 5.00001 7.8 4.86667L9.51667 3.15001C9.65 3.01667 9.80833 2.95279 9.99167 2.95834C10.175 2.9639 10.3333 3.03334 10.4667 3.16667C10.5889 3.30001 10.6528 3.45556 10.6583 3.63334C10.6639 3.81112 10.6 3.96667 10.4667 4.10001L9.9 4.66667H10C10.8333 4.66667 11.6139 4.82501 12.3417 5.14167C13.0694 5.45834 13.7028 5.88612 14.2417 6.42501C14.7806 6.9639 15.2083 7.59723 15.525 8.32501C15.8417 9.05279 16 9.83334 16 10.6667C16 11.5 15.8417 12.2806 15.525 13.0083C15.2083 13.7361 14.7806 14.3695 14.2417 14.9083C13.7028 15.4472 13.0694 15.875 12.3417 16.1917C11.6139 16.5083 10.8333 16.6667 10 16.6667Z",fill:"currentColor"})})]}),Wf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22828",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22828)",children:u.jsx("path",{d:"M5.24999 7.10419C5.53339 7.10419 5.77441 7.00492 5.97303 6.8064C6.17156 6.60777 6.27082 6.36676 6.27082 6.08335C6.27082 5.79995 6.17156 5.55894 5.97303 5.36031C5.77441 5.16178 5.53339 5.06252 5.24999 5.06252C4.96659 5.06252 4.72557 5.16178 4.52695 5.36031C4.32842 5.55894 4.22916 5.79995 4.22916 6.08335C4.22916 6.36676 4.32842 6.60777 4.52695 6.8064C4.72557 7.00492 4.96659 7.10419 5.24999 7.10419ZM8.74999 7.10419C9.03339 7.10419 9.27441 7.00492 9.47303 6.8064C9.67156 6.60777 9.77082 6.36676 9.77082 6.08335C9.77082 5.79995 9.67156 5.55894 9.47303 5.36031C9.27441 5.16178 9.03339 5.06252 8.74999 5.06252C8.46659 5.06252 8.22557 5.16178 8.02695 5.36031C7.82842 5.55894 7.72916 5.79995 7.72916 6.08335C7.72916 6.36676 7.82842 6.60777 8.02695 6.8064C8.22557 7.00492 8.46659 7.10419 8.74999 7.10419ZM5.10416 12.2084V10.2004C5.10416 10.148 5.12098 10.105 5.15461 10.0713C5.18825 10.0377 5.23127 10.0209 5.28368 10.0209H6.56249V12.2084H5.10416ZM7.43749 12.2084V10.0209H8.7163C8.76871 10.0209 8.81173 10.0377 8.84537 10.0713C8.879 10.105 8.89582 10.148 8.89582 10.2004V12.2084H7.43749ZM3.09618 12.2084C2.80616 12.2084 2.55791 12.1051 2.35141 11.8986C2.14491 11.6921 2.04166 11.4438 2.04166 11.1538V5.50002C2.04166 4.60878 2.35359 3.85128 2.97747 3.2275C3.60125 2.60362 4.35875 2.29169 5.24999 2.29169H8.74999C9.64123 2.29169 10.3987 2.60362 11.0225 3.2275C11.6464 3.85128 11.9583 4.60878 11.9583 5.50002V11.1538C11.9583 11.4438 11.8551 11.6921 11.6486 11.8986C11.4421 12.1051 11.1938 12.2084 10.9038 12.2084H9.77082V10.2004C9.77082 9.91036 9.66757 9.6621 9.46107 9.4556C9.25457 9.2491 9.00632 9.14585 8.7163 9.14585H5.28368C4.99366 9.14585 4.74541 9.2491 4.53891 9.4556C4.33241 9.6621 4.22916 9.91036 4.22916 10.2004V12.2084H3.09618Z",fill:"currentColor"})})]}),Kf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22840",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22840)",children:u.jsx("path",{d:"M3.09619 12.2084C2.80151 12.2084 2.55209 12.1063 2.34792 11.9021C2.14376 11.6979 2.04167 11.4485 2.04167 11.1538V3.34621C2.04167 3.05153 2.14376 2.8021 2.34792 2.59794C2.55209 2.39377 2.80151 2.29169 3.09619 2.29169H9.35682C9.49915 2.29169 9.63478 2.31901 9.76369 2.37365C9.89261 2.42819 10.0049 2.50334 10.1006 2.5991L11.6509 4.14946C11.7467 4.24512 11.8218 4.35742 11.8764 4.48633C11.931 4.61525 11.9583 4.75087 11.9583 4.89321V11.1538C11.9583 11.4485 11.8563 11.6979 11.6521 11.9021C11.4479 12.1063 11.1985 12.2084 10.9038 12.2084H3.09619ZM6.99869 10.3238C7.40343 10.3238 7.74789 10.1821 8.03207 9.89879C8.31625 9.61549 8.45834 9.27146 8.45834 8.86673C8.45834 8.46199 8.31669 8.11753 8.03338 7.83335C7.75007 7.54917 7.40605 7.40708 7.00132 7.40708C6.59658 7.40708 6.25212 7.54874 5.96794 7.83204C5.68376 8.11535 5.54167 8.45937 5.54167 8.8641C5.54167 9.26884 5.68333 9.6133 5.96663 9.89748C6.24994 10.1817 6.59396 10.3238 6.99869 10.3238ZM4.25163 6.01598H7.98598C8.13707 6.01598 8.26292 5.96547 8.36355 5.86446C8.46408 5.76344 8.51434 5.63822 8.51434 5.48879V4.50165C8.51434 4.35221 8.46383 4.22699 8.36282 4.12598C8.2618 4.02497 8.13658 3.97446 7.98715 3.97446H4.2528C4.10171 3.97446 3.97586 4.02497 3.87523 4.12598C3.77471 4.22699 3.72444 4.35221 3.72444 4.50165V5.48879C3.72444 5.63822 3.77495 5.76344 3.87596 5.86446C3.97698 5.96547 4.1022 6.01598 4.25163 6.01598Z",fill:"currentColor"})})]}),Gf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"schedule",children:[u.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_4051_4016)",children:u.jsx("path",{id:"schedule_2",d:"M12.75 11.6961V7.74995C12.75 7.53747 12.6781 7.35935 12.5343 7.2156C12.3904 7.07185 12.2122 6.99998 11.9997 6.99998C11.7871 6.99998 11.609 7.07185 11.4654 7.2156C11.3218 7.35935 11.25 7.53747 11.25 7.74995V11.9269C11.25 12.0446 11.2718 12.1587 11.3154 12.269C11.359 12.3794 11.4276 12.4814 11.5212 12.575L14.9462 16C15.0846 16.1384 15.2587 16.2093 15.4683 16.2125C15.6779 16.2157 15.8551 16.1448 16 16C16.1448 15.8551 16.2173 15.6795 16.2173 15.4731C16.2173 15.2667 16.1448 15.091 16 14.9462L12.75 11.6961ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5765 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0016 21.5Z",fill:"currentColor"})})]})}),Yf=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_35",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_35)",children:u.jsx("path",{d:"M12.2501 9.33332V5.89165L7.55426 8.44373C7.37926 8.54096 7.19454 8.58957 7.0001 8.58957C6.80565 8.58957 6.62093 8.54096 6.44593 8.44373L1.51676 5.7604C1.40982 5.70207 1.33447 5.62915 1.29072 5.54165C1.24697 5.45415 1.2251 5.35693 1.2251 5.24998C1.2251 5.14304 1.24697 5.04582 1.29072 4.95832C1.33447 4.87082 1.40982 4.7979 1.51676 4.73957L6.44593 2.05623C6.53343 2.00762 6.62336 1.97116 6.71572 1.94686C6.80808 1.92255 6.90288 1.9104 7.0001 1.9104C7.09732 1.9104 7.19211 1.92255 7.28447 1.94686C7.37683 1.97116 7.46676 2.00762 7.55426 2.05623L13.1105 5.08957C13.2077 5.13818 13.2831 5.20866 13.3366 5.30103C13.39 5.39339 13.4168 5.49304 13.4168 5.59998V9.33332C13.4168 9.49859 13.3609 9.63714 13.2491 9.74894C13.1373 9.86075 12.9987 9.91665 12.8334 9.91665C12.6682 9.91665 12.5296 9.86075 12.4178 9.74894C12.306 9.63714 12.2501 9.49859 12.2501 9.33332ZM6.44593 11.9437L3.52926 10.3687C3.33482 10.2618 3.18413 10.116 3.07718 9.93123C2.97024 9.74651 2.91676 9.54721 2.91676 9.33332V7.11665L6.44593 9.02707C6.62093 9.12429 6.80565 9.1729 7.0001 9.1729C7.19454 9.1729 7.37926 9.12429 7.55426 9.02707L11.0834 7.11665V9.33332C11.0834 9.54721 11.03 9.74651 10.923 9.93123C10.8161 10.116 10.6654 10.2618 10.4709 10.3687L7.55426 11.9437C7.46676 11.9923 7.37683 12.0288 7.28447 12.0531C7.19211 12.0774 7.09732 12.0896 7.0001 12.0896C6.90288 12.0896 6.80808 12.0774 6.71572 12.0531C6.62336 12.0288 6.53343 11.9923 6.44593 11.9437Z",fill:"currentColor"})})]}),qf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M5.99995 7.22422L1.71245 11.5117C1.55203 11.6721 1.34787 11.7523 1.09995 11.7523C0.852035 11.7523 0.647868 11.6721 0.487451 11.5117C0.327035 11.3513 0.246826 11.1471 0.246826 10.8992C0.246826 10.6513 0.327035 10.4471 0.487451 10.2867L4.77495 5.99922L0.487451 1.71172C0.327035 1.5513 0.246826 1.34714 0.246826 1.09922C0.246826 0.851302 0.327035 0.647135 0.487451 0.486719C0.647868 0.326302 0.852035 0.246094 1.09995 0.246094C1.34787 0.246094 1.55203 0.326302 1.71245 0.486719L5.99995 4.77422L10.2875 0.486719C10.4479 0.326302 10.652 0.246094 10.9 0.246094C11.1479 0.246094 11.352 0.326302 11.5125 0.486719C11.6729 0.647135 11.7531 0.851302 11.7531 1.09922C11.7531 1.34714 11.6729 1.5513 11.5125 1.71172L7.22495 5.99922L11.5125 10.2867C11.6729 10.4471 11.7531 10.6513 11.7531 10.8992C11.7531 11.1471 11.6729 11.3513 11.5125 11.5117C11.352 11.6721 11.1479 11.7523 10.9 11.7523C10.652 11.7523 10.4479 11.6721 10.2875 11.5117L5.99995 7.22422Z",fill:"currentColor"})}),Xf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.38474 15.5C7.13341 15.5 6.92316 15.4153 6.75399 15.246C6.58466 15.0768 6.49999 14.8666 6.49999 14.6152V8.827L0.901988 1.7155C0.709655 1.459 0.681738 1.19233 0.818238 0.9155C0.954905 0.6385 1.18541 0.5 1.50974 0.5H14.4902C14.8146 0.5 15.0451 0.6385 15.1817 0.9155C15.3182 1.19233 15.2903 1.459 15.098 1.7155L9.49999 8.827V14.6152C9.49999 14.8666 9.41532 15.0768 9.24599 15.246C9.07682 15.4153 8.86657 15.5 8.61524 15.5H7.38474Z",fill:"currentColor"})}),Jf=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Property 1=Normal",children:u.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})}),Qf=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:"sensors",children:[u.jsx("mask",{id:"mask0_1506_161",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_1506_161)",children:u.jsx("path",{id:"sensors_2",d:"M5 8.97359C4.73205 8.97359 4.49839 8.87655 4.29903 8.68246C4.09968 8.48836 4 8.26087 4 8C4 7.73913 4.09968 7.51164 4.29903 7.31754C4.49839 7.12345 4.73205 7.02641 5 7.02641C5.26795 7.02641 5.50161 7.12345 5.70097 7.31754C5.90032 7.51164 6 7.73913 6 8C6 8.26087 5.90032 8.48836 5.70097 8.68246C5.50161 8.87655 5.26795 8.97359 5 8.97359ZM8.17885 11.0949C8.08527 11.0038 8.03431 10.893 8.02597 10.7626C8.01764 10.6321 8.05642 10.5076 8.1423 10.389C8.40257 10.0595 8.61058 9.69099 8.76635 9.28346C8.92212 8.87591 9 8.44809 9 8C9 7.5519 8.92212 7.12408 8.76635 6.71654C8.61058 6.30901 8.40257 5.94048 8.1423 5.61095C8.05642 5.49239 8.01539 5.37006 8.01922 5.24398C8.02308 5.11792 8.07821 5.00308 8.18463 4.89948C8.29488 4.79214 8.41699 4.7394 8.55097 4.74127C8.68494 4.74315 8.79488 4.79964 8.88077 4.91072C9.23077 5.33136 9.50482 5.80567 9.7029 6.33365C9.90097 6.86165 10 7.41709 10 8C10 8.5829 9.90097 9.13648 9.7029 9.66073C9.50482 10.185 9.23077 10.6593 8.88077 11.0837C8.79488 11.1948 8.68397 11.2512 8.54807 11.2531C8.41217 11.255 8.2891 11.2022 8.17885 11.0949ZM11.0096 13.8509C10.916 13.7598 10.8663 13.6481 10.8606 13.5158C10.8548 13.3834 10.8987 13.2599 10.9923 13.1451C11.6154 12.4548 12.1058 11.6737 12.4635 10.8019C12.8212 9.93002 13 8.99606 13 8C13 7.00394 12.8221 6.06998 12.4663 5.19813C12.1106 4.32626 11.6212 3.5452 10.9981 2.85494C10.9045 2.74012 10.8555 2.62061 10.851 2.49641C10.8465 2.37222 10.8994 2.25644 11.0096 2.14908C11.1071 2.05422 11.225 2.00461 11.3635 2.00025C11.5019 1.99588 11.6179 2.04924 11.7115 2.16033C12.4244 2.9417 12.984 3.82667 13.3904 4.81524C13.7968 5.80381 14 6.86539 14 8C14 9.13086 13.7968 10.1915 13.3904 11.182C12.984 12.1724 12.4244 13.0583 11.7115 13.8397C11.6179 13.9508 11.5019 14.0041 11.3635 13.9998C11.225 13.9954 11.1071 13.9458 11.0096 13.8509Z",fill:"currentColor"})})]})}),eh=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_28)",children:u.jsx("path",{d:"M3 20.75L2.91345 19.4327L4.74998 17.6058V20.75H3ZM7.25003 20.75V15.1058L8.74998 13.6058V20.75H7.25003ZM11.25 20.75V13.6058L12.75 15.1308V20.75H11.25ZM15.25 20.75V15.1308L16.75 13.6308V20.75H15.25ZM19.25 20.75V11.1058L20.75 9.60583V20.75H19.25ZM3.25003 15.2192V13.1058L10 6.35581L14 10.3558L20.75 3.60583V5.71924L14 12.4692L10 8.46921L3.25003 15.2192Z",fill:"currentColor"})})]}),th=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_29)",children:u.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),nh=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:"shield_person",children:[u.jsx("mask",{id:"mask0_1543_22988",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_1543_22988)",children:u.jsx("path",{id:"shield_person_2",d:"M9.99998 10.6249C10.7521 10.6249 11.3915 10.3616 11.9182 9.83486C12.4449 9.30816 12.7083 8.66875 12.7083 7.91661C12.7083 7.16447 12.4449 6.52505 11.9182 5.99836C11.3915 5.47165 10.7521 5.20829 9.99998 5.20829C9.24784 5.20829 8.60842 5.47165 8.08173 5.99836C7.55502 6.52505 7.29167 7.16447 7.29167 7.91661C7.29167 8.66875 7.55502 9.30816 8.08173 9.83486C8.60842 10.3616 9.24784 10.6249 9.99998 10.6249ZM9.99998 17.9005C8.08973 17.376 6.57051 16.3049 5.44231 14.6874C4.3141 13.0699 3.75 11.2574 3.75 9.24994V4.45509L9.99998 2.11536L16.25 4.45509V9.24994C16.25 11.2574 15.6859 13.0699 14.5576 14.6874C13.4295 16.3049 11.9102 17.376 9.99998 17.9005ZM9.99998 16.5833C10.782 16.3301 11.4823 15.9422 12.1009 15.4198C12.7195 14.8974 13.2569 14.298 13.7131 13.6218C13.1373 13.3269 12.5371 13.1009 11.9126 12.9439C11.2882 12.7868 10.6506 12.7083 9.99998 12.7083C9.34934 12.7083 8.71179 12.7868 8.08733 12.9439C7.46286 13.1009 6.8627 13.3269 6.28685 13.6218C6.74305 14.298 7.28044 14.8974 7.89902 15.4198C8.51762 15.9422 9.21794 16.3301 9.99998 16.5833Z",fill:"currentColor"})})]})}),rh=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M0.333496 7.66704V6.66706H3.91681V7.66704H0.333496ZM0.333496 4.50037V3.50041H7.7886V4.50037H0.333496ZM0.333496 1.33372V0.33374H11.6668V1.33372H0.333496Z",fill:"currentColor"})}),oh=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:"brand_awareness",children:[u.jsx("mask",{id:"mask0_3696_4540",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_3696_4540)",children:u.jsx("path",{id:"brand_awareness_2",d:"M15.577 10.625H13.8142C13.6368 10.625 13.4883 10.5652 13.3687 10.4455C13.249 10.3259 13.1892 10.1774 13.1892 10C13.1892 9.82269 13.249 9.67419 13.3687 9.55454C13.4883 9.43489 13.6368 9.37506 13.8142 9.37506H15.577C15.7543 9.37506 15.9028 9.43489 16.0225 9.55454C16.1421 9.67419 16.202 9.82269 16.202 10C16.202 10.1774 16.1421 10.3259 16.0225 10.4455C15.9028 10.5652 15.7543 10.625 15.577 10.625ZM12.1106 13.9279C12.2175 13.7816 12.354 13.6972 12.5201 13.6747C12.6862 13.6523 12.8425 13.6945 12.9888 13.8013L14.3943 14.8574C14.5406 14.9642 14.625 15.1007 14.6475 15.2669C14.6699 15.433 14.6277 15.5892 14.5209 15.7356C14.4141 15.882 14.2776 15.9664 14.1114 15.9888C13.9453 16.0112 13.7891 15.969 13.6427 15.8622L12.2372 14.8061C12.0909 14.6993 12.0065 14.5628 11.9841 14.3967C11.9616 14.2305 12.0038 14.0743 12.1106 13.9279ZM14.3622 5.1106L12.9568 6.16671C12.8104 6.27354 12.6542 6.31574 12.488 6.29331C12.3219 6.27087 12.1854 6.18646 12.0786 6.0401C11.9718 5.89374 11.9296 5.7375 11.952 5.57137C11.9744 5.40525 12.0588 5.26876 12.2052 5.16192L13.6106 4.10583C13.757 3.999 13.9133 3.9568 14.0794 3.97923C14.2455 4.00166 14.382 4.08606 14.4888 4.23244C14.5957 4.3788 14.6379 4.53504 14.6154 4.70116C14.593 4.86729 14.5086 5.00377 14.3622 5.1106ZM6.05778 12.0834H3.71805C3.5033 12.0834 3.32408 12.0115 3.18039 11.8678C3.03669 11.7241 2.96484 11.5449 2.96484 11.3301V8.66994C2.96484 8.4552 3.03669 8.27599 3.18039 8.13229C3.32408 7.98858 3.5033 7.91673 3.71805 7.91673H6.05778L8.55134 5.42317C8.75114 5.22339 8.9811 5.17771 9.24124 5.28614C9.50138 5.39459 9.63145 5.5909 9.63145 5.87508V14.125C9.63145 14.4092 9.50138 14.6055 9.24124 14.7139C8.9811 14.8224 8.75114 14.7767 8.55134 14.5769L6.05778 12.0834Z",fill:"currentColor"})})]})}),ih=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Menu icons",children:u.jsx("path",{id:"Subtract",d:"M9.56745 16.1438C9.44134 16.1438 9.31606 16.1269 9.19162 16.0931C9.06718 16.0595 8.95315 16.0133 8.84954 15.9546C8.2587 15.602 7.64141 15.3367 6.99766 15.159C6.35405 14.981 5.68822 14.8921 5.00016 14.8921C4.49169 14.8921 3.99225 14.9484 3.50183 15.061C3.01141 15.1738 2.53863 15.3397 2.0835 15.5588C1.78655 15.6954 1.50398 15.6751 1.23579 15.4977C0.967593 15.3205 0.833496 15.0695 0.833496 14.7446V5.71272C0.833496 5.53313 0.881066 5.36723 0.976204 5.21501C1.0712 5.06279 1.20315 4.95195 1.37204 4.88251C1.93607 4.60792 2.52391 4.40202 3.13558 4.2648C3.74725 4.12744 4.36877 4.05876 5.00016 4.05876C5.811 4.05876 6.60051 4.17362 7.3687 4.40334C8.1369 4.63306 8.87516 4.95626 9.5835 5.37292V14.9433C10.2866 14.4989 11.0283 14.1709 11.8087 13.9594C12.5891 13.7479 13.3752 13.6421 14.1668 13.6421C14.6454 13.6421 15.0816 13.6717 15.4754 13.731C15.869 13.7904 16.3249 13.9006 16.8431 14.0619C16.9018 14.078 16.9566 14.0794 17.0075 14.066C17.0581 14.0526 17.0835 14.0085 17.0835 13.9338V4.5748C17.2277 4.61758 17.3684 4.66515 17.5058 4.71751C17.643 4.76987 17.7768 4.83556 17.9072 4.91459C18.0493 4.98404 18.1559 5.08549 18.2268 5.21897C18.2979 5.35258 18.3335 5.49577 18.3335 5.64855V14.7285C18.3335 15.0534 18.1954 15.3031 17.9191 15.4777C17.643 15.6524 17.3484 15.6741 17.0354 15.5427C16.5856 15.329 16.1196 15.1671 15.6372 15.0571C15.1549 14.9471 14.6647 14.8921 14.1668 14.8921C13.4735 14.8921 12.7996 14.981 12.1452 15.159C11.4909 15.3367 10.8683 15.602 10.2775 15.9546C10.1738 16.0133 10.0611 16.0595 9.93933 16.0931C9.81752 16.1269 9.69357 16.1438 9.56745 16.1438ZM11.8895 12.2319C11.7613 12.3462 11.6227 12.3692 11.4737 12.3008C11.3247 12.2324 11.2502 12.1132 11.2502 11.9433V5.46751C11.2502 5.41723 11.2606 5.36778 11.2814 5.31917C11.3022 5.27056 11.3309 5.22813 11.3672 5.19188L14.7645 1.79438C14.8927 1.66619 15.0335 1.63549 15.1868 1.7023C15.3402 1.76897 15.4168 1.89153 15.4168 2.07001V8.8873C15.4168 8.95133 15.4043 9.00633 15.3791 9.0523C15.354 9.09827 15.3233 9.13945 15.287 9.17584L11.8895 12.2319Z",fill:"currentColor"})})}),sh=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_26)",children:u.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),ah=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"stacks",children:[u.jsx("mask",{id:"mask0_8417_33308",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_8417_33308)",children:u.jsx("path",{id:"stacks_2",d:"M11.9998 13.1877C11.8717 13.1877 11.7477 13.1701 11.6278 13.135C11.5078 13.0996 11.3857 13.0531 11.2613 12.9955L3.38833 8.91472C3.2435 8.82755 3.13675 8.7218 3.06808 8.59747C2.99958 8.47297 2.96533 8.3383 2.96533 8.19347C2.96533 8.04864 2.99958 7.91405 3.06808 7.78972C3.13675 7.66539 3.2435 7.55964 3.38833 7.47247L11.2613 3.39172C11.3857 3.33389 11.5078 3.28739 11.6278 3.25222C11.7477 3.21689 11.8717 3.19922 11.9998 3.19922C12.128 3.19922 12.252 3.21689 12.3718 3.25222C12.4918 3.28739 12.614 3.33389 12.7383 3.39172L20.6306 7.47247C20.7754 7.55964 20.8822 7.66539 20.9508 7.78972C21.0193 7.91405 21.0536 8.04864 21.0536 8.19347C21.0536 8.3383 21.0193 8.47297 20.9508 8.59747C20.8822 8.7218 20.7754 8.82755 20.6306 8.91472L12.7383 12.9955C12.614 13.0531 12.4918 13.0996 12.3718 13.135C12.252 13.1701 12.128 13.1877 11.9998 13.1877ZM11.9998 12.2455L19.9211 8.19347L11.9998 4.14172L4.09783 8.19347L11.9998 12.2455ZM11.9998 16.0532L20.1576 11.855C20.2038 11.8255 20.3172 11.8223 20.4978 11.8455C20.6145 11.8711 20.7046 11.9253 20.7681 12.008C20.8316 12.0906 20.8633 12.1903 20.8633 12.307C20.8633 12.4006 20.8441 12.484 20.8056 12.557C20.7671 12.6301 20.7011 12.6911 20.6076 12.7397L12.7383 16.8032C12.614 16.8609 12.4918 16.9073 12.3718 16.9425C12.252 16.9778 12.128 16.9955 11.9998 16.9955C11.8717 16.9955 11.7477 16.9778 11.6278 16.9425C11.5078 16.9073 11.3857 16.8609 11.2613 16.8032L3.41133 12.7397C3.31783 12.6911 3.24858 12.6301 3.20358 12.557C3.15875 12.484 3.13633 12.4006 3.13633 12.307C3.13633 12.1903 3.17125 12.0906 3.24108 12.008C3.31108 11.9253 3.40442 11.8711 3.52108 11.8455C3.57875 11.8198 3.63542 11.8066 3.69108 11.806C3.74692 11.8053 3.80367 11.8216 3.86133 11.855L11.9998 16.0532ZM11.9998 19.8607L20.1576 15.6627C20.2038 15.6332 20.3172 15.6301 20.4978 15.6532C20.6145 15.6789 20.7046 15.7331 20.7681 15.8157C20.8316 15.8984 20.8633 15.9981 20.8633 16.1147C20.8633 16.2082 20.8441 16.2916 20.8056 16.3647C20.7671 16.4377 20.7011 16.4986 20.6076 16.5475L12.7383 20.6107C12.614 20.6686 12.4918 20.7151 12.3718 20.7502C12.252 20.7856 12.128 20.8032 11.9998 20.8032C11.8717 20.8032 11.7477 20.7856 11.6278 20.7502C11.5078 20.7151 11.3857 20.6686 11.2613 20.6107L3.41133 16.5475C3.31783 16.4986 3.24858 16.4377 3.20358 16.3647C3.15875 16.2916 3.13633 16.2082 3.13633 16.1147C3.13633 15.9981 3.17125 15.8984 3.24108 15.8157C3.31108 15.7331 3.40442 15.6789 3.52108 15.6532C3.57875 15.6276 3.63542 15.6144 3.69108 15.6137C3.74692 15.6131 3.80367 15.6294 3.86133 15.6627L11.9998 19.8607Z",fill:"currentColor"})})]})}),lh=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9529_33",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9529_33)",children:u.jsx("path",{d:"M4.05992 11.7788C3.80539 11.7788 3.5794 11.6954 3.38194 11.5287C3.18448 11.3621 3.06383 11.1515 3.01998 10.8971L2.19982 5.98194C2.17298 5.82084 2.21036 5.67725 2.31196 5.55115C2.41346 5.42515 2.54811 5.36215 2.71592 5.36215H11.2842C11.452 5.36215 11.5867 5.42515 11.6882 5.55115C11.7898 5.67725 11.8271 5.82084 11.8003 5.98194L10.9801 10.8971C10.9363 11.1515 10.8156 11.3621 10.6182 11.5287C10.4207 11.6954 10.1947 11.7788 9.94021 11.7788H4.05992ZM5.8334 8.42465H8.16673C8.29069 8.42465 8.39457 8.3827 8.47838 8.2988C8.56228 8.21489 8.60423 8.11096 8.60423 7.987C8.60423 7.86295 8.56228 7.75907 8.47838 7.67536C8.39457 7.59155 8.29069 7.54965 8.16673 7.54965H5.8334C5.70944 7.54965 5.60556 7.5916 5.52175 7.6755C5.43785 7.75941 5.3959 7.86334 5.3959 7.9873C5.3959 8.11135 5.43785 8.21528 5.52175 8.29909C5.60556 8.38279 5.70944 8.42465 5.8334 8.42465ZM3.50007 4.66667C3.37611 4.66667 3.27223 4.62472 3.18842 4.54082C3.10452 4.45691 3.06257 4.35298 3.06257 4.22902C3.06257 4.10497 3.10452 4.00109 3.18842 3.91738C3.27223 3.83357 3.37611 3.79167 3.50007 3.79167H10.5001C10.624 3.79167 10.7279 3.83362 10.8117 3.91752C10.8956 4.00143 10.9376 4.10536 10.9376 4.22932C10.9376 4.35337 10.8956 4.45725 10.8117 4.54096C10.7279 4.62477 10.624 4.66667 10.5001 4.66667H3.50007ZM4.66673 3.09619C4.54277 3.09619 4.43889 3.05424 4.35509 2.97034C4.27118 2.88643 4.22923 2.7825 4.22923 2.65855C4.22923 2.53449 4.27118 2.43061 4.35509 2.3469C4.43889 2.26309 4.54277 2.22119 4.66673 2.22119H9.3334C9.45736 2.22119 9.56124 2.26314 9.64505 2.34705C9.72895 2.43095 9.7709 2.53488 9.7709 2.65884C9.7709 2.78289 9.72895 2.88677 9.64505 2.97048C9.56124 3.05429 9.45736 3.09619 9.3334 3.09619H4.66673Z",fill:"currentColor"})})]}),ch=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 50 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6982 23.8981C38.314 33.2849 30.2251 40.4893 20.4536 40.4893C17.5648 40.4893 14.8231 39.8596 12.3582 38.7301L1.90313 41.3438C1.44763 41.4577 1.03503 41.0451 1.14891 40.5896L3.60474 30.7663C1.94817 27.904 1 24.5806 1 21.0357C1 10.2917 9.70969 1.58203 20.4536 1.58203C22.4575 1.58203 24.3907 1.88502 26.2097 2.44769C24.8111 4.62659 24 7.21857 24 10C24 12.0989 24.4619 14.0899 25.2895 15.877H13.2863C12.1553 15.877 11.2385 16.7938 11.2385 17.9247C11.2385 19.0556 12.1553 19.9725 13.2863 19.9725H27.6205C27.7906 19.9725 27.9557 19.9517 28.1137 19.9127C30.6462 22.4384 34.1407 24 38 24C38.5748 24 39.1415 23.9654 39.6982 23.8981ZM13.2863 24.0664C12.1553 24.0664 11.2385 24.9832 11.2385 26.1142C11.2385 27.2451 12.1553 28.1619 13.2863 28.1619H21.4773C22.6082 28.1619 23.525 27.2451 23.525 26.1142C23.525 24.9832 22.6082 24.0664 21.4773 24.0664H13.2863Z",fill:"currentColor"}),u.jsx("circle",{cx:"38",cy:"10",r:"10",fill:"currentColor"}),u.jsx("path",{d:"M34 9.5L37 12.5L42.5 7",stroke:"#23252F","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),uh=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22378)",children:u.jsx("path",{d:"M7.46552 7.25L3.91958 3.8184C3.87622 3.77503 3.84409 3.72778 3.82319 3.67665C3.80219 3.6256 3.79169 3.57281 3.79169 3.51827V3.28319C3.79169 3.1674 3.83092 3.07042 3.90937 2.99225C3.98793 2.91408 4.0852 2.875 4.20119 2.875H9.59133C9.76274 2.875 9.90842 2.93503 10.0284 3.0551C10.1484 3.17527 10.2084 3.3211 10.2084 3.4926C10.2084 3.6642 10.1484 3.81076 10.0284 3.93229C9.90842 4.05382 9.76274 4.11458 9.59133 4.11458H5.79748L8.61542 6.872C8.72304 6.97593 8.77685 7.10154 8.77685 7.24883C8.77685 7.39622 8.72304 7.52261 8.61542 7.628L5.79748 10.3911H9.59133C9.76274 10.3911 9.90842 10.4511 10.0284 10.5712C10.1484 10.6913 10.2084 10.8371 10.2084 11.0087C10.2084 11.1802 10.1484 11.3258 10.0284 11.4455C9.90842 11.5652 9.76274 11.625 9.59133 11.625H4.08554C4.00455 11.625 3.93533 11.5963 3.87787 11.5388C3.82042 11.4814 3.79169 11.4121 3.79169 11.3311V10.932C3.79169 10.8899 3.79849 10.8512 3.8121 10.8158C3.82571 10.7803 3.84958 10.7464 3.88371 10.7141L7.46552 7.25Z",fill:"currentColor"})})]}),dh=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_5577_416",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5577_416)",children:u.jsx("path",{d:"M11 17.6634C10.6219 17.6634 10.2982 17.5287 10.0289 17.2595C9.75964 16.9902 9.625 16.6665 9.625 16.2884C9.625 15.9103 9.75964 15.5866 10.0289 15.3173C10.2982 15.0481 10.6219 14.9134 11 14.9134C11.3781 14.9134 11.7018 15.0481 11.971 15.3173C12.2403 15.5866 12.375 15.9103 12.375 16.2884C12.375 16.6665 12.2403 16.9902 11.971 17.2595C11.7018 17.5287 11.3781 17.6634 11 17.6634ZM11 12.3749C10.6219 12.3749 10.2982 12.2403 10.0289 11.971C9.75964 11.7018 9.625 11.3781 9.625 11C9.625 10.6218 9.75964 10.2982 10.0289 10.0289C10.2982 9.75962 10.6219 9.62498 11 9.62498C11.3781 9.62498 11.7018 9.75962 11.971 10.0289C12.2403 10.2982 12.375 10.6218 12.375 11C12.375 11.3781 12.2403 11.7018 11.971 11.971C11.7018 12.2403 11.3781 12.3749 11 12.3749ZM11 7.08648C10.6219 7.08648 10.2982 6.95184 10.0289 6.68257C9.75964 6.41332 9.625 6.08963 9.625 5.7115C9.625 5.33339 9.75964 5.0097 10.0289 4.74043C10.2982 4.47118 10.6219 4.33655 11 4.33655C11.3781 4.33655 11.7018 4.47118 11.971 4.74043C12.2403 5.0097 12.375 5.33339 12.375 5.7115C12.375 6.08963 12.2403 6.41332 11.971 6.68257C11.7018 6.95184 11.3781 7.08648 11 7.08648Z",fill:"currentColor"})})]}),fh=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:"Twitter",children:[u.jsx("mask",{id:"mask0_1506_167",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_1506_167)",children:u.jsx("g",{id:"X",children:u.jsx("path",{id:"path1009",d:"M2.0317 2L7.05085 8.71109L2 14.1675H3.13674L7.55875 9.39033L11.1316 14.1675H15L9.69845 7.07891L14.3997 2H13.263L9.19054 6.39967L5.90008 2H2.0317ZM3.70336 2.83733H5.48051L13.3281 13.33H11.5509L3.70336 2.83733Z",fill:"currentColor"})})})]})}),hh=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:"Video",children:[u.jsx("mask",{id:"mask0_1506_153",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_1506_153)",children:u.jsx("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3782 3.03719C15.0725 3.22309 15.6201 3.76987 15.8053 4.46427C16.1429 5.72367 16.1429 8.35001 16.1429 8.35001C16.1429 8.35001 16.1429 10.9773 15.8053 12.2358C15.6201 12.9302 15.0725 13.4769 14.3782 13.6628C13.1197 14 8.07143 14 8.07143 14C8.07143 14 3.02403 14 1.76471 13.6628C1.07038 13.4769 0.522808 12.9302 0.337533 12.2358C0 10.9764 0 8.35001 0 8.35001C0 8.35001 0 5.72367 0.337533 4.46427C0.522808 3.76987 1.07038 3.22309 1.76471 3.03719C3.02312 2.70001 8.07143 2.70001 8.07143 2.70001C8.07143 2.70001 13.1197 2.70001 14.3782 3.03719ZM10.4931 8.35003L6.45735 5.9286V10.7715L10.4931 8.35003Z",fill:"currentColor"})})]})}),ph=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M14.0716 15L10.8994 11.7764C10.437 11.9597 9.96181 12.0919 9.47381 12.1732C8.98581 12.2545 8.49002 12.2952 7.98643 12.2952C6.33597 12.2952 4.82448 11.8457 3.45194 10.9466C2.07941 10.0476 0.991584 8.86271 0.188459 7.39193C0.123124 7.27666 0.0753836 7.15933 0.045238 7.03994C0.0150793 6.92055 0 6.7991 0 6.67559C0 6.55208 0.0163338 6.42935 0.0490013 6.30739C0.0816688 6.18543 0.13067 6.06938 0.196005 5.95925C0.508607 5.42714 0.84081 4.91226 1.19261 4.41462C1.54443 3.91699 1.95353 3.47673 2.41992 3.09386L0.24877 0.846015L1.07501 0L14.8978 14.154L14.0716 15ZM7.98643 9.94854C8.16032 9.94854 8.32642 9.93799 8.48473 9.91689C8.64305 9.89579 8.7976 9.84973 8.94838 9.77871L4.95591 5.69059C4.89158 5.84498 4.84786 6.00324 4.82475 6.16535C4.80162 6.32745 4.79005 6.49753 4.79005 6.67559C4.79005 7.58645 5.10039 8.35966 5.72108 8.99521C6.34176 9.63076 7.09688 9.94854 7.98643 9.94854ZM13.4384 10.3561L10.9792 7.85816C11.0456 7.66673 11.0961 7.47375 11.1308 7.27922C11.1655 7.0847 11.1828 6.88349 11.1828 6.67559C11.1828 5.76473 10.8725 4.99152 10.2518 4.35597C9.63109 3.72042 8.87598 3.40264 7.98643 3.40264C7.78339 3.40264 7.58689 3.42168 7.39692 3.45976C7.20694 3.49784 7.02099 3.56011 6.83907 3.64657L4.87751 1.64575C5.37606 1.44402 5.88441 1.29529 6.40257 1.19957C6.92071 1.10385 7.44867 1.05599 7.98643 1.05599C9.64191 1.05599 11.1604 1.50756 12.542 2.41072C13.9236 3.31387 15.0134 4.50598 15.8115 5.98705C15.8718 6.08894 15.9183 6.19829 15.951 6.31511C15.9837 6.43192 16 6.55208 16 6.67559C16 6.7991 15.9857 6.91926 15.957 7.03607C15.9284 7.15289 15.8839 7.26225 15.8236 7.36414C15.52 7.94669 15.1738 8.49038 14.7848 8.99521C14.3958 9.50005 13.947 9.95369 13.4384 10.3561ZM10.0912 6.95657L7.73162 4.54816C8.06131 4.48126 8.38246 4.50545 8.69506 4.62072C9.00767 4.736 9.27754 4.9156 9.5047 5.15952C9.7369 5.40036 9.90451 5.67723 10.0075 5.99012C10.1106 6.30301 10.1385 6.62516 10.0912 6.95657Z",fill:"currentColor"})}),Ch=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M9.00204 9.98073C9.94628 9.98073 10.7483 9.65024 11.408 8.98927C12.0677 8.32829 12.3976 7.52567 12.3976 6.58142C12.3976 5.63718 12.0671 4.8352 11.4061 4.17548C10.7451 3.51576 9.9425 3.1859 8.99825 3.1859C8.05401 3.1859 7.25203 3.51638 6.59231 4.17735C5.93259 4.83834 5.60273 5.64096 5.60273 6.58521C5.60273 7.52944 5.93321 8.33142 6.59419 8.99115C7.25517 9.65087 8.05779 9.98073 9.00204 9.98073ZM9.00014 8.83331C8.37514 8.83331 7.84389 8.61456 7.40639 8.17706C6.96889 7.73956 6.75014 7.20831 6.75014 6.58331C6.75014 5.95831 6.96889 5.42706 7.40639 4.98956C7.84389 4.55206 8.37514 4.33331 9.00014 4.33331C9.62514 4.33331 10.1564 4.55206 10.5939 4.98956C11.0314 5.42706 11.2501 5.95831 11.2501 6.58331C11.2501 7.20831 11.0314 7.73956 10.5939 8.17706C10.1564 8.61456 9.62514 8.83331 9.00014 8.83331ZM9.00129 12.4166C7.08494 12.4166 5.33884 11.888 3.76298 10.8309C2.18713 9.77374 1.02688 8.35788 0.282227 6.58331C1.02688 4.80874 2.18675 3.39288 3.76185 2.33573C5.33694 1.27858 7.08265 0.75 8.999 0.75C10.9153 0.75 12.6614 1.27858 14.2373 2.33573C15.8132 3.39288 16.9734 4.80874 17.7181 6.58331C16.9734 8.35788 15.8135 9.77374 14.2384 10.8309C12.6634 11.888 10.9176 12.4166 9.00129 12.4166Z",fill:"currentColor"})}),gh=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"volume_up",children:[u.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1483_75386)",children:u.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),Oh={AddCircleIcon:wd,AddContentIcon:yd,AddLinkIcon:bd,AddSourceIcon:_d,AiPauseIcon:Ed,AiPlayIcon:$d,AiSummaryIcon:kd,AndroidIcon:Sd,ArrowBackIcon:jd,ArrowForwardIcon:Ld,ArrowRight:Md,AudioIcon:Od,BitcoinIcon:Rd,BoostIcon:Pd,BrowseGalleryIcon:Td,BubbleChartIcon:yc,BudgetIcon:vd,BuildIcon:Hd,CalendarIcon:Id,CameraCenterIcon:r3,CancelIcon:Ad,CheckIcon:Vd,CheckedIcon:Dd,ChevronDownIcon:Nd,ChevronLeftIcon:Bd,ChevronRightIcon:zd,ChevronUpIcon:Zd,ChipIcon:Fd,ClearIcon:yr,CloseIcon:Ud,ColorPickerIcon:Wd,CommunitiesIcon:bc,CompassIcon:Kd,ConstructionIcon:Gd,ContentIcon:Yd,CopyIcon:qd,CorporationIcon:Xd,CreateEdgeIcon:Jd,DefaultShowIcon:Qd,DeleteIcon:ef,DeleteNodeIcon:tf,DesignServicesIcon:nf,DocumentIcon:rf,DownloadIcon:of,EditIcon:sf,EditNodeIcon:af,EditTopicIcon:lf,EpisodeIcon:cf,EventIcon:uf,ExitFullScreen:df,ExploreIcon:ff,FamilyHistoryIcon:hf,FeedbackIcon:pf,FilterOffIcon:Cf,FingerprintIcon:gf,FlipIcon:mf,FortIcon:vf,FullScreenIcon:xf,FunctionIcon:wf,GlobeIcon:yf,GrainIcon:_c,HandymanIcon:bf,HardwareIcon:_f,HashTag:Ef,HashtagIcon:$f,HelpIcon:kf,HomeIcon:Sf,InfoIcon:m3,JoystickIcon:jf,LinkIcon:Lf,MenuIcon:Mf,MergeIcon:Of,MoneyIcon:Rf,MuteVolumeIcon:Pf,NodeCircleIcon:Tf,NodesIcon:xd,NotesIcon:Hf,OrganizationIcon:If,PauseIcon:i3,PersonAdd:Af,PersonIcon:Vf,PhoneIcon:Df,PlaceIcon:Nf,PlayIcon:s3,PlusIcon:Bf,PropertyHide:zf,PropertyShow:Zf,PublicIcon:Ec,QrCodeIcon:Ff,ReloadIcon:Uf,RobotIcon:Wf,SaveIcon:Kf,ScheduleIcon:Gf,SchoolIcon:Yf,SearchFilterCloseIcon:qf,SearchFilterIcon:Xf,SearchIcon:Jf,SensorsIcon:Qf,SentimentDataIcon:eh,SettingsIcon:th,ShieldPersonIcon:nh,SortFilterIcon:rh,SoundIcon:oh,SourcesIcon:ih,SourcesTableIcon:sh,StackIcon:ah,StorageIcon:lh,SucessFeedBackIcon:ch,SumFunctionIcon:uh,ThreeDotsIcons:dh,TwitterIcon:fh,VideoIcon:hh,VisibilityOff:ph,VisibilityOn:Ch,VolumeIcon:gh};export{Kt as $,sd as A,vd as B,bc as C,ef as D,ff as E,pf as F,Gd as G,kf as H,Oh as I,sf as J,kh as K,Cc as L,Mf as M,xd as N,Lh as O,vh as P,x3 as Q,Wf as R,sh as S,Wu as T,Y1 as U,o0 as V,Ct as W,e0 as X,$3 as Y,t0 as Z,Qe as _,Mh as a,yc as a$,r0 as a0,Gt as a1,fs as a2,z3 as a3,Jf as a4,ah as a5,Pd as a6,Lf as a7,yf as a8,$f as a9,zd as aA,Yd as aB,Cf as aC,T3 as aD,Tf as aE,mf as aF,Md as aG,Zf as aH,zf as aI,dh as aJ,Ch as aK,ph as aL,rh as aM,lf as aN,af as aO,tf as aP,J6 as aQ,Au as aR,Pi as aS,hf as aT,Jd as aU,xh as aV,ch as aW,k3 as aX,xs as aY,e5 as aZ,oh as a_,ih as aa,Zd as ab,Nd as ac,v3 as ad,kd as ae,Ed as af,$d as ag,jd as ah,Vd as ai,Td as aj,of as ak,Uf as al,eh as am,Ef as an,qf as ao,Xf as ap,Hf as aq,qd as ar,Gf as as,E3 as at,Pf as au,gh as av,xf as aw,df as ax,Ud as ay,Bd as az,a3 as b,qu as c,i3 as d,s3 as e,n0 as f,cd as g,Bf as h,Me as i,_d as j,yd as k,th as l,Q as m,Ld as n,$h as o,n3 as p,wc as q,jh as r,Iu as s,yu as t,Bu as u,Fn as v,Sh as w,Of as x,wd as y,rf as z}; diff --git a/build/assets/index-97e22265.js b/build/assets/index-e6a0e064.js similarity index 96% rename from build/assets/index-97e22265.js rename to build/assets/index-e6a0e064.js index 8ce436b4c..70b45c6de 100644 --- a/build/assets/index-97e22265.js +++ b/build/assets/index-e6a0e064.js @@ -1,4 +1,4 @@ -import{s as v,a as B,T as F,F as r,r as f,ap as $,j as e,aW as J,aX as K,bb as X,B as E,bc as U,q as Z,bd as Q,e as D,t as N,N as O,aZ as ee,w as te,bu as ne,by as re}from"./index-f22e6e13.js";import{p as V}from"./index-83069401.js";import{C as W}from"./ClipLoader-1ce39797.js";import{p as G}from"./index-8304ea06.js";import{A as Y}from"./index-45d79f14.js";import{c as oe}from"./index-64f1c910.js";import"./three.module-9c942ca6.js";import"./Stack-e2486c11.js";import"./createSvgIcon-9d40ff73.js";import"./TextareaAutosize-5da8bada.js";const q=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),k=s=>s?[...s].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:x,selectedValues:n})=>{const[h,w]=f.useState(!1),[m,C]=f.useState(),{watch:j,formState:{isValid:t}}=$();f.useEffect(()=>{(async()=>{w(!0);const o=await U(x),T=V(o),A=H(T);C(A),w(!1)})()},[x,j]);const a=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(m?[...m].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(n).includes(c.key))),S=()=>{s(""),l("sourceType")},b=!t||h||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ae,{children:"Required Properties"})})}),e.jsx(ie,{children:h?e.jsx(r,{style:{margin:"auto"},children:e.jsx(W,{color:B.SECONDARY_BLUE})}):e.jsx(r,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(F,{children:a(c)}),e.jsx(J,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...K,pattern:{message:"No leading whitespace allowed",value:X}}:{}}})]})}))})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},ae=v(F)` +import{s as v,a as B,T as F,F as r,r as f,ap as $,j as e,aW as J,aX as K,bb as X,B as E,bc as U,q as Z,bd as Q,e as D,t as N,N as O,aZ as ee,w as te,bu as ne,by as re}from"./index-6502785b.js";import{p as V}from"./index-83069401.js";import{C as W}from"./ClipLoader-2e8a2039.js";import{p as G}from"./index-e4d37dbe.js";import{A as Y}from"./index-8c0315a7.js";import{c as oe}from"./index-64f1c910.js";import"./three.module-9c942ca6.js";import"./Stack-72c38e89.js";import"./createSvgIcon-6b5253a6.js";import"./TextareaAutosize-a343ed23.js";const q=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),k=s=>s?[...s].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:x,selectedValues:n})=>{const[h,w]=f.useState(!1),[m,C]=f.useState(),{watch:j,formState:{isValid:t}}=$();f.useEffect(()=>{(async()=>{w(!0);const o=await U(x),T=V(o),A=H(T);C(A),w(!1)})()},[x,j]);const a=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(m?[...m].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(n).includes(c.key))),S=()=>{s(""),l("sourceType")},b=!t||h||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ae,{children:"Required Properties"})})}),e.jsx(ie,{children:h?e.jsx(r,{style:{margin:"auto"},children:e.jsx(W,{color:B.SECONDARY_BLUE})}):e.jsx(r,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(F,{children:a(c)}),e.jsx(J,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...K,pattern:{message:"No leading whitespace allowed",value:X}}:{}}})]})}))})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},ae=v(F)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-d0335f3f.js b/build/assets/index-ec92de7c.js similarity index 89% rename from build/assets/index-d0335f3f.js rename to build/assets/index-ec92de7c.js index c11b2bc21..1b3b48ccf 100644 --- a/build/assets/index-d0335f3f.js +++ b/build/assets/index-ec92de7c.js @@ -1,5 +1,5 @@ -import{r as h,P as X,S as Q,U as F,y as I,X as K,L as Z,j as e,Y as J,Z as ee,a0 as D,al as gt,V as ne,am as ft,s as c,a as x,T as N,B as W,F as g,e as M,bg as mt,ao as se,M as re,u as le,bh as bt,bi as jt,ah as yt,bj as wt,bk as Ve,E as ae,bl as qe,i as we,a_ as _e,a$ as Ne,b0 as ze,bm as Ct,bn as vt,af as Tt,bo as $t,b as Xe,C as te,bp as St,be as Qe,bq as Ke,t as Ce,aZ as ce,w as ve,br as kt,aW as _t,aX as Nt,bs as de,bt as zt,k as Lt,q as It,ab as Rt}from"./index-f22e6e13.js";import{aF as Bt,g as Mt,P as Te,aG as je,e as q,aH as Et,D as At,J as Ft,a4 as Ze,aI as Je,aJ as et,aK as tt,ai as st,aL as Ot,aM as Wt,aN as Ht,aO as Le,aP as Ie,x as Re,aQ as ge,aR as Pt,y as Dt}from"./index-8304ea06.js";import{T as Be,s as U,a as ot,S as nt,A as $e,E as Ut,D as Gt,b as rt,Q as at,V as it,c as Yt}from"./constants-9dc70933.js";import{C as z}from"./ClipLoader-1ce39797.js";import{I as Vt,A as Se,T as lt}from"./index-45d79f14.js";import{u as R}from"./index-91503fb3.js";import{T as Me}from"./Typography-1355ab6c.js";import{T as qt,a as Xt}from"./Tabs-a3278039.js";import"./Stack-e2486c11.js";import"./createSvgIcon-9d40ff73.js";import"./TextareaAutosize-5da8bada.js";const Qt=h.createContext(),ct=Qt;function Kt(t){return X("MuiTable",t)}Q("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=F("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":I({},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=I({},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,I({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 X("MuiTableBody",t)}Q("MuiTableBody",["root"]);const ns=["className","component"],rs=t=>{const{classes:s}=t;return ee({root:["root"]},os,s)},as=F("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=I({},r,{component:i}),d=rs(o);return e.jsx(xe.Provider,{value:is,children:e.jsx(as,I({className:J(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:o},a))})}),cs=ls;function ds(t){return X("MuiTableCell",t)}const ps=Q("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=F("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})=>I({},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 $=d;w==="td"?$=void 0:!$&&C&&($="col");const S=p||y&&y.variant,A=I({},r,{align:l,component:w,padding:o||(j&&j.padding?j.padding:"normal"),size:u||(j&&j.size?j.size:"medium"),sortDirection:m,stickyHeader:S==="head"&&j&&j.stickyHeader,variant:S}),O=us(A);let L=null;return m&&(L=m==="asc"?"ascending":"descending"),e.jsx(gs,I({as:w,ref:n,className:J(O.root,i),"aria-sort":L,scope:$,ownerState:A},b))}),ms=fs;function bs(t){return X("MuiTableHead",t)}Q("MuiTableHead",["root"]);const js=["className","component"],ys=t=>{const{classes:s}=t;return ee({root:["root"]},bs,s)},ws=F("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-header-group"}),Cs={variant:"head"},Fe="thead",vs=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableHead"}),{className:l,component:i=Fe}=r,a=Z(r,js),o=I({},r,{component:i}),d=ys(o);return e.jsx(xe.Provider,{value:Cs,children:e.jsx(ws,I({as:i,className:J(d.root,l),ref:n,role:i===Fe?null:"rowgroup",ownerState:o},a))})}),dt=vs;function Ts(t){return X("MuiTableRow",t)}const $s=Q("MuiTableRow",["root","selected","hover","head","footer"]),Oe=$s,Ss=["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=F("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,[`&.${Oe.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Oe.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,Ss),u=h.useContext(xe),m=I({},r,{component:i,hover:a,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=ks(m);return e.jsx(_s,I({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)` +import{r as h,P as X,S as K,U as F,y as I,X as Q,L as Z,j as e,Y as J,Z as ee,a0 as D,al as gt,V as ne,am as ft,s as c,a as x,T as N,B as W,F as g,e as E,bg as mt,ao as se,M as re,u as le,bh as bt,bi as jt,ah as yt,bj as wt,bk as Ve,E as ae,bl as qe,i as we,a_ as _e,a$ as Ne,b0 as ze,bm as Ct,bn as vt,af as Tt,bo as $t,b as Xe,C as te,bp as St,be as Ke,bq as Qe,t as Ce,aZ as ce,w as ve,br as kt,aW as _t,aX as Nt,bs as de,bt as zt,k as Lt,q as It,ab as Bt}from"./index-6502785b.js";import{aB as Rt,h as Et,P as Te,aC as je,f as q,aD as Mt,D as At,J as Ft,a4 as Ze,aE as Je,aF as et,aG as tt,ai as st,aH as Ot,aI as Wt,aJ as Ht,aK as Le,aL as Ie,x as Be,aM as ge,aN as Pt,y as Dt}from"./index-e4d37dbe.js";import{T as Re,s as U,a as ot,S as nt,A as $e,E as Ut,D as Gt,b as rt,Q as at,V as it,c as Yt}from"./constants-2ca2bfc7.js";import{C as z}from"./ClipLoader-2e8a2039.js";import{I as Vt,A as Se,T as lt}from"./index-8c0315a7.js";import{u as B}from"./index-db32d3e5.js";import{T as Ee}from"./Typography-04aa1062.js";import{T as qt,a as Xt}from"./Tabs-1c82bd38.js";import"./Stack-72c38e89.js";import"./createSvgIcon-6b5253a6.js";import"./TextareaAutosize-a343ed23.js";const Kt=h.createContext(),ct=Kt;function Qt(t){return X("MuiTable",t)}K("MuiTable",["root","stickyHeader"]);const Zt=["className","component","padding","size","stickyHeader"],Jt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Qt,s)},es=F("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":I({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),Me="table",ts=h.forwardRef(function(s,n){const r=Q({props:s,name:"MuiTable"}),{className:l,component:i=Me,padding:a="normal",size:o="medium",stickyHeader:d=!1}=r,u=Z(r,Zt),m=I({},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,I({as:i,role:i===Me?null:"table",ref:n,className:J(p.root,l),ownerState:m},u))})}),pe=ts,ss=h.createContext(),xe=ss;function os(t){return X("MuiTableBody",t)}K("MuiTableBody",["root"]);const ns=["className","component"],rs=t=>{const{classes:s}=t;return ee({root:["root"]},os,s)},as=F("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=Q({props:s,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=Z(r,ns),o=I({},r,{component:i}),d=rs(o);return e.jsx(xe.Provider,{value:is,children:e.jsx(as,I({className:J(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:o},a))})}),cs=ls;function ds(t){return X("MuiTableCell",t)}const ps=K("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=F("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})=>I({},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=Q({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 $=d;w==="td"?$=void 0:!$&&C&&($="col");const S=p||y&&y.variant,A=I({},r,{align:l,component:w,padding:o||(j&&j.padding?j.padding:"normal"),size:u||(j&&j.size?j.size:"medium"),sortDirection:m,stickyHeader:S==="head"&&j&&j.stickyHeader,variant:S}),O=us(A);let L=null;return m&&(L=m==="asc"?"ascending":"descending"),e.jsx(gs,I({as:w,ref:n,className:J(O.root,i),"aria-sort":L,scope:$,ownerState:A},b))}),ms=fs;function bs(t){return X("MuiTableHead",t)}K("MuiTableHead",["root"]);const js=["className","component"],ys=t=>{const{classes:s}=t;return ee({root:["root"]},bs,s)},ws=F("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-header-group"}),Cs={variant:"head"},Fe="thead",vs=h.forwardRef(function(s,n){const r=Q({props:s,name:"MuiTableHead"}),{className:l,component:i=Fe}=r,a=Z(r,js),o=I({},r,{component:i}),d=ys(o);return e.jsx(xe.Provider,{value:Cs,children:e.jsx(ws,I({as:i,className:J(d.root,l),ref:n,role:i===Fe?null:"rowgroup",ownerState:o},a))})}),dt=vs;function Ts(t){return X("MuiTableRow",t)}const $s=K("MuiTableRow",["root","selected","hover","head","footer"]),Oe=$s,Ss=["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=F("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,[`&.${Oe.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Oe.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=Q({props:s,name:"MuiTableRow"}),{className:l,component:i=We,hover:a=!1,selected:o=!1}=r,d=Z(r,Ss),u=h.useContext(xe),m=I({},r,{component:i,hover:a,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=ks(m);return e.jsx(_s,I({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}; border: none; @@ -98,20 +98,20 @@ import{r as h,P as X,S as Q,U as F,y as I,X as K,L as Z,j as e,Y as J,Z as ee,a0 width: 0; padding: 0; } -`;function Ls(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}const Is=({node:t})=>{var s,n,r,l,i,a,o,d,u;return e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:(s=t==null?void 0:t.properties)!=null&&s.date_added_to_graph?ye((n=t==null?void 0:t.properties)==null?void 0:n.date_added_to_graph):ye((r=t==null?void 0:t.properties)==null?void 0:r.date)}),e.jsx(f,{children:t==null?void 0:t.node_type}),e.jsx(f,{children:(t==null?void 0:t.node_type)==="Tweet"?e.jsx(He,{href:`${Be}${(l=t==null?void 0:t.properties)==null?void 0:l.tweet_id}${Be.includes("?")?"&":"?"}open=system`,target:"_blank",children:(i=t==null?void 0:t.properties)==null?void 0:i.tweet_id}):e.jsx(He,{href:`${(a=t==null?void 0:t.properties)==null?void 0:a.source_link}${((o=t==null?void 0:t.properties)==null?void 0:o.source_link).includes("?")?"&":"?"}open=system`,target:"_blank",children:(d=t==null?void 0:t.properties)==null?void 0:d.source_link})}),e.jsx(f,{children:(u=t==null?void 0:t.properties)!=null&&u.status?Ls(t.properties.status):"Processing"})]})},He=c.a` +`;function Ls(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}const Is=({node:t})=>{var s,n,r,l,i,a,o,d,u;return e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:(s=t==null?void 0:t.properties)!=null&&s.date_added_to_graph?ye((n=t==null?void 0:t.properties)==null?void 0:n.date_added_to_graph):ye((r=t==null?void 0:t.properties)==null?void 0:r.date)}),e.jsx(f,{children:t==null?void 0:t.node_type}),e.jsx(f,{children:(t==null?void 0:t.node_type)==="Tweet"?e.jsx(He,{href:`${Re}${(l=t==null?void 0:t.properties)==null?void 0:l.tweet_id}${Re.includes("?")?"&":"?"}open=system`,target:"_blank",children:(i=t==null?void 0:t.properties)==null?void 0:i.tweet_id}):e.jsx(He,{href:`${(a=t==null?void 0:t.properties)==null?void 0:a.source_link}${((o=t==null?void 0:t.properties)==null?void 0:o.source_link).includes("?")?"&":"?"}open=system`,target:"_blank",children:(d=t==null?void 0:t.properties)==null?void 0:d.source_link})}),e.jsx(f,{children:(u=t==null?void 0:t.properties)!=null&&u.status?Ls(t.properties.status):"Processing"})]})},He=c.a` color: ${x.white}; text-decoration: underline; &:visited { color: ${x.white}; } -`,Rs=h.memo(Is),Bs=({nodes:t})=>{const{open:s}=M("addContent"),n=async()=>{s()};return!t||(t==null?void 0:t.length)===0?e.jsx(e.Fragment,{children:e.jsxs(Ms,{children:[e.jsx(As,{children:e.jsx(Bt,{})}),e.jsx(Es,{children:e.jsx(N,{className:"subtitle",children:"Contribute to the graph by adding your first content."})}),e.jsx(g,{justify:"center",children:e.jsx(W,{color:"secondary",onClick:n,size:"medium",startIcon:e.jsx(Mt,{}),type:"submit",variant:"contained",children:"Add Content"})})]})}):e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Date"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{children:"Status"})]})}),e.jsx("tbody",{children:t==null?void 0:t.map(r=>e.jsx(Rs,{node:r},r==null?void 0:r.ref_id))})]})},Ms=F(g)` +`,Bs=h.memo(Is),Rs=({nodes:t})=>{const{open:s}=E("addContent"),n=async()=>{s()};return!t||(t==null?void 0:t.length)===0?e.jsx(e.Fragment,{children:e.jsxs(Es,{children:[e.jsx(As,{children:e.jsx(Rt,{})}),e.jsx(Ms,{children:e.jsx(N,{className:"subtitle",children:"Contribute to the graph by adding your first content."})}),e.jsx(g,{justify:"center",children:e.jsx(W,{color:"secondary",onClick:n,size:"medium",startIcon:e.jsx(Et,{}),type:"submit",variant:"contained",children:"Add Content"})})]})}):e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Date"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{children:"Status"})]})}),e.jsx("tbody",{children:t==null?void 0:t.map(r=>e.jsx(Bs,{node:r},r==null?void 0:r.ref_id))})]})},Es=F(g)` display: flex; align-items: center; justify-content: center; margin: 150px auto; width: 100%; flex-direction: column; -`,Es=F(g)` +`,Ms=F(g)` display: flex; align-items: center; justify-content: center; @@ -136,7 +136,7 @@ import{r as h,P as X,S as Q,U as F,y as I,X as K,L as Z,j as e,Y as J,Z as ee,a0 height: 60px; width: 60px; } -`,Fs=()=>{const[t,s]=h.useState([]),[n,r]=h.useState(!0),[l,i]=h.useState(10),[a,o]=h.useState(!0),d={only_content:"true",sort_by:"date",limit:l.toString()},u=async()=>{r(!0);try{const p=await mt(d);s(p.nodes),r(!1)}catch(p){console.error("Error fetching data:",p),r(!1)}};h.useEffect(()=>{u()},[l]);const m=()=>{i(l+10),u()};return e.jsx(Os,{direction:"column",justify:"flex-end",children:e.jsxs(Ws,{align:"center",justify:n?"center":"flex-start",children:[n?e.jsx(z,{color:x.white}):e.jsx(e.Fragment,{children:e.jsx(Bs,{nodes:t})}),!n&&t.length>0&&(a?e.jsx(W,{onClick:m,size:"medium",children:"Load More"}):e.jsx(Hs,{children:"No new nodes available"}))]})})},Os=c(g)` +`,Fs=()=>{const[t,s]=h.useState([]),[n,r]=h.useState(!0),[l,i]=h.useState(10),[a,o]=h.useState(!0),d={only_content:"true",sort_by:"date",limit:l.toString()},u=async()=>{r(!0);try{const p=await mt(d);s(p.nodes),r(!1)}catch(p){console.error("Error fetching data:",p),r(!1)}};h.useEffect(()=>{u()},[l]);const m=()=>{i(l+10),u()};return e.jsx(Os,{direction:"column",justify:"flex-end",children:e.jsxs(Ws,{align:"center",justify:n?"center":"flex-start",children:[n?e.jsx(z,{color:x.white}):e.jsx(e.Fragment,{children:e.jsx(Rs,{nodes:t})}),!n&&t.length>0&&(a?e.jsx(W,{onClick:m,size:"medium",children:"Load More"}):e.jsx(Hs,{children:"No new nodes available"}))]})})},Os=c(g)` flex: 1; .title { @@ -253,7 +253,7 @@ import{r as h,P as X,S as Q,U as F,y as I,X as K,L as Z,j as e,Y as J,Z as ee,a0 } `,Xs=c.div` margin-right: 40px; -`,Qs=()=>{const[t,s]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(d=>[d.queuedSources,d.setQueuedSources]);h.useEffect(()=>{(async()=>{s(!0);try{const u=await qe({approved:"False"});i(u.data)}catch(u){console.warn(u)}finally{s(!1)}})()},[i]);const a=d=>{r(n===d||!d?"":d)},o=l==null?void 0:l.filter(d=>!n||d.source_type===n);return e.jsxs(Ks,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsxs(ke,{align:"flex-start",justify:"space-between",children:[e.jsx(N,{className:"title",children:"Queued Sources"}),e.jsx(N,{className:"subtitle",children:"This is a queue of pending sources waiting for approval or denial from graph users. If you think a source will provide good content for the graph, you can pay to approve it. Think of this as an investment: you pay to add it to the source table, and if the content is popular you will earn from it. If content is not relevant to the graph, you should deny it."})]}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>a(""),size:"small",children:"All"}),Object.keys(U).map(d=>e.jsx(ie,{className:ae({selected:d===n}),onClick:()=>a(d),size:"small",children:U[d]},d))]}),e.jsx(Zs,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(qs,{data:o})})]})},Ks=c(g)` +`,Ks=()=>{const[t,s]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(d=>[d.queuedSources,d.setQueuedSources]);h.useEffect(()=>{(async()=>{s(!0);try{const u=await qe({approved:"False"});i(u.data)}catch(u){console.warn(u)}finally{s(!1)}})()},[i]);const a=d=>{r(n===d||!d?"":d)},o=l==null?void 0:l.filter(d=>!n||d.source_type===n);return e.jsxs(Qs,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsxs(ke,{align:"flex-start",justify:"space-between",children:[e.jsx(N,{className:"title",children:"Queued Sources"}),e.jsx(N,{className:"subtitle",children:"This is a queue of pending sources waiting for approval or denial from graph users. If you think a source will provide good content for the graph, you can pay to approve it. Think of this as an investment: you pay to add it to the source table, and if the content is popular you will earn from it. If content is not relevant to the graph, you should deny it."})]}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>a(""),size:"small",children:"All"}),Object.keys(U).map(d=>e.jsx(ie,{className:ae({selected:d===n}),onClick:()=>a(d),size:"small",children:U[d]},d))]}),e.jsx(Zs,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(qs,{data:o})})]})},Qs=c(g)` flex: 1; .title { @@ -292,7 +292,7 @@ import{r as h,P as X,S as Q,U as F,y as I,X as K,L as Z,j as e,Y as J,Z as ee,a0 transform: translate(-50%, 50%); `,fe=c(q)` font-size: 24px; -`,Js=c(Et)` +`,Js=c(Mt)` && { width: 100%; height: 40px; @@ -462,7 +462,7 @@ import{r as h,P as X,S as Q,U as F,y as I,X as K,L as Z,j as e,Y as J,Z as ee,a0 width: 100%; `,xo=c(g)` margin: 0 0 16px 36px; -`,ho=({selectedType:t,setSelectedType:s})=>{const[n,r]=h.useState([]);h.useEffect(()=>{(async()=>{try{const{data:o}=await St();r(o.edge_types)}catch(o){console.warn(o)}})()},[r]);const l=a=>({label:a,value:a}),i=a=>{s((a==null?void 0:a.value)||"")};return e.jsx(Se,{onSelect:i,options:n.map(l),selectedValue:t?l(t):null})},uo=({onSelect:t,selectedValue:s,topicId:n})=>{const[r,l]=h.useState([]),[i,a]=h.useState(!1),o=h.useMemo(()=>{const b=async j=>{const y={is_muted:"False",sort_by:$e,search:j,skip:"0",limit:"1000"};a(!0);try{const w=(await Ke(y.search)).data.filter($=>($==null?void 0:$.ref_id)!==n);l(w)}catch{l([])}finally{a(!1)}};return we.debounce(b,300)},[n]),d=b=>{const j=b.trim();if(!j){l([]);return}j.length>2&&o(b)},u=b=>{const j=b?r.find(y=>y.ref_id===b.value):null;t(j||null)},m=b=>({label:b.search_value,value:b.ref_id,type:b.node_type}),p=b=>b.map(m);return s?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:s.search_value}),e.jsx(nt,{onClick:()=>t(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{handleInputChange:d,isLoading:i,onSelect:u,options:p(r)||Qe,selectedValue:s?m(s):null})},go=({from:t,onSelect:s,selectedType:n,setSelectedType:r,isSwapped:l,setIsSwapped:i,selectedToNode:a})=>e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(fo,{children:"Add edge"})})}),e.jsxs(jo,{swap:l,children:[e.jsx(g,{children:e.jsx(yo,{disabled:!0,label:l?"To":"From",swap:l,value:t==null?void 0:t.name})}),e.jsxs(g,{my:16,children:[e.jsx(bo,{children:"Type"}),e.jsx(ho,{selectedType:n,setSelectedType:r})]}),e.jsx(g,{children:e.jsxs(wo,{children:[e.jsx(Co,{children:l?"From":"To"}),e.jsx(uo,{onSelect:s,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(mo,{children:[e.jsx(vo,{children:e.jsx(Je,{})}),e.jsx(To,{onClick:i,children:e.jsx(et,{})}),e.jsx($o,{children:e.jsx(tt,{})})]})]})]}),fo=c(N)` +`,ho=({selectedType:t,setSelectedType:s})=>{const[n,r]=h.useState([]);h.useEffect(()=>{(async()=>{try{const{data:o}=await St();r(o.edge_types)}catch(o){console.warn(o)}})()},[r]);const l=a=>({label:a,value:a}),i=a=>{s((a==null?void 0:a.value)||"")};return e.jsx(Se,{onSelect:i,options:n.map(l),selectedValue:t?l(t):null})},uo=({onSelect:t,selectedValue:s,topicId:n})=>{const[r,l]=h.useState([]),[i,a]=h.useState(!1),o=h.useMemo(()=>{const b=async j=>{const y={is_muted:"False",sort_by:$e,search:j,skip:"0",limit:"1000"};a(!0);try{const w=(await Qe(y.search)).data.filter($=>($==null?void 0:$.ref_id)!==n);l(w)}catch{l([])}finally{a(!1)}};return we.debounce(b,300)},[n]),d=b=>{const j=b.trim();if(!j){l([]);return}j.length>2&&o(b)},u=b=>{const j=b?r.find(y=>y.ref_id===b.value):null;t(j||null)},m=b=>({label:b.search_value,value:b.ref_id,type:b.node_type}),p=b=>b.map(m);return s?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:s.search_value}),e.jsx(nt,{onClick:()=>t(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{handleInputChange:d,isLoading:i,onSelect:u,options:p(r)||Ke,selectedValue:s?m(s):null})},go=({from:t,onSelect:s,selectedType:n,setSelectedType:r,isSwapped:l,setIsSwapped:i,selectedToNode:a})=>e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(fo,{children:"Add edge"})})}),e.jsxs(jo,{swap:l,children:[e.jsx(g,{children:e.jsx(yo,{disabled:!0,label:l?"To":"From",swap:l,value:t==null?void 0:t.name})}),e.jsxs(g,{my:16,children:[e.jsx(bo,{children:"Type"}),e.jsx(ho,{selectedType:n,setSelectedType:r})]}),e.jsx(g,{children:e.jsxs(wo,{children:[e.jsx(Co,{children:l?"From":"To"}),e.jsx(uo,{onSelect:s,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(mo,{children:[e.jsx(vo,{children:e.jsx(Je,{})}),e.jsx(To,{onClick:i,children:e.jsx(et,{})}),e.jsx($o,{children:e.jsx(tt,{})})]})]})]}),fo=c(N)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -549,7 +549,7 @@ import{r as h,P as X,S as Q,U as F,y as I,X as K,L as Z,j as e,Y as J,Z as ee,a0 transform: translateY(10px) translateX(3px); color: #6b7a8d; line-height: 1; -`,So=({topic:t,onClose:s})=>{const{close:n}=M("addEdge"),[r]=R(w=>[w.data]),l=Ce({mode:"onChange"}),[i,a]=h.useState(!1),[o,d]=h.useState(!1),[u,m]=h.useState(""),[p,b]=h.useState(null),j=()=>{s(),n()},y=async()=>{if(!(!p||!r)){d(!0);try{await kt({from:t.ref_id,to:p==null?void 0:p.ref_id,relationship:u});const{ref_id:w}=t,{ref_id:$}=p;if(r){const S={...r};S[w]={...S[w],edgeList:[...S[w].edgeList,u]},S[$]&&(S[$]={...S[$],edgeList:[...S[$].edgeList,u]}),R.setState({data:S})}j()}catch(w){console.warn(w)}finally{d(!1)}}},C=o||!p||!u;return e.jsx(ce,{id:"addEdge",kind:"small",onClose:j,preventOutsideClose:!0,children:e.jsxs(ve,{...l,children:[e.jsx(go,{from:t,isSwapped:i,onSelect:b,selectedToNode:p,selectedType:u,setIsSwapped:()=>a(!i),setSelectedType:m}),e.jsxs(ko,{color:"secondary",disabled:C,onClick:y,size:"large",variant:"contained",children:["Confirm",o&&e.jsx(_o,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},ko=c(W)` +`,So=({topic:t,onClose:s})=>{const{close:n}=E("addEdge"),[r]=B(w=>[w.data]),l=Ce({mode:"onChange"}),[i,a]=h.useState(!1),[o,d]=h.useState(!1),[u,m]=h.useState(""),[p,b]=h.useState(null),j=()=>{s(),n()},y=async()=>{if(!(!p||!r)){d(!0);try{await kt({from:t.ref_id,to:p==null?void 0:p.ref_id,relationship:u});const{ref_id:w}=t,{ref_id:$}=p;if(r){const S={...r};S[w]={...S[w],edgeList:[...S[w].edgeList,u]},S[$]&&(S[$]={...S[$],edgeList:[...S[$].edgeList,u]}),B.setState({data:S})}j()}catch(w){console.warn(w)}finally{d(!1)}}},C=o||!p||!u;return e.jsx(ce,{id:"addEdge",kind:"small",onClose:j,preventOutsideClose:!0,children:e.jsxs(ve,{...l,children:[e.jsx(go,{from:t,isSwapped:i,onSelect:b,selectedToNode:p,selectedType:u,setIsSwapped:()=>a(!i),setSelectedType:m}),e.jsxs(ko,{color:"secondary",disabled:C,onClick:y,size:"large",variant:"contained",children:["Confirm",o&&e.jsx(_o,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},ko=c(W)` width: 293px !important; margin: 0 0 10px auto !important; `,_o=c.span` @@ -558,13 +558,13 @@ import{r as h,P as X,S as Q,U as F,y as I,X as K,L as Z,j as e,Y as J,Z as ee,a0 font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Lo=({topic:t,onClose:s})=>{const{close:n}=M("editTopic"),[r]=R(w=>[w.data]),l=Ce({mode:"onChange"}),{watch:i,setValue:a,reset:o,getValues:d}=l,[u,m]=h.useState(!1);h.useEffect(()=>(t&&a("name",t==null?void 0:t.name),()=>{o()}),[t,a,o]);const p=i("name"),b=p==null?void 0:p.trim(),j=()=>{s(),n()},y=async()=>{m(!0);try{if(await de((t==null?void 0:t.ref_id)||"",{node_data:{name:b}}),r){const w={...r};w[t==null?void 0:t.ref_id].name=b,R.setState({data:w})}j()}catch(w){console.warn(w)}finally{m(!1)}},C=d().name&&(t==null?void 0:t.name)!==d().name;return e.jsx(ce,{id:"editTopic",kind:"regular",onClose:j,preventOutsideClose:!0,children:e.jsxs(ve,{...l,children:[e.jsx(No,{}),e.jsxs(W,{color:"secondary",disabled:u||!b||!C,onClick:y,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(Io,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Io=c.span` +`,Lo=({topic:t,onClose:s})=>{const{close:n}=E("editTopic"),[r]=B(w=>[w.data]),l=Ce({mode:"onChange"}),{watch:i,setValue:a,reset:o,getValues:d}=l,[u,m]=h.useState(!1);h.useEffect(()=>(t&&a("name",t==null?void 0:t.name),()=>{o()}),[t,a,o]);const p=i("name"),b=p==null?void 0:p.trim(),j=()=>{s(),n()},y=async()=>{m(!0);try{if(await de((t==null?void 0:t.ref_id)||"",{node_data:{name:b}}),r){const w={...r};w[t==null?void 0:t.ref_id].name=b,B.setState({data:w})}j()}catch(w){console.warn(w)}finally{m(!1)}},C=d().name&&(t==null?void 0:t.name)!==d().name;return e.jsx(ce,{id:"editTopic",kind:"regular",onClose:j,preventOutsideClose:!0,children:e.jsxs(ve,{...l,children:[e.jsx(No,{}),e.jsxs(W,{color:"secondary",disabled:u||!b||!C,onClick:y,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(Io,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Io=c.span` margin-top: 2px; -`,Ro=({topicId:t,onSelect:s,selectedValue:n,dataId:r})=>{const[l,i]=h.useState([]),[a,o]=h.useState(!1),d=h.useMemo(()=>{const j=async y=>{const C={is_muted:"False",sort_by:$e,search:y,skip:"0",limit:"1000"};o(!0);try{const $=(await Ke(C.search)).data.filter(S=>(S==null?void 0:S.ref_id)!==t);i($)}catch{i([])}finally{o(!1)}};return we.debounce(j,300)},[t]),u=j=>{const y=j.trim();if(!y){i([]);return}y.length>2&&d(j)},m=j=>{const y=j?l.find(C=>C.ref_id===j.value):null;s(y||null)},p=j=>({label:j.search_value,value:j.ref_id,type:j.node_type}),b=j=>j.map(p);return n?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:n.search_value}),e.jsx(nt,{onClick:()=>s(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{dataId:r,handleInputChange:u,isLoading:a,onSelect:m,options:b(l)||Qe,selectedValue:n?p(n):null})},Bo=({from:t,onSelect:s,selectedToNode:n,isSwapped:r,setIsSwapped:l})=>{var o;const i=t==null?void 0:t.map(d=>d.name).join(", "),a=t&&t.length===1?t[0].name:`${i==null?void 0:i.substring(0,25)} ...`;return e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(Mo,{children:"Merge topic"})})}),e.jsxs(Fo,{swap:r,children:[e.jsx(Eo,{children:e.jsx(Oo,{disabled:!0,label:r?"To":"From",swap:r,value:a})}),e.jsxs(g,{my:16,children:[e.jsx(Ho,{children:"Type"}),e.jsx(N,{children:"IS ALIAS"})]}),e.jsx(g,{children:e.jsxs(Wo,{children:[e.jsx(Po,{children:r?"From":"To"}),e.jsx(Ro,{dataId:"to-node",onSelect:s,selectedValue:n,topicId:(o=t[t.length-1])==null?void 0:o.ref_id})]})}),e.jsxs(Ao,{children:[e.jsx(Do,{children:e.jsx(Je,{})}),e.jsx(Uo,{"data-testid":"swap-icon",disabled:(t==null?void 0:t.length)!==1,onClick:(t==null?void 0:t.length)===1?l:void 0,children:e.jsx(et,{})}),e.jsx(Go,{children:e.jsx(tt,{})})]})]})]})},Mo=c(N)` +`,Bo=({topicId:t,onSelect:s,selectedValue:n,dataId:r})=>{const[l,i]=h.useState([]),[a,o]=h.useState(!1),d=h.useMemo(()=>{const j=async y=>{const C={is_muted:"False",sort_by:$e,search:y,skip:"0",limit:"1000"};o(!0);try{const $=(await Qe(C.search)).data.filter(S=>(S==null?void 0:S.ref_id)!==t);i($)}catch{i([])}finally{o(!1)}};return we.debounce(j,300)},[t]),u=j=>{const y=j.trim();if(!y){i([]);return}y.length>2&&d(j)},m=j=>{const y=j?l.find(C=>C.ref_id===j.value):null;s(y||null)},p=j=>({label:j.search_value,value:j.ref_id,type:j.node_type}),b=j=>j.map(p);return n?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:n.search_value}),e.jsx(nt,{onClick:()=>s(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{dataId:r,handleInputChange:u,isLoading:a,onSelect:m,options:b(l)||Ke,selectedValue:n?p(n):null})},Ro=({from:t,onSelect:s,selectedToNode:n,isSwapped:r,setIsSwapped:l})=>{var o;const i=t==null?void 0:t.map(d=>d.name).join(", "),a=t&&t.length===1?t[0].name:`${i==null?void 0:i.substring(0,25)} ...`;return e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(Eo,{children:"Merge topic"})})}),e.jsxs(Fo,{swap:r,children:[e.jsx(Mo,{children:e.jsx(Oo,{disabled:!0,label:r?"To":"From",swap:r,value:a})}),e.jsxs(g,{my:16,children:[e.jsx(Ho,{children:"Type"}),e.jsx(N,{children:"IS ALIAS"})]}),e.jsx(g,{children:e.jsxs(Wo,{children:[e.jsx(Po,{children:r?"From":"To"}),e.jsx(Bo,{dataId:"to-node",onSelect:s,selectedValue:n,topicId:(o=t[t.length-1])==null?void 0:o.ref_id})]})}),e.jsxs(Ao,{children:[e.jsx(Do,{children:e.jsx(Je,{})}),e.jsx(Uo,{"data-testid":"swap-icon",disabled:(t==null?void 0:t.length)!==1,onClick:(t==null?void 0:t.length)===1?l:void 0,children:e.jsx(et,{})}),e.jsx(Go,{children:e.jsx(tt,{})})]})]})]})},Eo=c(N)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Eo=c(g)` +`,Mo=c(g)` flex: 1 1 100%; `,Ao=c.div` position: absolute; @@ -649,14 +649,14 @@ import{r as h,P as X,S as Q,U as F,y as I,X as K,L as Z,j as e,Y as J,Z as ee,a0 transform: translateY(10px) translateX(3px); color: #6b7a8d; line-height: 1; -`,Yo=({onClose:t,multiTopics:s})=>{const{close:n}=M("mergeTopic"),r=Ce({mode:"onChange"}),{setValue:l,reset:i}=r,[a,o]=h.useState(!1),[d,u]=h.useState(!1),[m,p]=h.useState(null);h.useEffect(()=>{if(s&&s.length>0){const y=s.map(C=>C.name).join(", ");l("name",y)}return()=>{i()}},[s,l,i]);const b=()=>{t(),n()},j=async()=>{o(!0);const y=s==null?void 0:s.map(C=>C.ref_id).filter(C=>!!C);try{y.length&&m&&(await zt({from:y,to:m==null?void 0:m.ref_id}),R.setState(C=>({ids:C.ids.filter(w=>!y.includes(w)),total:C.total-y.length})),b())}catch(C){console.warn(C)}finally{o(!1)}};return e.jsx(ce,{id:"mergeTopic",kind:"small",onClose:b,preventOutsideClose:!0,children:e.jsxs(ve,{...r,children:[e.jsx(Bo,{from:s,isSwapped:d,onSelect:p,selectedToNode:m,setIsSwapped:()=>u(!d)}),e.jsxs(Vo,{color:"secondary","data-testid":"merge-topics-button",disabled:a||!m,onClick:j,size:"large",variant:"contained",children:["Merge topics",a&&e.jsx(qo,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Vo=c(W)` +`,Yo=({onClose:t,multiTopics:s})=>{const{close:n}=E("mergeTopic"),r=Ce({mode:"onChange"}),{setValue:l,reset:i}=r,[a,o]=h.useState(!1),[d,u]=h.useState(!1),[m,p]=h.useState(null);h.useEffect(()=>{if(s&&s.length>0){const y=s.map(C=>C.name).join(", ");l("name",y)}return()=>{i()}},[s,l,i]);const b=()=>{t(),n()},j=async()=>{o(!0);const y=s==null?void 0:s.map(C=>C.ref_id).filter(C=>!!C);try{y.length&&m&&(await zt({from:y,to:m==null?void 0:m.ref_id}),B.setState(C=>({ids:C.ids.filter(w=>!y.includes(w)),total:C.total-y.length})),b())}catch(C){console.warn(C)}finally{o(!1)}};return e.jsx(ce,{id:"mergeTopic",kind:"small",onClose:b,preventOutsideClose:!0,children:e.jsxs(ve,{...r,children:[e.jsx(Ro,{from:s,isSwapped:d,onSelect:p,selectedToNode:m,setIsSwapped:()=>u(!d)}),e.jsxs(Vo,{color:"secondary","data-testid":"merge-topics-button",disabled:a||!m,onClick:j,size:"large",variant:"contained",children:["Merge topics",a&&e.jsx(qo,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Vo=c(W)` width: 293px !important; margin: 0 0 10px auto !important; `,qo=c.span` margin-top: 2px; -`,Xo=({topic:t,onClick:s,onSearch:n,checkedStates:r,setCheckedStates:l,isMuteDisabled:i})=>{const[a,o]=R(k=>[k.ids,k.total]),[d,u]=h.useState(!1),[m,p]=h.useState(!1),b=ye(t.date_added_to_graph),j=async(k,v)=>{u(!0);try{await de(k,{node_data:{is_muted:v}}),R.setState({ids:a.filter(_=>_!==k),total:o-1})}catch(_){console.warn(_)}},y=k=>{l(v=>({...v,[k]:!v[k]}))},C=(k,v)=>{var _;(_=window.getSelection())!=null&&_.toString()?k.preventDefault():n(v.name)},w=t.edgeList.slice(0,1),$=t.edgeList.length-w.length,[S,A]=re.useState(null),O=k=>{A(k.currentTarget),p(!0)},L=()=>{p(!1)},H=!!S&&m,B=r[t.ref_id]?"visible":"";return e.jsxs(he,{className:r[t.ref_id]?"checked":"",children:[e.jsx(f,{children:e.jsx(Zo,{className:`checkbox-section ${B}`,"data-testid":"topic-check-box",onClick:()=>y(t.ref_id),children:e.jsx(Jo,{checked:r[t.ref_id],children:e.jsx(en,{children:r[t.ref_id]&&e.jsx(st,{})})})})}),e.jsx(f,{onClick:k=>C(k,t),children:e.jsx(Ko,{children:t.name})}),e.jsx(f,{children:t.node_type}),e.jsx(f,{children:e.jsx(tn,{children:t.edgeCount})}),e.jsxs(f,{children:[e.jsx(Te,{anchorEl:S,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:"mouse-over-popover",onClose:L,onMouseEnter:()=>p(!0),onMouseLeave:L,open:H,sx:{pointerEvents:"auto","& .MuiPaper-root":{backgroundColor:"rgba(0, 0, 0, 0.9)",borderRadius:"4px",width:"160px",maxHeight:"200px",overflowY:"scroll"}},transformOrigin:{vertical:"bottom",horizontal:"center"},children:e.jsx(Me,{sx:{p:1.5,fontSize:"13px",fontWeight:400,lineHeight:"1.8",wordWrap:"break-word"},children:t.edgeList.join(", ")})}),w.join(", "),$>0&&e.jsx(Me,{"aria-haspopup":"true","aria-owns":H?"mouse-over-popover":void 0,component:"span",onMouseEnter:O,onMouseLeave:L,sx:{cursor:"pointer"},children:",..."})]}),e.jsx(f,{children:e.jsx("span",{children:b})}),e.jsx(f,{className:"cell-center",children:e.jsx(g,{direction:"row",justify:"space-between",children:e.jsx("div",{className:"approve-wrapper",children:d?e.jsx(Qo,{children:e.jsx(z,{color:x.white,size:16})}):e.jsxs(g,{direction:"row",children:[t.is_muted?e.jsx(q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!1),children:e.jsx(Ot,{})}):e.jsx(q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!0),children:e.jsx(Wt,{})}),e.jsx(q,{disabled:i,onClick:k=>s(k,t.ref_id),children:e.jsx(Ht,{"data-testid":"ThreeDotsIcons"})})]})})})})]},t.name)},Qo=c.span` +`,Xo=({topic:t,onClick:s,onSearch:n,checkedStates:r,setCheckedStates:l,isMuteDisabled:i})=>{const[a,o]=B(k=>[k.ids,k.total]),[d,u]=h.useState(!1),[m,p]=h.useState(!1),b=ye(t.date_added_to_graph),j=async(k,v)=>{u(!0);try{await de(k,{node_data:{is_muted:v}}),B.setState({ids:a.filter(_=>_!==k),total:o-1})}catch(_){console.warn(_)}},y=k=>{l(v=>({...v,[k]:!v[k]}))},C=(k,v)=>{var _;(_=window.getSelection())!=null&&_.toString()?k.preventDefault():n(v.name)},w=t.edgeList.slice(0,1),$=t.edgeList.length-w.length,[S,A]=re.useState(null),O=k=>{A(k.currentTarget),p(!0)},L=()=>{p(!1)},H=!!S&&m,R=r[t.ref_id]?"visible":"";return e.jsxs(he,{className:r[t.ref_id]?"checked":"",children:[e.jsx(f,{children:e.jsx(Zo,{className:`checkbox-section ${R}`,"data-testid":"topic-check-box",onClick:()=>y(t.ref_id),children:e.jsx(Jo,{checked:r[t.ref_id],children:e.jsx(en,{children:r[t.ref_id]&&e.jsx(st,{})})})})}),e.jsx(f,{onClick:k=>C(k,t),children:e.jsx(Qo,{children:t.name})}),e.jsx(f,{children:t.node_type}),e.jsx(f,{children:e.jsx(tn,{children:t.edgeCount})}),e.jsxs(f,{children:[e.jsx(Te,{anchorEl:S,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:"mouse-over-popover",onClose:L,onMouseEnter:()=>p(!0),onMouseLeave:L,open:H,sx:{pointerEvents:"auto","& .MuiPaper-root":{backgroundColor:"rgba(0, 0, 0, 0.9)",borderRadius:"4px",width:"160px",maxHeight:"200px",overflowY:"scroll"}},transformOrigin:{vertical:"bottom",horizontal:"center"},children:e.jsx(Ee,{sx:{p:1.5,fontSize:"13px",fontWeight:400,lineHeight:"1.8",wordWrap:"break-word"},children:t.edgeList.join(", ")})}),w.join(", "),$>0&&e.jsx(Ee,{"aria-haspopup":"true","aria-owns":H?"mouse-over-popover":void 0,component:"span",onMouseEnter:O,onMouseLeave:L,sx:{cursor:"pointer"},children:",..."})]}),e.jsx(f,{children:e.jsx("span",{children:b})}),e.jsx(f,{className:"cell-center",children:e.jsx(g,{direction:"row",justify:"space-between",children:e.jsx("div",{className:"approve-wrapper",children:d?e.jsx(Ko,{children:e.jsx(z,{color:x.white,size:16})}):e.jsxs(g,{direction:"row",children:[t.is_muted?e.jsx(q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!1),children:e.jsx(Ot,{})}):e.jsx(q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!0),children:e.jsx(Wt,{})}),e.jsx(q,{disabled:i,onClick:k=>s(k,t.ref_id),children:e.jsx(Ht,{"data-testid":"ThreeDotsIcons"})})]})})})})]},t.name)},Ko=c.span` margin-left: 12px; -`,Ko=c.span` +`,Qo=c.span` cursor: pointer; :hover { text-decoration: underline; @@ -690,7 +690,7 @@ import{r as h,P as X,S as Q,U as F,y as I,X as K,L as Z,j as e,Y as J,Z as ee,a0 display: flex; align-items: center; justify-content: center; -`,sn=h.memo(Xo),on=({setShowMuteUnmute:t,showMuted:s,loading:n,onTopicEdit:r,onChangeFilter:l,checkedStates:i,setCheckedStates:a})=>{const{close:o}=M("sourcesTable"),[d,u]=h.useState(!1),[m,p]=re.useState(null),[b,j]=re.useState(""),y=Object.values(i).filter(T=>T).length,[C,w]=Lt(T=>[T.setSearchFormValue,T.setCurrentSearch]),[$,S,A]=R(T=>[T.data,T.ids,T.total]),O=h.useCallback((T,P)=>{p(T.currentTarget),j(P)},[]),L=()=>{p(null)},H=T=>{C(T),w(T),o()},B=T=>{r(b,T),L()},k=T=>{l(T)},v=!!m,_=v?"simple-popover":void 0,E=async()=>{u(!0);try{const T=Object.keys(i).map(async Y=>{if(i[Y])try{return await de(Y,{node_data:{is_muted:!s}}),Y}catch(ut){return console.error("Error updating node data:",ut),null}return null}),P=await Promise.all(T);R.setState({ids:S.filter(Y=>!P.includes(Y)),total:A-P.length}),a({}),u(!1)}catch(T){console.error("Error:",T),u(!1)}};return!n&&!$?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsx(e.Fragment,{children:$&&!Object.keys($).length?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsxs(xn,{align:"center",justify:d?"center":"flex-start",children:[e.jsxs(pe,{component:"table",children:[y>0?e.jsx(zs,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{children:e.jsx(q,{onClick:()=>a({}),children:e.jsx(te,{})})}),e.jsx(f,{colSpan:12,children:e.jsxs(pn,{children:[e.jsxs(dn,{children:[e.jsx(cn,{children:y}),"selected"]}),e.jsx(f,{className:"empty"}),e.jsx(Ye,{onClick:E,role:"button",children:s?e.jsxs(e.Fragment,{children:[e.jsx(Le,{})," Unmute ALL"]}):e.jsxs(e.Fragment,{children:[e.jsx(Ie,{})," Mute ALL"]})}),e.jsx(f,{className:"empty"}),e.jsxs(Ye,{onClick:()=>B("mergeTopic"),children:[e.jsx(Re,{})," Merge"]})]})}),e.jsx(f,{className:"empty"})]})}):e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k($e),children:["Name ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Ut),children:["Count ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Edge list"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Gt),children:["Date ",e.jsx(ge,{})]})}),e.jsx(f,{children:e.jsx(g,{px:8,children:e.jsxs(nn,{onClick:t,children:[e.jsx(rn,{checked:s,children:e.jsx(an,{children:s&&e.jsx(st,{})})}),"Muted"]})})})]})}),(n||d)&&!$&&e.jsx(hn,{children:e.jsx(z,{color:x.white})}),$&&e.jsx("tbody",{children:S==null?void 0:S.map(T=>e.jsx(sn,{checkedStates:i,isMuteDisabled:Object.values(i).filter(P=>P).length>1,onClick:O,onSearch:H,setCheckedStates:a,topic:$[T]},T))})]}),b?e.jsxs(ln,{anchorEl:m,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:_,onClose:L,open:v,transformOrigin:{vertical:"top",horizontal:"right"},children:[s?e.jsxs(V,{"data-testid":"unmute",onClick:()=>B("unMute"),children:[" ",e.jsx(Le,{"data-testid":""})," Unmute"]}):e.jsxs(V,{"data-testid":"mute",onClick:()=>B("mute"),children:[" ",e.jsx(Ie,{"data-testid":"VisibilityOff"})," Mute"]}),e.jsxs(V,{"data-testid":"rename",onClick:()=>B("editTopic"),children:[e.jsx(Pt,{"data-testid":"EditTopicIcon"})," Rename"]}),e.jsxs(V,{"data-testid":"merge",onClick:()=>B("mergeTopic"),children:[e.jsx(Re,{"data-testid":"MergeIcon"})," Merge"]}),e.jsxs(V,{"data-testid":"add_edge",onClick:()=>B("addEdge"),children:[e.jsx(Dt,{"data-testid":"AddCircleIcon"})," Add edge"]})]}):null]})})},nn=c.td` +`,sn=h.memo(Xo),on=({setShowMuteUnmute:t,showMuted:s,loading:n,onTopicEdit:r,onChangeFilter:l,checkedStates:i,setCheckedStates:a})=>{const{close:o}=E("sourcesTable"),[d,u]=h.useState(!1),[m,p]=re.useState(null),[b,j]=re.useState(""),y=Object.values(i).filter(T=>T).length,[C,w]=Lt(T=>[T.setSearchFormValue,T.setCurrentSearch]),[$,S,A]=B(T=>[T.data,T.ids,T.total]),O=h.useCallback((T,P)=>{p(T.currentTarget),j(P)},[]),L=()=>{p(null)},H=T=>{C(T),w(T),o()},R=T=>{r(b,T),L()},k=T=>{l(T)},v=!!m,_=v?"simple-popover":void 0,M=async()=>{u(!0);try{const T=Object.keys(i).map(async Y=>{if(i[Y])try{return await de(Y,{node_data:{is_muted:!s}}),Y}catch(ut){return console.error("Error updating node data:",ut),null}return null}),P=await Promise.all(T);B.setState({ids:S.filter(Y=>!P.includes(Y)),total:A-P.length}),a({}),u(!1)}catch(T){console.error("Error:",T),u(!1)}};return!n&&!$?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsx(e.Fragment,{children:$&&!Object.keys($).length?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsxs(xn,{align:"center",justify:d?"center":"flex-start",children:[e.jsxs(pe,{component:"table",children:[y>0?e.jsx(zs,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{children:e.jsx(q,{onClick:()=>a({}),children:e.jsx(te,{})})}),e.jsx(f,{colSpan:12,children:e.jsxs(pn,{children:[e.jsxs(dn,{children:[e.jsx(cn,{children:y}),"selected"]}),e.jsx(f,{className:"empty"}),e.jsx(Ye,{onClick:M,role:"button",children:s?e.jsxs(e.Fragment,{children:[e.jsx(Le,{})," Unmute ALL"]}):e.jsxs(e.Fragment,{children:[e.jsx(Ie,{})," Mute ALL"]})}),e.jsx(f,{className:"empty"}),e.jsxs(Ye,{onClick:()=>R("mergeTopic"),children:[e.jsx(Be,{})," Merge"]})]})}),e.jsx(f,{className:"empty"})]})}):e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k($e),children:["Name ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Ut),children:["Count ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Edge list"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Gt),children:["Date ",e.jsx(ge,{})]})}),e.jsx(f,{children:e.jsx(g,{px:8,children:e.jsxs(nn,{onClick:t,children:[e.jsx(rn,{checked:s,children:e.jsx(an,{children:s&&e.jsx(st,{})})}),"Muted"]})})})]})}),(n||d)&&!$&&e.jsx(hn,{children:e.jsx(z,{color:x.white})}),$&&e.jsx("tbody",{children:S==null?void 0:S.map(T=>e.jsx(sn,{checkedStates:i,isMuteDisabled:Object.values(i).filter(P=>P).length>1,onClick:O,onSearch:H,setCheckedStates:a,topic:$[T]},T))})]}),b?e.jsxs(ln,{anchorEl:m,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:_,onClose:L,open:v,transformOrigin:{vertical:"top",horizontal:"right"},children:[s?e.jsxs(V,{"data-testid":"unmute",onClick:()=>R("unMute"),children:[" ",e.jsx(Le,{"data-testid":""})," Unmute"]}):e.jsxs(V,{"data-testid":"mute",onClick:()=>R("mute"),children:[" ",e.jsx(Ie,{"data-testid":"VisibilityOff"})," Mute"]}),e.jsxs(V,{"data-testid":"rename",onClick:()=>R("editTopic"),children:[e.jsx(Pt,{"data-testid":"EditTopicIcon"})," Rename"]}),e.jsxs(V,{"data-testid":"merge",onClick:()=>R("mergeTopic"),children:[e.jsx(Be,{"data-testid":"MergeIcon"})," Merge"]}),e.jsxs(V,{"data-testid":"add_edge",onClick:()=>R("addEdge"),children:[e.jsx(Dt,{"data-testid":"AddCircleIcon"})," Add edge"]})]}):null]})})},nn=c.td` cursor: pointer; display: flex; align-items: center; @@ -784,7 +784,7 @@ import{r as h,P as X,S as Q,U as F,y as I,X as K,L as Z,j as e,Y as J,Z as ee,a0 display: flex; align-items: center; justify-content: center; -`,un=()=>{const[t,s,n,r,l,i,a,o]=R(v=>[v.data,v.ids,v.total,v.setTopics,v.filters,v.setFilters,v.terminate,v.loading]),{open:d}=M("editTopic"),{open:u}=M("mergeTopic"),{open:m}=M("addEdge"),[p,b]=h.useState(null),[j,y]=h.useState([]),[C,w]=h.useState({}),$={editTopic:d,mergeTopic:u,addEdge:m},S=h.useRef([]);h.useEffect(()=>{s.length&&(S.current=s)},[s]),h.useEffect(()=>{(async()=>{try{await r()}catch{console.error("err")}})()},[r,l]);const A=async()=>{i({page:l.page+1})};h.useEffect(()=>()=>{a()},[a]);const O=v=>{i({sortBy:v})},L=()=>{b(null),y([])},H=async(v,_)=>{try{await de(v,{node_data:{is_muted:_==="mute"}}),R.setState({ids:s.filter(E=>E!==v),total:n-1})}catch(E){console.warn(E)}},B=async(v,_)=>{if(t)if(_==="mergeTopic")if(Object.values(C).filter(E=>E).length>0){const E=Object.entries(C).filter(([,T])=>T).map(([T])=>t[T]);y(E),u()}else y([t[v]]),b(t[v]),u();else["mute","unMute"].includes(_)&&await H(v,_),typeof $[_]=="function"&&$[_](),b(t[v])},k=v=>{i({...l,search:v})};return e.jsxs(e.Fragment,{children:[e.jsxs(gn,{direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"flex-start",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Topics"})}),e.jsx(mn,{"data-testid":"topic-search-container",children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Ze,{}),loading:o,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:k,placeholder:"Search ..."})}),e.jsxs(fn,{align:"center",justify:o&&!t?"center":"flex-start",children:[e.jsx(on,{checkedStates:C,loading:o,onChangeFilter:O,onTopicEdit:B,setCheckedStates:w,setShowMuteUnmute:()=>i({is_muted:!l.is_muted}),showMuted:l.is_muted}),n>s.length?e.jsxs(W,{className:"load-more",disabled:o,onClick:A,children:["Load more",o&&e.jsx(z,{color:x.lightGray,size:10})]}):null]})]}),j.length>0&&e.jsx(Yo,{multiTopics:j,onClose:L}),p&&e.jsx(Lo,{onClose:L,topic:p}),p&&e.jsx(So,{onClose:L,topic:p})]})},gn=c(g)` +`,un=()=>{const[t,s,n,r,l,i,a,o]=B(v=>[v.data,v.ids,v.total,v.setTopics,v.filters,v.setFilters,v.terminate,v.loading]),{open:d}=E("editTopic"),{open:u}=E("mergeTopic"),{open:m}=E("addEdge"),[p,b]=h.useState(null),[j,y]=h.useState([]),[C,w]=h.useState({}),$={editTopic:d,mergeTopic:u,addEdge:m},S=h.useRef([]);h.useEffect(()=>{s.length&&(S.current=s)},[s]),h.useEffect(()=>{(async()=>{try{await r()}catch{console.error("err")}})()},[r,l]);const A=async()=>{i({page:l.page+1})};h.useEffect(()=>()=>{a()},[a]);const O=v=>{i({sortBy:v})},L=()=>{b(null),y([])},H=async(v,_)=>{try{await de(v,{node_data:{is_muted:_==="mute"}}),B.setState({ids:s.filter(M=>M!==v),total:n-1})}catch(M){console.warn(M)}},R=async(v,_)=>{if(t)if(_==="mergeTopic")if(Object.values(C).filter(M=>M).length>0){const M=Object.entries(C).filter(([,T])=>T).map(([T])=>t[T]);y(M),u()}else y([t[v]]),b(t[v]),u();else["mute","unMute"].includes(_)&&await H(v,_),typeof $[_]=="function"&&$[_](),b(t[v])},k=v=>{i({...l,search:v})};return e.jsxs(e.Fragment,{children:[e.jsxs(gn,{direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"flex-start",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Topics"})}),e.jsx(mn,{"data-testid":"topic-search-container",children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Ze,{}),loading:o,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:k,placeholder:"Search ..."})}),e.jsxs(fn,{align:"center",justify:o&&!t?"center":"flex-start",children:[e.jsx(on,{checkedStates:C,loading:o,onChangeFilter:O,onTopicEdit:R,setCheckedStates:w,setShowMuteUnmute:()=>i({is_muted:!l.is_muted}),showMuted:l.is_muted}),n>s.length?e.jsxs(W,{className:"load-more",disabled:o,onClick:A,children:["Load more",o&&e.jsx(z,{color:x.lightGray,size:10})]}):null]})]}),j.length>0&&e.jsx(Yo,{multiTopics:j,onClose:L}),p&&e.jsx(Lo,{onClose:L,topic:p}),p&&e.jsx(So,{onClose:L,topic:p})]})},gn=c(g)` flex: 1; .title { @@ -821,7 +821,7 @@ import{r as h,P as X,S as Q,U as F,y as I,X as K,L as Z,j as e,Y as J,Z as ee,a0 width: 100%; `,mn=c(g)` margin: 0 0 16px 36px; -`,bn=[{label:it,component:Fs},{label:Yt,component:lo},{label:at,component:Qs},{label:rt,component:un}],jn=t=>{const{children:s,value:n,index:r,...l}=t;return n===r?e.jsx(Tn,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...l,children:s}):null};function yn(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const wn=()=>{const[t,s]=h.useState(0),[n]=Xe(o=>[o.isAdmin]),[r]=It(o=>[o.queuedSourcesFeatureFlag]),l=Rt(),i=(o,d)=>{s(d)},a=bn.filter(({label:o})=>o===rt?n:o===at?n&&r:o===it?l:!0);return e.jsxs($n,{"data-testid":"sources-table",direction:"column",children:[e.jsx(Cn,{"aria-label":"sources tabs",onChange:i,value:t,children:a.map((o,d)=>e.jsx(vn,{color:x.white,disableRipple:!0,label:o.label,...yn(d)},o.label))}),a.map((o,d)=>e.jsx(jn,{index:d,value:t,children:e.jsx(o.component,{})},o.label))]})},Cn=c(qt)` +`,bn=[{label:it,component:Fs},{label:Yt,component:lo},{label:at,component:Ks},{label:rt,component:un}],jn=t=>{const{children:s,value:n,index:r,...l}=t;return n===r?e.jsx(Tn,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...l,children:s}):null};function yn(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const wn=()=>{const[t,s]=h.useState(0),[n]=Xe(o=>[o.isAdmin]),[r]=It(o=>[o.queuedSourcesFeatureFlag]),l=Bt(),i=(o,d)=>{s(d)},a=bn.filter(({label:o})=>o===rt?n:o===at?n&&r:o===it?l:!0);return e.jsxs($n,{"data-testid":"sources-table",direction:"column",children:[e.jsx(Cn,{"aria-label":"sources tabs",onChange:i,value:t,children:a.map((o,d)=>e.jsx(vn,{color:x.white,disableRipple:!0,label:o.label,...yn(d)},o.label))}),a.map((o,d)=>e.jsx(jn,{index:d,value:t,children:e.jsx(o.component,{})},o.label))]})},Cn=c(qt)` && { background: rgba(0, 0, 0, 0.2); border-radius: 9px 9px 0 0; @@ -876,4 +876,4 @@ import{r as h,P as X,S as Q,U as F,y as I,X as K,L as Z,j as e,Y as J,Z as ee,a0 @media (max-width: 768px) { padding: 3px; } -`,Fn=()=>{const{close:t}=M("sourcesTable"),{visible:s}=M("addContent");return s?null:e.jsx(ce,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:t,preventOutsideClose:!0,children:e.jsx(wn,{})})};export{Fn as SourcesTableModal}; +`,Fn=()=>{const{close:t}=E("sourcesTable"),{visible:s}=E("addContent");return s?null:e.jsx(ce,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:t,preventOutsideClose:!0,children:e.jsx(wn,{})})};export{Fn as SourcesTableModal}; diff --git a/build/assets/index-0d511f35.js b/build/assets/index-f104c89b.js similarity index 76% rename from build/assets/index-0d511f35.js rename to build/assets/index-f104c89b.js index cf7dde6a6..4df31b001 100644 --- a/build/assets/index-0d511f35.js +++ b/build/assets/index-f104c89b.js @@ -1,9 +1,9 @@ -import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b as Gl,k as tr,n as Sd,d as Ma,ac as $l,E as Zl,ad as Ed,l as Od,M as Ad,e as pr,G as Md,ae as Dd,af as Pd,i as Id,ag as Nd,v as Rd}from"./index-f22e6e13.js";import{u as It,a as Pe,m as ho,b as fo,e as Da,L as Fd,c as Ld,d as Vd,g as Ud,h as Xl,H as er,t as Ql,P as zd,T as jd,f as Bd,i as qd,C as Wd,j as Hd,k as Yd}from"./index-d3e0dfea.js";import{m as ei,n as Pc,H as Gd,E as $d,_ as qt,o as Be,p as gs,h as pe,q as Kl,r as Pa,s as Ia,f as Ic,i as Zd,D as Xd,I as Qd,t as Kd,v as Jd,w as tf,x as ef,y as Nc,z as sf,G as nf,R as rf,g as of,J as af,N as cf,P as lf,O as uf,K as hf}from"./index-8304ea06.js";import{T as df}from"./TextareaAutosize-5da8bada.js";import{a as mr,b as ff,V as rt,c as pf,d as mf,M as _n,e as _t,f as _f,B as gf,S as Jl,P as Po,g as yf,h as Mr,i as Bs,T as po,j as sa,k as vf,l as Rc,m as sr,Q as xf,G as kf,C as Na,n as Tf,o as tu,p as wf,q as bf,r as Cf,E as Sf,s as Ef,t as Of,u as Ra,v as Af,w as Fc,x as Lc}from"./three.module-9c942ca6.js";import{u as Mf}from"./index-e36d8aa5.js";import{C as Df}from"./ClipLoader-1ce39797.js";function Pf(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 If=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Vc=If?P.useEffect:P.useLayoutEffect;function Nf(i){const t=typeof i=="function"?Pf(i):i,e=(s=t.getState,n=Object.is)=>{const[,r]=P.useReducer(m=>m+1,0),o=t.getState(),a=P.useRef(o),c=P.useRef(s),l=P.useRef(n),u=P.useRef(!1),h=P.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 _=P.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 P.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 Rf=Nf(i=>(mr.onStart=(t,e,s)=>{i({active:!0,item:t,loaded:e,total:s,progress:(e-si)/(s-si)*100})},mr.onLoad=()=>{i({active:!1})},mr.onError=t=>i(e=>({errors:[...e.errors,t]})),mr.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})),Ff=i=>`Loading ${i.toFixed(2)}%`;function Lf({containerStyles:i,innerStyles:t,barStyles:e,dataStyles:s,dataInterpolation:n=Ff,initialState:r=o=>o}){const{active:o,progress:a}=Rf(),c=P.useRef(0),l=P.useRef(0),u=P.useRef(null),[h,d]=P.useState(r(o));P.useEffect(()=>{let _;return o!==h&&(_=setTimeout(()=>d(o),300)),()=>clearTimeout(_)},[h,o]);const p=P.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?P.createElement("div",{style:{..._r.container,opacity:o?1:0,...i}},P.createElement("div",null,P.createElement("div",{style:{..._r.inner,...t}},P.createElement("div",{style:{..._r.bar,transform:`scaleX(${a/100})`,...e}}),P.createElement("span",{ref:u,style:{..._r.data,...s}})))):null}const _r={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"}},Io=new ff,No=new rt,gn=new rt,Ne=new rt,ns=new rt,He=new rt,is=new rt,rs=new rt,ni=new rt,ii=new rt,ri=new rt,gr=new rt,oi=new rt,ai=new rt,ci=new rt;class Vf{constructor(t,e,s){this.camera=t,this.scene=e,this.startPoint=new rt,this.endPoint=new rt,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(Io,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){gn.copy(t),gn.x=Math.min(t.x,e.x),gn.y=Math.max(t.y,e.y),e.x=Math.max(t.x,e.x),e.y=Math.min(t.y,e.y),Ne.setFromMatrixPosition(this.camera.matrixWorld),ns.copy(gn),He.set(e.x,gn.y,0),is.copy(e),rs.set(gn.x,e.y,0),ns.unproject(this.camera),He.unproject(this.camera),is.unproject(this.camera),rs.unproject(this.camera),oi.copy(ns).sub(Ne),ai.copy(He).sub(Ne),ci.copy(is).sub(Ne),oi.normalize(),ai.normalize(),ci.normalize(),oi.multiplyScalar(this.deep),ai.multiplyScalar(this.deep),ci.multiplyScalar(this.deep),oi.add(Ne),ai.add(Ne),ci.add(Ne);var s=Io.planes;s[0].setFromCoplanarPoints(Ne,ns,He),s[1].setFromCoplanarPoints(Ne,He,is),s[2].setFromCoplanarPoints(is,rs,Ne),s[3].setFromCoplanarPoints(rs,ns,Ne),s[4].setFromCoplanarPoints(He,is,rs),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);ns.set(n,r,-1),He.set(o,r,-1),is.set(o,a,-1),rs.set(n,a,-1),ni.set(n,r,1),ii.set(o,r,1),ri.set(o,a,1),gr.set(n,a,1),ns.unproject(this.camera),He.unproject(this.camera),is.unproject(this.camera),rs.unproject(this.camera),ni.unproject(this.camera),ii.unproject(this.camera),ri.unproject(this.camera),gr.unproject(this.camera);var s=Io.planes;s[0].setFromCoplanarPoints(ns,ni,ii),s[1].setFromCoplanarPoints(He,ii,ri),s[2].setFromCoplanarPoints(ri,gr,rs),s[3].setFromCoplanarPoints(gr,ni,ns),s[4].setFromCoplanarPoints(He,is,rs),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(),No.copy(e.geometry.boundingSphere.center),No.applyMatrix4(e.matrixWorld),t.containsPoint(No)&&this.collection.push(e)),e.children.length>0)for(let s=0;s0?Z.copy(M[M.length-1]):Z.identity())}function n(R){const F=new Bs,S=new _t,D=new _t,H=new _t;let N=!0,U=!1;const st=R.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)}U=!1}return F}function r(R){if(!(!R.sheet||!R.sheet.cssRules||!R.sheet.cssRules.length))for(let F=0;FH.trim());for(let H=0;H1){const Dc=Math.sqrt(X);F=Dc*F,S=Dc*S,K=F*F,q=S*S}const tt=K*E+q*A,lt=(K*q-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+(U.x+it.x)/2,Do=Math.sin(D)*Yt+Math.cos(D)*Ie+(U.y+it.y)/2,fr=a(1,0,(J-Yt)/F,(pt-Ie)/S),Cd=a((J-Yt)/F,(pt-Ie)/S,(-J-Yt)/F,(-pt-Ie)/S)%(Math.PI*2);R.currentPath.absellipse(ti,Do,F,S,fr,fr+Cd,N===0,D)}function a(R,F,S,D){const H=R*S+F*D,N=Math.sqrt(R*R+F*F)*Math.sqrt(S*S+D*D);let U=Math.acos(Math.max(-1,Math.min(1,H/N)));return R*D-F*S<0&&(U=-U),U}function c(R){const F=w(R.getAttribute("x")||0),S=w(R.getAttribute("y")||0),D=w(R.getAttribute("rx")||R.getAttribute("ry")||0),H=w(R.getAttribute("ry")||R.getAttribute("rx")||0),N=w(R.getAttribute("width")),U=w(R.getAttribute("height")),it=1-.551915024494,st=new Bs;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+U-H),(D!==0||H!==0)&&st.bezierCurveTo(F+N,S+U-H*it,F+N-D*it,S+U,F+N-D,S+U),st.lineTo(F+D,S+U),(D!==0||H!==0)&&st.bezierCurveTo(F+D*it,S+U,F,S+U-H*it,F,S+U-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(R){function F(N,U,it){const st=w(U),nt=w(it);H===0?D.moveTo(st,nt):D.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,D=new Bs;let H=0;return R.getAttribute("points").replace(S,F),D.currentPath.autoClose=!0,D}function u(R){function F(N,U,it){const st=w(U),nt=w(it);H===0?D.moveTo(st,nt):D.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,D=new Bs;let H=0;return R.getAttribute("points").replace(S,F),D.currentPath.autoClose=!1,D}function h(R){const F=w(R.getAttribute("cx")||0),S=w(R.getAttribute("cy")||0),D=w(R.getAttribute("r")||0),H=new Po;H.absarc(F,S,D,0,Math.PI*2);const N=new Bs;return N.subPaths.push(H),N}function d(R){const F=w(R.getAttribute("cx")||0),S=w(R.getAttribute("cy")||0),D=w(R.getAttribute("rx")||0),H=w(R.getAttribute("ry")||0),N=new Po;N.absellipse(F,S,D,H,0,Math.PI*2);const U=new Bs;return U.subPaths.push(N),U}function p(R){const F=w(R.getAttribute("x1")||0),S=w(R.getAttribute("y1")||0),D=w(R.getAttribute("x2")||0),H=w(R.getAttribute("y2")||0),N=new Bs;return N.moveTo(F,S),N.lineTo(D,H),N.currentPath.autoClose=!1,N}function _(R,F){F=Object.assign({},F);let S={};if(R.hasAttribute("class")){const U=R.getAttribute("class").split(/\s/).filter(Boolean).map(it=>it.trim());for(let it=0;it0&&F.premultiply(M[M.length-1]),Z.copy(F),M.push(F),F}function y(R){const F=new _n,S=V;if(R.nodeName==="use"&&(R.hasAttribute("x")||R.hasAttribute("y"))){const D=w(R.getAttribute("x")),H=w(R.getAttribute("y"));F.translate(D,H)}if(R.hasAttribute("transform")){const D=R.getAttribute("transform").split(")");for(let H=D.length-1;H>=0;H--){const N=D[H].trim();if(N==="")continue;const U=N.indexOf("("),it=N.length;if(U>0&&U=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]),B.identity().translate(-pt,-K),G.identity().rotate(J),Y.multiplyMatrices(G,B),B.identity().translate(pt,K),S.multiplyMatrices(B,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 T(R,F){function S(N){z.set(N.x,N.y,1).applyMatrix3(F),N.set(z.x,z.y)}const D=k(F),H=R.subPaths;for(let N=0,U=H.length;N=1||Y<0||Y>1)return null;if(M===0&&B===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),Z=+(x+n.t*(C-x)).toPrecision(10);return{x:z,y:Z,t:n.t}}return null}else{for(let Z=0;Z<2;Z++)if(o(Z===0?b:w,m,v),n.loc==s.ORIGIN){const Q=Z===0?b:w;return{x:Q.x,y:Q.y,t:n.t}}const j=+(g+G*(y-g)).toPrecision(10),z=+(x+G*(C-x)).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,T=m.y-v.y,k=w*T-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(k<-Number.EPSILON){n.loc=s.LEFT;return}if(k>Number.EPSILON){n.loc=s.RIGHT;return}if(w*y<0||g*T<0){n.loc=s.BEHIND;return}if(Math.sqrt(w*w+g*g)I.t<=O.t+Number.EPSILON&&I.t>=O.t-Number.EPSILON)===void 0&&(b.push(O),w.push(new _t(O.x,O.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(k=>{g.push({identifier:y.identifier,isCW:y.isCW,point:k})})}),g.sort((y,T)=>y.point.x-T.point.x),g}function l(m,v,b,w,g){(g==null||g==="")&&(g="nonzero");const y=new _t;m.boundingBox.getCenter(y);const T=[new _t(b,y.y),new _t(w,y.y)],k=c(T,m.boundingBox,v);k.sort((V,B)=>V.point.x-B.point.x);const x=[],C=[];k.forEach(V=>{V.identifier===m.identifier?x.push(V):C.push(V)});const O=x[0].point.x,I=[];let M=0;for(;M0&&I[I.length-1]===C[M].identifier?I.pop():I.push(C[M].identifier),M++;if(I.push(m.identifier),g==="evenodd"){const V=I.length%2===0,B=I[I.length-2];return{identifier:m.identifier,isHole:V,for:B}}else if(g==="nonzero"){let V=!0,B=null,G=null;for(let Y=0;Y{const v=m.getPoints();let b=-999999999,w=999999999,g=-999999999,y=999999999;for(let T=0;Tb&&(b=k.y),k.yg&&(g=k.x),k.x=y&&(h=y-1),{curves:m.curves,points:v,isCW:_f.isClockWise(v),identifier:u++,boundingBox:new gf(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 Jl;b.curves=m.curves,_.filter(g=>g.isHole&&g.for===m.identifier).forEach(g=>{const y=p[g.identifier],T=new Po;T.curves=y.curves,b.holes.push(T)}),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(ki.pointsToStrokeWithBuffers(t,e,s,n,r,o,a)===0)return null;const c=new yf;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,T=new _t,k=new _t,x=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 O=t.length;if(O<2)return 0;const I=t[0].equals(t[O-1]);let M,V=t[0],B;const G=e.strokeWidth/2,Y=1/(O-1);let j=0,z,Z,Q,et,R=!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&&A.push(K[E]);return A.push(K[K.length-1]),A}}}function Uf(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:_}=It(),[f,m]=P.useState(!1),[v,b]=P.useReducer((T,{object:k,shift:x})=>k===void 0?[]:Array.isArray(k)?k:x?T.includes(k)?T.filter(C=>C!==k):[k,...T]:T[0]===k?[]:[k],[]);P.useEffect(()=>void(s==null?void 0:s(v)),[v]);const w=P.useCallback(T=>{T.stopPropagation(),b({object:o([T.object])[0],shift:t&&T.shiftKey})},[]),g=P.useCallback(T=>!f&&b({}),[f]),y=P.useRef(null);return P.useEffect(()=>{if(!i||!t)return;const T=new Vf(l,y.current),k=document.createElement("div");k.style.pointerEvents="none",k.style.border=n,k.style.backgroundColor=r,k.style.position="fixed";const x=new _t,C=new _t,O=new _t,I=_().events.enabled,M=d==null?void 0:d.enabled;let V=!1;function B(R,F){const{offsetX:S,offsetY:D}=R,{width:H,height:N}=p;F.set(S/H*2-1,-(D/N)*2+1)}function G(R){var F;d&&(d.enabled=!1),c({enabled:!1}),V=!0,(F=h.domElement.parentElement)==null||F.appendChild(k),k.style.left=`${R.clientX}px`,k.style.top=`${R.clientY}px`,k.style.width="0px",k.style.height="0px",x.x=R.clientX,x.y=R.clientY}function Y(R){O.x=Math.max(x.x,R.clientX),O.y=Math.max(x.y,R.clientY),C.x=Math.min(x.x,R.clientX),C.y=Math.min(x.y,R.clientY),k.style.left=`${C.x}px`,k.style.top=`${C.y}px`,k.style.width=`${O.x-C.x}px`,k.style.height=`${O.y-C.y}px`}function j(){if(V){var R;d&&(d.enabled=M),c({enabled:I}),V=!1,(R=k.parentElement)==null||R.removeChild(k)}}function z(R){R.shiftKey&&(G(R),B(R,T.startPoint))}let Z=[];function Q(R){if(V){Y(R),B(R,T.endPoint);const F=T.select().sort(S=>S.uuid).filter(S=>S.isMesh);Uf(F,Z)||(Z=F,b({object:o(F)}))}}function et(R){V&&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]),P.createElement("group",Se({ref:y,onClick:w,onPointerOver:()=>m(!0),onPointerOut:()=>m(!1),onPointerMissed:g},a),P.createElement(zf.Provider,{value:v},e))}const eu=P.forwardRef(function({follow:t=!0,lockX:e=!1,lockY:s=!1,lockZ:n=!1,...r},o){const a=P.useRef();return Pe(({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)}),P.createElement("group",Se({ref:ho([a,o])},r))}),Uc=i=>i===Object(i)&&!Array.isArray(i)&&typeof i!="function";function Qs(i,t){const e=It(n=>n.gl),s=fo(po,Uc(i)?Object.values(i):i);if(P.useLayoutEffect(()=>{t==null||t(s)},[t]),P.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}Qs.preload=i=>fo.preload(po,i);Qs.clear=i=>fo.clear(po,i);const Bf=P.forwardRef(function({src:t,skipFill:e,skipStrokes:s,fillMaterial:n,strokeMaterial:r,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=fo(ki,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(_=>ki.pointsToStroke(_.getPoints(),d.userData.style))}),[u,s]);return P.useEffect(()=>()=>h.forEach(d=>d&&d.map(p=>p.dispose())),[h]),P.createElement("object3D",Se({ref:l},c),P.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,p)=>{var _,f;return P.createElement(P.Fragment,{key:p},!e&&((_=d.userData)==null?void 0:_.style.fill)!==void 0&&d.userData.style.fill!=="none"&&ki.createShapes(d).map((m,v)=>P.createElement("mesh",Se({key:v},o),P.createElement("shapeGeometry",{args:[m]}),P.createElement("meshBasicMaterial",Se({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:sa,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)=>P.createElement("mesh",Se({key:v,geometry:h[p][v]},a),P.createElement("meshBasicMaterial",Se({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:sa,depthWrite:!1},r)))))})))});/*! +import{r as I,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b as Gl,k as Ji,n as Sd,d as Ma,ac as $l,E as Xl,ad as Ed,l as Od,M as Ad,e as fr,G as Md,ae as Dd,af as Pd,i as Id,ag as Nd,v as Rd}from"./index-6502785b.js";import{u as It,a as Pe,m as uo,b as ho,e as Da,L as Zl,c as Fd,d as Ld,g as Vd,T as Ql,h as Kl,H as tr,t as Jl,P as Ud,f as zd,i as jd,C as Bd,j as qd,k as Wd}from"./index-73fbdc56.js";import{m as ei,n as Ic,H as Hd,E as Yd,_ as qt,o as Be,p as gs,i as pe,q as Pa,r as Ia,g as Nc,b as Gd,D as $d,I as Xd,s as Zd,t as Qd,v as Kd,w as Jd,x as tf,y as Rc,z as ef,G as sf,R as nf,h as rf,J as of,N as af,P as cf,O as lf,K as uf}from"./index-e4d37dbe.js";import{T as hf}from"./TextareaAutosize-a343ed23.js";import{a as pr,b as df,V as it,c as ff,d as pf,M as _n,e as _t,f as mf,B as _f,S as tu,P as Po,g as gf,h as Mr,i as Bs,T as fo,j as sa,k as yf,l as Fc,m as er,Q as vf,G as xf,C as Na,n as kf,o as eu,p as Tf,q as wf,r as bf,E as Cf,s as Sf,t as Ef,u as po,v as Of,w as Lc,x as Vc}from"./three.module-9c942ca6.js";import{u as Af}from"./index-0c4fb1ee.js";import{C as Mf}from"./ClipLoader-2e8a2039.js";function Df(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 Pf=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Uc=Pf?I.useEffect:I.useLayoutEffect;function If(i){const t=typeof i=="function"?Df(i):i,e=(s=t.getState,n=Object.is)=>{const[,r]=I.useReducer(m=>m+1,0),o=t.getState(),a=I.useRef(o),c=I.useRef(s),l=I.useRef(n),u=I.useRef(!1),h=I.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)),Uc(()=>{p&&(h.current=d),a.current=o,c.current=s,l.current=n,u.current=!1});const _=I.useRef(o);Uc(()=>{const m=()=>{try{const w=t.getState(),b=c.current(w);l.current(h.current,b)||(a.current=w,h.current=b,r())}catch{u.current=!0,r()}},v=t.subscribe(m);return t.getState()!==_.current&&m(),v},[]);const f=p?d:h.current;return I.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 Nf=If(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})),Rf=i=>`Loading ${i.toFixed(2)}%`;function Ff({containerStyles:i,innerStyles:t,barStyles:e,dataStyles:s,dataInterpolation:n=Rf,initialState:r=o=>o}){const{active:o,progress:a}=Nf(),c=I.useRef(0),l=I.useRef(0),u=I.useRef(null),[h,d]=I.useState(r(o));I.useEffect(()=>{let _;return o!==h&&(_=setTimeout(()=>d(o),300)),()=>clearTimeout(_)},[h,o]);const p=I.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?I.createElement("div",{style:{...mr.container,opacity:o?1:0,...i}},I.createElement("div",null,I.createElement("div",{style:{...mr.inner,...t}},I.createElement("div",{style:{...mr.bar,transform:`scaleX(${a/100})`,...e}}),I.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"}},Io=new df,No=new it,gn=new it,Ne=new it,ns=new it,He=new it,is=new it,rs=new it,ni=new it,ii=new it,ri=new it,_r=new it,oi=new it,ai=new it,ci=new it;class Lf{constructor(t,e,s){this.camera=t,this.scene=e,this.startPoint=new it,this.endPoint=new it,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(Io,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){gn.copy(t),gn.x=Math.min(t.x,e.x),gn.y=Math.max(t.y,e.y),e.x=Math.max(t.x,e.x),e.y=Math.min(t.y,e.y),Ne.setFromMatrixPosition(this.camera.matrixWorld),ns.copy(gn),He.set(e.x,gn.y,0),is.copy(e),rs.set(gn.x,e.y,0),ns.unproject(this.camera),He.unproject(this.camera),is.unproject(this.camera),rs.unproject(this.camera),oi.copy(ns).sub(Ne),ai.copy(He).sub(Ne),ci.copy(is).sub(Ne),oi.normalize(),ai.normalize(),ci.normalize(),oi.multiplyScalar(this.deep),ai.multiplyScalar(this.deep),ci.multiplyScalar(this.deep),oi.add(Ne),ai.add(Ne),ci.add(Ne);var s=Io.planes;s[0].setFromCoplanarPoints(Ne,ns,He),s[1].setFromCoplanarPoints(Ne,He,is),s[2].setFromCoplanarPoints(is,rs,Ne),s[3].setFromCoplanarPoints(rs,ns,Ne),s[4].setFromCoplanarPoints(He,is,rs),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);ns.set(n,r,-1),He.set(o,r,-1),is.set(o,a,-1),rs.set(n,a,-1),ni.set(n,r,1),ii.set(o,r,1),ri.set(o,a,1),_r.set(n,a,1),ns.unproject(this.camera),He.unproject(this.camera),is.unproject(this.camera),rs.unproject(this.camera),ni.unproject(this.camera),ii.unproject(this.camera),ri.unproject(this.camera),_r.unproject(this.camera);var s=Io.planes;s[0].setFromCoplanarPoints(ns,ni,ii),s[1].setFromCoplanarPoints(He,ii,ri),s[2].setFromCoplanarPoints(ri,_r,rs),s[3].setFromCoplanarPoints(_r,ni,ns),s[4].setFromCoplanarPoints(He,is,rs),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(),No.copy(e.geometry.boundingSphere.center),No.applyMatrix4(e.matrixWorld),t.containsPoint(No)&&this.collection.push(e)),e.children.length>0)for(let s=0;s0?X.copy(M[M.length-1]):X.identity())}function n(R){const F=new Bs,S=new _t,P=new _t,H=new _t;let N=!0,U=!1;const st=R.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)}U=!1}return F}function r(R){if(!(!R.sheet||!R.sheet.cssRules||!R.sheet.cssRules.length))for(let F=0;FH.trim());for(let H=0;H1){const Pc=Math.sqrt(Q);F=Pc*F,S=Pc*S,K=F*F,q=S*S}const tt=K*E+q*A,lt=(K*q-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(P)*Yt-Math.sin(P)*Ie+(U.x+rt.x)/2,Do=Math.sin(P)*Yt+Math.cos(P)*Ie+(U.y+rt.y)/2,dr=a(1,0,(J-Yt)/F,(pt-Ie)/S),Cd=a((J-Yt)/F,(pt-Ie)/S,(-J-Yt)/F,(-pt-Ie)/S)%(Math.PI*2);R.currentPath.absellipse(ti,Do,F,S,dr,dr+Cd,N===0,P)}function a(R,F,S,P){const H=R*S+F*P,N=Math.sqrt(R*R+F*F)*Math.sqrt(S*S+P*P);let U=Math.acos(Math.max(-1,Math.min(1,H/N)));return R*P-F*S<0&&(U=-U),U}function c(R){const F=b(R.getAttribute("x")||0),S=b(R.getAttribute("y")||0),P=b(R.getAttribute("rx")||R.getAttribute("ry")||0),H=b(R.getAttribute("ry")||R.getAttribute("rx")||0),N=b(R.getAttribute("width")),U=b(R.getAttribute("height")),rt=1-.551915024494,st=new Bs;return st.moveTo(F+P,S),st.lineTo(F+N-P,S),(P!==0||H!==0)&&st.bezierCurveTo(F+N-P*rt,S,F+N,S+H*rt,F+N,S+H),st.lineTo(F+N,S+U-H),(P!==0||H!==0)&&st.bezierCurveTo(F+N,S+U-H*rt,F+N-P*rt,S+U,F+N-P,S+U),st.lineTo(F+P,S+U),(P!==0||H!==0)&&st.bezierCurveTo(F+P*rt,S+U,F,S+U-H*rt,F,S+U-H),st.lineTo(F,S+H),(P!==0||H!==0)&&st.bezierCurveTo(F,S+H*rt,F+P*rt,S,F+P,S),st}function l(R){function F(N,U,rt){const st=b(U),nt=b(rt);H===0?P.moveTo(st,nt):P.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,P=new Bs;let H=0;return R.getAttribute("points").replace(S,F),P.currentPath.autoClose=!0,P}function u(R){function F(N,U,rt){const st=b(U),nt=b(rt);H===0?P.moveTo(st,nt):P.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,P=new Bs;let H=0;return R.getAttribute("points").replace(S,F),P.currentPath.autoClose=!1,P}function h(R){const F=b(R.getAttribute("cx")||0),S=b(R.getAttribute("cy")||0),P=b(R.getAttribute("r")||0),H=new Po;H.absarc(F,S,P,0,Math.PI*2);const N=new Bs;return N.subPaths.push(H),N}function d(R){const F=b(R.getAttribute("cx")||0),S=b(R.getAttribute("cy")||0),P=b(R.getAttribute("rx")||0),H=b(R.getAttribute("ry")||0),N=new Po;N.absellipse(F,S,P,H,0,Math.PI*2);const U=new Bs;return U.subPaths.push(N),U}function p(R){const F=b(R.getAttribute("x1")||0),S=b(R.getAttribute("y1")||0),P=b(R.getAttribute("x2")||0),H=b(R.getAttribute("y2")||0),N=new Bs;return N.moveTo(F,S),N.lineTo(P,H),N.currentPath.autoClose=!1,N}function _(R,F){F=Object.assign({},F);let S={};if(R.hasAttribute("class")){const U=R.getAttribute("class").split(/\s/).filter(Boolean).map(rt=>rt.trim());for(let rt=0;rt0&&F.premultiply(M[M.length-1]),X.copy(F),M.push(F),F}function y(R){const F=new _n,S=V;if(R.nodeName==="use"&&(R.hasAttribute("x")||R.hasAttribute("y"))){const P=b(R.getAttribute("x")),H=b(R.getAttribute("y"));F.translate(P,H)}if(R.hasAttribute("transform")){const P=R.getAttribute("transform").split(")");for(let H=P.length-1;H>=0;H--){const N=P[H].trim();if(N==="")continue;const U=N.indexOf("("),rt=N.length;if(U>0&&U=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]),B.identity().translate(-pt,-K),G.identity().rotate(J),Y.multiplyMatrices(G,B),B.identity().translate(pt,K),S.multiplyMatrices(B,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 T(R,F){function S(N){z.set(N.x,N.y,1).applyMatrix3(F),N.set(z.x,z.y)}const P=k(F),H=R.subPaths;for(let N=0,U=H.length;N=1||Y<0||Y>1)return null;if(M===0&&B===0){for(let j=0;j<2;j++)if(o(j===0?w:b,m,v),n.loc==s.ORIGIN){const z=j===0?w:b;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=+(x+n.t*(C-x)).toPrecision(10);return{x:z,y:X,t:n.t}}return null}else{for(let X=0;X<2;X++)if(o(X===0?w:b,m,v),n.loc==s.ORIGIN){const Z=X===0?w:b;return{x:Z.x,y:Z.y,t:n.t}}const j=+(g+G*(y-g)).toPrecision(10),z=+(x+G*(C-x)).toPrecision(10);return{x:j,y:z,t:G}}}function o(m,v,w){const b=w.x-v.x,g=w.y-v.y,y=m.x-v.x,T=m.y-v.y,k=b*T-y*g;if(m.x===v.x&&m.y===v.y){n.loc=s.ORIGIN,n.t=0;return}if(m.x===w.x&&m.y===w.y){n.loc=s.DESTINATION,n.t=1;return}if(k<-Number.EPSILON){n.loc=s.LEFT;return}if(k>Number.EPSILON){n.loc=s.RIGHT;return}if(b*y<0||g*T<0){n.loc=s.BEHIND;return}if(Math.sqrt(b*b+g*g)D.t<=O.t+Number.EPSILON&&D.t>=O.t-Number.EPSILON)===void 0&&(w.push(O),b.push(new _t(O.x,O.y)))}}return b}function c(m,v,w){const b=new _t;v.getCenter(b);const g=[];return w.forEach(y=>{y.boundingBox.containsPoint(b)&&a(m,y.points).forEach(k=>{g.push({identifier:y.identifier,isCW:y.isCW,point:k})})}),g.sort((y,T)=>y.point.x-T.point.x),g}function l(m,v,w,b,g){(g==null||g==="")&&(g="nonzero");const y=new _t;m.boundingBox.getCenter(y);const T=[new _t(w,y.y),new _t(b,y.y)],k=c(T,m.boundingBox,v);k.sort((V,B)=>V.point.x-B.point.x);const x=[],C=[];k.forEach(V=>{V.identifier===m.identifier?x.push(V):C.push(V)});const O=x[0].point.x,D=[];let M=0;for(;M0&&D[D.length-1]===C[M].identifier?D.pop():D.push(C[M].identifier),M++;if(D.push(m.identifier),g==="evenodd"){const V=D.length%2===0,B=D[D.length-2];return{identifier:m.identifier,isHole:V,for:B}}else if(g==="nonzero"){let V=!0,B=null,G=null;for(let Y=0;Y{const v=m.getPoints();let w=-999999999,b=999999999,g=-999999999,y=999999999;for(let T=0;Tw&&(w=k.y),k.yg&&(g=k.x),k.x=y&&(h=y-1),{curves:m.curves,points:v,isCW:mf.isClockWise(v),identifier:u++,boundingBox:new _f(new _t(y,b),new _t(g,w))}});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 w=new tu;w.curves=m.curves,_.filter(g=>g.isHole&&g.for===m.identifier).forEach(g=>{const y=p[g.identifier],T=new Po;T.curves=y.curves,w.holes.push(T)}),f.push(w)}}),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(ki.pointsToStrokeWithBuffers(t,e,s,n,r,o,a)===0)return null;const c=new gf;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,w=new _t,b=new _t,g=new _t,y=new _t,T=new _t,k=new _t,x=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 O=t.length;if(O<2)return 0;const D=t[0].equals(t[O-1]);let M,V=t[0],B;const G=e.strokeWidth/2,Y=1/(O-1);let j=0,z,X,Z,et,R=!1,F=0,S=c*3,P=c*2;H(t[0],t[1],l).multiplyScalar(G),m.copy(t[0]).sub(l),v.copy(t[0]).add(l),w.copy(m),b.copy(v);for(let K=1;K=n&&A.push(K[E]);return A.push(K[K.length-1]),A}}}function Vf(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:_}=It(),[f,m]=I.useState(!1),[v,w]=I.useReducer((T,{object:k,shift:x})=>k===void 0?[]:Array.isArray(k)?k:x?T.includes(k)?T.filter(C=>C!==k):[k,...T]:T[0]===k?[]:[k],[]);I.useEffect(()=>void(s==null?void 0:s(v)),[v]);const b=I.useCallback(T=>{T.stopPropagation(),w({object:o([T.object])[0],shift:t&&T.shiftKey})},[]),g=I.useCallback(T=>!f&&w({}),[f]),y=I.useRef(null);return I.useEffect(()=>{if(!i||!t)return;const T=new Lf(l,y.current),k=document.createElement("div");k.style.pointerEvents="none",k.style.border=n,k.style.backgroundColor=r,k.style.position="fixed";const x=new _t,C=new _t,O=new _t,D=_().events.enabled,M=d==null?void 0:d.enabled;let V=!1;function B(R,F){const{offsetX:S,offsetY:P}=R,{width:H,height:N}=p;F.set(S/H*2-1,-(P/N)*2+1)}function G(R){var F;d&&(d.enabled=!1),c({enabled:!1}),V=!0,(F=h.domElement.parentElement)==null||F.appendChild(k),k.style.left=`${R.clientX}px`,k.style.top=`${R.clientY}px`,k.style.width="0px",k.style.height="0px",x.x=R.clientX,x.y=R.clientY}function Y(R){O.x=Math.max(x.x,R.clientX),O.y=Math.max(x.y,R.clientY),C.x=Math.min(x.x,R.clientX),C.y=Math.min(x.y,R.clientY),k.style.left=`${C.x}px`,k.style.top=`${C.y}px`,k.style.width=`${O.x-C.x}px`,k.style.height=`${O.y-C.y}px`}function j(){if(V){var R;d&&(d.enabled=M),c({enabled:D}),V=!1,(R=k.parentElement)==null||R.removeChild(k)}}function z(R){R.shiftKey&&(G(R),B(R,T.startPoint))}let X=[];function Z(R){if(V){Y(R),B(R,T.endPoint);const F=T.select().sort(S=>S.uuid).filter(S=>S.isMesh);Vf(F,X)||(X=F,w({object:o(F)}))}}function et(R){V&&j()}return document.addEventListener("pointerdown",z,{passive:!0}),document.addEventListener("pointermove",Z,{passive:!0,capture:!0}),document.addEventListener("pointerup",et,{passive:!0}),()=>{document.removeEventListener("pointerdown",z),document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",et)}},[p.width,p.height,u,l,d,h]),I.createElement("group",Se({ref:y,onClick:b,onPointerOver:()=>m(!0),onPointerOut:()=>m(!1),onPointerMissed:g},a),I.createElement(Uf.Provider,{value:v},e))}const Ra=I.forwardRef(function({follow:t=!0,lockX:e=!1,lockY:s=!1,lockZ:n=!1,...r},o){const a=I.useRef();return Pe(({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)}),I.createElement("group",Se({ref:uo([a,o])},r))}),zc=i=>i===Object(i)&&!Array.isArray(i)&&typeof i!="function";function Qs(i,t){const e=It(n=>n.gl),s=ho(fo,zc(i)?Object.values(i):i);if(I.useLayoutEffect(()=>{t==null||t(s)},[t]),I.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(e.initTexture)},[e,s]),zc(i)){const n=Object.keys(i),r={};return n.forEach(o=>Object.assign(r,{[o]:s[n.indexOf(o)]})),r}else return s}Qs.preload=i=>ho.preload(fo,i);Qs.clear=i=>ho.clear(fo,i);const jf=I.forwardRef(function({src:t,skipFill:e,skipStrokes:s,fillMaterial:n,strokeMaterial:r,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=ho(ki,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(_=>ki.pointsToStroke(_.getPoints(),d.userData.style))}),[u,s]);return I.useEffect(()=>()=>h.forEach(d=>d&&d.map(p=>p.dispose())),[h]),I.createElement("object3D",Se({ref:l},c),I.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,p)=>{var _,f;return I.createElement(I.Fragment,{key:p},!e&&((_=d.userData)==null?void 0:_.style.fill)!==void 0&&d.userData.style.fill!=="none"&&ki.createShapes(d).map((m,v)=>I.createElement("mesh",Se({key:v},o),I.createElement("shapeGeometry",{args:[m]}),I.createElement("meshBasicMaterial",Se({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:sa,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)=>I.createElement("mesh",Se({key:v,geometry:h[p][v]},a),I.createElement("meshBasicMaterial",Se({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:sa,depthWrite:!1},r)))))})))});/*! * camera-controls * https://github.com/yomotsu/camera-controls * (c) 2017 @yomotsu * Released under the MIT License. - */const ct={LEFT:1,RIGHT:2,MIDDLE:4},W=Object.freeze({NONE:0,ROTATE:1,TRUCK:2,OFFSET:4,DOLLY:8,ZOOM:16,TOUCH_ROTATE:32,TOUCH_TRUCK:64,TOUCH_OFFSET:128,TOUCH_DOLLY:256,TOUCH_ZOOM:512,TOUCH_DOLLY_TRUCK:1024,TOUCH_DOLLY_OFFSET:2048,TOUCH_DOLLY_ROTATE:4096,TOUCH_ZOOM_TRUCK:8192,TOUCH_ZOOM_OFFSET:16384,TOUCH_ZOOM_ROTATE:32768}),yn={NONE:0,IN:1,OUT:-1};function qs(i){return i.isPerspectiveCamera}function Ts(i){return i.isOrthographicCamera}const vn=Math.PI*2,zc=Math.PI/2,su=1e-5,li=Math.PI/180;function Re(i,t,e){return Math.max(t,Math.min(e,i))}function Et(i,t=su){return Math.abs(i)0==p>u&&(p=u,e.value=(p-u)/r),p}function Bc(i,t,e,s,n=1/0,r,o){s=Math.max(1e-4,s);const a=2/s,c=a*r,l=1/(1+c+.48*c*c+.235*c*c*c);let u=t.x,h=t.y,d=t.z,p=i.x-u,_=i.y-h,f=i.z-d;const m=u,v=h,b=d,w=n*s,g=w*w,y=p*p+_*_+f*f;if(y>g){const G=Math.sqrt(y);p=p/G*w,_=_/G*w,f=f/G*w}u=i.x-p,h=i.y-_,d=i.z-f;const T=(e.x+a*p)*r,k=(e.y+a*_)*r,x=(e.z+a*f)*r;e.x=(e.x-a*T)*l,e.y=(e.y-a*k)*l,e.z=(e.z-a*x)*l,o.x=u+(p+T)*l,o.y=h+(_+k)*l,o.z=d+(f+x)*l;const C=m-i.x,O=v-i.y,I=b-i.z,M=o.x-m,V=o.y-v,B=o.z-b;return C*M+O*V+I*B>0&&(o.x=m,o.y=v,o.z=b,e.x=(o.x-m)/r,e.y=(o.y-v)/r,e.z=(o.z-b)/r),o}function Ro(i,t){t.set(0,0),i.forEach(e=>{t.x+=e.clientX,t.y+=e.clientY}),t.x/=i.length,t.y/=i.length}function Fo(i,t){return Ts(i)?(console.warn(`${t} is not supported in OrthographicCamera`),!0):!1}class qf{constructor(){this._listeners={}}addEventListener(t,e){const s=this._listeners;s[t]===void 0&&(s[t]=[]),s[t].indexOf(e)===-1&&s[t].push(e)}hasEventListener(t,e){const s=this._listeners;return s[t]!==void 0&&s[t].indexOf(e)!==-1}removeEventListener(t,e){const n=this._listeners[t];if(n!==void 0){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}}removeAllEventListeners(t){if(!t){this._listeners={};return}Array.isArray(this._listeners[t])&&(this._listeners[t].length=0)}dispatchEvent(t){const s=this._listeners[t.type];if(s!==void 0){t.target=this;const n=s.slice(0);for(let r=0,o=n.length;r{},this._enabled=!0,this._state=W.NONE,this._viewport=null,this._changedDolly=0,this._changedZoom=0,this._hasRested=!0,this._boundaryEnclosesCamera=!1,this._needsUpdate=!0,this._updatedLastTime=!1,this._elementRect=new DOMRect,this._isDragging=!1,this._dragNeedsUpdate=!0,this._activePointers=[],this._lockedPointer=null,this._interactiveArea=new DOMRect(0,0,1,1),this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._isUserControllingOffset=!1,this._isUserControllingZoom=!1,this._lastDollyDirection=yn.NONE,this._thetaVelocity={value:0},this._phiVelocity={value:0},this._radiusVelocity={value:0},this._targetVelocity=new at.Vector3,this._focalOffsetVelocity=new at.Vector3,this._zoomVelocity={value:0},this._truckInternal=(g,y,T)=>{let k,x;if(qs(this._camera)){const C=ht.copy(this._camera.position).sub(this._target),O=this._camera.getEffectiveFOV()*li,I=C.length()*Math.tan(O*.5);k=this.truckSpeed*g*I/this._elementRect.height,x=this.truckSpeed*y*I/this._elementRect.height}else if(Ts(this._camera)){const C=this._camera;k=g*(C.right-C.left)/C.zoom/this._elementRect.width,x=y*(C.top-C.bottom)/C.zoom/this._elementRect.height}else return;this.verticalDragToForward?(T?this.setFocalOffset(this._focalOffsetEnd.x+k,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(k,0,!0),this.forward(-x,!0)):T?this.setFocalOffset(this._focalOffsetEnd.x+k,this._focalOffsetEnd.y+x,this._focalOffsetEnd.z,!0):this.truck(k,x,!0)},this._rotateInternal=(g,y)=>{const T=vn*this.azimuthRotateSpeed*g/this._elementRect.height,k=vn*this.polarRotateSpeed*y/this._elementRect.height;this.rotate(T,k,!0)},this._dollyInternal=(g,y,T)=>{const k=Math.pow(.95,-g*this.dollySpeed),x=this._sphericalEnd.radius,C=this._sphericalEnd.radius*k,O=Re(C,this.minDistance,this.maxDistance),I=O-C;this.infinityDolly&&this.dollyToCursor?this._dollyToNoClamp(C,!0):this.infinityDolly&&!this.dollyToCursor?(this.dollyInFixed(I,!0),this._dollyToNoClamp(O,!0)):this._dollyToNoClamp(O,!0),this.dollyToCursor&&(this._changedDolly+=(this.infinityDolly?C:O)-x,this._dollyControlCoord.set(y,T)),this._lastDollyDirection=Math.sign(-g)},this._zoomInternal=(g,y,T)=>{const k=Math.pow(.95,g*this.dollySpeed),x=this._zoom,C=this._zoom*k;this.zoomTo(C,!0),this.dollyToCursor&&(this._changedZoom+=C-x,this._dollyControlCoord.set(y,T))},typeof at>"u"&&console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."),this._camera=t,this._yAxisUpSpace=new at.Quaternion().setFromUnitVectors(this._camera.up,xr),this._yAxisUpSpaceInverse=this._yAxisUpSpace.clone().invert(),this._state=W.NONE,this._target=new at.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new at.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=new at.Spherical().setFromVector3(ht.copy(this._camera.position).applyQuaternion(this._yAxisUpSpace)),this._sphericalEnd=this._spherical.clone(),this._lastDistance=this._spherical.radius,this._zoom=this._camera.zoom,this._zoomEnd=this._zoom,this._lastZoom=this._zoom,this._nearPlaneCorners=[new at.Vector3,new at.Vector3,new at.Vector3,new at.Vector3],this._updateNearPlaneCorners(),this._boundary=new at.Box3(new at.Vector3(-1/0,-1/0,-1/0),new at.Vector3(1/0,1/0,1/0)),this._cameraUp0=this._camera.up.clone(),this._target0=this._target.clone(),this._position0=this._camera.position.clone(),this._zoom0=this._zoom,this._focalOffset0=this._focalOffset.clone(),this._dollyControlCoord=new at.Vector2,this.mouseButtons={left:W.ROTATE,middle:W.DOLLY,right:W.TRUCK,wheel:qs(this._camera)?W.DOLLY:Ts(this._camera)?W.ZOOM:W.NONE},this.touches={one:W.TOUCH_ROTATE,two:qs(this._camera)?W.TOUCH_DOLLY_TRUCK:Ts(this._camera)?W.TOUCH_ZOOM_TRUCK:W.NONE,three:W.TOUCH_TRUCK};const s=new at.Vector2,n=new at.Vector2,r=new at.Vector2,o=g=>{if(!this._enabled||!this._domElement)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const k=this._domElement.getBoundingClientRect(),x=g.clientX/k.width,C=g.clientY/k.height;if(xthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=g.pointerType!=="mouse"?null:(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.MIDDLE?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.RIGHT?ct.RIGHT:null;if(y!==null){const k=this._findPointerByMouseButton(y);k&&this._disposePointer(k)}if((g.buttons&ct.LEFT)===ct.LEFT&&this._lockedPointer)return;const T={pointerId:g.pointerId,clientX:g.clientX,clientY:g.clientY,deltaX:0,deltaY:0,mouseButton:y};this._activePointers.push(T),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),this._isDragging=!0,f(g)},a=g=>{if(!this._enabled||!this._domElement||this._lockedPointer)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const k=this._domElement.getBoundingClientRect(),x=g.clientX/k.width,C=g.clientY/k.height;if(xthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.MIDDLE?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.RIGHT?ct.RIGHT:null;if(y!==null){const k=this._findPointerByMouseButton(y);k&&this._disposePointer(k)}const T={pointerId:1,clientX:g.clientX,clientY:g.clientY,deltaX:0,deltaY:0,mouseButton:(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.LEFT?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.LEFT?ct.RIGHT:null};this._activePointers.push(T),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.addEventListener("mousemove",l),this._domElement.ownerDocument.addEventListener("mouseup",h),this._isDragging=!0,f(g)},c=g=>{g.cancelable&&g.preventDefault();const y=g.pointerId,T=this._lockedPointer||this._findPointerById(y);if(T){if(T.clientX=g.clientX,T.clientY=g.clientY,T.deltaX=g.movementX,T.deltaY=g.movementY,this._state=0,g.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else(!this._isDragging&&this._lockedPointer||this._isDragging&&(g.buttons&ct.LEFT)===ct.LEFT)&&(this._state=this._state|this.mouseButtons.left),this._isDragging&&(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),this._isDragging&&(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right);m()}},l=g=>{const y=this._lockedPointer||this._findPointerById(1);y&&(y.clientX=g.clientX,y.clientY=g.clientY,y.deltaX=g.movementX,y.deltaY=g.movementY,this._state=0,(this._lockedPointer||(g.buttons&ct.LEFT)===ct.LEFT)&&(this._state=this._state|this.mouseButtons.left),(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right),m())},u=g=>{const y=this._findPointerById(g.pointerId);if(!(y&&y===this._lockedPointer)){if(y&&this._disposePointer(y),g.pointerType==="touch")switch(this._activePointers.length){case 0:this._state=W.NONE;break;case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else this._state=W.NONE;v()}},h=()=>{const g=this._findPointerById(1);g&&g===this._lockedPointer||(g&&this._disposePointer(g),this._state=W.NONE,v())};let d=-1;const p=g=>{if(!this._domElement||!this._enabled||this.mouseButtons.wheel===W.NONE)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const C=this._domElement.getBoundingClientRect(),O=g.clientX/C.width,I=g.clientY/C.height;if(Othis._interactiveArea.right||Ithis._interactiveArea.bottom)return}if(g.preventDefault(),this.dollyToCursor||this.mouseButtons.wheel===W.ROTATE||this.mouseButtons.wheel===W.TRUCK){const C=performance.now();d-C<1e3&&this._getClientRect(this._elementRect),d=C}const y=Hf?-1:-3,T=g.deltaMode===1?g.deltaY/y:g.deltaY/(y*10),k=this.dollyToCursor?(g.clientX-this._elementRect.x)/this._elementRect.width*2-1:0,x=this.dollyToCursor?(g.clientY-this._elementRect.y)/this._elementRect.height*-2+1:0;switch(this.mouseButtons.wheel){case W.ROTATE:{this._rotateInternal(g.deltaX,g.deltaY),this._isUserControllingRotate=!0;break}case W.TRUCK:{this._truckInternal(g.deltaX,g.deltaY,!1),this._isUserControllingTruck=!0;break}case W.OFFSET:{this._truckInternal(g.deltaX,g.deltaY,!0),this._isUserControllingOffset=!0;break}case W.DOLLY:{this._dollyInternal(-T,k,x),this._isUserControllingDolly=!0;break}case W.ZOOM:{this._zoomInternal(-T,k,x),this._isUserControllingZoom=!0;break}}this.dispatchEvent({type:"control"})},_=g=>{if(!(!this._domElement||!this._enabled)){if(this.mouseButtons.right===na.ACTION.NONE){const y=g instanceof PointerEvent?g.pointerId:(g instanceof MouseEvent,0),T=this._findPointerById(y);T&&this._disposePointer(T),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h);return}g.preventDefault()}},f=g=>{if(!this._enabled)return;if(Ro(this._activePointers,ae),this._getClientRect(this._elementRect),s.copy(ae),n.copy(ae),this._activePointers.length>=2){const T=ae.x-this._activePointers[1].clientX,k=ae.y-this._activePointers[1].clientY,x=Math.sqrt(T*T+k*k);r.set(0,x);const C=(this._activePointers[0].clientX+this._activePointers[1].clientX)*.5,O=(this._activePointers[0].clientY+this._activePointers[1].clientY)*.5;n.set(C,O)}if(this._state=0,!g)this._lockedPointer&&(this._state=this._state|this.mouseButtons.left);else if("pointerType"in g&&g.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else!this._lockedPointer&&(g.buttons&ct.LEFT)===ct.LEFT&&(this._state=this._state|this.mouseButtons.left),(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right);((this._state&W.ROTATE)===W.ROTATE||(this._state&W.TOUCH_ROTATE)===W.TOUCH_ROTATE||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE||(this._state&W.TOUCH_ZOOM_ROTATE)===W.TOUCH_ZOOM_ROTATE)&&(this._sphericalEnd.theta=this._spherical.theta,this._sphericalEnd.phi=this._spherical.phi,this._thetaVelocity.value=0,this._phiVelocity.value=0),((this._state&W.TRUCK)===W.TRUCK||(this._state&W.TOUCH_TRUCK)===W.TOUCH_TRUCK||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_ZOOM_TRUCK)===W.TOUCH_ZOOM_TRUCK)&&(this._targetEnd.copy(this._target),this._targetVelocity.set(0,0,0)),((this._state&W.DOLLY)===W.DOLLY||(this._state&W.TOUCH_DOLLY)===W.TOUCH_DOLLY||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE)&&(this._sphericalEnd.radius=this._spherical.radius,this._radiusVelocity.value=0),((this._state&W.ZOOM)===W.ZOOM||(this._state&W.TOUCH_ZOOM)===W.TOUCH_ZOOM||(this._state&W.TOUCH_ZOOM_TRUCK)===W.TOUCH_ZOOM_TRUCK||(this._state&W.TOUCH_ZOOM_OFFSET)===W.TOUCH_ZOOM_OFFSET||(this._state&W.TOUCH_ZOOM_ROTATE)===W.TOUCH_ZOOM_ROTATE)&&(this._zoomEnd=this._zoom,this._zoomVelocity.value=0),((this._state&W.OFFSET)===W.OFFSET||(this._state&W.TOUCH_OFFSET)===W.TOUCH_OFFSET||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET||(this._state&W.TOUCH_ZOOM_OFFSET)===W.TOUCH_ZOOM_OFFSET)&&(this._focalOffsetEnd.copy(this._focalOffset),this._focalOffsetVelocity.set(0,0,0)),this.dispatchEvent({type:"controlstart"})},m=()=>{if(!this._enabled||!this._dragNeedsUpdate)return;this._dragNeedsUpdate=!1,Ro(this._activePointers,ae);const y=this._domElement&&document.pointerLockElement===this._domElement?this._lockedPointer||this._activePointers[0]:null,T=y?-y.deltaX:n.x-ae.x,k=y?-y.deltaY:n.y-ae.y;if(n.copy(ae),((this._state&W.ROTATE)===W.ROTATE||(this._state&W.TOUCH_ROTATE)===W.TOUCH_ROTATE||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE||(this._state&W.TOUCH_ZOOM_ROTATE)===W.TOUCH_ZOOM_ROTATE)&&(this._rotateInternal(T,k),this._isUserControllingRotate=!0),(this._state&W.DOLLY)===W.DOLLY||(this._state&W.ZOOM)===W.ZOOM){const x=this.dollyToCursor?(s.x-this._elementRect.x)/this._elementRect.width*2-1:0,C=this.dollyToCursor?(s.y-this._elementRect.y)/this._elementRect.height*-2+1:0,O=this.dollyDragInverted?-1:1;(this._state&W.DOLLY)===W.DOLLY?(this._dollyInternal(O*k*vr,x,C),this._isUserControllingDolly=!0):(this._zoomInternal(O*k*vr,x,C),this._isUserControllingZoom=!0)}if((this._state&W.TOUCH_DOLLY)===W.TOUCH_DOLLY||(this._state&W.TOUCH_ZOOM)===W.TOUCH_ZOOM||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_ZOOM_TRUCK)===W.TOUCH_ZOOM_TRUCK||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET||(this._state&W.TOUCH_ZOOM_OFFSET)===W.TOUCH_ZOOM_OFFSET||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE||(this._state&W.TOUCH_ZOOM_ROTATE)===W.TOUCH_ZOOM_ROTATE){const x=ae.x-this._activePointers[1].clientX,C=ae.y-this._activePointers[1].clientY,O=Math.sqrt(x*x+C*C),I=r.y-O;r.set(0,O);const M=this.dollyToCursor?(n.x-this._elementRect.x)/this._elementRect.width*2-1:0,V=this.dollyToCursor?(n.y-this._elementRect.y)/this._elementRect.height*-2+1:0;(this._state&W.TOUCH_DOLLY)===W.TOUCH_DOLLY||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET?(this._dollyInternal(I*vr,M,V),this._isUserControllingDolly=!0):(this._zoomInternal(I*vr,M,V),this._isUserControllingZoom=!0)}((this._state&W.TRUCK)===W.TRUCK||(this._state&W.TOUCH_TRUCK)===W.TOUCH_TRUCK||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_ZOOM_TRUCK)===W.TOUCH_ZOOM_TRUCK)&&(this._truckInternal(T,k,!1),this._isUserControllingTruck=!0),((this._state&W.OFFSET)===W.OFFSET||(this._state&W.TOUCH_OFFSET)===W.TOUCH_OFFSET||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET||(this._state&W.TOUCH_ZOOM_OFFSET)===W.TOUCH_ZOOM_OFFSET)&&(this._truckInternal(T,k,!0),this._isUserControllingOffset=!0),this.dispatchEvent({type:"control"})},v=()=>{Ro(this._activePointers,ae),n.copy(ae),this._dragNeedsUpdate=!1,(this._activePointers.length===0||this._activePointers.length===1&&this._activePointers[0]===this._lockedPointer)&&(this._isDragging=!1),this._activePointers.length===0&&this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this.dispatchEvent({type:"controlend"}))};this.lockPointer=()=>{!this._enabled||!this._domElement||(this.cancel(),this._lockedPointer={pointerId:-1,clientX:0,clientY:0,deltaX:0,deltaY:0,mouseButton:null},this._activePointers.push(this._lockedPointer),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.requestPointerLock(),this._domElement.ownerDocument.addEventListener("pointerlockchange",b),this._domElement.ownerDocument.addEventListener("pointerlockerror",w),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),f())},this.unlockPointer=()=>{this._lockedPointer!==null&&(this._disposePointer(this._lockedPointer),this._lockedPointer=null),document.exitPointerLock(),this.cancel(),this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointerlockchange",b),this._domElement.ownerDocument.removeEventListener("pointerlockerror",w))};const b=()=>{this._domElement&&this._domElement.ownerDocument.pointerLockElement===this._domElement||this.unlockPointer()},w=()=>{this.unlockPointer()};this._addAllEventListeners=g=>{this._domElement=g,this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none",this._domElement.addEventListener("pointerdown",o),Yf&&this._domElement.addEventListener("mousedown",a),this._domElement.addEventListener("pointercancel",u),this._domElement.addEventListener("wheel",p,{passive:!1}),this._domElement.addEventListener("contextmenu",_)},this._removeAllEventListeners=()=>{this._domElement&&(this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect="",this._domElement.removeEventListener("pointerdown",o),this._domElement.removeEventListener("mousedown",a),this._domElement.removeEventListener("pointercancel",u),this._domElement.removeEventListener("wheel",p,{passive:!1}),this._domElement.removeEventListener("contextmenu",_),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.removeEventListener("pointerlockchange",b),this._domElement.ownerDocument.removeEventListener("pointerlockerror",w))},this.cancel=()=>{this._state!==W.NONE&&(this._state=W.NONE,this._activePointers.length=0,v())},e&&this.connect(e),this.update(0)}get camera(){return this._camera}set camera(t){this._camera=t,this.updateCameraUp(),this._camera.updateProjectionMatrix(),this._updateNearPlaneCorners(),this._needsUpdate=!0}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._domElement&&(t?(this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none"):(this.cancel(),this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect=""))}get active(){return!this._hasRested}get currentAction(){return this._state}get distance(){return this._spherical.radius}set distance(t){this._spherical.radius===t&&this._sphericalEnd.radius===t||(this._spherical.radius=t,this._sphericalEnd.radius=t,this._needsUpdate=!0)}get azimuthAngle(){return this._spherical.theta}set azimuthAngle(t){this._spherical.theta===t&&this._sphericalEnd.theta===t||(this._spherical.theta=t,this._sphericalEnd.theta=t,this._needsUpdate=!0)}get polarAngle(){return this._spherical.phi}set polarAngle(t){this._spherical.phi===t&&this._sphericalEnd.phi===t||(this._spherical.phi=t,this._sphericalEnd.phi=t,this._needsUpdate=!0)}get boundaryEnclosesCamera(){return this._boundaryEnclosesCamera}set boundaryEnclosesCamera(t){this._boundaryEnclosesCamera=t,this._needsUpdate=!0}set interactiveArea(t){this._interactiveArea.width=Re(t.width,0,1),this._interactiveArea.height=Re(t.height,0,1),this._interactiveArea.x=Re(t.x,0,1-this._interactiveArea.width),this._interactiveArea.y=Re(t.y,0,1-this._interactiveArea.height)}addEventListener(t,e){super.addEventListener(t,e)}removeEventListener(t,e){super.removeEventListener(t,e)}rotate(t,e,s=!1){return this.rotateTo(this._sphericalEnd.theta+t,this._sphericalEnd.phi+e,s)}rotateAzimuthTo(t,e=!1){return this.rotateTo(t,this._sphericalEnd.phi,e)}rotatePolarTo(t,e=!1){return this.rotateTo(this._sphericalEnd.theta,t,e)}rotateTo(t,e,s=!1){this._isUserControllingRotate=!1;const n=Re(t,this.minAzimuthAngle,this.maxAzimuthAngle),r=Re(e,this.minPolarAngle,this.maxPolarAngle);this._sphericalEnd.theta=n,this._sphericalEnd.phi=r,this._sphericalEnd.makeSafe(),this._needsUpdate=!0,s||(this._spherical.theta=this._sphericalEnd.theta,this._spherical.phi=this._sphericalEnd.phi);const o=!s||gt(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold);return this._createOnRestPromise(o)}dolly(t,e=!1){return this.dollyTo(this._sphericalEnd.radius-t,e)}dollyTo(t,e=!1){return this._isUserControllingDolly=!1,this._lastDollyDirection=yn.NONE,this._changedDolly=0,this._dollyToNoClamp(Re(t,this.minDistance,this.maxDistance),e)}_dollyToNoClamp(t,e=!1){const s=this._sphericalEnd.radius;if(this.colliderMeshes.length>=1){const o=this._collisionTest(),a=gt(o,this._spherical.radius);if(!(s>t)&&a)return Promise.resolve();this._sphericalEnd.radius=Math.min(t,o)}else this._sphericalEnd.radius=t;this._needsUpdate=!0,e||(this._spherical.radius=this._sphericalEnd.radius);const r=!e||gt(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(r)}dollyInFixed(t,e=!1){this._targetEnd.add(this._getCameraDirection(di).multiplyScalar(t)),e||this._target.copy(this._targetEnd);const s=!e||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(s)}zoom(t,e=!1){return this.zoomTo(this._zoomEnd+t,e)}zoomTo(t,e=!1){this._isUserControllingZoom=!1,this._zoomEnd=Re(t,this.minZoom,this.maxZoom),this._needsUpdate=!0,e||(this._zoom=this._zoomEnd);const s=!e||gt(this._zoom,this._zoomEnd,this.restThreshold);return this._changedZoom=0,this._createOnRestPromise(s)}pan(t,e,s=!1){return console.warn("`pan` has been renamed to `truck`"),this.truck(t,e,s)}truck(t,e,s=!1){this._camera.updateMatrix(),Ye.setFromMatrixColumn(this._camera.matrix,0),Ge.setFromMatrixColumn(this._camera.matrix,1),Ye.multiplyScalar(t),Ge.multiplyScalar(-e);const n=ht.copy(Ye).add(Ge),r=mt.copy(this._targetEnd).add(n);return this.moveTo(r.x,r.y,r.z,s)}forward(t,e=!1){ht.setFromMatrixColumn(this._camera.matrix,0),ht.crossVectors(this._camera.up,ht),ht.multiplyScalar(t);const s=mt.copy(this._targetEnd).add(ht);return this.moveTo(s.x,s.y,s.z,e)}elevate(t,e=!1){return ht.copy(this._camera.up).multiplyScalar(t),this.moveTo(this._targetEnd.x+ht.x,this._targetEnd.y+ht.y,this._targetEnd.z+ht.z,e)}moveTo(t,e,s,n=!1){this._isUserControllingTruck=!1;const r=ht.set(t,e,s).sub(this._targetEnd);this._encloseToBoundary(this._targetEnd,r,this.boundaryFriction),this._needsUpdate=!0,n||this._target.copy(this._targetEnd);const o=!n||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(o)}lookInDirectionOf(t,e,s,n=!1){const a=ht.set(t,e,s).sub(this._targetEnd).normalize().multiplyScalar(-this._sphericalEnd.radius);return this.setPosition(a.x,a.y,a.z,n)}fitToBox(t,e,{cover:s=!1,paddingLeft:n=0,paddingRight:r=0,paddingBottom:o=0,paddingTop:a=0}={}){const c=[],l=t.isBox3?kn.copy(t):kn.setFromObject(t);l.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const u=jc(this._sphericalEnd.theta,zc),h=jc(this._sphericalEnd.phi,zc);c.push(this.rotateTo(u,h,e));const d=ht.setFromSpherical(this._sphericalEnd).normalize(),p=Gc.setFromUnitVectors(d,Lo),_=gt(Math.abs(d.y),1);_&&p.multiply(Uo.setFromAxisAngle(xr,u)),p.multiply(this._yAxisUpSpaceInverse);const f=Yc.makeEmpty();mt.copy(l.min).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setX(l.max.x).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setY(l.max.y).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setZ(l.min.z).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setZ(l.max.z).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setY(l.min.y).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setX(l.min.x).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).applyQuaternion(p),f.expandByPoint(mt),f.min.x-=n,f.min.y-=o,f.max.x+=r,f.max.y+=a,p.setFromUnitVectors(Lo,d),_&&p.premultiply(Uo.invert()),p.premultiply(this._yAxisUpSpace);const m=f.getSize(ht),v=f.getCenter(mt).applyQuaternion(p);if(qs(this._camera)){const b=this.getDistanceToFitBox(m.x,m.y,m.z,s);c.push(this.moveTo(v.x,v.y,v.z,e)),c.push(this.dollyTo(b,e)),c.push(this.setFocalOffset(0,0,0,e))}else if(Ts(this._camera)){const b=this._camera,w=b.right-b.left,g=b.top-b.bottom,y=s?Math.max(w/m.x,g/m.y):Math.min(w/m.x,g/m.y);c.push(this.moveTo(v.x,v.y,v.z,e)),c.push(this.zoomTo(y,e)),c.push(this.setFocalOffset(0,0,0,e))}return Promise.all(c)}fitToSphere(t,e){const s=[],r=t instanceof at.Sphere?Vo.copy(t):na.createBoundingSphere(t,Vo);if(s.push(this.moveTo(r.center.x,r.center.y,r.center.z,e)),qs(this._camera)){const o=this.getDistanceToFitSphere(r.radius);s.push(this.dollyTo(o,e))}else if(Ts(this._camera)){const o=this._camera.right-this._camera.left,a=this._camera.top-this._camera.bottom,c=2*r.radius,l=Math.min(o/c,a/c);s.push(this.zoomTo(l,e))}return s.push(this.setFocalOffset(0,0,0,e)),Promise.all(s)}setLookAt(t,e,s,n,r,o,a=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=yn.NONE,this._changedDolly=0;const c=mt.set(n,r,o),l=ht.set(t,e,s);this._targetEnd.copy(c),this._sphericalEnd.setFromVector3(l.sub(c).applyQuaternion(this._yAxisUpSpace)),this.normalizeRotations(),this._needsUpdate=!0,a||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const u=!a||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold)&>(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&>(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(u)}lerpLookAt(t,e,s,n,r,o,a,c,l,u,h,d,p,_=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=yn.NONE,this._changedDolly=0;const f=ht.set(n,r,o),m=mt.set(t,e,s);we.setFromVector3(m.sub(f).applyQuaternion(this._yAxisUpSpace));const v=xn.set(u,h,d),b=mt.set(a,c,l);fi.setFromVector3(b.sub(v).applyQuaternion(this._yAxisUpSpace)),this._targetEnd.copy(f.lerp(v,p));const w=fi.theta-we.theta,g=fi.phi-we.phi,y=fi.radius-we.radius;this._sphericalEnd.set(we.radius+y*p,we.phi+g*p,we.theta+w*p),this.normalizeRotations(),this._needsUpdate=!0,_||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const T=!_||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold)&>(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&>(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(T)}setPosition(t,e,s,n=!1){return this.setLookAt(t,e,s,this._targetEnd.x,this._targetEnd.y,this._targetEnd.z,n)}setTarget(t,e,s,n=!1){const r=this.getPosition(ht),o=this.setLookAt(r.x,r.y,r.z,t,e,s,n);return this._sphericalEnd.phi=Re(this._sphericalEnd.phi,this.minPolarAngle,this.maxPolarAngle),o}setFocalOffset(t,e,s,n=!1){this._isUserControllingOffset=!1,this._focalOffsetEnd.set(t,e,s),this._needsUpdate=!0,n||this._focalOffset.copy(this._focalOffsetEnd);const r=!n||gt(this._focalOffset.x,this._focalOffsetEnd.x,this.restThreshold)&>(this._focalOffset.y,this._focalOffsetEnd.y,this.restThreshold)&>(this._focalOffset.z,this._focalOffsetEnd.z,this.restThreshold);return this._createOnRestPromise(r)}setOrbitPoint(t,e,s){this._camera.updateMatrixWorld(),Ye.setFromMatrixColumn(this._camera.matrixWorldInverse,0),Ge.setFromMatrixColumn(this._camera.matrixWorldInverse,1),Ws.setFromMatrixColumn(this._camera.matrixWorldInverse,2);const n=ht.set(t,e,s),r=n.distanceTo(this._camera.position),o=n.sub(this._camera.position);Ye.multiplyScalar(o.x),Ge.multiplyScalar(o.y),Ws.multiplyScalar(o.z),ht.copy(Ye).add(Ge).add(Ws),ht.z=ht.z+r,this.dollyTo(r,!1),this.setFocalOffset(-ht.x,ht.y,-ht.z,!1),this.moveTo(t,e,s,!1)}setBoundary(t){if(!t){this._boundary.min.set(-1/0,-1/0,-1/0),this._boundary.max.set(1/0,1/0,1/0),this._needsUpdate=!0;return}this._boundary.copy(t),this._boundary.clampPoint(this._targetEnd,this._targetEnd),this._needsUpdate=!0}setViewport(t,e,s,n){if(t===null){this._viewport=null;return}this._viewport=this._viewport||new at.Vector4,typeof t=="number"?this._viewport.set(t,e,s,n):this._viewport.copy(t)}getDistanceToFitBox(t,e,s,n=!1){if(Fo(this._camera,"getDistanceToFitBox"))return this._spherical.radius;const r=t/e,o=this._camera.getEffectiveFOV()*li,a=this._camera.aspect;return((n?r>a:re.pointerId===t)}_findPointerByMouseButton(t){return this._activePointers.find(e=>e.mouseButton===t)}_disposePointer(t){this._activePointers.splice(this._activePointers.indexOf(t),1)}_encloseToBoundary(t,e,s){const n=e.lengthSq();if(n===0)return t;const r=mt.copy(e).add(t),a=this._boundary.clampPoint(r,xn).sub(r),c=a.lengthSq();if(c===0)return t.add(e);if(c===n)return t;if(s===0)return t.add(e).add(a);{const l=1+s*c/e.dot(a);return t.add(mt.copy(e).multiplyScalar(l)).add(a.multiplyScalar(1-s))}}_updateNearPlaneCorners(){if(qs(this._camera)){const t=this._camera,e=t.near,s=t.getEffectiveFOV()*li,n=Math.tan(s*.5)*e,r=n*t.aspect;this._nearPlaneCorners[0].set(-r,-n,0),this._nearPlaneCorners[1].set(r,-n,0),this._nearPlaneCorners[2].set(r,n,0),this._nearPlaneCorners[3].set(-r,n,0)}else if(Ts(this._camera)){const t=this._camera,e=1/t.zoom,s=t.left*e,n=t.right*e,r=t.top*e,o=t.bottom*e;this._nearPlaneCorners[0].set(s,r,0),this._nearPlaneCorners[1].set(n,r,0),this._nearPlaneCorners[2].set(n,o,0),this._nearPlaneCorners[3].set(s,o,0)}}_collisionTest(){let t=1/0;if(!(this.colliderMeshes.length>=1)||Fo(this._camera,"_collisionTest"))return t;const s=this._getTargetDirection(di);zo.lookAt(qc,s,this._camera.up);for(let n=0;n<4;n++){const r=mt.copy(this._nearPlaneCorners[n]);r.applyMatrix4(zo);const o=xn.addVectors(this._target,r);kr.set(o,s),kr.far=this._spherical.radius+1;const a=kr.intersectObjects(this.colliderMeshes);a.length!==0&&a[0].distance{const s=()=>{this.removeEventListener("rest",s),e()};this.addEventListener("rest",s)}))}_addAllEventListeners(t){}_removeAllEventListeners(){}get dampingFactor(){return console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead."),0}set dampingFactor(t){console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead.")}get draggingDampingFactor(){return console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead."),0}set draggingDampingFactor(t){console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.")}static createBoundingSphere(t,e=new at.Sphere){const s=e,n=s.center;kn.makeEmpty(),t.traverseVisible(o=>{o.isMesh&&kn.expandByObject(o)}),kn.getCenter(n);let r=0;return t.traverseVisible(o=>{if(!o.isMesh)return;const a=o,c=a.geometry.clone();c.applyMatrix4(a.matrixWorld);const u=c.attributes.position;for(let h=0,d=u.count;h{P.useMemo(()=>{jo.install({THREE:vf}),Da({CameraControlsImpl:jo})},[]);const{camera:e,domElement:s,makeDefault:n,onStart:r,onEnd:o,onChange:a,regress:c,...l}=i,u=It(y=>y.camera),h=It(y=>y.gl),d=It(y=>y.invalidate),p=It(y=>y.events),_=It(y=>y.setEvents),f=It(y=>y.set),m=It(y=>y.get),v=It(y=>y.performance),b=e||u,w=s||p.connected||h.domElement,g=P.useMemo(()=>new jo(b),[b]);return Pe((y,T)=>{g.enabled&&g.update(T)},-1),P.useEffect(()=>(g.connect(w),()=>void g.disconnect()),[w,g]),P.useEffect(()=>{const y=x=>{d(),c&&v.regress(),a&&a(x)},T=x=>{r&&r(x)},k=x=>{o&&o(x)};return g.addEventListener("update",y),g.addEventListener("controlstart",T),g.addEventListener("controlend",k),()=>{g.removeEventListener("update",y),g.removeEventListener("controlstart",T),g.removeEventListener("controlend",k)}},[g,r,o,d,_,c,a]),P.useEffect(()=>{if(n){const y=m().controls;return f({controls:g}),()=>f({controls:y})}},[n,g]),P.createElement("primitive",Se({ref:t,object:g},l))});ei.func.isRequired,ei.arrayOf(ei.oneOfType([ei.element,ei.func])).isRequired;const $c=new sr,Zc=new sr,Tr=[],pi=new tu;class $f extends kf{constructor(){super(),this.color=new Na("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var t;return(t=this.instance.current)==null?void 0:t.geometry}raycast(t,e){const s=this.instance.current;if(!s||!s.geometry||!s.material)return;pi.geometry=s.geometry;const n=s.matrixWorld,r=s.userData.instances.indexOf(this.instanceKey);if(!(r===-1||r>s.count)){s.getMatrixAt(r,$c),Zc.multiplyMatrices(n,$c),pi.matrixWorld=Zc,s.material instanceof Tf?pi.material.side=s.material.side:pi.material.side=s.material[0].side,pi.raycast(t,Tr);for(let o=0,a=Tr.length;o{P.useMemo(()=>Da({PositionMesh:$f}),[]);const n=P.useRef(),{subscribe:r,getParent:o}=P.useContext(i||iu);return P.useLayoutEffect(()=>r(n),[]),P.createElement("positionMesh",Se({instance:o(),instanceKey:n,ref:ho([s,n])},e),t)}),Xf=P.forwardRef(({children:i,range:t,limit:e=1e3,frames:s=1/0,...n},r)=>{const[{context:o,instance:a}]=P.useState(()=>{const m=P.createContext(null);return{context:m,instance:P.forwardRef((v,b)=>P.createElement(ru,Se({context:m},v,{ref:b})))}}),c=P.useRef(null),[l,u]=P.useState([]),[[h,d]]=P.useState(()=>{const m=new Float32Array(e*16);for(let v=0;v1))]});P.useEffect(()=>{c.current.instanceMatrix.needsUpdate=!0});let p=0,_=0;Pe(()=>{if(s===1/0||p({getParent:()=>c,subscribe:m=>(u(v=>[...v,m]),()=>u(v=>v.filter(b=>b.current!==m.current)))}),[]);return P.createElement("instancedMesh",Se({userData:{instances:l},matrixAutoUpdate:!1,ref:ho([r,c]),args:[null,null,0],raycast:()=>null},n),P.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:Rc}),P.createElement("instancedBufferAttribute",{attach:"instanceColor",count:d.length/3,array:d,itemSize:3,usage:Rc}),typeof i=="function"?P.createElement(o.Provider,{value:f},i(a)):P.createElement(iu.Provider,{value:f},i))}),ou=P.createContext(null),Qf=P.forwardRef((i,t)=>{P.useMemo(()=>Da({SegmentObject:Kf}),[]);const{limit:e=1e3,lineWidth:s=1,children:n,...r}=i,[o,a]=P.useState([]),[c]=P.useState(()=>new Fd),[l]=P.useState(()=>new Ld),[u]=P.useState(()=>new Vd),[h]=P.useState(()=>new _t(512,512)),[d]=P.useState(()=>Array(e*6).fill(0)),[p]=P.useState(()=>Array(e*6).fill(0)),_=P.useMemo(()=>({subscribe:f=>(a(m=>[...m,f]),()=>a(m=>m.filter(v=>v.current!==f.current)))}),[]);return Pe(()=>{for(let m=0;mi instanceof rt?i:new rt(...typeof i=="number"?[i,i,i]:i),Jf=P.forwardRef(({color:i,start:t,end:e},s)=>{const n=P.useContext(ou);if(!n)throw"Segment must used inside Segments component.";const r=P.useRef(null);return P.useLayoutEffect(()=>n.subscribe(r),[]),P.createElement("segmentObject",{ref:ho([r,s]),color:i,start:el(t),end:el(e)})});function t0({all:i,scene:t,camera:e}){const s=It(({gl:o})=>o),n=It(({camera:o})=>o),r=It(({scene:o})=>o);return P.useLayoutEffect(()=>{const o=[];i&&(t||r).traverse(l=>{l.visible===!1&&(o.push(l),l.visible=!0)}),s.compile(t||r,e||n);const a=new wf(128);new bf(.01,1e5,a).update(s,t||r),a.dispose(),o.forEach(l=>l.visible=!1)},[]),null}function e0({pixelated:i}){const t=It(o=>o.gl),e=It(o=>o.internal.active),s=It(o=>o.performance.current),n=It(o=>o.viewport.initialDpr),r=It(o=>o.setDpr);return P.useEffect(()=>{const o=t.domElement;return()=>{e&&r(n),i&&o&&(o.style.imageRendering="auto")}},[]),P.useEffect(()=>{r(s*n),i&&t.domElement&&(t.domElement.style.imageRendering=s===1?"auto":"pixelated")},[s]),null}function s0(){const i=It(s=>s.get),t=It(s=>s.setEvents),e=It(s=>s.performance.current);return P.useEffect(()=>{const s=i().events.enabled;return()=>t({enabled:s})},[]),P.useEffect(()=>t({enabled:e===1}),[e]),null}const n0=P.createContext(null);function i0({children:i,enabled:t=!0}){const[e,s]=P.useState([]),n=P.useMemo(()=>({selected:e,select:s,enabled:t}),[e,s,t]);return L.jsx(n0.Provider,{value:n,children:i})}const r0={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Es=Hl(i=>({...r0,setIsUserDragging:t=>i({isUserDragging:t}),setIsUserScrolling:t=>i({isUserScrolling:t}),setUserMovedCamera:t=>i({userMovedCamera:t}),setIsUserScrollingOnHtmlPanel:t=>i({isUserScrollingOnHtmlPanel:t})})),o0=()=>{const[i,t]=P.useState(""),e=P.useRef(null),{fetchData:s,setAbortRequests:n,seedQuestions:r}=Vs(g=>g),[o]=Gl(g=>[g.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=tr(g=>({setUniverseQuestionIsOpen:g.setUniverseQuestionIsOpen,setSidebarOpen:g.setSidebarOpen,setShowCollapseButton:g.setShowCollapseButton})),u=Sd(g=>g.resetAiSummaryAnswer),[h,d]=P.useState([]);P.useEffect(()=>{r&&d(b(r).slice(0,4))},[r]),P.useEffect(()=>{e.current&&e.current.focus()},[]);const p=async g=>{g&&(u(),a(),c(!0),l(!0)),await s(o,n,g)},_=!!i.trim().length,f=async g=>{g.keyCode===13&&g.shiftKey===!1&&_&&(g.preventDefault(),p(i))},m=async g=>{t(g),await p(g)},v=()=>{a(),c(!0),l(!0)},b=g=>{const y=[...g];let T=y.length-1;for(;T>0;){const k=Math.floor(Math.random()*(T+1));[y[T],y[k]]=[y[k],y[T]],T-=1}return y},w=!!i&&i.trim().length>0;return L.jsxs(l0,{children:["Ideas have shapes",L.jsxs(c0,{onKeyDown:f,py:12,tabIndex:-1,children:[L.jsx(a0,{ref:e,onChange:g=>t(g.target.value),placeholder:"What do you want to know?",value:i}),L.jsx(u0,{color:"secondary",disabled:!w,onClick:()=>p(i),variant:"contained",children:w?L.jsxs(L.Fragment,{children:["Search ",L.jsx(Pc,{})]}):L.jsx(Pc,{})})]}),h.length>0&&L.jsx(d0,{children:h.map(g=>L.jsxs(f0,{onClick:()=>m(g),children:[L.jsx(Gd,{}),g]},g))}),L.jsx(h0,{"data-testid":"explore-graph-btn",onClick:v,startIcon:L.jsx($d,{}),children:"Explore Graph"})]})},a0=Ut(df).attrs({maxRows:3})` + */const ct={LEFT:1,RIGHT:2,MIDDLE:4},W=Object.freeze({NONE:0,ROTATE:1,TRUCK:2,OFFSET:4,DOLLY:8,ZOOM:16,TOUCH_ROTATE:32,TOUCH_TRUCK:64,TOUCH_OFFSET:128,TOUCH_DOLLY:256,TOUCH_ZOOM:512,TOUCH_DOLLY_TRUCK:1024,TOUCH_DOLLY_OFFSET:2048,TOUCH_DOLLY_ROTATE:4096,TOUCH_ZOOM_TRUCK:8192,TOUCH_ZOOM_OFFSET:16384,TOUCH_ZOOM_ROTATE:32768}),yn={NONE:0,IN:1,OUT:-1};function qs(i){return i.isPerspectiveCamera}function Ts(i){return i.isOrthographicCamera}const vn=Math.PI*2,jc=Math.PI/2,su=1e-5,li=Math.PI/180;function Re(i,t,e){return Math.max(t,Math.min(e,i))}function Et(i,t=su){return Math.abs(i)0==p>u&&(p=u,e.value=(p-u)/r),p}function qc(i,t,e,s,n=1/0,r,o){s=Math.max(1e-4,s);const a=2/s,c=a*r,l=1/(1+c+.48*c*c+.235*c*c*c);let u=t.x,h=t.y,d=t.z,p=i.x-u,_=i.y-h,f=i.z-d;const m=u,v=h,w=d,b=n*s,g=b*b,y=p*p+_*_+f*f;if(y>g){const G=Math.sqrt(y);p=p/G*b,_=_/G*b,f=f/G*b}u=i.x-p,h=i.y-_,d=i.z-f;const T=(e.x+a*p)*r,k=(e.y+a*_)*r,x=(e.z+a*f)*r;e.x=(e.x-a*T)*l,e.y=(e.y-a*k)*l,e.z=(e.z-a*x)*l,o.x=u+(p+T)*l,o.y=h+(_+k)*l,o.z=d+(f+x)*l;const C=m-i.x,O=v-i.y,D=w-i.z,M=o.x-m,V=o.y-v,B=o.z-w;return C*M+O*V+D*B>0&&(o.x=m,o.y=v,o.z=w,e.x=(o.x-m)/r,e.y=(o.y-v)/r,e.z=(o.z-w)/r),o}function Ro(i,t){t.set(0,0),i.forEach(e=>{t.x+=e.clientX,t.y+=e.clientY}),t.x/=i.length,t.y/=i.length}function Fo(i,t){return Ts(i)?(console.warn(`${t} is not supported in OrthographicCamera`),!0):!1}class Bf{constructor(){this._listeners={}}addEventListener(t,e){const s=this._listeners;s[t]===void 0&&(s[t]=[]),s[t].indexOf(e)===-1&&s[t].push(e)}hasEventListener(t,e){const s=this._listeners;return s[t]!==void 0&&s[t].indexOf(e)!==-1}removeEventListener(t,e){const n=this._listeners[t];if(n!==void 0){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}}removeAllEventListeners(t){if(!t){this._listeners={};return}Array.isArray(this._listeners[t])&&(this._listeners[t].length=0)}dispatchEvent(t){const s=this._listeners[t.type];if(s!==void 0){t.target=this;const n=s.slice(0);for(let r=0,o=n.length;r{},this._enabled=!0,this._state=W.NONE,this._viewport=null,this._changedDolly=0,this._changedZoom=0,this._hasRested=!0,this._boundaryEnclosesCamera=!1,this._needsUpdate=!0,this._updatedLastTime=!1,this._elementRect=new DOMRect,this._isDragging=!1,this._dragNeedsUpdate=!0,this._activePointers=[],this._lockedPointer=null,this._interactiveArea=new DOMRect(0,0,1,1),this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._isUserControllingOffset=!1,this._isUserControllingZoom=!1,this._lastDollyDirection=yn.NONE,this._thetaVelocity={value:0},this._phiVelocity={value:0},this._radiusVelocity={value:0},this._targetVelocity=new at.Vector3,this._focalOffsetVelocity=new at.Vector3,this._zoomVelocity={value:0},this._truckInternal=(g,y,T)=>{let k,x;if(qs(this._camera)){const C=ht.copy(this._camera.position).sub(this._target),O=this._camera.getEffectiveFOV()*li,D=C.length()*Math.tan(O*.5);k=this.truckSpeed*g*D/this._elementRect.height,x=this.truckSpeed*y*D/this._elementRect.height}else if(Ts(this._camera)){const C=this._camera;k=g*(C.right-C.left)/C.zoom/this._elementRect.width,x=y*(C.top-C.bottom)/C.zoom/this._elementRect.height}else return;this.verticalDragToForward?(T?this.setFocalOffset(this._focalOffsetEnd.x+k,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(k,0,!0),this.forward(-x,!0)):T?this.setFocalOffset(this._focalOffsetEnd.x+k,this._focalOffsetEnd.y+x,this._focalOffsetEnd.z,!0):this.truck(k,x,!0)},this._rotateInternal=(g,y)=>{const T=vn*this.azimuthRotateSpeed*g/this._elementRect.height,k=vn*this.polarRotateSpeed*y/this._elementRect.height;this.rotate(T,k,!0)},this._dollyInternal=(g,y,T)=>{const k=Math.pow(.95,-g*this.dollySpeed),x=this._sphericalEnd.radius,C=this._sphericalEnd.radius*k,O=Re(C,this.minDistance,this.maxDistance),D=O-C;this.infinityDolly&&this.dollyToCursor?this._dollyToNoClamp(C,!0):this.infinityDolly&&!this.dollyToCursor?(this.dollyInFixed(D,!0),this._dollyToNoClamp(O,!0)):this._dollyToNoClamp(O,!0),this.dollyToCursor&&(this._changedDolly+=(this.infinityDolly?C:O)-x,this._dollyControlCoord.set(y,T)),this._lastDollyDirection=Math.sign(-g)},this._zoomInternal=(g,y,T)=>{const k=Math.pow(.95,g*this.dollySpeed),x=this._zoom,C=this._zoom*k;this.zoomTo(C,!0),this.dollyToCursor&&(this._changedZoom+=C-x,this._dollyControlCoord.set(y,T))},typeof at>"u"&&console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."),this._camera=t,this._yAxisUpSpace=new at.Quaternion().setFromUnitVectors(this._camera.up,vr),this._yAxisUpSpaceInverse=this._yAxisUpSpace.clone().invert(),this._state=W.NONE,this._target=new at.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new at.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=new at.Spherical().setFromVector3(ht.copy(this._camera.position).applyQuaternion(this._yAxisUpSpace)),this._sphericalEnd=this._spherical.clone(),this._lastDistance=this._spherical.radius,this._zoom=this._camera.zoom,this._zoomEnd=this._zoom,this._lastZoom=this._zoom,this._nearPlaneCorners=[new at.Vector3,new at.Vector3,new at.Vector3,new at.Vector3],this._updateNearPlaneCorners(),this._boundary=new at.Box3(new at.Vector3(-1/0,-1/0,-1/0),new at.Vector3(1/0,1/0,1/0)),this._cameraUp0=this._camera.up.clone(),this._target0=this._target.clone(),this._position0=this._camera.position.clone(),this._zoom0=this._zoom,this._focalOffset0=this._focalOffset.clone(),this._dollyControlCoord=new at.Vector2,this.mouseButtons={left:W.ROTATE,middle:W.DOLLY,right:W.TRUCK,wheel:qs(this._camera)?W.DOLLY:Ts(this._camera)?W.ZOOM:W.NONE},this.touches={one:W.TOUCH_ROTATE,two:qs(this._camera)?W.TOUCH_DOLLY_TRUCK:Ts(this._camera)?W.TOUCH_ZOOM_TRUCK:W.NONE,three:W.TOUCH_TRUCK};const s=new at.Vector2,n=new at.Vector2,r=new at.Vector2,o=g=>{if(!this._enabled||!this._domElement)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const k=this._domElement.getBoundingClientRect(),x=g.clientX/k.width,C=g.clientY/k.height;if(xthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=g.pointerType!=="mouse"?null:(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.MIDDLE?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.RIGHT?ct.RIGHT:null;if(y!==null){const k=this._findPointerByMouseButton(y);k&&this._disposePointer(k)}if((g.buttons&ct.LEFT)===ct.LEFT&&this._lockedPointer)return;const T={pointerId:g.pointerId,clientX:g.clientX,clientY:g.clientY,deltaX:0,deltaY:0,mouseButton:y};this._activePointers.push(T),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),this._isDragging=!0,f(g)},a=g=>{if(!this._enabled||!this._domElement||this._lockedPointer)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const k=this._domElement.getBoundingClientRect(),x=g.clientX/k.width,C=g.clientY/k.height;if(xthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.MIDDLE?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.RIGHT?ct.RIGHT:null;if(y!==null){const k=this._findPointerByMouseButton(y);k&&this._disposePointer(k)}const T={pointerId:1,clientX:g.clientX,clientY:g.clientY,deltaX:0,deltaY:0,mouseButton:(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.LEFT?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.LEFT?ct.RIGHT:null};this._activePointers.push(T),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.addEventListener("mousemove",l),this._domElement.ownerDocument.addEventListener("mouseup",h),this._isDragging=!0,f(g)},c=g=>{g.cancelable&&g.preventDefault();const y=g.pointerId,T=this._lockedPointer||this._findPointerById(y);if(T){if(T.clientX=g.clientX,T.clientY=g.clientY,T.deltaX=g.movementX,T.deltaY=g.movementY,this._state=0,g.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else(!this._isDragging&&this._lockedPointer||this._isDragging&&(g.buttons&ct.LEFT)===ct.LEFT)&&(this._state=this._state|this.mouseButtons.left),this._isDragging&&(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),this._isDragging&&(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right);m()}},l=g=>{const y=this._lockedPointer||this._findPointerById(1);y&&(y.clientX=g.clientX,y.clientY=g.clientY,y.deltaX=g.movementX,y.deltaY=g.movementY,this._state=0,(this._lockedPointer||(g.buttons&ct.LEFT)===ct.LEFT)&&(this._state=this._state|this.mouseButtons.left),(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right),m())},u=g=>{const y=this._findPointerById(g.pointerId);if(!(y&&y===this._lockedPointer)){if(y&&this._disposePointer(y),g.pointerType==="touch")switch(this._activePointers.length){case 0:this._state=W.NONE;break;case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else this._state=W.NONE;v()}},h=()=>{const g=this._findPointerById(1);g&&g===this._lockedPointer||(g&&this._disposePointer(g),this._state=W.NONE,v())};let d=-1;const p=g=>{if(!this._domElement||!this._enabled||this.mouseButtons.wheel===W.NONE)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const C=this._domElement.getBoundingClientRect(),O=g.clientX/C.width,D=g.clientY/C.height;if(Othis._interactiveArea.right||Dthis._interactiveArea.bottom)return}if(g.preventDefault(),this.dollyToCursor||this.mouseButtons.wheel===W.ROTATE||this.mouseButtons.wheel===W.TRUCK){const C=performance.now();d-C<1e3&&this._getClientRect(this._elementRect),d=C}const y=Wf?-1:-3,T=g.deltaMode===1?g.deltaY/y:g.deltaY/(y*10),k=this.dollyToCursor?(g.clientX-this._elementRect.x)/this._elementRect.width*2-1:0,x=this.dollyToCursor?(g.clientY-this._elementRect.y)/this._elementRect.height*-2+1:0;switch(this.mouseButtons.wheel){case W.ROTATE:{this._rotateInternal(g.deltaX,g.deltaY),this._isUserControllingRotate=!0;break}case W.TRUCK:{this._truckInternal(g.deltaX,g.deltaY,!1),this._isUserControllingTruck=!0;break}case W.OFFSET:{this._truckInternal(g.deltaX,g.deltaY,!0),this._isUserControllingOffset=!0;break}case W.DOLLY:{this._dollyInternal(-T,k,x),this._isUserControllingDolly=!0;break}case W.ZOOM:{this._zoomInternal(-T,k,x),this._isUserControllingZoom=!0;break}}this.dispatchEvent({type:"control"})},_=g=>{if(!(!this._domElement||!this._enabled)){if(this.mouseButtons.right===na.ACTION.NONE){const y=g instanceof PointerEvent?g.pointerId:(g instanceof MouseEvent,0),T=this._findPointerById(y);T&&this._disposePointer(T),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h);return}g.preventDefault()}},f=g=>{if(!this._enabled)return;if(Ro(this._activePointers,ae),this._getClientRect(this._elementRect),s.copy(ae),n.copy(ae),this._activePointers.length>=2){const T=ae.x-this._activePointers[1].clientX,k=ae.y-this._activePointers[1].clientY,x=Math.sqrt(T*T+k*k);r.set(0,x);const C=(this._activePointers[0].clientX+this._activePointers[1].clientX)*.5,O=(this._activePointers[0].clientY+this._activePointers[1].clientY)*.5;n.set(C,O)}if(this._state=0,!g)this._lockedPointer&&(this._state=this._state|this.mouseButtons.left);else if("pointerType"in g&&g.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else!this._lockedPointer&&(g.buttons&ct.LEFT)===ct.LEFT&&(this._state=this._state|this.mouseButtons.left),(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right);((this._state&W.ROTATE)===W.ROTATE||(this._state&W.TOUCH_ROTATE)===W.TOUCH_ROTATE||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE||(this._state&W.TOUCH_ZOOM_ROTATE)===W.TOUCH_ZOOM_ROTATE)&&(this._sphericalEnd.theta=this._spherical.theta,this._sphericalEnd.phi=this._spherical.phi,this._thetaVelocity.value=0,this._phiVelocity.value=0),((this._state&W.TRUCK)===W.TRUCK||(this._state&W.TOUCH_TRUCK)===W.TOUCH_TRUCK||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_ZOOM_TRUCK)===W.TOUCH_ZOOM_TRUCK)&&(this._targetEnd.copy(this._target),this._targetVelocity.set(0,0,0)),((this._state&W.DOLLY)===W.DOLLY||(this._state&W.TOUCH_DOLLY)===W.TOUCH_DOLLY||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE)&&(this._sphericalEnd.radius=this._spherical.radius,this._radiusVelocity.value=0),((this._state&W.ZOOM)===W.ZOOM||(this._state&W.TOUCH_ZOOM)===W.TOUCH_ZOOM||(this._state&W.TOUCH_ZOOM_TRUCK)===W.TOUCH_ZOOM_TRUCK||(this._state&W.TOUCH_ZOOM_OFFSET)===W.TOUCH_ZOOM_OFFSET||(this._state&W.TOUCH_ZOOM_ROTATE)===W.TOUCH_ZOOM_ROTATE)&&(this._zoomEnd=this._zoom,this._zoomVelocity.value=0),((this._state&W.OFFSET)===W.OFFSET||(this._state&W.TOUCH_OFFSET)===W.TOUCH_OFFSET||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET||(this._state&W.TOUCH_ZOOM_OFFSET)===W.TOUCH_ZOOM_OFFSET)&&(this._focalOffsetEnd.copy(this._focalOffset),this._focalOffsetVelocity.set(0,0,0)),this.dispatchEvent({type:"controlstart"})},m=()=>{if(!this._enabled||!this._dragNeedsUpdate)return;this._dragNeedsUpdate=!1,Ro(this._activePointers,ae);const y=this._domElement&&document.pointerLockElement===this._domElement?this._lockedPointer||this._activePointers[0]:null,T=y?-y.deltaX:n.x-ae.x,k=y?-y.deltaY:n.y-ae.y;if(n.copy(ae),((this._state&W.ROTATE)===W.ROTATE||(this._state&W.TOUCH_ROTATE)===W.TOUCH_ROTATE||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE||(this._state&W.TOUCH_ZOOM_ROTATE)===W.TOUCH_ZOOM_ROTATE)&&(this._rotateInternal(T,k),this._isUserControllingRotate=!0),(this._state&W.DOLLY)===W.DOLLY||(this._state&W.ZOOM)===W.ZOOM){const x=this.dollyToCursor?(s.x-this._elementRect.x)/this._elementRect.width*2-1:0,C=this.dollyToCursor?(s.y-this._elementRect.y)/this._elementRect.height*-2+1:0,O=this.dollyDragInverted?-1:1;(this._state&W.DOLLY)===W.DOLLY?(this._dollyInternal(O*k*yr,x,C),this._isUserControllingDolly=!0):(this._zoomInternal(O*k*yr,x,C),this._isUserControllingZoom=!0)}if((this._state&W.TOUCH_DOLLY)===W.TOUCH_DOLLY||(this._state&W.TOUCH_ZOOM)===W.TOUCH_ZOOM||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_ZOOM_TRUCK)===W.TOUCH_ZOOM_TRUCK||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET||(this._state&W.TOUCH_ZOOM_OFFSET)===W.TOUCH_ZOOM_OFFSET||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE||(this._state&W.TOUCH_ZOOM_ROTATE)===W.TOUCH_ZOOM_ROTATE){const x=ae.x-this._activePointers[1].clientX,C=ae.y-this._activePointers[1].clientY,O=Math.sqrt(x*x+C*C),D=r.y-O;r.set(0,O);const M=this.dollyToCursor?(n.x-this._elementRect.x)/this._elementRect.width*2-1:0,V=this.dollyToCursor?(n.y-this._elementRect.y)/this._elementRect.height*-2+1:0;(this._state&W.TOUCH_DOLLY)===W.TOUCH_DOLLY||(this._state&W.TOUCH_DOLLY_ROTATE)===W.TOUCH_DOLLY_ROTATE||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET?(this._dollyInternal(D*yr,M,V),this._isUserControllingDolly=!0):(this._zoomInternal(D*yr,M,V),this._isUserControllingZoom=!0)}((this._state&W.TRUCK)===W.TRUCK||(this._state&W.TOUCH_TRUCK)===W.TOUCH_TRUCK||(this._state&W.TOUCH_DOLLY_TRUCK)===W.TOUCH_DOLLY_TRUCK||(this._state&W.TOUCH_ZOOM_TRUCK)===W.TOUCH_ZOOM_TRUCK)&&(this._truckInternal(T,k,!1),this._isUserControllingTruck=!0),((this._state&W.OFFSET)===W.OFFSET||(this._state&W.TOUCH_OFFSET)===W.TOUCH_OFFSET||(this._state&W.TOUCH_DOLLY_OFFSET)===W.TOUCH_DOLLY_OFFSET||(this._state&W.TOUCH_ZOOM_OFFSET)===W.TOUCH_ZOOM_OFFSET)&&(this._truckInternal(T,k,!0),this._isUserControllingOffset=!0),this.dispatchEvent({type:"control"})},v=()=>{Ro(this._activePointers,ae),n.copy(ae),this._dragNeedsUpdate=!1,(this._activePointers.length===0||this._activePointers.length===1&&this._activePointers[0]===this._lockedPointer)&&(this._isDragging=!1),this._activePointers.length===0&&this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this.dispatchEvent({type:"controlend"}))};this.lockPointer=()=>{!this._enabled||!this._domElement||(this.cancel(),this._lockedPointer={pointerId:-1,clientX:0,clientY:0,deltaX:0,deltaY:0,mouseButton:null},this._activePointers.push(this._lockedPointer),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.requestPointerLock(),this._domElement.ownerDocument.addEventListener("pointerlockchange",w),this._domElement.ownerDocument.addEventListener("pointerlockerror",b),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),f())},this.unlockPointer=()=>{this._lockedPointer!==null&&(this._disposePointer(this._lockedPointer),this._lockedPointer=null),document.exitPointerLock(),this.cancel(),this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointerlockchange",w),this._domElement.ownerDocument.removeEventListener("pointerlockerror",b))};const w=()=>{this._domElement&&this._domElement.ownerDocument.pointerLockElement===this._domElement||this.unlockPointer()},b=()=>{this.unlockPointer()};this._addAllEventListeners=g=>{this._domElement=g,this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none",this._domElement.addEventListener("pointerdown",o),Hf&&this._domElement.addEventListener("mousedown",a),this._domElement.addEventListener("pointercancel",u),this._domElement.addEventListener("wheel",p,{passive:!1}),this._domElement.addEventListener("contextmenu",_)},this._removeAllEventListeners=()=>{this._domElement&&(this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect="",this._domElement.removeEventListener("pointerdown",o),this._domElement.removeEventListener("mousedown",a),this._domElement.removeEventListener("pointercancel",u),this._domElement.removeEventListener("wheel",p,{passive:!1}),this._domElement.removeEventListener("contextmenu",_),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.removeEventListener("pointerlockchange",w),this._domElement.ownerDocument.removeEventListener("pointerlockerror",b))},this.cancel=()=>{this._state!==W.NONE&&(this._state=W.NONE,this._activePointers.length=0,v())},e&&this.connect(e),this.update(0)}get camera(){return this._camera}set camera(t){this._camera=t,this.updateCameraUp(),this._camera.updateProjectionMatrix(),this._updateNearPlaneCorners(),this._needsUpdate=!0}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._domElement&&(t?(this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none"):(this.cancel(),this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect=""))}get active(){return!this._hasRested}get currentAction(){return this._state}get distance(){return this._spherical.radius}set distance(t){this._spherical.radius===t&&this._sphericalEnd.radius===t||(this._spherical.radius=t,this._sphericalEnd.radius=t,this._needsUpdate=!0)}get azimuthAngle(){return this._spherical.theta}set azimuthAngle(t){this._spherical.theta===t&&this._sphericalEnd.theta===t||(this._spherical.theta=t,this._sphericalEnd.theta=t,this._needsUpdate=!0)}get polarAngle(){return this._spherical.phi}set polarAngle(t){this._spherical.phi===t&&this._sphericalEnd.phi===t||(this._spherical.phi=t,this._sphericalEnd.phi=t,this._needsUpdate=!0)}get boundaryEnclosesCamera(){return this._boundaryEnclosesCamera}set boundaryEnclosesCamera(t){this._boundaryEnclosesCamera=t,this._needsUpdate=!0}set interactiveArea(t){this._interactiveArea.width=Re(t.width,0,1),this._interactiveArea.height=Re(t.height,0,1),this._interactiveArea.x=Re(t.x,0,1-this._interactiveArea.width),this._interactiveArea.y=Re(t.y,0,1-this._interactiveArea.height)}addEventListener(t,e){super.addEventListener(t,e)}removeEventListener(t,e){super.removeEventListener(t,e)}rotate(t,e,s=!1){return this.rotateTo(this._sphericalEnd.theta+t,this._sphericalEnd.phi+e,s)}rotateAzimuthTo(t,e=!1){return this.rotateTo(t,this._sphericalEnd.phi,e)}rotatePolarTo(t,e=!1){return this.rotateTo(this._sphericalEnd.theta,t,e)}rotateTo(t,e,s=!1){this._isUserControllingRotate=!1;const n=Re(t,this.minAzimuthAngle,this.maxAzimuthAngle),r=Re(e,this.minPolarAngle,this.maxPolarAngle);this._sphericalEnd.theta=n,this._sphericalEnd.phi=r,this._sphericalEnd.makeSafe(),this._needsUpdate=!0,s||(this._spherical.theta=this._sphericalEnd.theta,this._spherical.phi=this._sphericalEnd.phi);const o=!s||gt(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold);return this._createOnRestPromise(o)}dolly(t,e=!1){return this.dollyTo(this._sphericalEnd.radius-t,e)}dollyTo(t,e=!1){return this._isUserControllingDolly=!1,this._lastDollyDirection=yn.NONE,this._changedDolly=0,this._dollyToNoClamp(Re(t,this.minDistance,this.maxDistance),e)}_dollyToNoClamp(t,e=!1){const s=this._sphericalEnd.radius;if(this.colliderMeshes.length>=1){const o=this._collisionTest(),a=gt(o,this._spherical.radius);if(!(s>t)&&a)return Promise.resolve();this._sphericalEnd.radius=Math.min(t,o)}else this._sphericalEnd.radius=t;this._needsUpdate=!0,e||(this._spherical.radius=this._sphericalEnd.radius);const r=!e||gt(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(r)}dollyInFixed(t,e=!1){this._targetEnd.add(this._getCameraDirection(di).multiplyScalar(t)),e||this._target.copy(this._targetEnd);const s=!e||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(s)}zoom(t,e=!1){return this.zoomTo(this._zoomEnd+t,e)}zoomTo(t,e=!1){this._isUserControllingZoom=!1,this._zoomEnd=Re(t,this.minZoom,this.maxZoom),this._needsUpdate=!0,e||(this._zoom=this._zoomEnd);const s=!e||gt(this._zoom,this._zoomEnd,this.restThreshold);return this._changedZoom=0,this._createOnRestPromise(s)}pan(t,e,s=!1){return console.warn("`pan` has been renamed to `truck`"),this.truck(t,e,s)}truck(t,e,s=!1){this._camera.updateMatrix(),Ye.setFromMatrixColumn(this._camera.matrix,0),Ge.setFromMatrixColumn(this._camera.matrix,1),Ye.multiplyScalar(t),Ge.multiplyScalar(-e);const n=ht.copy(Ye).add(Ge),r=mt.copy(this._targetEnd).add(n);return this.moveTo(r.x,r.y,r.z,s)}forward(t,e=!1){ht.setFromMatrixColumn(this._camera.matrix,0),ht.crossVectors(this._camera.up,ht),ht.multiplyScalar(t);const s=mt.copy(this._targetEnd).add(ht);return this.moveTo(s.x,s.y,s.z,e)}elevate(t,e=!1){return ht.copy(this._camera.up).multiplyScalar(t),this.moveTo(this._targetEnd.x+ht.x,this._targetEnd.y+ht.y,this._targetEnd.z+ht.z,e)}moveTo(t,e,s,n=!1){this._isUserControllingTruck=!1;const r=ht.set(t,e,s).sub(this._targetEnd);this._encloseToBoundary(this._targetEnd,r,this.boundaryFriction),this._needsUpdate=!0,n||this._target.copy(this._targetEnd);const o=!n||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(o)}lookInDirectionOf(t,e,s,n=!1){const a=ht.set(t,e,s).sub(this._targetEnd).normalize().multiplyScalar(-this._sphericalEnd.radius);return this.setPosition(a.x,a.y,a.z,n)}fitToBox(t,e,{cover:s=!1,paddingLeft:n=0,paddingRight:r=0,paddingBottom:o=0,paddingTop:a=0}={}){const c=[],l=t.isBox3?kn.copy(t):kn.setFromObject(t);l.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const u=Bc(this._sphericalEnd.theta,jc),h=Bc(this._sphericalEnd.phi,jc);c.push(this.rotateTo(u,h,e));const d=ht.setFromSpherical(this._sphericalEnd).normalize(),p=$c.setFromUnitVectors(d,Lo),_=gt(Math.abs(d.y),1);_&&p.multiply(Uo.setFromAxisAngle(vr,u)),p.multiply(this._yAxisUpSpaceInverse);const f=Gc.makeEmpty();mt.copy(l.min).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setX(l.max.x).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setY(l.max.y).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setZ(l.min.z).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setZ(l.max.z).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setY(l.min.y).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setX(l.min.x).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).applyQuaternion(p),f.expandByPoint(mt),f.min.x-=n,f.min.y-=o,f.max.x+=r,f.max.y+=a,p.setFromUnitVectors(Lo,d),_&&p.premultiply(Uo.invert()),p.premultiply(this._yAxisUpSpace);const m=f.getSize(ht),v=f.getCenter(mt).applyQuaternion(p);if(qs(this._camera)){const w=this.getDistanceToFitBox(m.x,m.y,m.z,s);c.push(this.moveTo(v.x,v.y,v.z,e)),c.push(this.dollyTo(w,e)),c.push(this.setFocalOffset(0,0,0,e))}else if(Ts(this._camera)){const w=this._camera,b=w.right-w.left,g=w.top-w.bottom,y=s?Math.max(b/m.x,g/m.y):Math.min(b/m.x,g/m.y);c.push(this.moveTo(v.x,v.y,v.z,e)),c.push(this.zoomTo(y,e)),c.push(this.setFocalOffset(0,0,0,e))}return Promise.all(c)}fitToSphere(t,e){const s=[],r=t instanceof at.Sphere?Vo.copy(t):na.createBoundingSphere(t,Vo);if(s.push(this.moveTo(r.center.x,r.center.y,r.center.z,e)),qs(this._camera)){const o=this.getDistanceToFitSphere(r.radius);s.push(this.dollyTo(o,e))}else if(Ts(this._camera)){const o=this._camera.right-this._camera.left,a=this._camera.top-this._camera.bottom,c=2*r.radius,l=Math.min(o/c,a/c);s.push(this.zoomTo(l,e))}return s.push(this.setFocalOffset(0,0,0,e)),Promise.all(s)}setLookAt(t,e,s,n,r,o,a=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=yn.NONE,this._changedDolly=0;const c=mt.set(n,r,o),l=ht.set(t,e,s);this._targetEnd.copy(c),this._sphericalEnd.setFromVector3(l.sub(c).applyQuaternion(this._yAxisUpSpace)),this.normalizeRotations(),this._needsUpdate=!0,a||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const u=!a||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold)&>(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&>(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(u)}lerpLookAt(t,e,s,n,r,o,a,c,l,u,h,d,p,_=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=yn.NONE,this._changedDolly=0;const f=ht.set(n,r,o),m=mt.set(t,e,s);we.setFromVector3(m.sub(f).applyQuaternion(this._yAxisUpSpace));const v=xn.set(u,h,d),w=mt.set(a,c,l);fi.setFromVector3(w.sub(v).applyQuaternion(this._yAxisUpSpace)),this._targetEnd.copy(f.lerp(v,p));const b=fi.theta-we.theta,g=fi.phi-we.phi,y=fi.radius-we.radius;this._sphericalEnd.set(we.radius+y*p,we.phi+g*p,we.theta+b*p),this.normalizeRotations(),this._needsUpdate=!0,_||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const T=!_||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold)&>(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&>(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(T)}setPosition(t,e,s,n=!1){return this.setLookAt(t,e,s,this._targetEnd.x,this._targetEnd.y,this._targetEnd.z,n)}setTarget(t,e,s,n=!1){const r=this.getPosition(ht),o=this.setLookAt(r.x,r.y,r.z,t,e,s,n);return this._sphericalEnd.phi=Re(this._sphericalEnd.phi,this.minPolarAngle,this.maxPolarAngle),o}setFocalOffset(t,e,s,n=!1){this._isUserControllingOffset=!1,this._focalOffsetEnd.set(t,e,s),this._needsUpdate=!0,n||this._focalOffset.copy(this._focalOffsetEnd);const r=!n||gt(this._focalOffset.x,this._focalOffsetEnd.x,this.restThreshold)&>(this._focalOffset.y,this._focalOffsetEnd.y,this.restThreshold)&>(this._focalOffset.z,this._focalOffsetEnd.z,this.restThreshold);return this._createOnRestPromise(r)}setOrbitPoint(t,e,s){this._camera.updateMatrixWorld(),Ye.setFromMatrixColumn(this._camera.matrixWorldInverse,0),Ge.setFromMatrixColumn(this._camera.matrixWorldInverse,1),Ws.setFromMatrixColumn(this._camera.matrixWorldInverse,2);const n=ht.set(t,e,s),r=n.distanceTo(this._camera.position),o=n.sub(this._camera.position);Ye.multiplyScalar(o.x),Ge.multiplyScalar(o.y),Ws.multiplyScalar(o.z),ht.copy(Ye).add(Ge).add(Ws),ht.z=ht.z+r,this.dollyTo(r,!1),this.setFocalOffset(-ht.x,ht.y,-ht.z,!1),this.moveTo(t,e,s,!1)}setBoundary(t){if(!t){this._boundary.min.set(-1/0,-1/0,-1/0),this._boundary.max.set(1/0,1/0,1/0),this._needsUpdate=!0;return}this._boundary.copy(t),this._boundary.clampPoint(this._targetEnd,this._targetEnd),this._needsUpdate=!0}setViewport(t,e,s,n){if(t===null){this._viewport=null;return}this._viewport=this._viewport||new at.Vector4,typeof t=="number"?this._viewport.set(t,e,s,n):this._viewport.copy(t)}getDistanceToFitBox(t,e,s,n=!1){if(Fo(this._camera,"getDistanceToFitBox"))return this._spherical.radius;const r=t/e,o=this._camera.getEffectiveFOV()*li,a=this._camera.aspect;return((n?r>a:re.pointerId===t)}_findPointerByMouseButton(t){return this._activePointers.find(e=>e.mouseButton===t)}_disposePointer(t){this._activePointers.splice(this._activePointers.indexOf(t),1)}_encloseToBoundary(t,e,s){const n=e.lengthSq();if(n===0)return t;const r=mt.copy(e).add(t),a=this._boundary.clampPoint(r,xn).sub(r),c=a.lengthSq();if(c===0)return t.add(e);if(c===n)return t;if(s===0)return t.add(e).add(a);{const l=1+s*c/e.dot(a);return t.add(mt.copy(e).multiplyScalar(l)).add(a.multiplyScalar(1-s))}}_updateNearPlaneCorners(){if(qs(this._camera)){const t=this._camera,e=t.near,s=t.getEffectiveFOV()*li,n=Math.tan(s*.5)*e,r=n*t.aspect;this._nearPlaneCorners[0].set(-r,-n,0),this._nearPlaneCorners[1].set(r,-n,0),this._nearPlaneCorners[2].set(r,n,0),this._nearPlaneCorners[3].set(-r,n,0)}else if(Ts(this._camera)){const t=this._camera,e=1/t.zoom,s=t.left*e,n=t.right*e,r=t.top*e,o=t.bottom*e;this._nearPlaneCorners[0].set(s,r,0),this._nearPlaneCorners[1].set(n,r,0),this._nearPlaneCorners[2].set(n,o,0),this._nearPlaneCorners[3].set(s,o,0)}}_collisionTest(){let t=1/0;if(!(this.colliderMeshes.length>=1)||Fo(this._camera,"_collisionTest"))return t;const s=this._getTargetDirection(di);zo.lookAt(Wc,s,this._camera.up);for(let n=0;n<4;n++){const r=mt.copy(this._nearPlaneCorners[n]);r.applyMatrix4(zo);const o=xn.addVectors(this._target,r);xr.set(o,s),xr.far=this._spherical.radius+1;const a=xr.intersectObjects(this.colliderMeshes);a.length!==0&&a[0].distance{const s=()=>{this.removeEventListener("rest",s),e()};this.addEventListener("rest",s)}))}_addAllEventListeners(t){}_removeAllEventListeners(){}get dampingFactor(){return console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead."),0}set dampingFactor(t){console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead.")}get draggingDampingFactor(){return console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead."),0}set draggingDampingFactor(t){console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.")}static createBoundingSphere(t,e=new at.Sphere){const s=e,n=s.center;kn.makeEmpty(),t.traverseVisible(o=>{o.isMesh&&kn.expandByObject(o)}),kn.getCenter(n);let r=0;return t.traverseVisible(o=>{if(!o.isMesh)return;const a=o,c=a.geometry.clone();c.applyMatrix4(a.matrixWorld);const u=c.attributes.position;for(let h=0,d=u.count;h{I.useMemo(()=>{jo.install({THREE:yf}),Da({CameraControlsImpl:jo})},[]);const{camera:e,domElement:s,makeDefault:n,onStart:r,onEnd:o,onChange:a,regress:c,...l}=i,u=It(y=>y.camera),h=It(y=>y.gl),d=It(y=>y.invalidate),p=It(y=>y.events),_=It(y=>y.setEvents),f=It(y=>y.set),m=It(y=>y.get),v=It(y=>y.performance),w=e||u,b=s||p.connected||h.domElement,g=I.useMemo(()=>new jo(w),[w]);return Pe((y,T)=>{g.enabled&&g.update(T)},-1),I.useEffect(()=>(g.connect(b),()=>void g.disconnect()),[b,g]),I.useEffect(()=>{const y=x=>{d(),c&&v.regress(),a&&a(x)},T=x=>{r&&r(x)},k=x=>{o&&o(x)};return g.addEventListener("update",y),g.addEventListener("controlstart",T),g.addEventListener("controlend",k),()=>{g.removeEventListener("update",y),g.removeEventListener("controlstart",T),g.removeEventListener("controlend",k)}},[g,r,o,d,_,c,a]),I.useEffect(()=>{if(n){const y=m().controls;return f({controls:g}),()=>f({controls:y})}},[n,g]),I.createElement("primitive",Se({ref:t,object:g},l))});ei.func.isRequired,ei.arrayOf(ei.oneOfType([ei.element,ei.func])).isRequired;const Xc=new er,Zc=new er,kr=[],pi=new eu;class Gf extends xf{constructor(){super(),this.color=new Na("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var t;return(t=this.instance.current)==null?void 0:t.geometry}raycast(t,e){const s=this.instance.current;if(!s||!s.geometry||!s.material)return;pi.geometry=s.geometry;const n=s.matrixWorld,r=s.userData.instances.indexOf(this.instanceKey);if(!(r===-1||r>s.count)){s.getMatrixAt(r,Xc),Zc.multiplyMatrices(n,Xc),pi.matrixWorld=Zc,s.material instanceof kf?pi.material.side=s.material.side:pi.material.side=s.material[0].side,pi.raycast(t,kr);for(let o=0,a=kr.length;o{I.useMemo(()=>Da({PositionMesh:Gf}),[]);const n=I.useRef(),{subscribe:r,getParent:o}=I.useContext(i||iu);return I.useLayoutEffect(()=>r(n),[]),I.createElement("positionMesh",Se({instance:o(),instanceKey:n,ref:uo([s,n])},e),t)}),Xf=I.forwardRef(({children:i,range:t,limit:e=1e3,frames:s=1/0,...n},r)=>{const[{context:o,instance:a}]=I.useState(()=>{const m=I.createContext(null);return{context:m,instance:I.forwardRef((v,w)=>I.createElement(ru,Se({context:m},v,{ref:w})))}}),c=I.useRef(null),[l,u]=I.useState([]),[[h,d]]=I.useState(()=>{const m=new Float32Array(e*16);for(let v=0;v1))]});I.useEffect(()=>{c.current.instanceMatrix.needsUpdate=!0});let p=0,_=0;Pe(()=>{if(s===1/0||p({getParent:()=>c,subscribe:m=>(u(v=>[...v,m]),()=>u(v=>v.filter(w=>w.current!==m.current)))}),[]);return I.createElement("instancedMesh",Se({userData:{instances:l},matrixAutoUpdate:!1,ref:uo([r,c]),args:[null,null,0],raycast:()=>null},n),I.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:Fc}),I.createElement("instancedBufferAttribute",{attach:"instanceColor",count:d.length/3,array:d,itemSize:3,usage:Fc}),typeof i=="function"?I.createElement(o.Provider,{value:f},i(a)):I.createElement(iu.Provider,{value:f},i))}),ou=I.createContext(null),Zf=I.forwardRef((i,t)=>{I.useMemo(()=>Da({SegmentObject:Qf}),[]);const{limit:e=1e3,lineWidth:s=1,children:n,...r}=i,[o,a]=I.useState([]),[c]=I.useState(()=>new Zl),[l]=I.useState(()=>new Fd),[u]=I.useState(()=>new Ld),[h]=I.useState(()=>new _t(512,512)),[d]=I.useState(()=>Array(e*6).fill(0)),[p]=I.useState(()=>Array(e*6).fill(0)),_=I.useMemo(()=>({subscribe:f=>(a(m=>[...m,f]),()=>a(m=>m.filter(v=>v.current!==f.current)))}),[]);return Pe(()=>{for(let m=0;mi instanceof it?i:new it(...typeof i=="number"?[i,i,i]:i),Kf=I.forwardRef(({color:i,start:t,end:e},s)=>{const n=I.useContext(ou);if(!n)throw"Segment must used inside Segments component.";const r=I.useRef(null);return I.useLayoutEffect(()=>n.subscribe(r),[]),I.createElement("segmentObject",{ref:uo([r,s]),color:i,start:sl(t),end:sl(e)})});function Jf({all:i,scene:t,camera:e}){const s=It(({gl:o})=>o),n=It(({camera:o})=>o),r=It(({scene:o})=>o);return I.useLayoutEffect(()=>{const o=[];i&&(t||r).traverse(l=>{l.visible===!1&&(o.push(l),l.visible=!0)}),s.compile(t||r,e||n);const a=new Tf(128);new wf(.01,1e5,a).update(s,t||r),a.dispose(),o.forEach(l=>l.visible=!1)},[]),null}function t0({pixelated:i}){const t=It(o=>o.gl),e=It(o=>o.internal.active),s=It(o=>o.performance.current),n=It(o=>o.viewport.initialDpr),r=It(o=>o.setDpr);return I.useEffect(()=>{const o=t.domElement;return()=>{e&&r(n),i&&o&&(o.style.imageRendering="auto")}},[]),I.useEffect(()=>{r(s*n),i&&t.domElement&&(t.domElement.style.imageRendering=s===1?"auto":"pixelated")},[s]),null}function e0(){const i=It(s=>s.get),t=It(s=>s.setEvents),e=It(s=>s.performance.current);return I.useEffect(()=>{const s=i().events.enabled;return()=>t({enabled:s})},[]),I.useEffect(()=>t({enabled:e===1}),[e]),null}const s0=I.createContext(null);function n0({children:i,enabled:t=!0}){const[e,s]=I.useState([]),n=I.useMemo(()=>({selected:e,select:s,enabled:t}),[e,s,t]);return L.jsx(s0.Provider,{value:n,children:i})}const i0={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Es=Hl(i=>({...i0,setIsUserDragging:t=>i({isUserDragging:t}),setIsUserScrolling:t=>i({isUserScrolling:t}),setUserMovedCamera:t=>i({userMovedCamera:t}),setIsUserScrollingOnHtmlPanel:t=>i({isUserScrollingOnHtmlPanel:t})})),r0=()=>{const[i,t]=I.useState(""),e=I.useRef(null),{fetchData:s,setAbortRequests:n,seedQuestions:r}=Vs(g=>g),[o]=Gl(g=>[g.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=Ji(g=>({setUniverseQuestionIsOpen:g.setUniverseQuestionIsOpen,setSidebarOpen:g.setSidebarOpen,setShowCollapseButton:g.setShowCollapseButton})),u=Sd(g=>g.resetAiSummaryAnswer),[h,d]=I.useState([]);I.useEffect(()=>{r&&d(w(r).slice(0,4))},[r]),I.useEffect(()=>{e.current&&e.current.focus()},[]);const p=async g=>{g&&(u(),a(),c(!0),l(!0)),await s(o,n,g)},_=!!i.trim().length,f=async g=>{g.keyCode===13&&g.shiftKey===!1&&_&&(g.preventDefault(),p(i))},m=async g=>{t(g),await p(g)},v=()=>{a(),c(!0),l(!0)},w=g=>{const y=[...g];let T=y.length-1;for(;T>0;){const k=Math.floor(Math.random()*(T+1));[y[T],y[k]]=[y[k],y[T]],T-=1}return y},b=!!i&&i.trim().length>0;return L.jsxs(c0,{children:["Ideas have shapes",L.jsxs(a0,{onKeyDown:f,py:12,tabIndex:-1,children:[L.jsx(o0,{ref:e,onChange:g=>t(g.target.value),placeholder:"What do you want to know?",value:i}),L.jsx(l0,{color:"secondary",disabled:!b,onClick:()=>p(i),variant:"contained",children:b?L.jsxs(L.Fragment,{children:["Search ",L.jsx(Ic,{})]}):L.jsx(Ic,{})})]}),h.length>0&&L.jsx(h0,{children:h.map(g=>L.jsxs(d0,{onClick:()=>m(g),children:[L.jsx(Hd,{}),g]},g))}),L.jsx(u0,{"data-testid":"explore-graph-btn",onClick:v,startIcon:L.jsx(Yd,{}),children:"Explore Graph"})]})},o0=Ut(hf).attrs({maxRows:3})` background: ${Tt.BG1}; max-width: 700px; width: 700px; @@ -38,7 +38,7 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b a margin: 13px; overflow-y: hidden; } -`,c0=Ut(_s)` +`,a0=Ut(_s)` position: relative; margin-top: 30px; background: ${Tt.BG1}; @@ -51,7 +51,7 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b a outline: none; border-radius: 12px; box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.5); -`,l0=Ut(_s)` +`,c0=Ut(_s)` background: #16161de3; position: absolute; left: 0; @@ -66,7 +66,7 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b a font-weight: 700; line-height: 16px; font-family: 'Barlow'; -`,u0=Ut(Yl)` +`,l0=Ut(Yl)` && { position: absolute; bottom: 16px; @@ -85,21 +85,21 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b a width: 11px; height: 11px; } -`,h0=Ut(Yl)` +`,u0=Ut(Yl)` && { position: absolute; bottom: 20px; right: 20px; border-radius: 16px; } -`,d0=Ut.div` +`,h0=Ut.div` display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; max-width: 702px; width: 100%; -`,f0=Ut.div` +`,d0=Ut.div` background: ${Tt.BG1}; color: ${Tt.white}; padding: 15px 12px; @@ -128,9 +128,9 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b a path { fill: ${Tt.modalWhiteOverlayBg}; } -`,Ti=new rt(0,0,0),sl=100,p0=600,m0=2e3,Bo={x:172.7392402058252,y:-239.04675366094037,z:-2e3},au="14.8.49",nl=(i,t,e)=>({endTime:t,insertTime:e,type:"exponentialRampToValue",value:i}),il=(i,t,e)=>({endTime:t,insertTime:e,type:"linearRampToValue",value:i}),ia=(i,t)=>({startTime:t,type:"setValue",value:i}),cu=(i,t,e)=>({duration:e,startTime:t,type:"setValueCurve",values:i}),lu=(i,t,{startTime:e,target:s,timeConstant:n})=>s+(t-s)*Math.exp((e-i)/n),En=i=>i.type==="exponentialRampToValue",Fr=i=>i.type==="linearRampToValue",ws=i=>En(i)||Fr(i),Fa=i=>i.type==="setValue",as=i=>i.type==="setValueCurve",Lr=(i,t,e,s)=>{const n=i[t];return n===void 0?s:ws(n)||Fa(n)?n.value:as(n)?n.values[n.values.length-1]:lu(e,Lr(i,t-1,n.startTime,s),n)},rl=(i,t,e,s,n)=>e===void 0?[s.insertTime,n]:ws(e)?[e.endTime,e.value]:Fa(e)?[e.startTime,e.value]:as(e)?[e.startTime+e.duration,e.values[e.values.length-1]]:[e.startTime,Lr(i,t-1,e.startTime,n)],ra=i=>i.type==="cancelAndHold",oa=i=>i.type==="cancelScheduledValues",ks=i=>ra(i)||oa(i)?i.cancelTime:En(i)||Fr(i)?i.endTime:i.startTime,ol=(i,t,e,{endTime:s,value:n})=>e===n?n:0e+(i-t)/(s-t)*(n-e),_0=(i,t)=>{const e=Math.floor(t),s=Math.ceil(t);return e===s?i[e]:(1-(t-e))*i[e]+(1-(s-t))*i[s]},g0=(i,{duration:t,startTime:e,values:s})=>{const n=(i-e)/t*(s.length-1);return _0(s,n)},wr=i=>i.type==="setTarget";class y0{constructor(t){this._automationEvents=[],this._currenTime=0,this._defaultValue=t}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(t){const e=ks(t);if(ra(t)||oa(t)){const s=this._automationEvents.findIndex(r=>oa(t)&&as(r)?r.startTime+r.duration>=e:ks(r)>=e),n=this._automationEvents[s];if(s!==-1&&(this._automationEvents=this._automationEvents.slice(0,s)),ra(t)){const r=this._automationEvents[this._automationEvents.length-1];if(n!==void 0&&ws(n)){if(r!==void 0&&wr(r))throw new Error("The internal list is malformed.");const o=r===void 0?n.insertTime:as(r)?r.startTime+r.duration:ks(r),a=r===void 0?this._defaultValue:as(r)?r.values[r.values.length-1]:r.value,c=En(n)?ol(e,o,a,n):al(e,o,a,n),l=En(n)?nl(c,e,this._currenTime):il(c,e,this._currenTime);this._automationEvents.push(l)}if(r!==void 0&&wr(r)&&this._automationEvents.push(ia(this.getValue(e),e)),r!==void 0&&as(r)&&r.startTime+r.duration>e){const o=e-r.startTime,a=(r.values.length-1)/r.duration,c=Math.max(2,1+Math.ceil(o*a)),l=o/(c-1)*a,u=r.values.slice(0,c);if(l<1)for(let h=1;hks(o)>e),n=s===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[s-1];if(n!==void 0&&as(n)&&ks(n)+n.duration>e)return!1;const r=En(t)?nl(t.value,t.endTime,this._currenTime):Fr(t)?il(t.value,e,this._currenTime):t;if(s===-1)this._automationEvents.push(r);else{if(as(t)&&e+t.duration>ks(this._automationEvents[s]))return!1;this._automationEvents.splice(s,0,r)}}return!0}flush(t){const e=this._automationEvents.findIndex(s=>ks(s)>t);if(e>1){const s=this._automationEvents.slice(e-1),n=s[0];wr(n)&&s.unshift(ia(Lr(this._automationEvents,e-2,n.startTime,this._defaultValue),n.startTime)),this._automationEvents=s}}getValue(t){if(this._automationEvents.length===0)return this._defaultValue;const e=this._automationEvents.findIndex(o=>ks(o)>t),s=this._automationEvents[e],n=(e===-1?this._automationEvents.length:e)-1,r=this._automationEvents[n];if(r!==void 0&&wr(r)&&(s===void 0||!ws(s)||s.insertTime>t))return lu(t,Lr(this._automationEvents,n-1,r.startTime,this._defaultValue),r);if(r!==void 0&&Fa(r)&&(s===void 0||!ws(s)))return r.value;if(r!==void 0&&as(r)&&(s===void 0||!ws(s)||r.startTime+r.duration>t))return t({cancelTime:i,type:"cancelAndHold"}),x0=i=>({cancelTime:i,type:"cancelScheduledValues"}),k0=(i,t)=>({endTime:t,type:"exponentialRampToValue",value:i}),T0=(i,t)=>({endTime:t,type:"linearRampToValue",value:i}),w0=(i,t,e)=>({startTime:t,target:i,timeConstant:e,type:"setTarget"}),b0=()=>new DOMException("","AbortError"),C0=i=>(t,e,[s,n,r],o)=>{i(t[n],[e,s,r],a=>a[0]===e&&a[1]===s,o)},S0=i=>(t,e,s)=>{const n=[];for(let r=0;r(t,e)=>{i.set(t,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})},Ln=new WeakSet,uu=new WeakMap,La=new WeakMap,hu=new WeakMap,Va=new WeakMap,mo=new WeakMap,du=new WeakMap,aa=new WeakMap,ca=new WeakMap,la=new WeakMap,fu={construct(){return fu}},O0=i=>{try{const t=new Proxy(i,fu);new t}catch{return!1}return!0},cl=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,ll=(i,t)=>{const e=[];let s=i.replace(/^[\s]+/,""),n=s.match(cl);for(;n!==null;){const r=n[1].slice(1,-1),o=n[0].replace(/([\s]+)?;?$/,"").replace(r,new URL(r,t).toString());e.push(o),s=s.slice(n[0].length).replace(/^[\s]+/,""),n=s.match(cl)}return[e.join(";"),s]},ul=i=>{if(i!==void 0&&!Array.isArray(i))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},hl=i=>{if(!O0(i))throw new TypeError("The given value for processorCtor should be a constructor.");if(i.prototype===null||typeof i.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},A0=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>{let p=0;return(_,f,m={credentials:"omit"})=>{const v=u.get(_);if(v!==void 0&&v.has(f))return Promise.resolve();const b=l.get(_);if(b!==void 0){const y=b.get(f);if(y!==void 0)return y}const w=r(_),g=w.audioWorklet===void 0?n(f).then(([y,T])=>{const[k,x]=ll(y,T),C=`${k};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${x} -})})(window,'_AWGS')`;return e(C)}).then(()=>{const y=d._AWGS.pop();if(y===void 0)throw new SyntaxError;s(w.currentTime,w.sampleRate,()=>y(class{},void 0,(T,k)=>{if(T.trim()==="")throw t();const x=ca.get(w);if(x!==void 0){if(x.has(T))throw t();hl(k),ul(k.parameterDescriptors),x.set(T,k)}else hl(k),ul(k.parameterDescriptors),ca.set(w,new Map([[T,k]]))},w.sampleRate,void 0,void 0))}):Promise.all([n(f),Promise.resolve(i(h,h))]).then(([[y,T],k])=>{const x=p+1;p=x;const[C,O]=ll(y,T),B=`${C};((AudioWorkletProcessor,registerProcessor)=>{${O} -})(${k?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${k?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${k?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${x}',class extends AudioWorkletProcessor{process(){return !1}})`,G=new Blob([B],{type:"application/javascript; charset=utf-8"}),Y=URL.createObjectURL(G);return w.audioWorklet.addModule(Y,m).then(()=>{if(a(w))return w;const j=o(w);return j.audioWorklet.addModule(Y,m).then(()=>j)}).then(j=>{if(c===null)throw new SyntaxError;try{new c(j,`__sac${x}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(Y))});return b===void 0?l.set(_,new Map([[f,g]])):b.set(f,g),g.then(()=>{const y=u.get(_);y===void 0?u.set(_,new Set([f])):y.add(f)}).finally(()=>{const y=l.get(_);y!==void 0&&y.delete(f)}),g}},ze=(i,t)=>{const e=i.get(t);if(e===void 0)throw new Error("A value with the given key could not be found.");return e},_o=(i,t)=>{const e=Array.from(i).filter(t);if(e.length>1)throw Error("More than one element was found.");if(e.length===0)throw Error("No element was found.");const[s]=e;return i.delete(s),s},pu=(i,t,e,s)=>{const n=ze(i,t),r=_o(n,o=>o[0]===e&&o[1]===s);return n.size===0&&i.delete(t),r},nr=i=>ze(du,i),Vn=i=>{if(Ln.has(i))throw new Error("The AudioNode is already stored.");Ln.add(i),nr(i).forEach(t=>t(!0))},mu=i=>"port"in i,ir=i=>{if(!Ln.has(i))throw new Error("The AudioNode is not stored.");Ln.delete(i),nr(i).forEach(t=>t(!1))},ua=(i,t)=>{!mu(i)&&t.every(e=>e.size===0)&&ir(i)},M0=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>{const p=new WeakMap;return(_,f,m,v,b)=>{const{activeInputs:w,passiveInputs:g}=r(f),{outputs:y}=r(_),T=a(_),k=x=>{const C=c(f),O=c(_);if(x){const I=pu(g,_,m,v);i(w,_,I,!1),!b&&!h(_)&&e(O,C,m,v),d(f)&&Vn(f)}else{const I=s(w,_,m,v);t(g,v,I,!1),!b&&!h(_)&&n(O,C,m,v);const M=o(f);if(M===0)u(f)&&ua(f,w);else{const V=p.get(f);V!==void 0&&clearTimeout(V),p.set(f,setTimeout(()=>{u(f)&&ua(f,w)},M*1e3))}}};return l(y,[f,m,v],x=>x[0]===f&&x[1]===m&&x[2]===v,!0)?(T.add(k),u(_)?i(w,_,[m,v,k],!0):t(g,v,[_,m,k],!0),!0):!1}},D0=i=>(t,e,[s,n,r],o)=>{const a=t.get(s);a===void 0?t.set(s,new Set([[n,e,r]])):i(a,[n,e,r],c=>c[0]===n&&c[1]===e,o)},P0=i=>(t,e)=>{const s=i(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});e.connect(s).connect(t.destination);const n=()=>{e.removeEventListener("ended",n),e.disconnect(s),s.disconnect()};e.addEventListener("ended",n)},I0=i=>(t,e)=>{i(t).add(e)},N0={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},R0=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...N0,...c},h=s(l,u),d=r(l)?t():null;super(a,!1,h,d),this._nativeAnalyserNode=h}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(a){this._nativeAnalyserNode.fftSize=a}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(a){const c=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=a,!(a>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=c,e()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(a){const c=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=a,!(this._nativeAnalyserNode.maxDecibels>a))throw this._nativeAnalyserNode.minDecibels=c,e()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(a){this._nativeAnalyserNode.smoothingTimeConstant=a}getByteFrequencyData(a){this._nativeAnalyserNode.getByteFrequencyData(a)}getByteTimeDomainData(a){this._nativeAnalyserNode.getByteTimeDomainData(a)}getFloatFrequencyData(a){this._nativeAnalyserNode.getFloatFrequencyData(a)}getFloatTimeDomainData(a){this._nativeAnalyserNode.getFloatTimeDomainData(a)}},se=(i,t)=>i.context===t,F0=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,fftSize:a.fftSize,maxDecibels:a.maxDecibels,minDecibels:a.minDecibels,smoothingTimeConstant:a.smoothingTimeConstant};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Vr=i=>{try{i.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},ts=()=>new DOMException("","IndexSizeError"),Ua=i=>{i.getChannelData=(t=>e=>{try{return t.call(i,e)}catch(s){throw s.code===12?ts():s}})(i.getChannelData)},L0={numberOfChannels:1},V0=(i,t,e,s,n,r,o,a)=>{let c=null;return class _u{constructor(u){if(n===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:p}={...L0,...u};c===null&&(c=new n(1,1,44100));const _=s!==null&&t(r,r)?new s({length:h,numberOfChannels:d,sampleRate:p}):c.createBuffer(d,h,p);if(_.numberOfChannels===0)throw e();return typeof _.copyFromChannel!="function"?(o(_),Ua(_)):t(Vr,()=>Vr(_))||a(_),i.add(_),_}static[Symbol.hasInstance](u){return u!==null&&typeof u=="object"&&Object.getPrototypeOf(u)===_u.prototype||i.has(u)}}},ce=-34028234663852886e22,ne=-ce,us=i=>Ln.has(i),U0={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},z0=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...U0,...u},p=n(h,d),_=o(h),f=_?t():null;super(l,!1,p,f),this._audioBufferSourceNodeRenderer=f,this._isBufferNullified=!1,this._isBufferSet=d.buffer!==null,this._nativeAudioBufferSourceNode=p,this._onended=null,this._playbackRate=e(this,_,p.playbackRate,ne,ce)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(l){if(this._nativeAudioBufferSourceNode.buffer=l,l!==null){if(this._isBufferSet)throw s();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(l){this._nativeAudioBufferSourceNode.loop=l}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(l){this._nativeAudioBufferSourceNode.loopEnd=l}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(l){this._nativeAudioBufferSourceNode.loopStart=l}get onended(){return this._onended}set onended(l){const u=typeof l=="function"?a(this,l):null;this._nativeAudioBufferSourceNode.onended=u;const h=this._nativeAudioBufferSourceNode.onended;this._onended=h!==null&&h===u?l:h}get playbackRate(){return this._playbackRate}start(l=0,u=0,h){if(this._nativeAudioBufferSourceNode.start(l,u,h),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.start=h===void 0?[l,u]:[l,u,h]),this.context.state!=="closed"){Vn(this);const d=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",d),us(this)&&ir(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",d)}}stop(l=0){this._nativeAudioBufferSourceNode.stop(l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=l)}},j0=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=e(l);const d=se(h,u);if(!d){const p={buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value};h=t(u,p),o!==null&&h.start(...o),a!==null&&h.stop(a)}return r.set(u,h),d?await i(u,l.playbackRate,h.playbackRate):await s(u,l.playbackRate,h.playbackRate),await n(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=r.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},B0=i=>"playbackRate"in i,q0=i=>"frequency"in i&&"gain"in i,W0=i=>"offset"in i,H0=i=>!("frequency"in i)&&"gain"in i,Y0=i=>"detune"in i&&"frequency"in i,G0=i=>"pan"in i,re=i=>ze(uu,i),rr=i=>ze(hu,i),ha=(i,t)=>{const{activeInputs:e}=re(i);e.forEach(n=>n.forEach(([r])=>{t.includes(i)||ha(r,[...t,i])}));const s=B0(i)?[i.playbackRate]:mu(i)?Array.from(i.parameters.values()):q0(i)?[i.Q,i.detune,i.frequency,i.gain]:W0(i)?[i.offset]:H0(i)?[i.gain]:Y0(i)?[i.detune,i.frequency]:G0(i)?[i.pan]:[];for(const n of s){const r=rr(n);r!==void 0&&r.activeInputs.forEach(([o])=>ha(o,t))}us(i)&&ir(i)},gu=i=>{ha(i.destination,[])},$0=i=>i===void 0||typeof i=="number"||typeof i=="string"&&(i==="balanced"||i==="interactive"||i==="playback"),Z0=(i,t,e,s,n,r,o,a,c)=>class extends i{constructor(u={}){if(c===null)throw new Error("Missing the native AudioContext constructor.");let h;try{h=new c(u)}catch(_){throw _.code===12&&_.message==="sampleRate is not in range"?e():_}if(h===null)throw s();if(!$0(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(u.sampleRate!==void 0&&h.sampleRate!==u.sampleRate)throw e();super(h,2);const{latencyHint:d}=u,{sampleRate:p}=h;if(this._baseLatency=typeof h.baseLatency=="number"?h.baseLatency:d==="balanced"?512/p:d==="interactive"||d===void 0?256/p:d==="playback"?1024/p:Math.max(2,Math.min(128,Math.round(d*p/128)))*128/p,this._nativeAudioContext=h,c.name==="webkitAudioContext"?(this._nativeGainNode=h.createGain(),this._nativeOscillatorNode=h.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(h.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,h.state==="running"){this._state="suspended";const _=()=>{this._state==="suspended"&&(this._state=null),h.removeEventListener("statechange",_)};h.addEventListener("statechange",_)}}get baseLatency(){return this._baseLatency}get state(){return this._state!==null?this._state:this._nativeAudioContext.state}close(){return this.state==="closed"?this._nativeAudioContext.close().then(()=>{throw t()}):(this._state==="suspended"&&(this._state=null),this._nativeAudioContext.close().then(()=>{this._nativeGainNode!==null&&this._nativeOscillatorNode!==null&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),gu(this)}))}createMediaElementSource(u){return new n(this,{mediaElement:u})}createMediaStreamDestination(){return new r(this)}createMediaStreamSource(u){return new o(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new a(this,{mediaStreamTrack:u})}resume(){return this._state==="suspended"?new Promise((u,h)=>{const d=()=>{this._nativeAudioContext.removeEventListener("statechange",d),this._nativeAudioContext.state==="running"?u():this.resume().then(u,h)};this._nativeAudioContext.addEventListener("statechange",d)}):this._nativeAudioContext.resume().catch(u=>{throw u===void 0||u.code===15?t():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw u===void 0?t():u})}},X0=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d=o(h),p=n(h,u,d),_=d?t(a):null;super(l,!1,p,_),this._isNodeOfNativeOfflineAudioContext=d,this._nativeAudioDestinationNode=p}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();if(l>this._nativeAudioDestinationNode.maxChannelCount)throw e();this._nativeAudioDestinationNode.channelCount=l}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();this._nativeAudioDestinationNode.channelCountMode=l}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}},Q0=i=>{const t=new WeakMap,e=async(s,n)=>{const r=n.destination;return t.set(n,r),await i(s,n,r),r};return{render(s,n){const r=t.get(n);return r!==void 0?Promise.resolve(r):e(s,n)}}},K0=(i,t,e,s,n,r,o,a)=>(c,l)=>{const u=l.listener,h=()=>{const y=new Float32Array(1),T=t(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),k=o(l);let x=!1,C=[0,0,-1,0,1,0],O=[0,0,0];const I=()=>{if(x)return;x=!0;const G=s(l,256,9,0);G.onaudioprocess=({inputBuffer:Y})=>{const j=[r(Y,y,0),r(Y,y,1),r(Y,y,2),r(Y,y,3),r(Y,y,4),r(Y,y,5)];j.some((Z,Q)=>Z!==C[Q])&&(u.setOrientation(...j),C=j);const z=[r(Y,y,6),r(Y,y,7),r(Y,y,8)];z.some((Z,Q)=>Z!==O[Q])&&(u.setPosition(...z),O=z)},T.connect(G)},M=G=>Y=>{Y!==C[G]&&(C[G]=Y,u.setOrientation(...C))},V=G=>Y=>{Y!==O[G]&&(O[G]=Y,u.setPosition(...O))},B=(G,Y,j)=>{const z=e(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Y});z.connect(T,0,G),z.start(),Object.defineProperty(z.offset,"defaultValue",{get(){return Y}});const Z=i({context:c},k,z.offset,ne,ce);return a(Z,"value",Q=>()=>Q.call(Z),Q=>et=>{try{Q.call(Z,et)}catch(R){if(R.code!==9)throw R}I(),k&&j(et)}),Z.cancelAndHoldAtTime=(Q=>k?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.cancelAndHoldAtTime),Z.cancelScheduledValues=(Q=>k?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.cancelScheduledValues),Z.exponentialRampToValueAtTime=(Q=>k?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.exponentialRampToValueAtTime),Z.linearRampToValueAtTime=(Q=>k?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.linearRampToValueAtTime),Z.setTargetAtTime=(Q=>k?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.setTargetAtTime),Z.setValueAtTime=(Q=>k?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.setValueAtTime),Z.setValueCurveAtTime=(Q=>k?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.setValueCurveAtTime),Z};return{forwardX:B(0,0,M(0)),forwardY:B(1,0,M(1)),forwardZ:B(2,-1,M(2)),positionX:B(6,0,V(0)),positionY:B(7,0,V(1)),positionZ:B(8,0,V(2)),upX:B(3,0,M(3)),upY:B(4,1,M(4)),upZ:B(5,0,M(5))}},{forwardX:d,forwardY:p,forwardZ:_,positionX:f,positionY:m,positionZ:v,upX:b,upY:w,upZ:g}=u.forwardX===void 0?h():u;return{get forwardX(){return d},get forwardY(){return p},get forwardZ(){return _},get positionX(){return f},get positionY(){return m},get positionZ(){return v},get upX(){return b},get upY(){return w},get upZ(){return g}}},Ur=i=>"context"in i,or=i=>Ur(i[0]),dn=(i,t,e,s)=>{for(const n of i)if(e(n)){if(s)return!1;throw Error("The set contains at least one similar element.")}return i.add(t),!0},dl=(i,t,[e,s],n)=>{dn(i,[t,e,s],r=>r[0]===t&&r[1]===e,n)},fl=(i,[t,e,s],n)=>{const r=i.get(t);r===void 0?i.set(t,new Set([[e,s]])):dn(r,[e,s],o=>o[0]===e,n)},Zn=i=>"inputs"in i,zr=(i,t,e,s)=>{if(Zn(t)){const n=t.inputs[s];return i.connect(n,e,0),[n,e,0]}return i.connect(t,e,s),[t,e,s]},yu=(i,t,e)=>{for(const s of i)if(s[0]===t&&s[1]===e)return i.delete(s),s;return null},J0=(i,t,e)=>_o(i,s=>s[0]===t&&s[1]===e),vu=(i,t)=>{if(!nr(i).delete(t))throw new Error("Missing the expected event listener.")},xu=(i,t,e)=>{const s=ze(i,t),n=_o(s,r=>r[0]===e);return s.size===0&&i.delete(t),n},jr=(i,t,e,s)=>{Zn(t)?i.disconnect(t.inputs[s],e,0):i.disconnect(t,e,s)},Dt=i=>ze(La,i),Ei=i=>ze(Va,i),rn=i=>aa.has(i),Dr=i=>!Ln.has(i),pl=(i,t)=>new Promise(e=>{if(t!==null)e(!0);else{const s=i.createScriptProcessor(256,1,1),n=i.createGain(),r=i.createBuffer(1,2,44100),o=r.getChannelData(0);o[0]=1,o[1]=1;const a=i.createBufferSource();a.buffer=r,a.loop=!0,a.connect(s).connect(i.destination),a.connect(n),a.disconnect(n),s.onaudioprocess=c=>{const l=c.inputBuffer.getChannelData(0);Array.prototype.some.call(l,u=>u===1)?e(!0):e(!1),a.stop(),s.onaudioprocess=null,a.disconnect(s),s.disconnect(i.destination)},a.start()}}),qo=(i,t)=>{const e=new Map;for(const s of i)for(const n of s){const r=e.get(n);e.set(n,r===void 0?1:r+1)}e.forEach((s,n)=>t(n,s))},Br=i=>"context"in i,tp=i=>{const t=new Map;i.connect=(e=>(s,n=0,r=0)=>{const o=Br(s)?e(s,n,r):e(s,n),a=t.get(s);return a===void 0?t.set(s,[{input:r,output:n}]):a.every(c=>c.input!==r||c.output!==n)&&a.push({input:r,output:n}),o})(i.connect.bind(i)),i.disconnect=(e=>(s,n,r)=>{if(e.apply(i),s===void 0)t.clear();else if(typeof s=="number")for(const[o,a]of t){const c=a.filter(l=>l.output!==s);c.length===0?t.delete(o):t.set(o,c)}else if(t.has(s))if(n===void 0)t.delete(s);else{const o=t.get(s);if(o!==void 0){const a=o.filter(c=>c.output!==n&&(c.input!==r||r===void 0));a.length===0?t.delete(s):t.set(s,a)}}for(const[o,a]of t)a.forEach(c=>{Br(o)?i.connect(o,c.output,c.input):i.connect(o,c.output)})})(i.disconnect)},ep=(i,t,e,s)=>{const{activeInputs:n,passiveInputs:r}=rr(t),{outputs:o}=re(i),a=nr(i),c=l=>{const u=Dt(i),h=Ei(t);if(l){const d=xu(r,i,e);dl(n,i,d,!1),!s&&!rn(i)&&u.connect(h,e)}else{const d=J0(n,i,e);fl(r,d,!1),!s&&!rn(i)&&u.disconnect(h,e)}};return dn(o,[t,e],l=>l[0]===t&&l[1]===e,!0)?(a.add(c),us(i)?dl(n,i,[e,c],!0):fl(r,[i,e,c],!0),!0):!1},sp=(i,t,e,s)=>{const{activeInputs:n,passiveInputs:r}=re(t),o=yu(n[s],i,e);return o===null?[pu(r,i,e,s)[2],!1]:[o[2],!0]},np=(i,t,e)=>{const{activeInputs:s,passiveInputs:n}=rr(t),r=yu(s,i,e);return r===null?[xu(n,i,e)[1],!1]:[r[2],!0]},za=(i,t,e,s,n)=>{const[r,o]=sp(i,e,s,n);if(r!==null&&(vu(i,r),o&&!t&&!rn(i)&&jr(Dt(i),Dt(e),s,n)),us(e)){const{activeInputs:a}=re(e);ua(e,a)}},ja=(i,t,e,s)=>{const[n,r]=np(i,e,s);n!==null&&(vu(i,n),r&&!t&&!rn(i)&&Dt(i).disconnect(Ei(e),s))},ip=(i,t)=>{const e=re(i),s=[];for(const n of e.outputs)or(n)?za(i,t,...n):ja(i,t,...n),s.push(n[0]);return e.outputs.clear(),s},rp=(i,t,e)=>{const s=re(i),n=[];for(const r of s.outputs)r[1]===e&&(or(r)?za(i,t,...r):ja(i,t,...r),n.push(r[0]),s.outputs.delete(r));return n},op=(i,t,e,s,n)=>{const r=re(i);return Array.from(r.outputs).filter(o=>o[0]===e&&(s===void 0||o[1]===s)&&(n===void 0||o[2]===n)).map(o=>(or(o)?za(i,t,...o):ja(i,t,...o),r.outputs.delete(o),o[0]))},ap=(i,t,e,s,n,r,o,a,c,l,u,h,d,p,_,f)=>class extends l{constructor(v,b,w,g){super(w),this._context=v,this._nativeAudioNode=w;const y=u(v);h(y)&&e(pl,()=>pl(y,f))!==!0&&tp(w),La.set(this,w),du.set(this,new Set),v.state!=="closed"&&b&&Vn(this),i(this,g,w)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(v){this._nativeAudioNode.channelCount=v}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(v){this._nativeAudioNode.channelCountMode=v}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(v){this._nativeAudioNode.channelInterpretation=v}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(v,b=0,w=0){if(b<0||b>=this._nativeAudioNode.numberOfOutputs)throw n();const g=u(this._context),y=_(g);if(d(v)||p(v))throw r();if(Ur(v)){const x=Dt(v);try{const O=zr(this._nativeAudioNode,x,b,w),I=Dr(this);(y||I)&&this._nativeAudioNode.disconnect(...O),this.context.state!=="closed"&&!I&&Dr(v)&&Vn(v)}catch(O){throw O.code===12?r():O}if(t(this,v,b,w,y)){const O=c([this],v);qo(O,s(y))}return v}const T=Ei(v);if(T.name==="playbackRate"&&T.maxValue===1024)throw o();try{this._nativeAudioNode.connect(T,b),(y||Dr(this))&&this._nativeAudioNode.disconnect(T,b)}catch(x){throw x.code===12?r():x}if(ep(this,v,b,y)){const x=c([this],v);qo(x,s(y))}}disconnect(v,b,w){let g;const y=u(this._context),T=_(y);if(v===void 0)g=ip(this,T);else if(typeof v=="number"){if(v<0||v>=this.numberOfOutputs)throw n();g=rp(this,T,v)}else{if(b!==void 0&&(b<0||b>=this.numberOfOutputs)||Ur(v)&&w!==void 0&&(w<0||w>=v.numberOfInputs))throw n();if(g=op(this,T,v,b,w),g.length===0)throw r()}for(const k of g){const x=c([this],k);qo(x,a)}}},cp=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>(p,_,f,m=null,v=null)=>{const b=f.value,w=new y0(b),g=_?s(w):null,y={get defaultValue(){return b},get maxValue(){return m===null?f.maxValue:m},get minValue(){return v===null?f.minValue:v},get value(){return f.value},set value(T){f.value=T,y.setValueAtTime(T,p.context.currentTime)},cancelAndHoldAtTime(T){if(typeof f.cancelAndHoldAtTime=="function")g===null&&w.flush(p.context.currentTime),w.add(n(T)),f.cancelAndHoldAtTime(T);else{const k=Array.from(w).pop();g===null&&w.flush(p.context.currentTime),w.add(n(T));const x=Array.from(w).pop();f.cancelScheduledValues(T),k!==x&&x!==void 0&&(x.type==="exponentialRampToValue"?f.exponentialRampToValueAtTime(x.value,x.endTime):x.type==="linearRampToValue"?f.linearRampToValueAtTime(x.value,x.endTime):x.type==="setValue"?f.setValueAtTime(x.value,x.startTime):x.type==="setValueCurve"&&f.setValueCurveAtTime(x.values,x.startTime,x.duration))}return y},cancelScheduledValues(T){return g===null&&w.flush(p.context.currentTime),w.add(r(T)),f.cancelScheduledValues(T),y},exponentialRampToValueAtTime(T,k){if(T===0)throw new RangeError;if(!Number.isFinite(k)||k<0)throw new RangeError;const x=p.context.currentTime;return g===null&&w.flush(x),Array.from(w).length===0&&(w.add(l(b,x)),f.setValueAtTime(b,x)),w.add(o(T,k)),f.exponentialRampToValueAtTime(T,k),y},linearRampToValueAtTime(T,k){const x=p.context.currentTime;return g===null&&w.flush(x),Array.from(w).length===0&&(w.add(l(b,x)),f.setValueAtTime(b,x)),w.add(a(T,k)),f.linearRampToValueAtTime(T,k),y},setTargetAtTime(T,k,x){return g===null&&w.flush(p.context.currentTime),w.add(c(T,k,x)),f.setTargetAtTime(T,k,x),y},setValueAtTime(T,k){return g===null&&w.flush(p.context.currentTime),w.add(l(T,k)),f.setValueAtTime(T,k),y},setValueCurveAtTime(T,k,x){const C=T instanceof Float32Array?T:new Float32Array(T);if(h!==null&&h.name==="webkitAudioContext"){const O=k+x,I=p.context.sampleRate,M=Math.ceil(k*I),V=Math.floor(O*I),B=V-M,G=new Float32Array(B);for(let j=0;j({replay(t){for(const e of i)if(e.type==="exponentialRampToValue"){const{endTime:s,value:n}=e;t.exponentialRampToValueAtTime(n,s)}else if(e.type==="linearRampToValue"){const{endTime:s,value:n}=e;t.linearRampToValueAtTime(n,s)}else if(e.type==="setTarget"){const{startTime:s,target:n,timeConstant:r}=e;t.setTargetAtTime(n,s,r)}else if(e.type==="setValue"){const{startTime:s,value:n}=e;t.setValueAtTime(n,s)}else if(e.type==="setValueCurve"){const{duration:s,startTime:n,values:r}=e;t.setValueCurveAtTime(r,n,s)}else throw new Error("Can't apply an unknown automation.")}});class ku{constructor(t){this._map=new Map(t)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(t,e=null){return this._map.forEach((s,n)=>t.call(e,s,n,this))}get(t){return this._map.get(t)}has(t){return this._map.has(t)}keys(){return this._map.keys()}values(){return this._map.values()}}const up={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},hp=(i,t,e,s,n,r,o,a,c,l,u,h,d,p)=>class extends t{constructor(f,m,v){var b;const w=a(f),g=c(w),y=u({...up,...v});d(y);const T=ca.get(w),k=T==null?void 0:T.get(m),x=g||w.state!=="closed"?w:(b=o(w))!==null&&b!==void 0?b:w,C=n(x,g?null:f.baseLatency,l,m,k,y),O=g?s(m,y,k):null;super(f,!0,C,O);const I=[];C.parameters.forEach((V,B)=>{const G=e(this,g,V);I.push([B,G])}),this._nativeAudioWorkletNode=C,this._onprocessorerror=null,this._parameters=new ku(I),g&&i(w,this);const{activeInputs:M}=r(this);h(C,M)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(f){const m=typeof f=="function"?p(this,f):null;this._nativeAudioWorkletNode.onprocessorerror=m;const v=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=v!==null&&v===m?f:v}get parameters(){return this._parameters===null?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}};function qr(i,t,e,s,n){if(typeof i.copyFromChannel=="function")t[e].byteLength===0&&(t[e]=new Float32Array(128)),i.copyFromChannel(t[e],s,n);else{const r=i.getChannelData(s);if(t[e].byteLength===0)t[e]=r.slice(n,n+128);else{const o=new Float32Array(r.buffer,n*Float32Array.BYTES_PER_ELEMENT,128);t[e].set(o)}}}const Tu=(i,t,e,s,n)=>{typeof i.copyToChannel=="function"?t[e].byteLength!==0&&i.copyToChannel(t[e],s,n):t[e].byteLength!==0&&i.getChannelData(s).set(t[e],n)},Wr=(i,t)=>{const e=[];for(let s=0;s{const e=ze(la,i),s=Dt(t);return ze(e,s)},fp=async(i,t,e,s,n,r,o)=>{const a=t===null?Math.ceil(i.context.length/128)*128:t.length,c=s.channelCount*s.numberOfInputs,l=n.reduce((m,v)=>m+v,0),u=l===0?null:e.createBuffer(l,a,e.sampleRate);if(r===void 0)throw new Error("Missing the processor constructor.");const h=re(i),d=await dp(e,i),p=Wr(s.numberOfInputs,s.channelCount),_=Wr(s.numberOfOutputs,n),f=Array.from(i.parameters.keys()).reduce((m,v)=>({...m,[v]:new Float32Array(128)}),{});for(let m=0;m0&&t!==null)for(let v=0;v{qr(t,f,v,c+b,m)});for(let v=0;vh.activeInputs[g].size===0?[]:w),b=o(m/e.sampleRate,e.sampleRate,()=>d.process(v,_,f));if(u!==null)for(let w=0,g=0;w(m,v,b)=>{const w=new WeakMap;let g=null;const y=async(T,k)=>{let x=u(T),C=null;const O=se(x,k),I=Array.isArray(v.outputChannelCount)?v.outputChannelCount:Array.from(v.outputChannelCount);if(h===null){const M=I.reduce((Y,j)=>Y+j,0),V=n(k,{channelCount:Math.max(1,M),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,M)}),B=[];for(let Y=0;Y{const et=new d(Z,Math.ceil(T.context.length/128)*128,k.sampleRate),R=[],F=[];for(let H=0;H{const N=r(et,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:H.value});return await p(et,H,N.offset),N})),D=s(et,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,j+z)});for(let H=0;H_(T,et,H))),f(et)})(),k,v,I,b,l)}const M=await g,V=e(k,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[B,G,Y]=C;M!==null&&(V.buffer=M,V.start(0)),V.connect(B);for(let j=0,z=0;jclass extends _{constructor(y,T){super(y,T),this._nativeContext=y,this._audioWorklet=i===void 0?void 0:{addModule:(k,x)=>i(this,k,x)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new t(this)}createBiquadFilter(){return new n(this)}createBuffer(y,T,k){return new e({length:T,numberOfChannels:y,sampleRate:k})}createBufferSource(){return new s(this)}createChannelMerger(y=6){return new r(this,{numberOfInputs:y})}createChannelSplitter(y=6){return new o(this,{numberOfOutputs:y})}createConstantSource(){return new a(this)}createConvolver(){return new c(this)}createDelay(y=1){return new u(this,{maxDelayTime:y})}createDynamicsCompressor(){return new h(this)}createGain(){return new d(this)}createIIRFilter(y,T){return new p(this,{feedback:T,feedforward:y})}createOscillator(){return new f(this)}createPanner(){return new m(this)}createPeriodicWave(y,T,k={disableNormalization:!1}){return new v(this,{...k,imag:T,real:y})}createStereoPanner(){return new b(this)}createWaveShaper(){return new w(this)}decodeAudioData(y,T,k){return l(this._nativeContext,y).then(x=>(typeof T=="function"&&T(x),x),x=>{throw typeof k=="function"&&k(x),x})}},_p={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},gp=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={..._p,...u},p=n(h,d),_=o(h),f=_?e():null;super(l,!1,p,f),this._Q=t(this,_,p.Q,ne,ce),this._detune=t(this,_,p.detune,1200*Math.log2(ne),-1200*Math.log2(ne)),this._frequency=t(this,_,p.frequency,l.sampleRate/2,0),this._gain=t(this,_,p.gain,40*Math.log10(ne),ce),this._nativeBiquadFilterNode=p,a(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(l){this._nativeBiquadFilterNode.type=l}getFrequencyResponse(l,u,h){try{this._nativeBiquadFilterNode.getFrequencyResponse(l,u,h)}catch(d){throw d.code===11?s():d}if(l.length!==u.length||u.length!==h.length)throw s()}},yp=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={Q:l.Q.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,detune:l.detune.value,frequency:l.frequency.value,gain:l.gain.value,type:l.type};l=t(c,h)}return r.set(c,l),u?(await i(c,a.Q,l.Q),await i(c,a.detune,l.detune),await i(c,a.frequency,l.frequency),await i(c,a.gain,l.gain)):(await s(c,a.Q,l.Q),await s(c,a.detune,l.detune),await s(c,a.frequency,l.frequency),await s(c,a.gain,l.gain)),await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},vp=(i,t)=>(e,s)=>{const n=t.get(e);if(n!==void 0)return n;const r=i.get(e);if(r!==void 0)return r;try{const o=s();return o instanceof Promise?(i.set(e,o),o.catch(()=>!1).then(a=>(i.delete(e),t.set(e,a),a))):(t.set(e,o),o)}catch{return t.set(e,!1),!1}},xp={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},kp=(i,t,e,s,n)=>class extends i{constructor(o,a){const c=s(o),l={...xp,...a},u=e(c,l),h=n(c)?t():null;super(o,!1,u,h)}},Tp=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfInputs:a.numberOfInputs};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},wp={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},bp=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u=r({...wp,...c}),h=e(l,u),d=n(l)?t():null;super(a,!1,h,d)}},Cp=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfOutputs:a.numberOfOutputs};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Sp=i=>(t,e,s)=>i(e,t,s),Ep=i=>(t,e,s=0,n=0)=>{const r=t[s];if(r===void 0)throw i();return Br(e)?r.connect(e,0,n):r.connect(e,0)},Op=i=>(t,e)=>{const s=i(t,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),n=t.createBuffer(1,2,44100);return s.buffer=n,s.loop=!0,s.connect(e),s.start(),()=>{s.stop(),s.disconnect(e)}},Ap={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},Mp=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...Ap,...l},d=s(u,h),p=r(u),_=p?e():null;super(c,!1,d,_),this._constantSourceNodeRenderer=_,this._nativeConstantSourceNode=d,this._offset=t(this,p,d.offset,ne,ce),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeConstantSourceNode.onended=l;const u=this._nativeConstantSourceNode.onended;this._onended=u!==null&&u===l?c:u}start(c=0){if(this._nativeConstantSourceNode.start(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.start=c),this.context.state!=="closed"){Vn(this);const l=()=>{this._nativeConstantSourceNode.removeEventListener("ended",l),us(this)&&ir(this)};this._nativeConstantSourceNode.addEventListener("ended",l)}}stop(c=0){this._nativeConstantSourceNode.stop(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=c)}},Dp=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=e(l);const d=se(h,u);if(!d){const p={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value};h=t(u,p),o!==null&&h.start(o),a!==null&&h.stop(a)}return r.set(u,h),d?await i(u,l.offset,h.offset):await s(u,l.offset,h.offset),await n(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=r.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},Pp=i=>t=>(i[0]=t,i[0]),Ip={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},Np=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u={...Ip,...c},h=e(l,u),p=n(l)?t():null;super(a,!1,h,p),this._isBufferNullified=!1,this._nativeConvolverNode=h,u.buffer!==null&&r(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(a){if(this._nativeConvolverNode.buffer=a,a===null&&this._nativeConvolverNode.buffer!==null){const c=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=c.createBuffer(1,1,c.sampleRate),this._isBufferNullified=!0,r(this,0)}else this._isBufferNullified=!1,r(this,this._nativeConvolverNode.buffer===null?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(a){this._nativeConvolverNode.normalize=a}},Rp=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={buffer:a.buffer,channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,disableNormalization:!a.normalize};a=i(o,l)}return s.set(o,a),Zn(a)?await e(r,o,a.inputs[0]):await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Fp=(i,t)=>(e,s,n)=>{if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new t(e,s,n)}catch(r){throw r.name==="SyntaxError"?i():r}},Lp=()=>new DOMException("","DataCloneError"),ml=i=>{const{port1:t,port2:e}=new MessageChannel;return new Promise(s=>{const n=()=>{e.onmessage=null,t.close(),e.close(),s()};e.onmessage=()=>n();try{t.postMessage(i,[i])}catch{}finally{n()}})},Vp=(i,t,e,s,n,r,o,a,c,l,u)=>(h,d)=>{const p=o(h)?h:r(h);if(n.has(d)){const _=e();return Promise.reject(_)}try{n.add(d)}catch{}return t(c,()=>c(p))?p.decodeAudioData(d).then(_=>(ml(d).catch(()=>{}),t(a,()=>a(_))||u(_),i.add(_),_)):new Promise((_,f)=>{const m=async()=>{try{await ml(d)}catch{}},v=b=>{f(b),m()};try{p.decodeAudioData(d,b=>{typeof b.copyFromChannel!="function"&&(l(b),Ua(b)),i.add(b),m().then(()=>_(b))},b=>{v(b===null?s():b)})}catch(b){v(b)}})},Up=(i,t,e,s,n,r,o,a)=>(c,l)=>{const u=t.get(c);if(u===void 0)throw new Error("Missing the expected cycle count.");const h=r(c.context),d=a(h);if(u===l){if(t.delete(c),!d&&o(c)){const p=s(c),{outputs:_}=e(c);for(const f of _)if(or(f)){const m=s(f[0]);i(p,m,f[1],f[2])}else{const m=n(f[0]);p.connect(m,f[1])}}}else t.set(c,u-l)},zp={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},jp=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...zp,...l},d=s(u,h),p=r(u),_=p?e(h.maxDelayTime):null;super(c,!1,d,_),this._delayTime=t(this,p,d.delayTime),o(this,h.maxDelayTime)}get delayTime(){return this._delayTime}},Bp=(i,t,e,s,n)=>r=>{const o=new WeakMap,a=async(c,l)=>{let u=e(c);const h=se(u,l);if(!h){const d={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,delayTime:u.delayTime.value,maxDelayTime:r};u=t(l,d)}return o.set(l,u),h?await i(l,c.delayTime,u.delayTime):await s(l,c.delayTime,u.delayTime),await n(c,l,u),u};return{render(c,l){const u=o.get(l);return u!==void 0?Promise.resolve(u):a(c,l)}}},qp=i=>(t,e,s,n)=>i(t[n],r=>r[0]===e&&r[1]===s),Wp=i=>(t,e)=>{i(t).delete(e)},Hp=i=>"delayTime"in i,Yp=(i,t,e)=>function s(n,r){const o=Ur(r)?r:e(i,r);if(Hp(o))return[];if(n[0]===o)return[n];if(n.includes(o))return[];const{outputs:a}=t(o);return Array.from(a).map(c=>s([...n,o],c[0])).reduce((c,l)=>c.concat(l),[])},br=(i,t,e)=>{const s=t[e];if(s===void 0)throw i();return s},Gp=i=>(t,e=void 0,s=void 0,n=0)=>e===void 0?t.forEach(r=>r.disconnect()):typeof e=="number"?br(i,t,e).disconnect():Br(e)?s===void 0?t.forEach(r=>r.disconnect(e)):n===void 0?br(i,t,s).disconnect(e,0):br(i,t,s).disconnect(e,0,n):s===void 0?t.forEach(r=>r.disconnect(e)):br(i,t,s).disconnect(e,0),$p={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},Zp=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...$p,...u},p=s(h,d),_=o(h),f=_?e():null;super(l,!1,p,f),this._attack=t(this,_,p.attack),this._knee=t(this,_,p.knee),this._nativeDynamicsCompressorNode=p,this._ratio=t(this,_,p.ratio),this._release=t(this,_,p.release),this._threshold=t(this,_,p.threshold),a(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(l){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=l,l>2)throw this._nativeDynamicsCompressorNode.channelCount=u,n()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(l){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=l,l==="max")throw this._nativeDynamicsCompressorNode.channelCountMode=u,n()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return typeof this._nativeDynamicsCompressorNode.reduction.value=="number"?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}},Xp=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={attack:l.attack.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,knee:l.knee.value,ratio:l.ratio.value,release:l.release.value,threshold:l.threshold.value};l=t(c,h)}return r.set(c,l),u?(await i(c,a.attack,l.attack),await i(c,a.knee,l.knee),await i(c,a.ratio,l.ratio),await i(c,a.release,l.release),await i(c,a.threshold,l.threshold)):(await s(c,a.attack,l.attack),await s(c,a.knee,l.knee),await s(c,a.ratio,l.ratio),await s(c,a.release,l.release),await s(c,a.threshold,l.threshold)),await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},Qp=()=>new DOMException("","EncodingError"),Kp=i=>t=>new Promise((e,s)=>{if(i===null){s(new SyntaxError);return}const n=i.document.head;if(n===null)s(new SyntaxError);else{const r=i.document.createElement("script"),o=new Blob([t],{type:"application/javascript"}),a=URL.createObjectURL(o),c=i.onerror,l=()=>{i.onerror=c,URL.revokeObjectURL(a)};i.onerror=(u,h,d,p,_)=>{if(h===a||h===i.location.href&&d===1&&p===1)return l(),s(_),!1;if(c!==null)return c(u,h,d,p,_)},r.onerror=()=>{l(),s(new SyntaxError)},r.onload=()=>{l(),e()},r.src=a,r.type="module",n.appendChild(r)}}),Jp=i=>class{constructor(e){this._nativeEventTarget=e,this._listeners=new WeakMap}addEventListener(e,s,n){if(s!==null){let r=this._listeners.get(s);r===void 0&&(r=i(this,s),typeof s=="function"&&this._listeners.set(s,r)),this._nativeEventTarget.addEventListener(e,r,n)}}dispatchEvent(e){return this._nativeEventTarget.dispatchEvent(e)}removeEventListener(e,s,n){const r=s===null?void 0:this._listeners.get(s);this._nativeEventTarget.removeEventListener(e,r===void 0?null:r,n)}},tm=i=>(t,e,s)=>{Object.defineProperties(i,{currentFrame:{configurable:!0,get(){return Math.round(t*e)}},currentTime:{configurable:!0,get(){return t}}});try{return s()}finally{i!==null&&(delete i.currentFrame,delete i.currentTime)}},em=i=>async t=>{try{const e=await fetch(t);if(e.ok)return[await e.text(),e.url]}catch{}throw i()},sm={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},nm=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...sm,...c},h=s(l,u),d=r(l),p=d?e():null;super(a,!1,h,p),this._gain=t(this,d,h.gain,ne,ce)}get gain(){return this._gain}},im=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=t(c,h)}return r.set(c,l),u?await i(c,a.gain,l.gain):await s(c,a.gain,l.gain),await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},rm=(i,t)=>e=>t(i,e),om=i=>t=>{const e=i(t);if(e.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return e.renderer},am=i=>t=>{var e;return(e=i.get(t))!==null&&e!==void 0?e:0},cm=i=>t=>{const e=i(t);if(e.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return e.renderer},lm=i=>t=>i.get(t),Zt=()=>new DOMException("","InvalidStateError"),um=i=>t=>{const e=i.get(t);if(e===void 0)throw Zt();return e},hm=(i,t)=>e=>{let s=i.get(e);if(s!==void 0)return s;if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");return s=new t(1,1,44100),i.set(e,s),s},dm=i=>t=>{const e=i.get(t);if(e===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return e},go=()=>new DOMException("","InvalidAccessError"),fm=i=>{i.getFrequencyResponse=(t=>(e,s,n)=>{if(e.length!==s.length||s.length!==n.length)throw go();return t.call(i,e,s,n)})(i.getFrequencyResponse)},pm={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},mm=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u=n(l),h={...pm,...c},d=t(l,u?null:a.baseLatency,h),p=u?e(h.feedback,h.feedforward):null;super(a,!1,d,p),fm(d),this._nativeIIRFilterNode=d,r(this,1)}getFrequencyResponse(a,c,l){return this._nativeIIRFilterNode.getFrequencyResponse(a,c,l)}},wu=(i,t,e,s,n,r,o,a,c,l,u)=>{const h=l.length;let d=a;for(let p=0;p{const n=e instanceof Float64Array?e:new Float64Array(e),r=s instanceof Float64Array?s:new Float64Array(s),o=n.length,a=r.length,c=Math.min(o,a);if(n[0]!==1){for(let _=0;_(r,o)=>{const a=new WeakMap;let c=null;const l=async(u,h)=>{let d=null,p=t(u);const _=se(p,h);if(h.createIIRFilter===void 0?d=i(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):_||(p=h.createIIRFilter(o,r)),a.set(h,d===null?p:d),d!==null){if(c===null){if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");const m=new e(u.context.destination.channelCount,u.context.length,h.sampleRate);c=(async()=>{await s(u,m,m.destination);const v=await n(m);return _m(v,h,r,o)})()}const f=await c;return d.buffer=f,d.start(0),d}return await s(u,h,p),p};return{render(u,h){const d=a.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},ym=(i,t,e,s,n,r)=>o=>(a,c)=>{const l=i.get(a);if(l===void 0){if(!o&&r(a)){const u=s(a),{outputs:h}=e(a);for(const d of h)if(or(d)){const p=s(d[0]);t(u,p,d[1],d[2])}else{const p=n(d[0]);u.disconnect(p,d[1])}}i.set(a,c)}else i.set(a,l+c)},vm=(i,t)=>e=>{const s=i.get(e);return t(s)||t(e)},xm=(i,t)=>e=>i.has(e)||t(e),km=(i,t)=>e=>i.has(e)||t(e),Tm=(i,t)=>e=>{const s=i.get(e);return t(s)||t(e)},wm=i=>t=>i!==null&&t instanceof i,bm=i=>t=>i!==null&&typeof i.AudioNode=="function"&&t instanceof i.AudioNode,Cm=i=>t=>i!==null&&typeof i.AudioParam=="function"&&t instanceof i.AudioParam,Sm=(i,t)=>e=>i(e)||t(e),Em=i=>t=>i!==null&&t instanceof i,Om=i=>i!==null&&i.isSecureContext,Am=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r),c=t(a,o);if(s(a))throw TypeError();super(r,!0,c,null),this._nativeMediaElementAudioSourceNode=c}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}},Mm={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},Dm=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r);if(s(a))throw new TypeError;const c={...Mm,...o},l=t(a,c);super(r,!1,l,null),this._nativeMediaStreamAudioDestinationNode=l}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},Pm=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r),c=t(a,o);if(s(a))throw new TypeError;super(r,!0,c,null),this._nativeMediaStreamAudioSourceNode=c}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},Im=(i,t,e)=>class extends i{constructor(n,r){const o=e(n),a=t(o,r);super(n,!0,a,null)}},Nm=(i,t,e,s,n,r)=>class extends e{constructor(a,c){super(a),this._nativeContext=a,mo.set(this,a),s(a)&&n.set(a,new Set),this._destination=new i(this,c),this._listener=t(this,a),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(a){const c=typeof a=="function"?r(this,a):null;this._nativeContext.onstatechange=c;const l=this._nativeContext.onstatechange;this._onstatechange=l!==null&&l===c?a:l}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}},Oi=i=>{const t=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const e=i.decodeAudioData(t.buffer,()=>{});return e===void 0?!1:(e.catch(()=>{}),!0)}catch{}return!1},Rm=(i,t)=>(e,s,n)=>{const r=new Set;return e.connect=(o=>(a,c=0,l=0)=>{const u=r.size===0;if(t(a))return o.call(e,a,c,l),i(r,[a,c,l],h=>h[0]===a&&h[1]===c&&h[2]===l,!0),u&&s(),a;o.call(e,a,c),i(r,[a,c],h=>h[0]===a&&h[1]===c,!0),u&&s()})(e.connect),e.disconnect=(o=>(a,c,l)=>{const u=r.size>0;if(a===void 0)o.apply(e),r.clear();else if(typeof a=="number"){o.call(e,a);for(const d of r)d[1]===a&&r.delete(d)}else{t(a)?o.call(e,a,c,l):o.call(e,a,c);for(const d of r)d[0]===a&&(c===void 0||d[1]===c)&&(l===void 0||d[2]===l)&&r.delete(d)}const h=r.size===0;u&&h&&n()})(e.disconnect),e},Pt=(i,t,e)=>{const s=t[e];s!==void 0&&s!==i[e]&&(i[e]=s)},Gt=(i,t)=>{Pt(i,t,"channelCount"),Pt(i,t,"channelCountMode"),Pt(i,t,"channelInterpretation")},_l=i=>typeof i.getFloatTimeDomainData=="function",Fm=i=>{i.getFloatTimeDomainData=t=>{const e=new Uint8Array(t.length);i.getByteTimeDomainData(e);const s=Math.max(e.length,i.fftSize);for(let n=0;n(e,s)=>{const n=e.createAnalyser();if(Gt(n,s),!(s.maxDecibels>s.minDecibels))throw t();return Pt(n,s,"fftSize"),Pt(n,s,"maxDecibels"),Pt(n,s,"minDecibels"),Pt(n,s,"smoothingTimeConstant"),i(_l,()=>_l(n))||Fm(n),n},Vm=i=>i===null?null:i.hasOwnProperty("AudioBuffer")?i.AudioBuffer:null,Ft=(i,t,e)=>{const s=t[e];s!==void 0&&s!==i[e].value&&(i[e].value=s)},Um=i=>{i.start=(t=>{let e=!1;return(s=0,n=0,r)=>{if(e)throw Zt();t.call(i,s,n,r),e=!0}})(i.start)},Ba=i=>{i.start=(t=>(e=0,s=0,n)=>{if(typeof n=="number"&&n<0||s<0||e<0)throw new RangeError("The parameters can't be negative.");t.call(i,e,s,n)})(i.start)},qa=i=>{i.stop=(t=>(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");t.call(i,e)})(i.stop)},zm=(i,t,e,s,n,r,o,a,c,l,u)=>(h,d)=>{const p=h.createBufferSource();return Gt(p,d),Ft(p,d,"playbackRate"),Pt(p,d,"buffer"),Pt(p,d,"loop"),Pt(p,d,"loopEnd"),Pt(p,d,"loopStart"),t(e,()=>e(h))||Um(p),t(s,()=>s(h))||c(p),t(n,()=>n(h))||l(p,h),t(r,()=>r(h))||Ba(p),t(o,()=>o(h))||u(p,h),t(a,()=>a(h))||qa(p),i(h,p),p},jm=i=>i===null?null:i.hasOwnProperty("AudioContext")?i.AudioContext:i.hasOwnProperty("webkitAudioContext")?i.webkitAudioContext:null,Bm=(i,t)=>(e,s,n)=>{const r=e.destination;if(r.channelCount!==s)try{r.channelCount=s}catch{}n&&r.channelCountMode!=="explicit"&&(r.channelCountMode="explicit"),r.maxChannelCount===0&&Object.defineProperty(r,"maxChannelCount",{value:s});const o=i(e,{channelCount:s,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return t(o,"channelCount",a=>()=>a.call(o),a=>c=>{a.call(o,c);try{r.channelCount=c}catch(l){if(c>r.maxChannelCount)throw l}}),t(o,"channelCountMode",a=>()=>a.call(o),a=>c=>{a.call(o,c),r.channelCountMode=c}),t(o,"channelInterpretation",a=>()=>a.call(o),a=>c=>{a.call(o,c),r.channelInterpretation=c}),Object.defineProperty(o,"maxChannelCount",{get:()=>r.maxChannelCount}),o.connect(r),o},qm=i=>i===null?null:i.hasOwnProperty("AudioWorkletNode")?i.AudioWorkletNode:null,Wm=i=>{const{port1:t}=new MessageChannel;try{t.postMessage(i)}finally{t.close()}},Hm=(i,t,e,s,n)=>(r,o,a,c,l,u)=>{if(a!==null)try{const h=new a(r,c,u),d=new Map;let p=null;if(Object.defineProperties(h,{channelCount:{get:()=>u.channelCount,set:()=>{throw i()}},channelCountMode:{get:()=>"explicit",set:()=>{throw i()}},onprocessorerror:{get:()=>p,set:_=>{typeof p=="function"&&h.removeEventListener("processorerror",p),p=typeof _=="function"?_:null,typeof p=="function"&&h.addEventListener("processorerror",p)}}}),h.addEventListener=(_=>(...f)=>{if(f[0]==="processorerror"){const m=typeof f[1]=="function"?f[1]:typeof f[1]=="object"&&f[1]!==null&&typeof f[1].handleEvent=="function"?f[1].handleEvent:null;if(m!==null){const v=d.get(f[1]);v!==void 0?f[1]=v:(f[1]=b=>{b.type==="error"?(Object.defineProperties(b,{type:{value:"processorerror"}}),m(b)):m(new ErrorEvent(f[0],{...b}))},d.set(m,f[1]))}}return _.call(h,"error",f[1],f[2]),_.call(h,...f)})(h.addEventListener),h.removeEventListener=(_=>(...f)=>{if(f[0]==="processorerror"){const m=d.get(f[1]);m!==void 0&&(d.delete(f[1]),f[1]=m)}return _.call(h,"error",f[1],f[2]),_.call(h,f[0],f[1],f[2])})(h.removeEventListener),u.numberOfOutputs!==0){const _=e(r,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return h.connect(_).connect(r.destination),n(h,()=>_.disconnect(),()=>_.connect(r.destination))}return h}catch(h){throw h.code===11?s():h}if(l===void 0)throw s();return Wm(u),t(r,o,l,u)},bu=(i,t)=>i===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(i*t))))),Ym=i=>new Promise((t,e)=>{const{port1:s,port2:n}=new MessageChannel;s.onmessage=({data:r})=>{s.close(),n.close(),t(r)},s.onmessageerror=({data:r})=>{s.close(),n.close(),e(r)},n.postMessage(i)}),Gm=async(i,t)=>{const e=await Ym(t);return new i(e)},$m=(i,t,e,s)=>{let n=la.get(i);n===void 0&&(n=new WeakMap,la.set(i,n));const r=Gm(e,s);return n.set(t,r),r},Zm=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>(p,_,f,m)=>{if(m.numberOfInputs===0&&m.numberOfOutputs===0)throw c();const v=Array.isArray(m.outputChannelCount)?m.outputChannelCount:Array.from(m.outputChannelCount);if(v.some(q=>q<1))throw c();if(v.length!==m.numberOfOutputs)throw t();if(m.channelCountMode!=="explicit")throw c();const b=m.channelCount*m.numberOfInputs,w=v.reduce((q,A)=>q+A,0),g=f.parameterDescriptors===void 0?0:f.parameterDescriptors.length;if(b+g>6||w>6)throw c();const y=new MessageChannel,T=[],k=[];for(let q=0;qq===void 0?0:q},maxValue:{get:()=>A===void 0?ne:A},minValue:{get:()=>E===void 0?ce:E}}),x.push(tt)}const C=s(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,b+g)}),O=bu(_,p.sampleRate),I=a(p,O,b+g,Math.max(1,w)),M=n(p,{channelCount:Math.max(1,w),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,w)}),V=[];for(let q=0;q{const E=x[A];return E.connect(C,0,b+A),E.start(0),[q,E.offset]}));C.connect(I);let G=m.channelInterpretation,Y=null;const j=m.numberOfOutputs===0?[I]:V,z={get bufferSize(){return O},get channelCount(){return m.channelCount},set channelCount(q){throw e()},get channelCountMode(){return m.channelCountMode},set channelCountMode(q){throw e()},get channelInterpretation(){return G},set channelInterpretation(q){for(const A of T)A.channelInterpretation=q;G=q},get context(){return I.context},get inputs(){return T},get numberOfInputs(){return m.numberOfInputs},get numberOfOutputs(){return m.numberOfOutputs},get onprocessorerror(){return Y},set onprocessorerror(q){typeof Y=="function"&&z.removeEventListener("processorerror",Y),Y=typeof q=="function"?q:null,typeof Y=="function"&&z.addEventListener("processorerror",Y)},get parameters(){return B},get port(){return y.port2},addEventListener(...q){return I.addEventListener(q[0],q[1],q[2])},connect:i.bind(null,j),disconnect:l.bind(null,j),dispatchEvent(...q){return I.dispatchEvent(q[0])},removeEventListener(...q){return I.removeEventListener(q[0],q[1],q[2])}},Z=new Map;y.port1.addEventListener=(q=>(...A)=>{if(A[0]==="message"){const E=typeof A[1]=="function"?A[1]:typeof A[1]=="object"&&A[1]!==null&&typeof A[1].handleEvent=="function"?A[1].handleEvent:null;if(E!==null){const X=Z.get(A[1]);X!==void 0?A[1]=X:(A[1]=tt=>{u(p.currentTime,p.sampleRate,()=>E(tt))},Z.set(E,A[1]))}}return q.call(y.port1,A[0],A[1],A[2])})(y.port1.addEventListener),y.port1.removeEventListener=(q=>(...A)=>{if(A[0]==="message"){const E=Z.get(A[1]);E!==void 0&&(Z.delete(A[1]),A[1]=E)}return q.call(y.port1,A[0],A[1],A[2])})(y.port1.removeEventListener);let Q=null;Object.defineProperty(y.port1,"onmessage",{get:()=>Q,set:q=>{typeof Q=="function"&&y.port1.removeEventListener("message",Q),Q=typeof q=="function"?q:null,typeof Q=="function"&&(y.port1.addEventListener("message",Q),y.port1.start())}}),f.prototype.port=y.port1;let et=null;$m(p,z,f,m).then(q=>et=q);const F=Wr(m.numberOfInputs,m.channelCount),S=Wr(m.numberOfOutputs,v),D=f.parameterDescriptors===void 0?[]:f.parameterDescriptors.reduce((q,{name:A})=>({...q,[A]:new Float32Array(128)}),{});let H=!0;const N=()=>{m.numberOfOutputs>0&&I.disconnect(M);for(let q=0,A=0;q{if(et!==null){const E=h(z);for(let X=0;X{qr(q,D,tt,b+lt,X)});for(let tt=0;tt{if(E[Yt].size>0)return U.set(Yt,O/128),vt;const ti=U.get(Yt);return ti===void 0?[]:(vt.every(Do=>Do.every(fr=>fr===0))&&(ti===1?U.delete(Yt):U.set(Yt,ti-1)),vt)});H=u(p.currentTime+X/p.sampleRate,p.sampleRate,()=>et.process(tt,S,D));for(let vt=0,Yt=0;vtI.connect(st).connect(p.destination),J=()=>{I.disconnect(st),st.disconnect()},pt=()=>{if(H){J(),m.numberOfOutputs>0&&I.connect(M);for(let q=0,A=0;q{H&&(nt(),N()),it=!1};return nt(),d(z,pt,K)},Cu=(i,t)=>{const e=i.createBiquadFilter();return Gt(e,t),Ft(e,t,"Q"),Ft(e,t,"detune"),Ft(e,t,"frequency"),Ft(e,t,"gain"),Pt(e,t,"type"),e},Xm=(i,t)=>(e,s)=>{const n=e.createChannelMerger(s.numberOfInputs);return i!==null&&i.name==="webkitAudioContext"&&t(e,n),Gt(n,s),n},Qm=i=>{const t=i.numberOfOutputs;Object.defineProperty(i,"channelCount",{get:()=>t,set:e=>{if(e!==t)throw Zt()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:e=>{if(e!=="explicit")throw Zt()}}),Object.defineProperty(i,"channelInterpretation",{get:()=>"discrete",set:e=>{if(e!=="discrete")throw Zt()}})},ar=(i,t)=>{const e=i.createChannelSplitter(t.numberOfOutputs);return Gt(e,t),Qm(e),e},Km=(i,t,e,s,n)=>(r,o)=>{if(r.createConstantSource===void 0)return e(r,o);const a=r.createConstantSource();return Gt(a,o),Ft(a,o,"offset"),t(s,()=>s(r))||Ba(a),t(n,()=>n(r))||qa(a),i(r,a),a},Xn=(i,t)=>(i.connect=t.connect.bind(t),i.disconnect=t.disconnect.bind(t),i),Jm=(i,t,e,s)=>(n,{offset:r,...o})=>{const a=n.createBuffer(1,2,44100),c=t(n,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),l=e(n,{...o,gain:r}),u=a.getChannelData(0);u[0]=1,u[1]=1,c.buffer=a,c.loop=!0;const h={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(_){l.channelCount=_},get channelCountMode(){return l.channelCountMode},set channelCountMode(_){l.channelCountMode=_},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(_){l.channelInterpretation=_},get context(){return l.context},get inputs(){return[]},get numberOfInputs(){return c.numberOfInputs},get numberOfOutputs(){return l.numberOfOutputs},get offset(){return l.gain},get onended(){return c.onended},set onended(_){c.onended=_},addEventListener(..._){return c.addEventListener(_[0],_[1],_[2])},dispatchEvent(..._){return c.dispatchEvent(_[0])},removeEventListener(..._){return c.removeEventListener(_[0],_[1],_[2])},start(_=0){c.start.call(c,_)},stop(_=0){c.stop.call(c,_)}},d=()=>c.connect(l),p=()=>c.disconnect(l);return i(n,c),s(Xn(h,l),d,p)},t_=(i,t)=>(e,s)=>{const n=e.createConvolver();if(Gt(n,s),s.disableNormalization===n.normalize&&(n.normalize=!s.disableNormalization),Pt(n,s,"buffer"),s.channelCount>2||(t(n,"channelCount",r=>()=>r.call(n),r=>o=>{if(o>2)throw i();return r.call(n,o)}),s.channelCountMode==="max"))throw i();return t(n,"channelCountMode",r=>()=>r.call(n),r=>o=>{if(o==="max")throw i();return r.call(n,o)}),n},Su=(i,t)=>{const e=i.createDelay(t.maxDelayTime);return Gt(e,t),Ft(e,t,"delayTime"),e},e_=i=>(t,e)=>{const s=t.createDynamicsCompressor();if(Gt(s,e),e.channelCount>2||e.channelCountMode==="max")throw i();return Ft(s,e,"attack"),Ft(s,e,"knee"),Ft(s,e,"ratio"),Ft(s,e,"release"),Ft(s,e,"threshold"),s},me=(i,t)=>{const e=i.createGain();return Gt(e,t),Ft(e,t,"gain"),e},s_=i=>(t,e,s)=>{if(t.createIIRFilter===void 0)return i(t,e,s);const n=t.createIIRFilter(s.feedforward,s.feedback);return Gt(n,s),n};function n_(i,t){const e=t[0]*t[0]+t[1]*t[1];return[(i[0]*t[0]+i[1]*t[1])/e,(i[1]*t[0]-i[0]*t[1])/e]}function i_(i,t){return[i[0]*t[0]-i[1]*t[1],i[0]*t[1]+i[1]*t[0]]}function gl(i,t){let e=[0,0];for(let s=i.length-1;s>=0;s-=1)e=i_(e,t),e[0]+=i[s];return e}const r_=(i,t,e,s)=>(n,r,{channelCount:o,channelCountMode:a,channelInterpretation:c,feedback:l,feedforward:u})=>{const h=bu(r,n.sampleRate),d=l instanceof Float64Array?l:new Float64Array(l),p=u instanceof Float64Array?u:new Float64Array(u),_=d.length,f=p.length,m=Math.min(_,f);if(_===0||_>20)throw s();if(d[0]===0)throw t();if(f===0||f>20)throw s();if(p[0]===0)throw t();if(d[0]!==1){for(let x=0;x{const C=x.inputBuffer,O=x.outputBuffer,I=C.numberOfChannels;for(let M=0;Mi.createMediaElementSource(t.mediaElement),a_=(i,t)=>{const e=i.createMediaStreamDestination();return Gt(e,t),e.numberOfOutputs===1&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e},c_=(i,{mediaStream:t})=>{const e=t.getAudioTracks();e.sort((r,o)=>r.ido.id?1:0);const s=e.slice(0,1),n=i.createMediaStreamSource(new MediaStream(s));return Object.defineProperty(n,"mediaStream",{value:t}),n},l_=(i,t)=>(e,{mediaStreamTrack:s})=>{if(typeof e.createMediaStreamTrackSource=="function")return e.createMediaStreamTrackSource(s);const n=new MediaStream([s]),r=e.createMediaStreamSource(n);if(s.kind!=="audio")throw i();if(t(e))throw new TypeError;return r},u_=i=>i===null?null:i.hasOwnProperty("OfflineAudioContext")?i.OfflineAudioContext:i.hasOwnProperty("webkitOfflineAudioContext")?i.webkitOfflineAudioContext:null,h_=(i,t,e,s,n,r)=>(o,a)=>{const c=o.createOscillator();return Gt(c,a),Ft(c,a,"detune"),Ft(c,a,"frequency"),a.periodicWave!==void 0?c.setPeriodicWave(a.periodicWave):Pt(c,a,"type"),t(e,()=>e(o))||Ba(c),t(s,()=>s(o))||r(c,o),t(n,()=>n(o))||qa(c),i(o,c),c},d_=i=>(t,e)=>{const s=t.createPanner();return s.orientationX===void 0?i(t,e):(Gt(s,e),Ft(s,e,"orientationX"),Ft(s,e,"orientationY"),Ft(s,e,"orientationZ"),Ft(s,e,"positionX"),Ft(s,e,"positionY"),Ft(s,e,"positionZ"),Pt(s,e,"coneInnerAngle"),Pt(s,e,"coneOuterAngle"),Pt(s,e,"coneOuterGain"),Pt(s,e,"distanceModel"),Pt(s,e,"maxDistance"),Pt(s,e,"panningModel"),Pt(s,e,"refDistance"),Pt(s,e,"rolloffFactor"),s)},f_=(i,t,e,s,n,r,o,a,c,l)=>(u,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:p,distanceModel:_,maxDistance:f,orientationX:m,orientationY:v,orientationZ:b,panningModel:w,positionX:g,positionY:y,positionZ:T,refDistance:k,rolloffFactor:x,...C})=>{const O=u.createPanner();if(C.channelCount>2||C.channelCountMode==="max")throw o();Gt(O,C);const I={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},M=e(u,{...I,channelInterpretation:"speakers",numberOfInputs:6}),V=s(u,{...C,gain:1}),B=s(u,{...I,gain:1}),G=s(u,{...I,gain:0}),Y=s(u,{...I,gain:0}),j=s(u,{...I,gain:0}),z=s(u,{...I,gain:0}),Z=s(u,{...I,gain:0}),Q=n(u,256,6,1),et=r(u,{...I,curve:new Float32Array([1,1]),oversample:"none"});let R=[m,v,b],F=[g,y,T];const S=new Float32Array(1);Q.onaudioprocess=({inputBuffer:U})=>{const it=[c(U,S,0),c(U,S,1),c(U,S,2)];it.some((nt,J)=>nt!==R[J])&&(O.setOrientation(...it),R=it);const st=[c(U,S,3),c(U,S,4),c(U,S,5)];st.some((nt,J)=>nt!==F[J])&&(O.setPosition(...st),F=st)},Object.defineProperty(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(j.gain,"defaultValue",{get:()=>0}),Object.defineProperty(z.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Z.gain,"defaultValue",{get:()=>0});const D={get bufferSize(){},get channelCount(){return O.channelCount},set channelCount(U){if(U>2)throw o();V.channelCount=U,O.channelCount=U},get channelCountMode(){return O.channelCountMode},set channelCountMode(U){if(U==="max")throw o();V.channelCountMode=U,O.channelCountMode=U},get channelInterpretation(){return O.channelInterpretation},set channelInterpretation(U){V.channelInterpretation=U,O.channelInterpretation=U},get coneInnerAngle(){return O.coneInnerAngle},set coneInnerAngle(U){O.coneInnerAngle=U},get coneOuterAngle(){return O.coneOuterAngle},set coneOuterAngle(U){O.coneOuterAngle=U},get coneOuterGain(){return O.coneOuterGain},set coneOuterGain(U){if(U<0||U>1)throw t();O.coneOuterGain=U},get context(){return O.context},get distanceModel(){return O.distanceModel},set distanceModel(U){O.distanceModel=U},get inputs(){return[V]},get maxDistance(){return O.maxDistance},set maxDistance(U){if(U<0)throw new RangeError;O.maxDistance=U},get numberOfInputs(){return O.numberOfInputs},get numberOfOutputs(){return O.numberOfOutputs},get orientationX(){return B.gain},get orientationY(){return G.gain},get orientationZ(){return Y.gain},get panningModel(){return O.panningModel},set panningModel(U){O.panningModel=U},get positionX(){return j.gain},get positionY(){return z.gain},get positionZ(){return Z.gain},get refDistance(){return O.refDistance},set refDistance(U){if(U<0)throw new RangeError;O.refDistance=U},get rolloffFactor(){return O.rolloffFactor},set rolloffFactor(U){if(U<0)throw new RangeError;O.rolloffFactor=U},addEventListener(...U){return V.addEventListener(U[0],U[1],U[2])},dispatchEvent(...U){return V.dispatchEvent(U[0])},removeEventListener(...U){return V.removeEventListener(U[0],U[1],U[2])}};h!==D.coneInnerAngle&&(D.coneInnerAngle=h),d!==D.coneOuterAngle&&(D.coneOuterAngle=d),p!==D.coneOuterGain&&(D.coneOuterGain=p),_!==D.distanceModel&&(D.distanceModel=_),f!==D.maxDistance&&(D.maxDistance=f),m!==D.orientationX.value&&(D.orientationX.value=m),v!==D.orientationY.value&&(D.orientationY.value=v),b!==D.orientationZ.value&&(D.orientationZ.value=b),w!==D.panningModel&&(D.panningModel=w),g!==D.positionX.value&&(D.positionX.value=g),y!==D.positionY.value&&(D.positionY.value=y),T!==D.positionZ.value&&(D.positionZ.value=T),k!==D.refDistance&&(D.refDistance=k),x!==D.rolloffFactor&&(D.rolloffFactor=x),(R[0]!==1||R[1]!==0||R[2]!==0)&&O.setOrientation(...R),(F[0]!==0||F[1]!==0||F[2]!==0)&&O.setPosition(...F);const H=()=>{V.connect(O),i(V,et,0,0),et.connect(B).connect(M,0,0),et.connect(G).connect(M,0,1),et.connect(Y).connect(M,0,2),et.connect(j).connect(M,0,3),et.connect(z).connect(M,0,4),et.connect(Z).connect(M,0,5),M.connect(Q).connect(u.destination)},N=()=>{V.disconnect(O),a(V,et,0,0),et.disconnect(B),B.disconnect(M),et.disconnect(G),G.disconnect(M),et.disconnect(Y),Y.disconnect(M),et.disconnect(j),j.disconnect(M),et.disconnect(z),z.disconnect(M),et.disconnect(Z),Z.disconnect(M),M.disconnect(Q),Q.disconnect(u.destination)};return l(Xn(D,O),H,N)},p_=i=>(t,{disableNormalization:e,imag:s,real:n})=>{const r=s instanceof Float32Array?s:new Float32Array(s),o=n instanceof Float32Array?n:new Float32Array(n),a=t.createPeriodicWave(o,r,{disableNormalization:e});if(Array.from(s).length<2)throw i();return a},cr=(i,t,e,s)=>i.createScriptProcessor(t,e,s),m_=(i,t)=>(e,s)=>{const n=s.channelCountMode;if(n==="clamped-max")throw t();if(e.createStereoPanner===void 0)return i(e,s);const r=e.createStereoPanner();return Gt(r,s),Ft(r,s,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>n,set:o=>{if(o!==n)throw t()}}),r},__=(i,t,e,s,n,r)=>{const a=new Float32Array([1,1]),c=Math.PI/2,l={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...l,oversample:"none"},h=(_,f,m,v)=>{const b=new Float32Array(16385),w=new Float32Array(16385);for(let C=0;C<16385;C+=1){const O=C/16384*c;b[C]=Math.cos(O),w[C]=Math.sin(O)}const g=e(_,{...l,gain:0}),y=s(_,{...u,curve:b}),T=s(_,{...u,curve:a}),k=e(_,{...l,gain:0}),x=s(_,{...u,curve:w});return{connectGraph(){f.connect(g),f.connect(T.inputs===void 0?T:T.inputs[0]),f.connect(k),T.connect(m),m.connect(y.inputs===void 0?y:y.inputs[0]),m.connect(x.inputs===void 0?x:x.inputs[0]),y.connect(g.gain),x.connect(k.gain),g.connect(v,0,0),k.connect(v,0,1)},disconnectGraph(){f.disconnect(g),f.disconnect(T.inputs===void 0?T:T.inputs[0]),f.disconnect(k),T.disconnect(m),m.disconnect(y.inputs===void 0?y:y.inputs[0]),m.disconnect(x.inputs===void 0?x:x.inputs[0]),y.disconnect(g.gain),x.disconnect(k.gain),g.disconnect(v,0,0),k.disconnect(v,0,1)}}},d=(_,f,m,v)=>{const b=new Float32Array(16385),w=new Float32Array(16385),g=new Float32Array(16385),y=new Float32Array(16385),T=Math.floor(16385/2);for(let j=0;j<16385;j+=1)if(j>T){const z=(j-T)/(16384-T)*c;b[j]=Math.cos(z),w[j]=Math.sin(z),g[j]=0,y[j]=1}else{const z=j/(16384-T)*c;b[j]=1,w[j]=0,g[j]=Math.cos(z),y[j]=Math.sin(z)}const k=t(_,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),x=e(_,{...l,gain:0}),C=s(_,{...u,curve:b}),O=e(_,{...l,gain:0}),I=s(_,{...u,curve:w}),M=s(_,{...u,curve:a}),V=e(_,{...l,gain:0}),B=s(_,{...u,curve:g}),G=e(_,{...l,gain:0}),Y=s(_,{...u,curve:y});return{connectGraph(){f.connect(k),f.connect(M.inputs===void 0?M:M.inputs[0]),k.connect(x,0),k.connect(O,0),k.connect(V,1),k.connect(G,1),M.connect(m),m.connect(C.inputs===void 0?C:C.inputs[0]),m.connect(I.inputs===void 0?I:I.inputs[0]),m.connect(B.inputs===void 0?B:B.inputs[0]),m.connect(Y.inputs===void 0?Y:Y.inputs[0]),C.connect(x.gain),I.connect(O.gain),B.connect(V.gain),Y.connect(G.gain),x.connect(v,0,0),V.connect(v,0,0),O.connect(v,0,1),G.connect(v,0,1)},disconnectGraph(){f.disconnect(k),f.disconnect(M.inputs===void 0?M:M.inputs[0]),k.disconnect(x,0),k.disconnect(O,0),k.disconnect(V,1),k.disconnect(G,1),M.disconnect(m),m.disconnect(C.inputs===void 0?C:C.inputs[0]),m.disconnect(I.inputs===void 0?I:I.inputs[0]),m.disconnect(B.inputs===void 0?B:B.inputs[0]),m.disconnect(Y.inputs===void 0?Y:Y.inputs[0]),C.disconnect(x.gain),I.disconnect(O.gain),B.disconnect(V.gain),Y.disconnect(G.gain),x.disconnect(v,0,0),V.disconnect(v,0,0),O.disconnect(v,0,1),G.disconnect(v,0,1)}}},p=(_,f,m,v,b)=>{if(f===1)return h(_,m,v,b);if(f===2)return d(_,m,v,b);throw n()};return(_,{channelCount:f,channelCountMode:m,pan:v,...b})=>{if(m==="max")throw n();const w=i(_,{...b,channelCount:1,channelCountMode:m,numberOfInputs:2}),g=e(_,{...b,channelCount:f,channelCountMode:m,gain:1}),y=e(_,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:v});let{connectGraph:T,disconnectGraph:k}=p(_,f,g,y,w);Object.defineProperty(y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(y.gain,"maxValue",{get:()=>1}),Object.defineProperty(y.gain,"minValue",{get:()=>-1});const x={get bufferSize(){},get channelCount(){return g.channelCount},set channelCount(M){g.channelCount!==M&&(C&&k(),{connectGraph:T,disconnectGraph:k}=p(_,M,g,y,w),C&&T()),g.channelCount=M},get channelCountMode(){return g.channelCountMode},set channelCountMode(M){if(M==="clamped-max"||M==="max")throw n();g.channelCountMode=M},get channelInterpretation(){return g.channelInterpretation},set channelInterpretation(M){g.channelInterpretation=M},get context(){return g.context},get inputs(){return[g]},get numberOfInputs(){return g.numberOfInputs},get numberOfOutputs(){return g.numberOfOutputs},get pan(){return y.gain},addEventListener(...M){return g.addEventListener(M[0],M[1],M[2])},dispatchEvent(...M){return g.dispatchEvent(M[0])},removeEventListener(...M){return g.removeEventListener(M[0],M[1],M[2])}};let C=!1;const O=()=>{T(),C=!0},I=()=>{k(),C=!1};return r(Xn(x,w),O,I)}},g_=(i,t,e,s,n,r,o)=>(a,c)=>{const l=a.createWaveShaper();if(r!==null&&r.name==="webkitAudioContext"&&a.createGain().gain.automationRate===void 0)return e(a,c);Gt(l,c);const u=c.curve===null||c.curve instanceof Float32Array?c.curve:new Float32Array(c.curve);if(u!==null&&u.length<2)throw t();Pt(l,{curve:u},"curve"),Pt(l,c,"oversample");let h=null,d=!1;return o(l,"curve",f=>()=>f.call(l),f=>m=>(f.call(l,m),d&&(s(m)&&h===null?h=i(a,l):!s(m)&&h!==null&&(h(),h=null)),m)),n(l,()=>{d=!0,s(l.curve)&&(h=i(a,l))},()=>{d=!1,h!==null&&(h(),h=null)})},y_=(i,t,e,s,n)=>(r,{curve:o,oversample:a,...c})=>{const l=r.createWaveShaper(),u=r.createWaveShaper();Gt(l,c),Gt(u,c);const h=e(r,{...c,gain:1}),d=e(r,{...c,gain:-1}),p=e(r,{...c,gain:1}),_=e(r,{...c,gain:-1});let f=null,m=!1,v=null;const b={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(y){h.channelCount=y,d.channelCount=y,l.channelCount=y,p.channelCount=y,u.channelCount=y,_.channelCount=y},get channelCountMode(){return l.channelCountMode},set channelCountMode(y){h.channelCountMode=y,d.channelCountMode=y,l.channelCountMode=y,p.channelCountMode=y,u.channelCountMode=y,_.channelCountMode=y},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(y){h.channelInterpretation=y,d.channelInterpretation=y,l.channelInterpretation=y,p.channelInterpretation=y,u.channelInterpretation=y,_.channelInterpretation=y},get context(){return l.context},get curve(){return v},set curve(y){if(y!==null&&y.length<2)throw t();if(y===null)l.curve=y,u.curve=y;else{const T=y.length,k=new Float32Array(T+2-T%2),x=new Float32Array(T+2-T%2);k[0]=y[0],x[0]=-y[T-1];const C=Math.ceil((T+1)/2),O=(T+1)/2-1;for(let I=1;I{h.connect(l).connect(p),h.connect(d).connect(u).connect(_).connect(p),m=!0,s(v)&&(f=i(r,h))},g=()=>{h.disconnect(l),l.disconnect(p),h.disconnect(d),d.disconnect(u),u.disconnect(_),_.disconnect(p),m=!1,f!==null&&(f(),f=null)};return n(Xn(b,p),w,g)},oe=()=>new DOMException("","NotSupportedError"),v_={numberOfChannels:1},x_=(i,t,e,s,n)=>class extends i{constructor(o,a,c){let l;if(typeof o=="number"&&a!==void 0&&c!==void 0)l={length:a,numberOfChannels:o,sampleRate:c};else if(typeof o=="object")l=o;else throw new Error("The given parameters are not valid.");const{length:u,numberOfChannels:h,sampleRate:d}={...v_,...l},p=s(h,u,d);t(Oi,()=>Oi(p))||p.addEventListener("statechange",(()=>{let _=0;const f=m=>{this._state==="running"&&(_>0?(p.removeEventListener("statechange",f),m.stopImmediatePropagation(),this._waitForThePromiseToSettle(m)):_+=1)};return f})()),super(p,h),this._length=u,this._nativeOfflineAudioContext=p,this._state=null}get length(){return this._nativeOfflineAudioContext.length===void 0?this._length:this._nativeOfflineAudioContext.length}get state(){return this._state===null?this._nativeOfflineAudioContext.state:this._state}startRendering(){return this._state==="running"?Promise.reject(e()):(this._state="running",n(this.destination,this._nativeOfflineAudioContext).finally(()=>{this._state=null,gu(this)}))}_waitForThePromiseToSettle(o){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(o):setTimeout(()=>this._waitForThePromiseToSettle(o))}},k_={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},T_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...k_,...l},d=e(u,h),p=r(u),_=p?s():null,f=c.sampleRate/2;super(c,!1,d,_),this._detune=t(this,p,d.detune,153600,-153600),this._frequency=t(this,p,d.frequency,f,-f),this._nativeOscillatorNode=d,this._onended=null,this._oscillatorNodeRenderer=_,this._oscillatorNodeRenderer!==null&&h.periodicWave!==void 0&&(this._oscillatorNodeRenderer.periodicWave=h.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeOscillatorNode.onended=l;const u=this._nativeOscillatorNode.onended;this._onended=u!==null&&u===l?c:u}get type(){return this._nativeOscillatorNode.type}set type(c){this._nativeOscillatorNode.type=c,this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(c){this._nativeOscillatorNode.setPeriodicWave(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=c)}start(c=0){if(this._nativeOscillatorNode.start(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.start=c),this.context.state!=="closed"){Vn(this);const l=()=>{this._nativeOscillatorNode.removeEventListener("ended",l),us(this)&&ir(this)};this._nativeOscillatorNode.addEventListener("ended",l)}}stop(c=0){this._nativeOscillatorNode.stop(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=c)}},w_=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null,c=null;const l=async(u,h)=>{let d=e(u);const p=se(d,h);if(!p){const _={channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,detune:d.detune.value,frequency:d.frequency.value,periodicWave:o===null?void 0:o,type:d.type};d=t(h,_),a!==null&&d.start(a),c!==null&&d.stop(c)}return r.set(h,d),p?(await i(h,u.detune,d.detune),await i(h,u.frequency,d.frequency)):(await s(h,u.detune,d.detune),await s(h,u.frequency,d.frequency)),await n(u,h,d),d};return{set periodicWave(u){o=u},set start(u){a=u},set stop(u){c=u},render(u,h){const d=r.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},b_={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},C_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...b_,...l},d=e(u,h),p=r(u),_=p?s():null;super(c,!1,d,_),this._nativePannerNode=d,this._orientationX=t(this,p,d.orientationX,ne,ce),this._orientationY=t(this,p,d.orientationY,ne,ce),this._orientationZ=t(this,p,d.orientationZ,ne,ce),this._positionX=t(this,p,d.positionX,ne,ce),this._positionY=t(this,p,d.positionY,ne,ce),this._positionZ=t(this,p,d.positionZ,ne,ce),o(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(c){this._nativePannerNode.coneInnerAngle=c}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(c){this._nativePannerNode.coneOuterAngle=c}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(c){this._nativePannerNode.coneOuterGain=c}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(c){this._nativePannerNode.distanceModel=c}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(c){this._nativePannerNode.maxDistance=c}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(c){this._nativePannerNode.panningModel=c}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(c){this._nativePannerNode.refDistance=c}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(c){this._nativePannerNode.rolloffFactor=c}},S_=(i,t,e,s,n,r,o,a,c,l)=>()=>{const u=new WeakMap;let h=null;const d=async(p,_)=>{let f=null,m=r(p);const v={channelCount:m.channelCount,channelCountMode:m.channelCountMode,channelInterpretation:m.channelInterpretation},b={...v,coneInnerAngle:m.coneInnerAngle,coneOuterAngle:m.coneOuterAngle,coneOuterGain:m.coneOuterGain,distanceModel:m.distanceModel,maxDistance:m.maxDistance,panningModel:m.panningModel,refDistance:m.refDistance,rolloffFactor:m.rolloffFactor},w=se(m,_);if("bufferSize"in m)f=s(_,{...v,gain:1});else if(!w){const g={...b,orientationX:m.orientationX.value,orientationY:m.orientationY.value,orientationZ:m.orientationZ.value,positionX:m.positionX.value,positionY:m.positionY.value,positionZ:m.positionZ.value};m=n(_,g)}if(u.set(_,f===null?m:f),f!==null){if(h===null){if(o===null)throw new Error("Missing the native OfflineAudioContext constructor.");const I=new o(6,p.context.length,_.sampleRate),M=t(I,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});M.connect(I.destination),h=(async()=>{const V=await Promise.all([p.orientationX,p.orientationY,p.orientationZ,p.positionX,p.positionY,p.positionZ].map(async(B,G)=>{const Y=e(I,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:G===0?1:0});return await a(I,B,Y.offset),Y}));for(let B=0;B<6;B+=1)V[B].connect(M,0,B),V[B].start(0);return l(I)})()}const g=await h,y=s(_,{...v,gain:1});await c(p,_,y);const T=[];for(let I=0;IB!==k[G])||V.some((B,G)=>B!==x[G])){k=M,x=V;const B=I/_.sampleRate;C.gain.setValueAtTime(0,B),C=s(_,{...v,gain:0}),O=n(_,{...b,orientationX:k[0],orientationY:k[1],orientationZ:k[2],positionX:x[0],positionY:x[1],positionZ:x[2]}),C.gain.setValueAtTime(1,B),y.connect(C).connect(O.inputs[0]),O.connect(f)}}return f}return w?(await i(_,p.orientationX,m.orientationX),await i(_,p.orientationY,m.orientationY),await i(_,p.orientationZ,m.orientationZ),await i(_,p.positionX,m.positionX),await i(_,p.positionY,m.positionY),await i(_,p.positionZ,m.positionZ)):(await a(_,p.orientationX,m.orientationX),await a(_,p.orientationY,m.orientationY),await a(_,p.orientationZ,m.orientationZ),await a(_,p.positionX,m.positionX),await a(_,p.positionY,m.positionY),await a(_,p.positionZ,m.positionZ)),Zn(m)?await c(p,_,m.inputs[0]):await c(p,_,m),m};return{render(p,_){const f=u.get(_);return f!==void 0?Promise.resolve(f):d(p,_)}}},E_={disableNormalization:!1},O_=(i,t,e,s)=>class Eu{constructor(r,o){const a=t(r),c=s({...E_,...o}),l=i(a,c);return e.add(l),l}static[Symbol.hasInstance](r){return r!==null&&typeof r=="object"&&Object.getPrototypeOf(r)===Eu.prototype||e.has(r)}},A_=(i,t)=>(e,s,n)=>(i(s).replay(n),t(s,e,n)),M_=(i,t,e)=>async(s,n,r)=>{const o=i(s);await Promise.all(o.activeInputs.map((a,c)=>Array.from(a).map(async([l,u])=>{const d=await t(l).render(l,n),p=s.context.destination;!e(l)&&(s!==p||!e(s))&&d.connect(r,u,c)})).reduce((a,c)=>[...a,...c],[]))},D_=(i,t,e)=>async(s,n,r)=>{const o=t(s);await Promise.all(Array.from(o.activeInputs).map(async([a,c])=>{const u=await i(a).render(a,n);e(a)||u.connect(r,c)}))},P_=(i,t,e,s)=>n=>i(Oi,()=>Oi(n))?Promise.resolve(i(s,s)).then(r=>{if(!r){const o=e(n,512,0,1);n.oncomplete=()=>{o.onaudioprocess=null,o.disconnect()},o.onaudioprocess=()=>n.currentTime,o.connect(n.destination)}return n.startRendering()}):new Promise(r=>{const o=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.oncomplete=a=>{o.disconnect(),r(a.renderedBuffer)},o.connect(n.destination),n.startRendering()}),I_=i=>(t,e)=>{i.set(t,e)},N_=i=>(t,e)=>i.set(t,e),R_=(i,t,e,s,n,r,o,a)=>(c,l)=>e(c).render(c,l).then(()=>Promise.all(Array.from(s(l)).map(u=>e(u).render(u,l)))).then(()=>n(l)).then(u=>(typeof u.copyFromChannel!="function"?(o(u),Ua(u)):t(r,()=>r(u))||a(u),i.add(u),u)),F_={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},L_=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...F_,...c},h=e(l,u),d=r(l),p=d?s():null;super(a,!1,h,p),this._pan=t(this,d,h.pan)}get pan(){return this._pan}},V_=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,pan:l.pan.value};l=t(c,h)}return r.set(c,l),u?await i(c,a.pan,l.pan):await s(c,a.pan,l.pan),Zn(l)?await n(a,c,l.inputs[0]):await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},U_=i=>()=>{if(i===null)return!1;try{new i({length:1,sampleRate:44100})}catch{return!1}return!0},z_=(i,t)=>async()=>{if(i===null)return!0;if(t===null)return!1;const e=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),s=new t(1,128,44100),n=URL.createObjectURL(e);let r=!1,o=!1;try{await s.audioWorklet.addModule(n);const a=new i(s,"a",{numberOfOutputs:0}),c=s.createOscillator();a.port.onmessage=()=>r=!0,a.onprocessorerror=()=>o=!0,c.connect(a),c.start(0),await s.startRendering(),await new Promise(l=>setTimeout(l))}catch{}finally{URL.revokeObjectURL(n)}return r&&!o},j_=(i,t)=>()=>{if(t===null)return Promise.resolve(!1);const e=new t(1,1,44100),s=i(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(n=>{e.oncomplete=()=>{s.disconnect(),n(e.currentTime!==0)},e.startRendering()})},B_=()=>new DOMException("","UnknownError"),q_={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},W_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...q_,...l},d=e(u,h),_=r(u)?s():null;super(c,!0,d,_),this._isCurveNullified=!1,this._nativeWaveShaperNode=d,o(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(c){if(c===null)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(c.length<2)throw t();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=c}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(c){this._nativeWaveShaperNode.oversample=c}},H_=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,curve:a.curve,oversample:a.oversample};a=i(o,l)}return s.set(o,a),Zn(a)?await e(r,o,a.inputs[0]):await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Y_=()=>typeof window>"u"?null:window,G_=(i,t)=>e=>{e.copyFromChannel=(s,n,r=0)=>{const o=i(r),a=i(n);if(a>=e.numberOfChannels)throw t();const c=e.length,l=e.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+o{const o=i(r),a=i(n);if(a>=e.numberOfChannels)throw t();const c=e.length,l=e.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+ot=>{t.copyFromChannel=(e=>(s,n,r=0)=>{const o=i(r),a=i(n);if(o(s,n,r=0)=>{const o=i(r),a=i(n);if(o(t,e)=>{const s=e.createBuffer(1,1,44100);t.buffer===null&&(t.buffer=s),i(t,"buffer",n=>()=>{const r=n.call(t);return r===s?null:r},n=>r=>n.call(t,r===null?s:r))},X_=(i,t)=>(e,s)=>{s.channelCount=1,s.channelCountMode="explicit",Object.defineProperty(s,"channelCount",{get:()=>1,set:()=>{throw i()}}),Object.defineProperty(s,"channelCountMode",{get:()=>"explicit",set:()=>{throw i()}});const n=e.createBufferSource();t(s,()=>{const a=s.numberOfInputs;for(let c=0;cn.disconnect(s))},Ou=(i,t,e)=>i.copyFromChannel===void 0?i.getChannelData(e)[0]:(i.copyFromChannel(t,e),t[0]),Au=i=>{if(i===null)return!1;const t=i.length;return t%2!==0?i[Math.floor(t/2)]!==0:i[t/2-1]+i[t/2]!==0},lr=(i,t,e,s)=>{let n=i;for(;!n.hasOwnProperty(t);)n=Object.getPrototypeOf(n);const{get:r,set:o}=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(i,t,{get:e(r),set:s(o)})},Q_=i=>({...i,outputChannelCount:i.outputChannelCount!==void 0?i.outputChannelCount:i.numberOfInputs===1&&i.numberOfOutputs===1?[i.channelCount]:Array.from({length:i.numberOfOutputs},()=>1)}),K_=i=>({...i,channelCount:i.numberOfOutputs}),J_=i=>{const{imag:t,real:e}=i;return t===void 0?e===void 0?{...i,imag:[0,0],real:[0,0]}:{...i,imag:Array.from(e,()=>0),real:e}:e===void 0?{...i,imag:t,real:Array.from(t,()=>0)}:{...i,imag:t,real:e}},Mu=(i,t,e)=>{try{i.setValueAtTime(t,e)}catch(s){if(s.code!==9)throw s;Mu(i,t,e+1e-7)}},tg=i=>{const t=i.createBufferSource();t.start();try{t.start()}catch{return!0}return!1},eg=i=>{const t=i.createBufferSource(),e=i.createBuffer(1,1,44100);t.buffer=e;try{t.start(0,1)}catch{return!1}return!0},sg=i=>{const t=i.createBufferSource();t.start();try{t.stop()}catch{return!1}return!0},Wa=i=>{const t=i.createOscillator();try{t.start(-1)}catch(e){return e instanceof RangeError}return!1},Du=i=>{const t=i.createBuffer(1,1,44100),e=i.createBufferSource();e.buffer=t,e.start(),e.stop();try{return e.stop(),!0}catch{return!1}},Ha=i=>{const t=i.createOscillator();try{t.stop(-1)}catch(e){return e instanceof RangeError}return!1},ng=i=>{const{port1:t,port2:e}=new MessageChannel;try{t.postMessage(i)}finally{t.close(),e.close()}},ig=i=>{i.start=(t=>(e=0,s=0,n)=>{const r=i.buffer,o=r===null?s:Math.min(r.duration,s);r!==null&&o>r.duration-.5/i.context.sampleRate?t.call(i,e,0,0):t.call(i,e,o,n)})(i.start)},Pu=(i,t)=>{const e=t.createGain();i.connect(e);const s=(n=>()=>{n.call(i,e),i.removeEventListener("ended",s)})(i.disconnect);i.addEventListener("ended",s),Xn(i,e),i.stop=(n=>{let r=!1;return(o=0)=>{if(r)try{n.call(i,o)}catch{e.gain.setValueAtTime(0,o)}else n.call(i,o),r=!0}})(i.stop)},Qn=(i,t)=>e=>{const s={value:i};return Object.defineProperties(e,{currentTarget:s,target:s}),typeof t=="function"?t.call(i,e):t.handleEvent.call(i,e)},rg=C0(dn),og=D0(dn),ag=qp(_o),Iu=new WeakMap,cg=am(Iu),qe=vp(new Map,new WeakMap),Ke=Y_(),Nu=Lm(qe,ts),Ya=om(re),Qt=M_(re,Ya,rn),lg=F0(Nu,Dt,Qt),At=um(mo),ys=u_(Ke),wt=Em(ys),Ru=new WeakMap,Fu=Jp(Qn),ur=jm(Ke),Ga=wm(ur),$a=bm(Ke),Lu=Cm(Ke),Ai=qm(Ke),Wt=ap(S0(uu),M0(rg,og,zr,ag,jr,re,cg,nr,Dt,dn,us,rn,Dr),qe,ym(aa,jr,re,Dt,Ei,us),ts,go,oe,Up(zr,aa,re,Dt,Ei,At,us,wt),Yp(Ru,re,ze),Fu,At,Ga,$a,Lu,wt,Ai),ug=R0(Wt,lg,ts,Nu,At,wt),Za=new WeakSet,yl=Vm(Ke),Vu=Pp(new Uint32Array(1)),Xa=G_(Vu,ts),Qa=$_(Vu),Uu=V0(Za,qe,oe,yl,ys,U_(yl),Xa,Qa),yo=P0(me),zu=D_(Ya,rr,rn),es=Sp(zu),Kn=zm(yo,qe,tg,eg,sg,Wa,Du,Ha,ig,Z_(lr),Pu),ss=A_(cm(rr),zu),hg=j0(es,Kn,Dt,ss,Qt),We=cp(E0(hu),Ru,Va,lp,v0,x0,k0,T0,w0,ia,cu,ur,Mu),dg=z0(Wt,hg,We,Zt,Kn,At,wt,Qn),fg=X0(Wt,Q0,ts,Zt,Bm(me,lr),At,wt,Qt),pg=yp(es,Cu,Dt,ss,Qt),fn=N_(Iu),mg=gp(Wt,We,pg,go,Cu,At,wt,fn),Us=Rm(dn,$a),_g=X_(Zt,Us),zs=Xm(ur,_g),gg=Tp(zs,Dt,Qt),yg=kp(Wt,gg,zs,At,wt),vg=Cp(ar,Dt,Qt),xg=bp(Wt,vg,ar,At,wt,K_),kg=Jm(yo,Kn,me,Us),Jn=Km(yo,qe,kg,Wa,Ha),Tg=Dp(es,Jn,Dt,ss,Qt),wg=Mp(Wt,We,Tg,Jn,At,wt,Qn),ju=t_(oe,lr),bg=Rp(ju,Dt,Qt),Cg=Np(Wt,bg,ju,At,wt,fn),Sg=Bp(es,Su,Dt,ss,Qt),Eg=jp(Wt,We,Sg,Su,At,wt,fn),Bu=e_(oe),Og=Xp(es,Bu,Dt,ss,Qt),Ag=Zp(Wt,We,Og,Bu,oe,At,wt,fn),Mg=im(es,me,Dt,ss,Qt),Dg=nm(Wt,We,Mg,me,At,wt),Pg=r_(go,Zt,cr,oe),vo=P_(qe,me,cr,j_(me,ys)),Ig=gm(Kn,Dt,ys,Qt,vo),Ng=s_(Pg),Rg=mm(Wt,Ng,Ig,At,wt,fn),Fg=K0(We,zs,Jn,cr,oe,Ou,wt,lr),qu=new WeakMap,Lg=Nm(fg,Fg,Fu,wt,qu,Qn),Wu=h_(yo,qe,Wa,Du,Ha,Pu),Vg=w_(es,Wu,Dt,ss,Qt),Ug=T_(Wt,We,Wu,Vg,At,wt,Qn),Hu=Op(Kn),zg=y_(Hu,Zt,me,Au,Us),xo=g_(Hu,Zt,zg,Au,Us,ur,lr),jg=f_(zr,Zt,zs,me,cr,xo,oe,jr,Ou,Us),Yu=d_(jg),Bg=S_(es,zs,Jn,me,Yu,Dt,ys,ss,Qt,vo),qg=C_(Wt,We,Yu,Bg,At,wt,fn),Wg=p_(ts),Hg=O_(Wg,At,new WeakSet,J_),Yg=__(zs,ar,me,xo,oe,Us),Gu=m_(Yg,oe),Gg=V_(es,Gu,Dt,ss,Qt),$g=L_(Wt,We,Gu,Gg,At,wt),Zg=H_(xo,Dt,Qt),Xg=W_(Wt,Zt,xo,Zg,At,wt,fn),$u=Om(Ke),Ka=tm(Ke),Zu=new WeakMap,Qg=hm(Zu,ys),Kg=$u?A0(qe,oe,Kp(Ke),Ka,em(b0),At,Qg,wt,Ai,new WeakMap,new WeakMap,z_(Ai,ys),Ke):void 0,Jg=Sm(Ga,wt),ty=Vp(Za,qe,Lp,Qp,new WeakSet,At,Jg,Vr,Oi,Xa,Qa),Xu=mp(Kg,ug,Uu,dg,mg,yg,xg,wg,Cg,ty,Eg,Ag,Dg,Rg,Lg,Ug,qg,Hg,$g,Xg),ey=Am(Wt,o_,At,wt),sy=Dm(Wt,a_,At,wt),ny=Pm(Wt,c_,At,wt),iy=l_(Zt,wt),ry=Im(Wt,iy,At),oy=Z0(Xu,Zt,oe,B_,ey,sy,ny,ry,ur),Ja=dm(qu),ay=I0(Ja),Qu=Ep(ts),cy=Wp(Ja),Ku=Gp(ts),Ju=new WeakMap,ly=rm(Ju,ze),uy=Zm(Qu,ts,Zt,zs,ar,Jn,me,cr,oe,Ku,Ka,ly,Us),hy=Hm(Zt,uy,me,oe,Us),dy=pp(es,Qu,Kn,zs,ar,Jn,me,cy,Ku,Ka,Dt,Ai,ys,ss,Qt,vo),fy=lm(Zu),py=I_(Ju),vl=$u?hp(ay,Wt,We,dy,hy,re,fy,At,wt,Ai,Q_,py,ng,Qn):void 0,my=Fp(oe,ys),_y=R_(Za,qe,Ya,Ja,vo,Vr,Xa,Qa),gy=x_(Xu,qe,Zt,my,_y),yy=vm(mo,Ga),vy=xm(La,$a),xy=km(Va,Lu),ky=Tm(mo,wt);function xe(i){return typeof i>"u"}function dt(i){return!xe(i)}function Ty(i){return typeof i=="function"}function Ds(i){return typeof i=="number"}function Ks(i){return Object.prototype.toString.call(i)==="[object Object]"&&i.constructor===Object}function wy(i){return typeof i=="boolean"}function Ue(i){return Array.isArray(i)}function hs(i){return typeof i=="string"}function Cr(i){return hs(i)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(i)}function ut(i,t){if(!i)throw new Error(t)}function je(i,t,e=1/0){if(!(t<=i&&i<=e))throw new RangeError(`Value must be within [${t}, ${e}], got: ${i}`)}function th(i){!i.isOffline&&i.state!=="running"&&tc('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let eh=!1,xl=!1;function kl(i){eh=i}function by(i){xe(i)&&eh&&!xl&&(xl=!0,tc("Events scheduled inside of scheduled callbacks should use the passed in scheduling time. See https://github.com/Tonejs/Tone.js/wiki/Accurate-Timing"))}let sh=console;function Cy(...i){sh.log(...i)}function tc(...i){sh.warn(...i)}function Sy(i){return new oy(i)}function Ey(i,t,e){return new gy(i,t,e)}const Js=typeof self=="object"?self:null,Oy=Js&&(Js.hasOwnProperty("AudioContext")||Js.hasOwnProperty("webkitAudioContext"));function Ay(i,t,e){return ut(dt(vl),"This node only works in a secure context (https or localhost)"),new vl(i,t,e)}class My{constructor(t,e,s,n){this._callback=t,this._type=e,this._minimumUpdateInterval=Math.max(128/(n||44100),.001),this.updateInterval=s,this._createClock()}_createWorker(){const t=new Blob([` +`,Ti=new it(0,0,0),nl=100,f0=600,p0=2e3,Bo={x:172.7392402058252,y:-239.04675366094037,z:-2e3},au="14.8.49",il=(i,t,e)=>({endTime:t,insertTime:e,type:"exponentialRampToValue",value:i}),rl=(i,t,e)=>({endTime:t,insertTime:e,type:"linearRampToValue",value:i}),ia=(i,t)=>({startTime:t,type:"setValue",value:i}),cu=(i,t,e)=>({duration:e,startTime:t,type:"setValueCurve",values:i}),lu=(i,t,{startTime:e,target:s,timeConstant:n})=>s+(t-s)*Math.exp((e-i)/n),En=i=>i.type==="exponentialRampToValue",Fr=i=>i.type==="linearRampToValue",ws=i=>En(i)||Fr(i),Fa=i=>i.type==="setValue",as=i=>i.type==="setValueCurve",Lr=(i,t,e,s)=>{const n=i[t];return n===void 0?s:ws(n)||Fa(n)?n.value:as(n)?n.values[n.values.length-1]:lu(e,Lr(i,t-1,n.startTime,s),n)},ol=(i,t,e,s,n)=>e===void 0?[s.insertTime,n]:ws(e)?[e.endTime,e.value]:Fa(e)?[e.startTime,e.value]:as(e)?[e.startTime+e.duration,e.values[e.values.length-1]]:[e.startTime,Lr(i,t-1,e.startTime,n)],ra=i=>i.type==="cancelAndHold",oa=i=>i.type==="cancelScheduledValues",ks=i=>ra(i)||oa(i)?i.cancelTime:En(i)||Fr(i)?i.endTime:i.startTime,al=(i,t,e,{endTime:s,value:n})=>e===n?n:0e+(i-t)/(s-t)*(n-e),m0=(i,t)=>{const e=Math.floor(t),s=Math.ceil(t);return e===s?i[e]:(1-(t-e))*i[e]+(1-(s-t))*i[s]},_0=(i,{duration:t,startTime:e,values:s})=>{const n=(i-e)/t*(s.length-1);return m0(s,n)},Tr=i=>i.type==="setTarget";class g0{constructor(t){this._automationEvents=[],this._currenTime=0,this._defaultValue=t}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(t){const e=ks(t);if(ra(t)||oa(t)){const s=this._automationEvents.findIndex(r=>oa(t)&&as(r)?r.startTime+r.duration>=e:ks(r)>=e),n=this._automationEvents[s];if(s!==-1&&(this._automationEvents=this._automationEvents.slice(0,s)),ra(t)){const r=this._automationEvents[this._automationEvents.length-1];if(n!==void 0&&ws(n)){if(r!==void 0&&Tr(r))throw new Error("The internal list is malformed.");const o=r===void 0?n.insertTime:as(r)?r.startTime+r.duration:ks(r),a=r===void 0?this._defaultValue:as(r)?r.values[r.values.length-1]:r.value,c=En(n)?al(e,o,a,n):cl(e,o,a,n),l=En(n)?il(c,e,this._currenTime):rl(c,e,this._currenTime);this._automationEvents.push(l)}if(r!==void 0&&Tr(r)&&this._automationEvents.push(ia(this.getValue(e),e)),r!==void 0&&as(r)&&r.startTime+r.duration>e){const o=e-r.startTime,a=(r.values.length-1)/r.duration,c=Math.max(2,1+Math.ceil(o*a)),l=o/(c-1)*a,u=r.values.slice(0,c);if(l<1)for(let h=1;hks(o)>e),n=s===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[s-1];if(n!==void 0&&as(n)&&ks(n)+n.duration>e)return!1;const r=En(t)?il(t.value,t.endTime,this._currenTime):Fr(t)?rl(t.value,e,this._currenTime):t;if(s===-1)this._automationEvents.push(r);else{if(as(t)&&e+t.duration>ks(this._automationEvents[s]))return!1;this._automationEvents.splice(s,0,r)}}return!0}flush(t){const e=this._automationEvents.findIndex(s=>ks(s)>t);if(e>1){const s=this._automationEvents.slice(e-1),n=s[0];Tr(n)&&s.unshift(ia(Lr(this._automationEvents,e-2,n.startTime,this._defaultValue),n.startTime)),this._automationEvents=s}}getValue(t){if(this._automationEvents.length===0)return this._defaultValue;const e=this._automationEvents.findIndex(o=>ks(o)>t),s=this._automationEvents[e],n=(e===-1?this._automationEvents.length:e)-1,r=this._automationEvents[n];if(r!==void 0&&Tr(r)&&(s===void 0||!ws(s)||s.insertTime>t))return lu(t,Lr(this._automationEvents,n-1,r.startTime,this._defaultValue),r);if(r!==void 0&&Fa(r)&&(s===void 0||!ws(s)))return r.value;if(r!==void 0&&as(r)&&(s===void 0||!ws(s)||r.startTime+r.duration>t))return t({cancelTime:i,type:"cancelAndHold"}),v0=i=>({cancelTime:i,type:"cancelScheduledValues"}),x0=(i,t)=>({endTime:t,type:"exponentialRampToValue",value:i}),k0=(i,t)=>({endTime:t,type:"linearRampToValue",value:i}),T0=(i,t,e)=>({startTime:t,target:i,timeConstant:e,type:"setTarget"}),w0=()=>new DOMException("","AbortError"),b0=i=>(t,e,[s,n,r],o)=>{i(t[n],[e,s,r],a=>a[0]===e&&a[1]===s,o)},C0=i=>(t,e,s)=>{const n=[];for(let r=0;r(t,e)=>{i.set(t,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})},Ln=new WeakSet,uu=new WeakMap,La=new WeakMap,hu=new WeakMap,Va=new WeakMap,mo=new WeakMap,du=new WeakMap,aa=new WeakMap,ca=new WeakMap,la=new WeakMap,fu={construct(){return fu}},E0=i=>{try{const t=new Proxy(i,fu);new t}catch{return!1}return!0},ll=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,ul=(i,t)=>{const e=[];let s=i.replace(/^[\s]+/,""),n=s.match(ll);for(;n!==null;){const r=n[1].slice(1,-1),o=n[0].replace(/([\s]+)?;?$/,"").replace(r,new URL(r,t).toString());e.push(o),s=s.slice(n[0].length).replace(/^[\s]+/,""),n=s.match(ll)}return[e.join(";"),s]},hl=i=>{if(i!==void 0&&!Array.isArray(i))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},dl=i=>{if(!E0(i))throw new TypeError("The given value for processorCtor should be a constructor.");if(i.prototype===null||typeof i.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},O0=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>{let p=0;return(_,f,m={credentials:"omit"})=>{const v=u.get(_);if(v!==void 0&&v.has(f))return Promise.resolve();const w=l.get(_);if(w!==void 0){const y=w.get(f);if(y!==void 0)return y}const b=r(_),g=b.audioWorklet===void 0?n(f).then(([y,T])=>{const[k,x]=ul(y,T),C=`${k};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${x} +})})(window,'_AWGS')`;return e(C)}).then(()=>{const y=d._AWGS.pop();if(y===void 0)throw new SyntaxError;s(b.currentTime,b.sampleRate,()=>y(class{},void 0,(T,k)=>{if(T.trim()==="")throw t();const x=ca.get(b);if(x!==void 0){if(x.has(T))throw t();dl(k),hl(k.parameterDescriptors),x.set(T,k)}else dl(k),hl(k.parameterDescriptors),ca.set(b,new Map([[T,k]]))},b.sampleRate,void 0,void 0))}):Promise.all([n(f),Promise.resolve(i(h,h))]).then(([[y,T],k])=>{const x=p+1;p=x;const[C,O]=ul(y,T),B=`${C};((AudioWorkletProcessor,registerProcessor)=>{${O} +})(${k?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${k?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${k?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${x}',class extends AudioWorkletProcessor{process(){return !1}})`,G=new Blob([B],{type:"application/javascript; charset=utf-8"}),Y=URL.createObjectURL(G);return b.audioWorklet.addModule(Y,m).then(()=>{if(a(b))return b;const j=o(b);return j.audioWorklet.addModule(Y,m).then(()=>j)}).then(j=>{if(c===null)throw new SyntaxError;try{new c(j,`__sac${x}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(Y))});return w===void 0?l.set(_,new Map([[f,g]])):w.set(f,g),g.then(()=>{const y=u.get(_);y===void 0?u.set(_,new Set([f])):y.add(f)}).finally(()=>{const y=l.get(_);y!==void 0&&y.delete(f)}),g}},ze=(i,t)=>{const e=i.get(t);if(e===void 0)throw new Error("A value with the given key could not be found.");return e},_o=(i,t)=>{const e=Array.from(i).filter(t);if(e.length>1)throw Error("More than one element was found.");if(e.length===0)throw Error("No element was found.");const[s]=e;return i.delete(s),s},pu=(i,t,e,s)=>{const n=ze(i,t),r=_o(n,o=>o[0]===e&&o[1]===s);return n.size===0&&i.delete(t),r},sr=i=>ze(du,i),Vn=i=>{if(Ln.has(i))throw new Error("The AudioNode is already stored.");Ln.add(i),sr(i).forEach(t=>t(!0))},mu=i=>"port"in i,nr=i=>{if(!Ln.has(i))throw new Error("The AudioNode is not stored.");Ln.delete(i),sr(i).forEach(t=>t(!1))},ua=(i,t)=>{!mu(i)&&t.every(e=>e.size===0)&&nr(i)},A0=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>{const p=new WeakMap;return(_,f,m,v,w)=>{const{activeInputs:b,passiveInputs:g}=r(f),{outputs:y}=r(_),T=a(_),k=x=>{const C=c(f),O=c(_);if(x){const D=pu(g,_,m,v);i(b,_,D,!1),!w&&!h(_)&&e(O,C,m,v),d(f)&&Vn(f)}else{const D=s(b,_,m,v);t(g,v,D,!1),!w&&!h(_)&&n(O,C,m,v);const M=o(f);if(M===0)u(f)&&ua(f,b);else{const V=p.get(f);V!==void 0&&clearTimeout(V),p.set(f,setTimeout(()=>{u(f)&&ua(f,b)},M*1e3))}}};return l(y,[f,m,v],x=>x[0]===f&&x[1]===m&&x[2]===v,!0)?(T.add(k),u(_)?i(b,_,[m,v,k],!0):t(g,v,[_,m,k],!0),!0):!1}},M0=i=>(t,e,[s,n,r],o)=>{const a=t.get(s);a===void 0?t.set(s,new Set([[n,e,r]])):i(a,[n,e,r],c=>c[0]===n&&c[1]===e,o)},D0=i=>(t,e)=>{const s=i(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});e.connect(s).connect(t.destination);const n=()=>{e.removeEventListener("ended",n),e.disconnect(s),s.disconnect()};e.addEventListener("ended",n)},P0=i=>(t,e)=>{i(t).add(e)},I0={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},N0=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...I0,...c},h=s(l,u),d=r(l)?t():null;super(a,!1,h,d),this._nativeAnalyserNode=h}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(a){this._nativeAnalyserNode.fftSize=a}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(a){const c=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=a,!(a>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=c,e()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(a){const c=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=a,!(this._nativeAnalyserNode.maxDecibels>a))throw this._nativeAnalyserNode.minDecibels=c,e()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(a){this._nativeAnalyserNode.smoothingTimeConstant=a}getByteFrequencyData(a){this._nativeAnalyserNode.getByteFrequencyData(a)}getByteTimeDomainData(a){this._nativeAnalyserNode.getByteTimeDomainData(a)}getFloatFrequencyData(a){this._nativeAnalyserNode.getFloatFrequencyData(a)}getFloatTimeDomainData(a){this._nativeAnalyserNode.getFloatTimeDomainData(a)}},se=(i,t)=>i.context===t,R0=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,fftSize:a.fftSize,maxDecibels:a.maxDecibels,minDecibels:a.minDecibels,smoothingTimeConstant:a.smoothingTimeConstant};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Vr=i=>{try{i.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},ts=()=>new DOMException("","IndexSizeError"),Ua=i=>{i.getChannelData=(t=>e=>{try{return t.call(i,e)}catch(s){throw s.code===12?ts():s}})(i.getChannelData)},F0={numberOfChannels:1},L0=(i,t,e,s,n,r,o,a)=>{let c=null;return class _u{constructor(u){if(n===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:p}={...F0,...u};c===null&&(c=new n(1,1,44100));const _=s!==null&&t(r,r)?new s({length:h,numberOfChannels:d,sampleRate:p}):c.createBuffer(d,h,p);if(_.numberOfChannels===0)throw e();return typeof _.copyFromChannel!="function"?(o(_),Ua(_)):t(Vr,()=>Vr(_))||a(_),i.add(_),_}static[Symbol.hasInstance](u){return u!==null&&typeof u=="object"&&Object.getPrototypeOf(u)===_u.prototype||i.has(u)}}},ce=-34028234663852886e22,ne=-ce,us=i=>Ln.has(i),V0={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},U0=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...V0,...u},p=n(h,d),_=o(h),f=_?t():null;super(l,!1,p,f),this._audioBufferSourceNodeRenderer=f,this._isBufferNullified=!1,this._isBufferSet=d.buffer!==null,this._nativeAudioBufferSourceNode=p,this._onended=null,this._playbackRate=e(this,_,p.playbackRate,ne,ce)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(l){if(this._nativeAudioBufferSourceNode.buffer=l,l!==null){if(this._isBufferSet)throw s();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(l){this._nativeAudioBufferSourceNode.loop=l}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(l){this._nativeAudioBufferSourceNode.loopEnd=l}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(l){this._nativeAudioBufferSourceNode.loopStart=l}get onended(){return this._onended}set onended(l){const u=typeof l=="function"?a(this,l):null;this._nativeAudioBufferSourceNode.onended=u;const h=this._nativeAudioBufferSourceNode.onended;this._onended=h!==null&&h===u?l:h}get playbackRate(){return this._playbackRate}start(l=0,u=0,h){if(this._nativeAudioBufferSourceNode.start(l,u,h),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.start=h===void 0?[l,u]:[l,u,h]),this.context.state!=="closed"){Vn(this);const d=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",d),us(this)&&nr(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",d)}}stop(l=0){this._nativeAudioBufferSourceNode.stop(l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=l)}},z0=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=e(l);const d=se(h,u);if(!d){const p={buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value};h=t(u,p),o!==null&&h.start(...o),a!==null&&h.stop(a)}return r.set(u,h),d?await i(u,l.playbackRate,h.playbackRate):await s(u,l.playbackRate,h.playbackRate),await n(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=r.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},j0=i=>"playbackRate"in i,B0=i=>"frequency"in i&&"gain"in i,q0=i=>"offset"in i,W0=i=>!("frequency"in i)&&"gain"in i,H0=i=>"detune"in i&&"frequency"in i,Y0=i=>"pan"in i,re=i=>ze(uu,i),ir=i=>ze(hu,i),ha=(i,t)=>{const{activeInputs:e}=re(i);e.forEach(n=>n.forEach(([r])=>{t.includes(i)||ha(r,[...t,i])}));const s=j0(i)?[i.playbackRate]:mu(i)?Array.from(i.parameters.values()):B0(i)?[i.Q,i.detune,i.frequency,i.gain]:q0(i)?[i.offset]:W0(i)?[i.gain]:H0(i)?[i.detune,i.frequency]:Y0(i)?[i.pan]:[];for(const n of s){const r=ir(n);r!==void 0&&r.activeInputs.forEach(([o])=>ha(o,t))}us(i)&&nr(i)},gu=i=>{ha(i.destination,[])},G0=i=>i===void 0||typeof i=="number"||typeof i=="string"&&(i==="balanced"||i==="interactive"||i==="playback"),$0=(i,t,e,s,n,r,o,a,c)=>class extends i{constructor(u={}){if(c===null)throw new Error("Missing the native AudioContext constructor.");let h;try{h=new c(u)}catch(_){throw _.code===12&&_.message==="sampleRate is not in range"?e():_}if(h===null)throw s();if(!G0(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(u.sampleRate!==void 0&&h.sampleRate!==u.sampleRate)throw e();super(h,2);const{latencyHint:d}=u,{sampleRate:p}=h;if(this._baseLatency=typeof h.baseLatency=="number"?h.baseLatency:d==="balanced"?512/p:d==="interactive"||d===void 0?256/p:d==="playback"?1024/p:Math.max(2,Math.min(128,Math.round(d*p/128)))*128/p,this._nativeAudioContext=h,c.name==="webkitAudioContext"?(this._nativeGainNode=h.createGain(),this._nativeOscillatorNode=h.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(h.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,h.state==="running"){this._state="suspended";const _=()=>{this._state==="suspended"&&(this._state=null),h.removeEventListener("statechange",_)};h.addEventListener("statechange",_)}}get baseLatency(){return this._baseLatency}get state(){return this._state!==null?this._state:this._nativeAudioContext.state}close(){return this.state==="closed"?this._nativeAudioContext.close().then(()=>{throw t()}):(this._state==="suspended"&&(this._state=null),this._nativeAudioContext.close().then(()=>{this._nativeGainNode!==null&&this._nativeOscillatorNode!==null&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),gu(this)}))}createMediaElementSource(u){return new n(this,{mediaElement:u})}createMediaStreamDestination(){return new r(this)}createMediaStreamSource(u){return new o(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new a(this,{mediaStreamTrack:u})}resume(){return this._state==="suspended"?new Promise((u,h)=>{const d=()=>{this._nativeAudioContext.removeEventListener("statechange",d),this._nativeAudioContext.state==="running"?u():this.resume().then(u,h)};this._nativeAudioContext.addEventListener("statechange",d)}):this._nativeAudioContext.resume().catch(u=>{throw u===void 0||u.code===15?t():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw u===void 0?t():u})}},X0=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d=o(h),p=n(h,u,d),_=d?t(a):null;super(l,!1,p,_),this._isNodeOfNativeOfflineAudioContext=d,this._nativeAudioDestinationNode=p}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();if(l>this._nativeAudioDestinationNode.maxChannelCount)throw e();this._nativeAudioDestinationNode.channelCount=l}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();this._nativeAudioDestinationNode.channelCountMode=l}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}},Z0=i=>{const t=new WeakMap,e=async(s,n)=>{const r=n.destination;return t.set(n,r),await i(s,n,r),r};return{render(s,n){const r=t.get(n);return r!==void 0?Promise.resolve(r):e(s,n)}}},Q0=(i,t,e,s,n,r,o,a)=>(c,l)=>{const u=l.listener,h=()=>{const y=new Float32Array(1),T=t(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),k=o(l);let x=!1,C=[0,0,-1,0,1,0],O=[0,0,0];const D=()=>{if(x)return;x=!0;const G=s(l,256,9,0);G.onaudioprocess=({inputBuffer:Y})=>{const j=[r(Y,y,0),r(Y,y,1),r(Y,y,2),r(Y,y,3),r(Y,y,4),r(Y,y,5)];j.some((X,Z)=>X!==C[Z])&&(u.setOrientation(...j),C=j);const z=[r(Y,y,6),r(Y,y,7),r(Y,y,8)];z.some((X,Z)=>X!==O[Z])&&(u.setPosition(...z),O=z)},T.connect(G)},M=G=>Y=>{Y!==C[G]&&(C[G]=Y,u.setOrientation(...C))},V=G=>Y=>{Y!==O[G]&&(O[G]=Y,u.setPosition(...O))},B=(G,Y,j)=>{const z=e(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Y});z.connect(T,0,G),z.start(),Object.defineProperty(z.offset,"defaultValue",{get(){return Y}});const X=i({context:c},k,z.offset,ne,ce);return a(X,"value",Z=>()=>Z.call(X),Z=>et=>{try{Z.call(X,et)}catch(R){if(R.code!==9)throw R}D(),k&&j(et)}),X.cancelAndHoldAtTime=(Z=>k?()=>{throw n()}:(...et)=>{const R=Z.apply(X,et);return D(),R})(X.cancelAndHoldAtTime),X.cancelScheduledValues=(Z=>k?()=>{throw n()}:(...et)=>{const R=Z.apply(X,et);return D(),R})(X.cancelScheduledValues),X.exponentialRampToValueAtTime=(Z=>k?()=>{throw n()}:(...et)=>{const R=Z.apply(X,et);return D(),R})(X.exponentialRampToValueAtTime),X.linearRampToValueAtTime=(Z=>k?()=>{throw n()}:(...et)=>{const R=Z.apply(X,et);return D(),R})(X.linearRampToValueAtTime),X.setTargetAtTime=(Z=>k?()=>{throw n()}:(...et)=>{const R=Z.apply(X,et);return D(),R})(X.setTargetAtTime),X.setValueAtTime=(Z=>k?()=>{throw n()}:(...et)=>{const R=Z.apply(X,et);return D(),R})(X.setValueAtTime),X.setValueCurveAtTime=(Z=>k?()=>{throw n()}:(...et)=>{const R=Z.apply(X,et);return D(),R})(X.setValueCurveAtTime),X};return{forwardX:B(0,0,M(0)),forwardY:B(1,0,M(1)),forwardZ:B(2,-1,M(2)),positionX:B(6,0,V(0)),positionY:B(7,0,V(1)),positionZ:B(8,0,V(2)),upX:B(3,0,M(3)),upY:B(4,1,M(4)),upZ:B(5,0,M(5))}},{forwardX:d,forwardY:p,forwardZ:_,positionX:f,positionY:m,positionZ:v,upX:w,upY:b,upZ:g}=u.forwardX===void 0?h():u;return{get forwardX(){return d},get forwardY(){return p},get forwardZ(){return _},get positionX(){return f},get positionY(){return m},get positionZ(){return v},get upX(){return w},get upY(){return b},get upZ(){return g}}},Ur=i=>"context"in i,rr=i=>Ur(i[0]),dn=(i,t,e,s)=>{for(const n of i)if(e(n)){if(s)return!1;throw Error("The set contains at least one similar element.")}return i.add(t),!0},fl=(i,t,[e,s],n)=>{dn(i,[t,e,s],r=>r[0]===t&&r[1]===e,n)},pl=(i,[t,e,s],n)=>{const r=i.get(t);r===void 0?i.set(t,new Set([[e,s]])):dn(r,[e,s],o=>o[0]===e,n)},Xn=i=>"inputs"in i,zr=(i,t,e,s)=>{if(Xn(t)){const n=t.inputs[s];return i.connect(n,e,0),[n,e,0]}return i.connect(t,e,s),[t,e,s]},yu=(i,t,e)=>{for(const s of i)if(s[0]===t&&s[1]===e)return i.delete(s),s;return null},K0=(i,t,e)=>_o(i,s=>s[0]===t&&s[1]===e),vu=(i,t)=>{if(!sr(i).delete(t))throw new Error("Missing the expected event listener.")},xu=(i,t,e)=>{const s=ze(i,t),n=_o(s,r=>r[0]===e);return s.size===0&&i.delete(t),n},jr=(i,t,e,s)=>{Xn(t)?i.disconnect(t.inputs[s],e,0):i.disconnect(t,e,s)},Dt=i=>ze(La,i),Ei=i=>ze(Va,i),rn=i=>aa.has(i),Dr=i=>!Ln.has(i),ml=(i,t)=>new Promise(e=>{if(t!==null)e(!0);else{const s=i.createScriptProcessor(256,1,1),n=i.createGain(),r=i.createBuffer(1,2,44100),o=r.getChannelData(0);o[0]=1,o[1]=1;const a=i.createBufferSource();a.buffer=r,a.loop=!0,a.connect(s).connect(i.destination),a.connect(n),a.disconnect(n),s.onaudioprocess=c=>{const l=c.inputBuffer.getChannelData(0);Array.prototype.some.call(l,u=>u===1)?e(!0):e(!1),a.stop(),s.onaudioprocess=null,a.disconnect(s),s.disconnect(i.destination)},a.start()}}),qo=(i,t)=>{const e=new Map;for(const s of i)for(const n of s){const r=e.get(n);e.set(n,r===void 0?1:r+1)}e.forEach((s,n)=>t(n,s))},Br=i=>"context"in i,J0=i=>{const t=new Map;i.connect=(e=>(s,n=0,r=0)=>{const o=Br(s)?e(s,n,r):e(s,n),a=t.get(s);return a===void 0?t.set(s,[{input:r,output:n}]):a.every(c=>c.input!==r||c.output!==n)&&a.push({input:r,output:n}),o})(i.connect.bind(i)),i.disconnect=(e=>(s,n,r)=>{if(e.apply(i),s===void 0)t.clear();else if(typeof s=="number")for(const[o,a]of t){const c=a.filter(l=>l.output!==s);c.length===0?t.delete(o):t.set(o,c)}else if(t.has(s))if(n===void 0)t.delete(s);else{const o=t.get(s);if(o!==void 0){const a=o.filter(c=>c.output!==n&&(c.input!==r||r===void 0));a.length===0?t.delete(s):t.set(s,a)}}for(const[o,a]of t)a.forEach(c=>{Br(o)?i.connect(o,c.output,c.input):i.connect(o,c.output)})})(i.disconnect)},tp=(i,t,e,s)=>{const{activeInputs:n,passiveInputs:r}=ir(t),{outputs:o}=re(i),a=sr(i),c=l=>{const u=Dt(i),h=Ei(t);if(l){const d=xu(r,i,e);fl(n,i,d,!1),!s&&!rn(i)&&u.connect(h,e)}else{const d=K0(n,i,e);pl(r,d,!1),!s&&!rn(i)&&u.disconnect(h,e)}};return dn(o,[t,e],l=>l[0]===t&&l[1]===e,!0)?(a.add(c),us(i)?fl(n,i,[e,c],!0):pl(r,[i,e,c],!0),!0):!1},ep=(i,t,e,s)=>{const{activeInputs:n,passiveInputs:r}=re(t),o=yu(n[s],i,e);return o===null?[pu(r,i,e,s)[2],!1]:[o[2],!0]},sp=(i,t,e)=>{const{activeInputs:s,passiveInputs:n}=ir(t),r=yu(s,i,e);return r===null?[xu(n,i,e)[1],!1]:[r[2],!0]},za=(i,t,e,s,n)=>{const[r,o]=ep(i,e,s,n);if(r!==null&&(vu(i,r),o&&!t&&!rn(i)&&jr(Dt(i),Dt(e),s,n)),us(e)){const{activeInputs:a}=re(e);ua(e,a)}},ja=(i,t,e,s)=>{const[n,r]=sp(i,e,s);n!==null&&(vu(i,n),r&&!t&&!rn(i)&&Dt(i).disconnect(Ei(e),s))},np=(i,t)=>{const e=re(i),s=[];for(const n of e.outputs)rr(n)?za(i,t,...n):ja(i,t,...n),s.push(n[0]);return e.outputs.clear(),s},ip=(i,t,e)=>{const s=re(i),n=[];for(const r of s.outputs)r[1]===e&&(rr(r)?za(i,t,...r):ja(i,t,...r),n.push(r[0]),s.outputs.delete(r));return n},rp=(i,t,e,s,n)=>{const r=re(i);return Array.from(r.outputs).filter(o=>o[0]===e&&(s===void 0||o[1]===s)&&(n===void 0||o[2]===n)).map(o=>(rr(o)?za(i,t,...o):ja(i,t,...o),r.outputs.delete(o),o[0]))},op=(i,t,e,s,n,r,o,a,c,l,u,h,d,p,_,f)=>class extends l{constructor(v,w,b,g){super(b),this._context=v,this._nativeAudioNode=b;const y=u(v);h(y)&&e(ml,()=>ml(y,f))!==!0&&J0(b),La.set(this,b),du.set(this,new Set),v.state!=="closed"&&w&&Vn(this),i(this,g,b)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(v){this._nativeAudioNode.channelCount=v}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(v){this._nativeAudioNode.channelCountMode=v}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(v){this._nativeAudioNode.channelInterpretation=v}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(v,w=0,b=0){if(w<0||w>=this._nativeAudioNode.numberOfOutputs)throw n();const g=u(this._context),y=_(g);if(d(v)||p(v))throw r();if(Ur(v)){const x=Dt(v);try{const O=zr(this._nativeAudioNode,x,w,b),D=Dr(this);(y||D)&&this._nativeAudioNode.disconnect(...O),this.context.state!=="closed"&&!D&&Dr(v)&&Vn(v)}catch(O){throw O.code===12?r():O}if(t(this,v,w,b,y)){const O=c([this],v);qo(O,s(y))}return v}const T=Ei(v);if(T.name==="playbackRate"&&T.maxValue===1024)throw o();try{this._nativeAudioNode.connect(T,w),(y||Dr(this))&&this._nativeAudioNode.disconnect(T,w)}catch(x){throw x.code===12?r():x}if(tp(this,v,w,y)){const x=c([this],v);qo(x,s(y))}}disconnect(v,w,b){let g;const y=u(this._context),T=_(y);if(v===void 0)g=np(this,T);else if(typeof v=="number"){if(v<0||v>=this.numberOfOutputs)throw n();g=ip(this,T,v)}else{if(w!==void 0&&(w<0||w>=this.numberOfOutputs)||Ur(v)&&b!==void 0&&(b<0||b>=v.numberOfInputs))throw n();if(g=rp(this,T,v,w,b),g.length===0)throw r()}for(const k of g){const x=c([this],k);qo(x,a)}}},ap=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>(p,_,f,m=null,v=null)=>{const w=f.value,b=new g0(w),g=_?s(b):null,y={get defaultValue(){return w},get maxValue(){return m===null?f.maxValue:m},get minValue(){return v===null?f.minValue:v},get value(){return f.value},set value(T){f.value=T,y.setValueAtTime(T,p.context.currentTime)},cancelAndHoldAtTime(T){if(typeof f.cancelAndHoldAtTime=="function")g===null&&b.flush(p.context.currentTime),b.add(n(T)),f.cancelAndHoldAtTime(T);else{const k=Array.from(b).pop();g===null&&b.flush(p.context.currentTime),b.add(n(T));const x=Array.from(b).pop();f.cancelScheduledValues(T),k!==x&&x!==void 0&&(x.type==="exponentialRampToValue"?f.exponentialRampToValueAtTime(x.value,x.endTime):x.type==="linearRampToValue"?f.linearRampToValueAtTime(x.value,x.endTime):x.type==="setValue"?f.setValueAtTime(x.value,x.startTime):x.type==="setValueCurve"&&f.setValueCurveAtTime(x.values,x.startTime,x.duration))}return y},cancelScheduledValues(T){return g===null&&b.flush(p.context.currentTime),b.add(r(T)),f.cancelScheduledValues(T),y},exponentialRampToValueAtTime(T,k){if(T===0)throw new RangeError;if(!Number.isFinite(k)||k<0)throw new RangeError;const x=p.context.currentTime;return g===null&&b.flush(x),Array.from(b).length===0&&(b.add(l(w,x)),f.setValueAtTime(w,x)),b.add(o(T,k)),f.exponentialRampToValueAtTime(T,k),y},linearRampToValueAtTime(T,k){const x=p.context.currentTime;return g===null&&b.flush(x),Array.from(b).length===0&&(b.add(l(w,x)),f.setValueAtTime(w,x)),b.add(a(T,k)),f.linearRampToValueAtTime(T,k),y},setTargetAtTime(T,k,x){return g===null&&b.flush(p.context.currentTime),b.add(c(T,k,x)),f.setTargetAtTime(T,k,x),y},setValueAtTime(T,k){return g===null&&b.flush(p.context.currentTime),b.add(l(T,k)),f.setValueAtTime(T,k),y},setValueCurveAtTime(T,k,x){const C=T instanceof Float32Array?T:new Float32Array(T);if(h!==null&&h.name==="webkitAudioContext"){const O=k+x,D=p.context.sampleRate,M=Math.ceil(k*D),V=Math.floor(O*D),B=V-M,G=new Float32Array(B);for(let j=0;j({replay(t){for(const e of i)if(e.type==="exponentialRampToValue"){const{endTime:s,value:n}=e;t.exponentialRampToValueAtTime(n,s)}else if(e.type==="linearRampToValue"){const{endTime:s,value:n}=e;t.linearRampToValueAtTime(n,s)}else if(e.type==="setTarget"){const{startTime:s,target:n,timeConstant:r}=e;t.setTargetAtTime(n,s,r)}else if(e.type==="setValue"){const{startTime:s,value:n}=e;t.setValueAtTime(n,s)}else if(e.type==="setValueCurve"){const{duration:s,startTime:n,values:r}=e;t.setValueCurveAtTime(r,n,s)}else throw new Error("Can't apply an unknown automation.")}});class ku{constructor(t){this._map=new Map(t)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(t,e=null){return this._map.forEach((s,n)=>t.call(e,s,n,this))}get(t){return this._map.get(t)}has(t){return this._map.has(t)}keys(){return this._map.keys()}values(){return this._map.values()}}const lp={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},up=(i,t,e,s,n,r,o,a,c,l,u,h,d,p)=>class extends t{constructor(f,m,v){var w;const b=a(f),g=c(b),y=u({...lp,...v});d(y);const T=ca.get(b),k=T==null?void 0:T.get(m),x=g||b.state!=="closed"?b:(w=o(b))!==null&&w!==void 0?w:b,C=n(x,g?null:f.baseLatency,l,m,k,y),O=g?s(m,y,k):null;super(f,!0,C,O);const D=[];C.parameters.forEach((V,B)=>{const G=e(this,g,V);D.push([B,G])}),this._nativeAudioWorkletNode=C,this._onprocessorerror=null,this._parameters=new ku(D),g&&i(b,this);const{activeInputs:M}=r(this);h(C,M)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(f){const m=typeof f=="function"?p(this,f):null;this._nativeAudioWorkletNode.onprocessorerror=m;const v=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=v!==null&&v===m?f:v}get parameters(){return this._parameters===null?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}};function qr(i,t,e,s,n){if(typeof i.copyFromChannel=="function")t[e].byteLength===0&&(t[e]=new Float32Array(128)),i.copyFromChannel(t[e],s,n);else{const r=i.getChannelData(s);if(t[e].byteLength===0)t[e]=r.slice(n,n+128);else{const o=new Float32Array(r.buffer,n*Float32Array.BYTES_PER_ELEMENT,128);t[e].set(o)}}}const Tu=(i,t,e,s,n)=>{typeof i.copyToChannel=="function"?t[e].byteLength!==0&&i.copyToChannel(t[e],s,n):t[e].byteLength!==0&&i.getChannelData(s).set(t[e],n)},Wr=(i,t)=>{const e=[];for(let s=0;s{const e=ze(la,i),s=Dt(t);return ze(e,s)},dp=async(i,t,e,s,n,r,o)=>{const a=t===null?Math.ceil(i.context.length/128)*128:t.length,c=s.channelCount*s.numberOfInputs,l=n.reduce((m,v)=>m+v,0),u=l===0?null:e.createBuffer(l,a,e.sampleRate);if(r===void 0)throw new Error("Missing the processor constructor.");const h=re(i),d=await hp(e,i),p=Wr(s.numberOfInputs,s.channelCount),_=Wr(s.numberOfOutputs,n),f=Array.from(i.parameters.keys()).reduce((m,v)=>({...m,[v]:new Float32Array(128)}),{});for(let m=0;m0&&t!==null)for(let v=0;v{qr(t,f,v,c+w,m)});for(let v=0;vh.activeInputs[g].size===0?[]:b),w=o(m/e.sampleRate,e.sampleRate,()=>d.process(v,_,f));if(u!==null)for(let b=0,g=0;b(m,v,w)=>{const b=new WeakMap;let g=null;const y=async(T,k)=>{let x=u(T),C=null;const O=se(x,k),D=Array.isArray(v.outputChannelCount)?v.outputChannelCount:Array.from(v.outputChannelCount);if(h===null){const M=D.reduce((Y,j)=>Y+j,0),V=n(k,{channelCount:Math.max(1,M),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,M)}),B=[];for(let Y=0;Y{const et=new d(X,Math.ceil(T.context.length/128)*128,k.sampleRate),R=[],F=[];for(let H=0;H{const N=r(et,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:H.value});return await p(et,H,N.offset),N})),P=s(et,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,j+z)});for(let H=0;H_(T,et,H))),f(et)})(),k,v,D,w,l)}const M=await g,V=e(k,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[B,G,Y]=C;M!==null&&(V.buffer=M,V.start(0)),V.connect(B);for(let j=0,z=0;jclass extends _{constructor(y,T){super(y,T),this._nativeContext=y,this._audioWorklet=i===void 0?void 0:{addModule:(k,x)=>i(this,k,x)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new t(this)}createBiquadFilter(){return new n(this)}createBuffer(y,T,k){return new e({length:T,numberOfChannels:y,sampleRate:k})}createBufferSource(){return new s(this)}createChannelMerger(y=6){return new r(this,{numberOfInputs:y})}createChannelSplitter(y=6){return new o(this,{numberOfOutputs:y})}createConstantSource(){return new a(this)}createConvolver(){return new c(this)}createDelay(y=1){return new u(this,{maxDelayTime:y})}createDynamicsCompressor(){return new h(this)}createGain(){return new d(this)}createIIRFilter(y,T){return new p(this,{feedback:T,feedforward:y})}createOscillator(){return new f(this)}createPanner(){return new m(this)}createPeriodicWave(y,T,k={disableNormalization:!1}){return new v(this,{...k,imag:T,real:y})}createStereoPanner(){return new w(this)}createWaveShaper(){return new b(this)}decodeAudioData(y,T,k){return l(this._nativeContext,y).then(x=>(typeof T=="function"&&T(x),x),x=>{throw typeof k=="function"&&k(x),x})}},mp={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},_p=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...mp,...u},p=n(h,d),_=o(h),f=_?e():null;super(l,!1,p,f),this._Q=t(this,_,p.Q,ne,ce),this._detune=t(this,_,p.detune,1200*Math.log2(ne),-1200*Math.log2(ne)),this._frequency=t(this,_,p.frequency,l.sampleRate/2,0),this._gain=t(this,_,p.gain,40*Math.log10(ne),ce),this._nativeBiquadFilterNode=p,a(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(l){this._nativeBiquadFilterNode.type=l}getFrequencyResponse(l,u,h){try{this._nativeBiquadFilterNode.getFrequencyResponse(l,u,h)}catch(d){throw d.code===11?s():d}if(l.length!==u.length||u.length!==h.length)throw s()}},gp=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={Q:l.Q.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,detune:l.detune.value,frequency:l.frequency.value,gain:l.gain.value,type:l.type};l=t(c,h)}return r.set(c,l),u?(await i(c,a.Q,l.Q),await i(c,a.detune,l.detune),await i(c,a.frequency,l.frequency),await i(c,a.gain,l.gain)):(await s(c,a.Q,l.Q),await s(c,a.detune,l.detune),await s(c,a.frequency,l.frequency),await s(c,a.gain,l.gain)),await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},yp=(i,t)=>(e,s)=>{const n=t.get(e);if(n!==void 0)return n;const r=i.get(e);if(r!==void 0)return r;try{const o=s();return o instanceof Promise?(i.set(e,o),o.catch(()=>!1).then(a=>(i.delete(e),t.set(e,a),a))):(t.set(e,o),o)}catch{return t.set(e,!1),!1}},vp={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},xp=(i,t,e,s,n)=>class extends i{constructor(o,a){const c=s(o),l={...vp,...a},u=e(c,l),h=n(c)?t():null;super(o,!1,u,h)}},kp=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfInputs:a.numberOfInputs};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Tp={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},wp=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u=r({...Tp,...c}),h=e(l,u),d=n(l)?t():null;super(a,!1,h,d)}},bp=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfOutputs:a.numberOfOutputs};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Cp=i=>(t,e,s)=>i(e,t,s),Sp=i=>(t,e,s=0,n=0)=>{const r=t[s];if(r===void 0)throw i();return Br(e)?r.connect(e,0,n):r.connect(e,0)},Ep=i=>(t,e)=>{const s=i(t,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),n=t.createBuffer(1,2,44100);return s.buffer=n,s.loop=!0,s.connect(e),s.start(),()=>{s.stop(),s.disconnect(e)}},Op={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},Ap=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...Op,...l},d=s(u,h),p=r(u),_=p?e():null;super(c,!1,d,_),this._constantSourceNodeRenderer=_,this._nativeConstantSourceNode=d,this._offset=t(this,p,d.offset,ne,ce),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeConstantSourceNode.onended=l;const u=this._nativeConstantSourceNode.onended;this._onended=u!==null&&u===l?c:u}start(c=0){if(this._nativeConstantSourceNode.start(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.start=c),this.context.state!=="closed"){Vn(this);const l=()=>{this._nativeConstantSourceNode.removeEventListener("ended",l),us(this)&&nr(this)};this._nativeConstantSourceNode.addEventListener("ended",l)}}stop(c=0){this._nativeConstantSourceNode.stop(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=c)}},Mp=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=e(l);const d=se(h,u);if(!d){const p={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value};h=t(u,p),o!==null&&h.start(o),a!==null&&h.stop(a)}return r.set(u,h),d?await i(u,l.offset,h.offset):await s(u,l.offset,h.offset),await n(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=r.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},Dp=i=>t=>(i[0]=t,i[0]),Pp={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},Ip=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u={...Pp,...c},h=e(l,u),p=n(l)?t():null;super(a,!1,h,p),this._isBufferNullified=!1,this._nativeConvolverNode=h,u.buffer!==null&&r(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(a){if(this._nativeConvolverNode.buffer=a,a===null&&this._nativeConvolverNode.buffer!==null){const c=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=c.createBuffer(1,1,c.sampleRate),this._isBufferNullified=!0,r(this,0)}else this._isBufferNullified=!1,r(this,this._nativeConvolverNode.buffer===null?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(a){this._nativeConvolverNode.normalize=a}},Np=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={buffer:a.buffer,channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,disableNormalization:!a.normalize};a=i(o,l)}return s.set(o,a),Xn(a)?await e(r,o,a.inputs[0]):await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Rp=(i,t)=>(e,s,n)=>{if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new t(e,s,n)}catch(r){throw r.name==="SyntaxError"?i():r}},Fp=()=>new DOMException("","DataCloneError"),_l=i=>{const{port1:t,port2:e}=new MessageChannel;return new Promise(s=>{const n=()=>{e.onmessage=null,t.close(),e.close(),s()};e.onmessage=()=>n();try{t.postMessage(i,[i])}catch{}finally{n()}})},Lp=(i,t,e,s,n,r,o,a,c,l,u)=>(h,d)=>{const p=o(h)?h:r(h);if(n.has(d)){const _=e();return Promise.reject(_)}try{n.add(d)}catch{}return t(c,()=>c(p))?p.decodeAudioData(d).then(_=>(_l(d).catch(()=>{}),t(a,()=>a(_))||u(_),i.add(_),_)):new Promise((_,f)=>{const m=async()=>{try{await _l(d)}catch{}},v=w=>{f(w),m()};try{p.decodeAudioData(d,w=>{typeof w.copyFromChannel!="function"&&(l(w),Ua(w)),i.add(w),m().then(()=>_(w))},w=>{v(w===null?s():w)})}catch(w){v(w)}})},Vp=(i,t,e,s,n,r,o,a)=>(c,l)=>{const u=t.get(c);if(u===void 0)throw new Error("Missing the expected cycle count.");const h=r(c.context),d=a(h);if(u===l){if(t.delete(c),!d&&o(c)){const p=s(c),{outputs:_}=e(c);for(const f of _)if(rr(f)){const m=s(f[0]);i(p,m,f[1],f[2])}else{const m=n(f[0]);p.connect(m,f[1])}}}else t.set(c,u-l)},Up={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},zp=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...Up,...l},d=s(u,h),p=r(u),_=p?e(h.maxDelayTime):null;super(c,!1,d,_),this._delayTime=t(this,p,d.delayTime),o(this,h.maxDelayTime)}get delayTime(){return this._delayTime}},jp=(i,t,e,s,n)=>r=>{const o=new WeakMap,a=async(c,l)=>{let u=e(c);const h=se(u,l);if(!h){const d={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,delayTime:u.delayTime.value,maxDelayTime:r};u=t(l,d)}return o.set(l,u),h?await i(l,c.delayTime,u.delayTime):await s(l,c.delayTime,u.delayTime),await n(c,l,u),u};return{render(c,l){const u=o.get(l);return u!==void 0?Promise.resolve(u):a(c,l)}}},Bp=i=>(t,e,s,n)=>i(t[n],r=>r[0]===e&&r[1]===s),qp=i=>(t,e)=>{i(t).delete(e)},Wp=i=>"delayTime"in i,Hp=(i,t,e)=>function s(n,r){const o=Ur(r)?r:e(i,r);if(Wp(o))return[];if(n[0]===o)return[n];if(n.includes(o))return[];const{outputs:a}=t(o);return Array.from(a).map(c=>s([...n,o],c[0])).reduce((c,l)=>c.concat(l),[])},wr=(i,t,e)=>{const s=t[e];if(s===void 0)throw i();return s},Yp=i=>(t,e=void 0,s=void 0,n=0)=>e===void 0?t.forEach(r=>r.disconnect()):typeof e=="number"?wr(i,t,e).disconnect():Br(e)?s===void 0?t.forEach(r=>r.disconnect(e)):n===void 0?wr(i,t,s).disconnect(e,0):wr(i,t,s).disconnect(e,0,n):s===void 0?t.forEach(r=>r.disconnect(e)):wr(i,t,s).disconnect(e,0),Gp={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},$p=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...Gp,...u},p=s(h,d),_=o(h),f=_?e():null;super(l,!1,p,f),this._attack=t(this,_,p.attack),this._knee=t(this,_,p.knee),this._nativeDynamicsCompressorNode=p,this._ratio=t(this,_,p.ratio),this._release=t(this,_,p.release),this._threshold=t(this,_,p.threshold),a(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(l){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=l,l>2)throw this._nativeDynamicsCompressorNode.channelCount=u,n()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(l){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=l,l==="max")throw this._nativeDynamicsCompressorNode.channelCountMode=u,n()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return typeof this._nativeDynamicsCompressorNode.reduction.value=="number"?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}},Xp=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={attack:l.attack.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,knee:l.knee.value,ratio:l.ratio.value,release:l.release.value,threshold:l.threshold.value};l=t(c,h)}return r.set(c,l),u?(await i(c,a.attack,l.attack),await i(c,a.knee,l.knee),await i(c,a.ratio,l.ratio),await i(c,a.release,l.release),await i(c,a.threshold,l.threshold)):(await s(c,a.attack,l.attack),await s(c,a.knee,l.knee),await s(c,a.ratio,l.ratio),await s(c,a.release,l.release),await s(c,a.threshold,l.threshold)),await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},Zp=()=>new DOMException("","EncodingError"),Qp=i=>t=>new Promise((e,s)=>{if(i===null){s(new SyntaxError);return}const n=i.document.head;if(n===null)s(new SyntaxError);else{const r=i.document.createElement("script"),o=new Blob([t],{type:"application/javascript"}),a=URL.createObjectURL(o),c=i.onerror,l=()=>{i.onerror=c,URL.revokeObjectURL(a)};i.onerror=(u,h,d,p,_)=>{if(h===a||h===i.location.href&&d===1&&p===1)return l(),s(_),!1;if(c!==null)return c(u,h,d,p,_)},r.onerror=()=>{l(),s(new SyntaxError)},r.onload=()=>{l(),e()},r.src=a,r.type="module",n.appendChild(r)}}),Kp=i=>class{constructor(e){this._nativeEventTarget=e,this._listeners=new WeakMap}addEventListener(e,s,n){if(s!==null){let r=this._listeners.get(s);r===void 0&&(r=i(this,s),typeof s=="function"&&this._listeners.set(s,r)),this._nativeEventTarget.addEventListener(e,r,n)}}dispatchEvent(e){return this._nativeEventTarget.dispatchEvent(e)}removeEventListener(e,s,n){const r=s===null?void 0:this._listeners.get(s);this._nativeEventTarget.removeEventListener(e,r===void 0?null:r,n)}},Jp=i=>(t,e,s)=>{Object.defineProperties(i,{currentFrame:{configurable:!0,get(){return Math.round(t*e)}},currentTime:{configurable:!0,get(){return t}}});try{return s()}finally{i!==null&&(delete i.currentFrame,delete i.currentTime)}},tm=i=>async t=>{try{const e=await fetch(t);if(e.ok)return[await e.text(),e.url]}catch{}throw i()},em={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},sm=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...em,...c},h=s(l,u),d=r(l),p=d?e():null;super(a,!1,h,p),this._gain=t(this,d,h.gain,ne,ce)}get gain(){return this._gain}},nm=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=t(c,h)}return r.set(c,l),u?await i(c,a.gain,l.gain):await s(c,a.gain,l.gain),await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},im=(i,t)=>e=>t(i,e),rm=i=>t=>{const e=i(t);if(e.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return e.renderer},om=i=>t=>{var e;return(e=i.get(t))!==null&&e!==void 0?e:0},am=i=>t=>{const e=i(t);if(e.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return e.renderer},cm=i=>t=>i.get(t),Xt=()=>new DOMException("","InvalidStateError"),lm=i=>t=>{const e=i.get(t);if(e===void 0)throw Xt();return e},um=(i,t)=>e=>{let s=i.get(e);if(s!==void 0)return s;if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");return s=new t(1,1,44100),i.set(e,s),s},hm=i=>t=>{const e=i.get(t);if(e===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return e},go=()=>new DOMException("","InvalidAccessError"),dm=i=>{i.getFrequencyResponse=(t=>(e,s,n)=>{if(e.length!==s.length||s.length!==n.length)throw go();return t.call(i,e,s,n)})(i.getFrequencyResponse)},fm={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},pm=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u=n(l),h={...fm,...c},d=t(l,u?null:a.baseLatency,h),p=u?e(h.feedback,h.feedforward):null;super(a,!1,d,p),dm(d),this._nativeIIRFilterNode=d,r(this,1)}getFrequencyResponse(a,c,l){return this._nativeIIRFilterNode.getFrequencyResponse(a,c,l)}},wu=(i,t,e,s,n,r,o,a,c,l,u)=>{const h=l.length;let d=a;for(let p=0;p{const n=e instanceof Float64Array?e:new Float64Array(e),r=s instanceof Float64Array?s:new Float64Array(s),o=n.length,a=r.length,c=Math.min(o,a);if(n[0]!==1){for(let _=0;_(r,o)=>{const a=new WeakMap;let c=null;const l=async(u,h)=>{let d=null,p=t(u);const _=se(p,h);if(h.createIIRFilter===void 0?d=i(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):_||(p=h.createIIRFilter(o,r)),a.set(h,d===null?p:d),d!==null){if(c===null){if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");const m=new e(u.context.destination.channelCount,u.context.length,h.sampleRate);c=(async()=>{await s(u,m,m.destination);const v=await n(m);return mm(v,h,r,o)})()}const f=await c;return d.buffer=f,d.start(0),d}return await s(u,h,p),p};return{render(u,h){const d=a.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},gm=(i,t,e,s,n,r)=>o=>(a,c)=>{const l=i.get(a);if(l===void 0){if(!o&&r(a)){const u=s(a),{outputs:h}=e(a);for(const d of h)if(rr(d)){const p=s(d[0]);t(u,p,d[1],d[2])}else{const p=n(d[0]);u.disconnect(p,d[1])}}i.set(a,c)}else i.set(a,l+c)},ym=(i,t)=>e=>{const s=i.get(e);return t(s)||t(e)},vm=(i,t)=>e=>i.has(e)||t(e),xm=(i,t)=>e=>i.has(e)||t(e),km=(i,t)=>e=>{const s=i.get(e);return t(s)||t(e)},Tm=i=>t=>i!==null&&t instanceof i,wm=i=>t=>i!==null&&typeof i.AudioNode=="function"&&t instanceof i.AudioNode,bm=i=>t=>i!==null&&typeof i.AudioParam=="function"&&t instanceof i.AudioParam,Cm=(i,t)=>e=>i(e)||t(e),Sm=i=>t=>i!==null&&t instanceof i,Em=i=>i!==null&&i.isSecureContext,Om=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r),c=t(a,o);if(s(a))throw TypeError();super(r,!0,c,null),this._nativeMediaElementAudioSourceNode=c}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}},Am={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},Mm=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r);if(s(a))throw new TypeError;const c={...Am,...o},l=t(a,c);super(r,!1,l,null),this._nativeMediaStreamAudioDestinationNode=l}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},Dm=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r),c=t(a,o);if(s(a))throw new TypeError;super(r,!0,c,null),this._nativeMediaStreamAudioSourceNode=c}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},Pm=(i,t,e)=>class extends i{constructor(n,r){const o=e(n),a=t(o,r);super(n,!0,a,null)}},Im=(i,t,e,s,n,r)=>class extends e{constructor(a,c){super(a),this._nativeContext=a,mo.set(this,a),s(a)&&n.set(a,new Set),this._destination=new i(this,c),this._listener=t(this,a),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(a){const c=typeof a=="function"?r(this,a):null;this._nativeContext.onstatechange=c;const l=this._nativeContext.onstatechange;this._onstatechange=l!==null&&l===c?a:l}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}},Oi=i=>{const t=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const e=i.decodeAudioData(t.buffer,()=>{});return e===void 0?!1:(e.catch(()=>{}),!0)}catch{}return!1},Nm=(i,t)=>(e,s,n)=>{const r=new Set;return e.connect=(o=>(a,c=0,l=0)=>{const u=r.size===0;if(t(a))return o.call(e,a,c,l),i(r,[a,c,l],h=>h[0]===a&&h[1]===c&&h[2]===l,!0),u&&s(),a;o.call(e,a,c),i(r,[a,c],h=>h[0]===a&&h[1]===c,!0),u&&s()})(e.connect),e.disconnect=(o=>(a,c,l)=>{const u=r.size>0;if(a===void 0)o.apply(e),r.clear();else if(typeof a=="number"){o.call(e,a);for(const d of r)d[1]===a&&r.delete(d)}else{t(a)?o.call(e,a,c,l):o.call(e,a,c);for(const d of r)d[0]===a&&(c===void 0||d[1]===c)&&(l===void 0||d[2]===l)&&r.delete(d)}const h=r.size===0;u&&h&&n()})(e.disconnect),e},Pt=(i,t,e)=>{const s=t[e];s!==void 0&&s!==i[e]&&(i[e]=s)},Gt=(i,t)=>{Pt(i,t,"channelCount"),Pt(i,t,"channelCountMode"),Pt(i,t,"channelInterpretation")},gl=i=>typeof i.getFloatTimeDomainData=="function",Rm=i=>{i.getFloatTimeDomainData=t=>{const e=new Uint8Array(t.length);i.getByteTimeDomainData(e);const s=Math.max(e.length,i.fftSize);for(let n=0;n(e,s)=>{const n=e.createAnalyser();if(Gt(n,s),!(s.maxDecibels>s.minDecibels))throw t();return Pt(n,s,"fftSize"),Pt(n,s,"maxDecibels"),Pt(n,s,"minDecibels"),Pt(n,s,"smoothingTimeConstant"),i(gl,()=>gl(n))||Rm(n),n},Lm=i=>i===null?null:i.hasOwnProperty("AudioBuffer")?i.AudioBuffer:null,Ft=(i,t,e)=>{const s=t[e];s!==void 0&&s!==i[e].value&&(i[e].value=s)},Vm=i=>{i.start=(t=>{let e=!1;return(s=0,n=0,r)=>{if(e)throw Xt();t.call(i,s,n,r),e=!0}})(i.start)},Ba=i=>{i.start=(t=>(e=0,s=0,n)=>{if(typeof n=="number"&&n<0||s<0||e<0)throw new RangeError("The parameters can't be negative.");t.call(i,e,s,n)})(i.start)},qa=i=>{i.stop=(t=>(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");t.call(i,e)})(i.stop)},Um=(i,t,e,s,n,r,o,a,c,l,u)=>(h,d)=>{const p=h.createBufferSource();return Gt(p,d),Ft(p,d,"playbackRate"),Pt(p,d,"buffer"),Pt(p,d,"loop"),Pt(p,d,"loopEnd"),Pt(p,d,"loopStart"),t(e,()=>e(h))||Vm(p),t(s,()=>s(h))||c(p),t(n,()=>n(h))||l(p,h),t(r,()=>r(h))||Ba(p),t(o,()=>o(h))||u(p,h),t(a,()=>a(h))||qa(p),i(h,p),p},zm=i=>i===null?null:i.hasOwnProperty("AudioContext")?i.AudioContext:i.hasOwnProperty("webkitAudioContext")?i.webkitAudioContext:null,jm=(i,t)=>(e,s,n)=>{const r=e.destination;if(r.channelCount!==s)try{r.channelCount=s}catch{}n&&r.channelCountMode!=="explicit"&&(r.channelCountMode="explicit"),r.maxChannelCount===0&&Object.defineProperty(r,"maxChannelCount",{value:s});const o=i(e,{channelCount:s,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return t(o,"channelCount",a=>()=>a.call(o),a=>c=>{a.call(o,c);try{r.channelCount=c}catch(l){if(c>r.maxChannelCount)throw l}}),t(o,"channelCountMode",a=>()=>a.call(o),a=>c=>{a.call(o,c),r.channelCountMode=c}),t(o,"channelInterpretation",a=>()=>a.call(o),a=>c=>{a.call(o,c),r.channelInterpretation=c}),Object.defineProperty(o,"maxChannelCount",{get:()=>r.maxChannelCount}),o.connect(r),o},Bm=i=>i===null?null:i.hasOwnProperty("AudioWorkletNode")?i.AudioWorkletNode:null,qm=i=>{const{port1:t}=new MessageChannel;try{t.postMessage(i)}finally{t.close()}},Wm=(i,t,e,s,n)=>(r,o,a,c,l,u)=>{if(a!==null)try{const h=new a(r,c,u),d=new Map;let p=null;if(Object.defineProperties(h,{channelCount:{get:()=>u.channelCount,set:()=>{throw i()}},channelCountMode:{get:()=>"explicit",set:()=>{throw i()}},onprocessorerror:{get:()=>p,set:_=>{typeof p=="function"&&h.removeEventListener("processorerror",p),p=typeof _=="function"?_:null,typeof p=="function"&&h.addEventListener("processorerror",p)}}}),h.addEventListener=(_=>(...f)=>{if(f[0]==="processorerror"){const m=typeof f[1]=="function"?f[1]:typeof f[1]=="object"&&f[1]!==null&&typeof f[1].handleEvent=="function"?f[1].handleEvent:null;if(m!==null){const v=d.get(f[1]);v!==void 0?f[1]=v:(f[1]=w=>{w.type==="error"?(Object.defineProperties(w,{type:{value:"processorerror"}}),m(w)):m(new ErrorEvent(f[0],{...w}))},d.set(m,f[1]))}}return _.call(h,"error",f[1],f[2]),_.call(h,...f)})(h.addEventListener),h.removeEventListener=(_=>(...f)=>{if(f[0]==="processorerror"){const m=d.get(f[1]);m!==void 0&&(d.delete(f[1]),f[1]=m)}return _.call(h,"error",f[1],f[2]),_.call(h,f[0],f[1],f[2])})(h.removeEventListener),u.numberOfOutputs!==0){const _=e(r,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return h.connect(_).connect(r.destination),n(h,()=>_.disconnect(),()=>_.connect(r.destination))}return h}catch(h){throw h.code===11?s():h}if(l===void 0)throw s();return qm(u),t(r,o,l,u)},bu=(i,t)=>i===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(i*t))))),Hm=i=>new Promise((t,e)=>{const{port1:s,port2:n}=new MessageChannel;s.onmessage=({data:r})=>{s.close(),n.close(),t(r)},s.onmessageerror=({data:r})=>{s.close(),n.close(),e(r)},n.postMessage(i)}),Ym=async(i,t)=>{const e=await Hm(t);return new i(e)},Gm=(i,t,e,s)=>{let n=la.get(i);n===void 0&&(n=new WeakMap,la.set(i,n));const r=Ym(e,s);return n.set(t,r),r},$m=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>(p,_,f,m)=>{if(m.numberOfInputs===0&&m.numberOfOutputs===0)throw c();const v=Array.isArray(m.outputChannelCount)?m.outputChannelCount:Array.from(m.outputChannelCount);if(v.some(q=>q<1))throw c();if(v.length!==m.numberOfOutputs)throw t();if(m.channelCountMode!=="explicit")throw c();const w=m.channelCount*m.numberOfInputs,b=v.reduce((q,A)=>q+A,0),g=f.parameterDescriptors===void 0?0:f.parameterDescriptors.length;if(w+g>6||b>6)throw c();const y=new MessageChannel,T=[],k=[];for(let q=0;qq===void 0?0:q},maxValue:{get:()=>A===void 0?ne:A},minValue:{get:()=>E===void 0?ce:E}}),x.push(tt)}const C=s(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,w+g)}),O=bu(_,p.sampleRate),D=a(p,O,w+g,Math.max(1,b)),M=n(p,{channelCount:Math.max(1,b),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,b)}),V=[];for(let q=0;q{const E=x[A];return E.connect(C,0,w+A),E.start(0),[q,E.offset]}));C.connect(D);let G=m.channelInterpretation,Y=null;const j=m.numberOfOutputs===0?[D]:V,z={get bufferSize(){return O},get channelCount(){return m.channelCount},set channelCount(q){throw e()},get channelCountMode(){return m.channelCountMode},set channelCountMode(q){throw e()},get channelInterpretation(){return G},set channelInterpretation(q){for(const A of T)A.channelInterpretation=q;G=q},get context(){return D.context},get inputs(){return T},get numberOfInputs(){return m.numberOfInputs},get numberOfOutputs(){return m.numberOfOutputs},get onprocessorerror(){return Y},set onprocessorerror(q){typeof Y=="function"&&z.removeEventListener("processorerror",Y),Y=typeof q=="function"?q:null,typeof Y=="function"&&z.addEventListener("processorerror",Y)},get parameters(){return B},get port(){return y.port2},addEventListener(...q){return D.addEventListener(q[0],q[1],q[2])},connect:i.bind(null,j),disconnect:l.bind(null,j),dispatchEvent(...q){return D.dispatchEvent(q[0])},removeEventListener(...q){return D.removeEventListener(q[0],q[1],q[2])}},X=new Map;y.port1.addEventListener=(q=>(...A)=>{if(A[0]==="message"){const E=typeof A[1]=="function"?A[1]:typeof A[1]=="object"&&A[1]!==null&&typeof A[1].handleEvent=="function"?A[1].handleEvent:null;if(E!==null){const Q=X.get(A[1]);Q!==void 0?A[1]=Q:(A[1]=tt=>{u(p.currentTime,p.sampleRate,()=>E(tt))},X.set(E,A[1]))}}return q.call(y.port1,A[0],A[1],A[2])})(y.port1.addEventListener),y.port1.removeEventListener=(q=>(...A)=>{if(A[0]==="message"){const E=X.get(A[1]);E!==void 0&&(X.delete(A[1]),A[1]=E)}return q.call(y.port1,A[0],A[1],A[2])})(y.port1.removeEventListener);let Z=null;Object.defineProperty(y.port1,"onmessage",{get:()=>Z,set:q=>{typeof Z=="function"&&y.port1.removeEventListener("message",Z),Z=typeof q=="function"?q:null,typeof Z=="function"&&(y.port1.addEventListener("message",Z),y.port1.start())}}),f.prototype.port=y.port1;let et=null;Gm(p,z,f,m).then(q=>et=q);const F=Wr(m.numberOfInputs,m.channelCount),S=Wr(m.numberOfOutputs,v),P=f.parameterDescriptors===void 0?[]:f.parameterDescriptors.reduce((q,{name:A})=>({...q,[A]:new Float32Array(128)}),{});let H=!0;const N=()=>{m.numberOfOutputs>0&&D.disconnect(M);for(let q=0,A=0;q{if(et!==null){const E=h(z);for(let Q=0;Q{qr(q,P,tt,w+lt,Q)});for(let tt=0;tt{if(E[Yt].size>0)return U.set(Yt,O/128),vt;const ti=U.get(Yt);return ti===void 0?[]:(vt.every(Do=>Do.every(dr=>dr===0))&&(ti===1?U.delete(Yt):U.set(Yt,ti-1)),vt)});H=u(p.currentTime+Q/p.sampleRate,p.sampleRate,()=>et.process(tt,S,P));for(let vt=0,Yt=0;vtD.connect(st).connect(p.destination),J=()=>{D.disconnect(st),st.disconnect()},pt=()=>{if(H){J(),m.numberOfOutputs>0&&D.connect(M);for(let q=0,A=0;q{H&&(nt(),N()),rt=!1};return nt(),d(z,pt,K)},Cu=(i,t)=>{const e=i.createBiquadFilter();return Gt(e,t),Ft(e,t,"Q"),Ft(e,t,"detune"),Ft(e,t,"frequency"),Ft(e,t,"gain"),Pt(e,t,"type"),e},Xm=(i,t)=>(e,s)=>{const n=e.createChannelMerger(s.numberOfInputs);return i!==null&&i.name==="webkitAudioContext"&&t(e,n),Gt(n,s),n},Zm=i=>{const t=i.numberOfOutputs;Object.defineProperty(i,"channelCount",{get:()=>t,set:e=>{if(e!==t)throw Xt()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:e=>{if(e!=="explicit")throw Xt()}}),Object.defineProperty(i,"channelInterpretation",{get:()=>"discrete",set:e=>{if(e!=="discrete")throw Xt()}})},or=(i,t)=>{const e=i.createChannelSplitter(t.numberOfOutputs);return Gt(e,t),Zm(e),e},Qm=(i,t,e,s,n)=>(r,o)=>{if(r.createConstantSource===void 0)return e(r,o);const a=r.createConstantSource();return Gt(a,o),Ft(a,o,"offset"),t(s,()=>s(r))||Ba(a),t(n,()=>n(r))||qa(a),i(r,a),a},Zn=(i,t)=>(i.connect=t.connect.bind(t),i.disconnect=t.disconnect.bind(t),i),Km=(i,t,e,s)=>(n,{offset:r,...o})=>{const a=n.createBuffer(1,2,44100),c=t(n,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),l=e(n,{...o,gain:r}),u=a.getChannelData(0);u[0]=1,u[1]=1,c.buffer=a,c.loop=!0;const h={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(_){l.channelCount=_},get channelCountMode(){return l.channelCountMode},set channelCountMode(_){l.channelCountMode=_},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(_){l.channelInterpretation=_},get context(){return l.context},get inputs(){return[]},get numberOfInputs(){return c.numberOfInputs},get numberOfOutputs(){return l.numberOfOutputs},get offset(){return l.gain},get onended(){return c.onended},set onended(_){c.onended=_},addEventListener(..._){return c.addEventListener(_[0],_[1],_[2])},dispatchEvent(..._){return c.dispatchEvent(_[0])},removeEventListener(..._){return c.removeEventListener(_[0],_[1],_[2])},start(_=0){c.start.call(c,_)},stop(_=0){c.stop.call(c,_)}},d=()=>c.connect(l),p=()=>c.disconnect(l);return i(n,c),s(Zn(h,l),d,p)},Jm=(i,t)=>(e,s)=>{const n=e.createConvolver();if(Gt(n,s),s.disableNormalization===n.normalize&&(n.normalize=!s.disableNormalization),Pt(n,s,"buffer"),s.channelCount>2||(t(n,"channelCount",r=>()=>r.call(n),r=>o=>{if(o>2)throw i();return r.call(n,o)}),s.channelCountMode==="max"))throw i();return t(n,"channelCountMode",r=>()=>r.call(n),r=>o=>{if(o==="max")throw i();return r.call(n,o)}),n},Su=(i,t)=>{const e=i.createDelay(t.maxDelayTime);return Gt(e,t),Ft(e,t,"delayTime"),e},t_=i=>(t,e)=>{const s=t.createDynamicsCompressor();if(Gt(s,e),e.channelCount>2||e.channelCountMode==="max")throw i();return Ft(s,e,"attack"),Ft(s,e,"knee"),Ft(s,e,"ratio"),Ft(s,e,"release"),Ft(s,e,"threshold"),s},me=(i,t)=>{const e=i.createGain();return Gt(e,t),Ft(e,t,"gain"),e},e_=i=>(t,e,s)=>{if(t.createIIRFilter===void 0)return i(t,e,s);const n=t.createIIRFilter(s.feedforward,s.feedback);return Gt(n,s),n};function s_(i,t){const e=t[0]*t[0]+t[1]*t[1];return[(i[0]*t[0]+i[1]*t[1])/e,(i[1]*t[0]-i[0]*t[1])/e]}function n_(i,t){return[i[0]*t[0]-i[1]*t[1],i[0]*t[1]+i[1]*t[0]]}function yl(i,t){let e=[0,0];for(let s=i.length-1;s>=0;s-=1)e=n_(e,t),e[0]+=i[s];return e}const i_=(i,t,e,s)=>(n,r,{channelCount:o,channelCountMode:a,channelInterpretation:c,feedback:l,feedforward:u})=>{const h=bu(r,n.sampleRate),d=l instanceof Float64Array?l:new Float64Array(l),p=u instanceof Float64Array?u:new Float64Array(u),_=d.length,f=p.length,m=Math.min(_,f);if(_===0||_>20)throw s();if(d[0]===0)throw t();if(f===0||f>20)throw s();if(p[0]===0)throw t();if(d[0]!==1){for(let x=0;x{const C=x.inputBuffer,O=x.outputBuffer,D=C.numberOfChannels;for(let M=0;Mi.createMediaElementSource(t.mediaElement),o_=(i,t)=>{const e=i.createMediaStreamDestination();return Gt(e,t),e.numberOfOutputs===1&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e},a_=(i,{mediaStream:t})=>{const e=t.getAudioTracks();e.sort((r,o)=>r.ido.id?1:0);const s=e.slice(0,1),n=i.createMediaStreamSource(new MediaStream(s));return Object.defineProperty(n,"mediaStream",{value:t}),n},c_=(i,t)=>(e,{mediaStreamTrack:s})=>{if(typeof e.createMediaStreamTrackSource=="function")return e.createMediaStreamTrackSource(s);const n=new MediaStream([s]),r=e.createMediaStreamSource(n);if(s.kind!=="audio")throw i();if(t(e))throw new TypeError;return r},l_=i=>i===null?null:i.hasOwnProperty("OfflineAudioContext")?i.OfflineAudioContext:i.hasOwnProperty("webkitOfflineAudioContext")?i.webkitOfflineAudioContext:null,u_=(i,t,e,s,n,r)=>(o,a)=>{const c=o.createOscillator();return Gt(c,a),Ft(c,a,"detune"),Ft(c,a,"frequency"),a.periodicWave!==void 0?c.setPeriodicWave(a.periodicWave):Pt(c,a,"type"),t(e,()=>e(o))||Ba(c),t(s,()=>s(o))||r(c,o),t(n,()=>n(o))||qa(c),i(o,c),c},h_=i=>(t,e)=>{const s=t.createPanner();return s.orientationX===void 0?i(t,e):(Gt(s,e),Ft(s,e,"orientationX"),Ft(s,e,"orientationY"),Ft(s,e,"orientationZ"),Ft(s,e,"positionX"),Ft(s,e,"positionY"),Ft(s,e,"positionZ"),Pt(s,e,"coneInnerAngle"),Pt(s,e,"coneOuterAngle"),Pt(s,e,"coneOuterGain"),Pt(s,e,"distanceModel"),Pt(s,e,"maxDistance"),Pt(s,e,"panningModel"),Pt(s,e,"refDistance"),Pt(s,e,"rolloffFactor"),s)},d_=(i,t,e,s,n,r,o,a,c,l)=>(u,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:p,distanceModel:_,maxDistance:f,orientationX:m,orientationY:v,orientationZ:w,panningModel:b,positionX:g,positionY:y,positionZ:T,refDistance:k,rolloffFactor:x,...C})=>{const O=u.createPanner();if(C.channelCount>2||C.channelCountMode==="max")throw o();Gt(O,C);const D={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},M=e(u,{...D,channelInterpretation:"speakers",numberOfInputs:6}),V=s(u,{...C,gain:1}),B=s(u,{...D,gain:1}),G=s(u,{...D,gain:0}),Y=s(u,{...D,gain:0}),j=s(u,{...D,gain:0}),z=s(u,{...D,gain:0}),X=s(u,{...D,gain:0}),Z=n(u,256,6,1),et=r(u,{...D,curve:new Float32Array([1,1]),oversample:"none"});let R=[m,v,w],F=[g,y,T];const S=new Float32Array(1);Z.onaudioprocess=({inputBuffer:U})=>{const rt=[c(U,S,0),c(U,S,1),c(U,S,2)];rt.some((nt,J)=>nt!==R[J])&&(O.setOrientation(...rt),R=rt);const st=[c(U,S,3),c(U,S,4),c(U,S,5)];st.some((nt,J)=>nt!==F[J])&&(O.setPosition(...st),F=st)},Object.defineProperty(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(j.gain,"defaultValue",{get:()=>0}),Object.defineProperty(z.gain,"defaultValue",{get:()=>0}),Object.defineProperty(X.gain,"defaultValue",{get:()=>0});const P={get bufferSize(){},get channelCount(){return O.channelCount},set channelCount(U){if(U>2)throw o();V.channelCount=U,O.channelCount=U},get channelCountMode(){return O.channelCountMode},set channelCountMode(U){if(U==="max")throw o();V.channelCountMode=U,O.channelCountMode=U},get channelInterpretation(){return O.channelInterpretation},set channelInterpretation(U){V.channelInterpretation=U,O.channelInterpretation=U},get coneInnerAngle(){return O.coneInnerAngle},set coneInnerAngle(U){O.coneInnerAngle=U},get coneOuterAngle(){return O.coneOuterAngle},set coneOuterAngle(U){O.coneOuterAngle=U},get coneOuterGain(){return O.coneOuterGain},set coneOuterGain(U){if(U<0||U>1)throw t();O.coneOuterGain=U},get context(){return O.context},get distanceModel(){return O.distanceModel},set distanceModel(U){O.distanceModel=U},get inputs(){return[V]},get maxDistance(){return O.maxDistance},set maxDistance(U){if(U<0)throw new RangeError;O.maxDistance=U},get numberOfInputs(){return O.numberOfInputs},get numberOfOutputs(){return O.numberOfOutputs},get orientationX(){return B.gain},get orientationY(){return G.gain},get orientationZ(){return Y.gain},get panningModel(){return O.panningModel},set panningModel(U){O.panningModel=U},get positionX(){return j.gain},get positionY(){return z.gain},get positionZ(){return X.gain},get refDistance(){return O.refDistance},set refDistance(U){if(U<0)throw new RangeError;O.refDistance=U},get rolloffFactor(){return O.rolloffFactor},set rolloffFactor(U){if(U<0)throw new RangeError;O.rolloffFactor=U},addEventListener(...U){return V.addEventListener(U[0],U[1],U[2])},dispatchEvent(...U){return V.dispatchEvent(U[0])},removeEventListener(...U){return V.removeEventListener(U[0],U[1],U[2])}};h!==P.coneInnerAngle&&(P.coneInnerAngle=h),d!==P.coneOuterAngle&&(P.coneOuterAngle=d),p!==P.coneOuterGain&&(P.coneOuterGain=p),_!==P.distanceModel&&(P.distanceModel=_),f!==P.maxDistance&&(P.maxDistance=f),m!==P.orientationX.value&&(P.orientationX.value=m),v!==P.orientationY.value&&(P.orientationY.value=v),w!==P.orientationZ.value&&(P.orientationZ.value=w),b!==P.panningModel&&(P.panningModel=b),g!==P.positionX.value&&(P.positionX.value=g),y!==P.positionY.value&&(P.positionY.value=y),T!==P.positionZ.value&&(P.positionZ.value=T),k!==P.refDistance&&(P.refDistance=k),x!==P.rolloffFactor&&(P.rolloffFactor=x),(R[0]!==1||R[1]!==0||R[2]!==0)&&O.setOrientation(...R),(F[0]!==0||F[1]!==0||F[2]!==0)&&O.setPosition(...F);const H=()=>{V.connect(O),i(V,et,0,0),et.connect(B).connect(M,0,0),et.connect(G).connect(M,0,1),et.connect(Y).connect(M,0,2),et.connect(j).connect(M,0,3),et.connect(z).connect(M,0,4),et.connect(X).connect(M,0,5),M.connect(Z).connect(u.destination)},N=()=>{V.disconnect(O),a(V,et,0,0),et.disconnect(B),B.disconnect(M),et.disconnect(G),G.disconnect(M),et.disconnect(Y),Y.disconnect(M),et.disconnect(j),j.disconnect(M),et.disconnect(z),z.disconnect(M),et.disconnect(X),X.disconnect(M),M.disconnect(Z),Z.disconnect(u.destination)};return l(Zn(P,O),H,N)},f_=i=>(t,{disableNormalization:e,imag:s,real:n})=>{const r=s instanceof Float32Array?s:new Float32Array(s),o=n instanceof Float32Array?n:new Float32Array(n),a=t.createPeriodicWave(o,r,{disableNormalization:e});if(Array.from(s).length<2)throw i();return a},ar=(i,t,e,s)=>i.createScriptProcessor(t,e,s),p_=(i,t)=>(e,s)=>{const n=s.channelCountMode;if(n==="clamped-max")throw t();if(e.createStereoPanner===void 0)return i(e,s);const r=e.createStereoPanner();return Gt(r,s),Ft(r,s,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>n,set:o=>{if(o!==n)throw t()}}),r},m_=(i,t,e,s,n,r)=>{const a=new Float32Array([1,1]),c=Math.PI/2,l={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...l,oversample:"none"},h=(_,f,m,v)=>{const w=new Float32Array(16385),b=new Float32Array(16385);for(let C=0;C<16385;C+=1){const O=C/16384*c;w[C]=Math.cos(O),b[C]=Math.sin(O)}const g=e(_,{...l,gain:0}),y=s(_,{...u,curve:w}),T=s(_,{...u,curve:a}),k=e(_,{...l,gain:0}),x=s(_,{...u,curve:b});return{connectGraph(){f.connect(g),f.connect(T.inputs===void 0?T:T.inputs[0]),f.connect(k),T.connect(m),m.connect(y.inputs===void 0?y:y.inputs[0]),m.connect(x.inputs===void 0?x:x.inputs[0]),y.connect(g.gain),x.connect(k.gain),g.connect(v,0,0),k.connect(v,0,1)},disconnectGraph(){f.disconnect(g),f.disconnect(T.inputs===void 0?T:T.inputs[0]),f.disconnect(k),T.disconnect(m),m.disconnect(y.inputs===void 0?y:y.inputs[0]),m.disconnect(x.inputs===void 0?x:x.inputs[0]),y.disconnect(g.gain),x.disconnect(k.gain),g.disconnect(v,0,0),k.disconnect(v,0,1)}}},d=(_,f,m,v)=>{const w=new Float32Array(16385),b=new Float32Array(16385),g=new Float32Array(16385),y=new Float32Array(16385),T=Math.floor(16385/2);for(let j=0;j<16385;j+=1)if(j>T){const z=(j-T)/(16384-T)*c;w[j]=Math.cos(z),b[j]=Math.sin(z),g[j]=0,y[j]=1}else{const z=j/(16384-T)*c;w[j]=1,b[j]=0,g[j]=Math.cos(z),y[j]=Math.sin(z)}const k=t(_,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),x=e(_,{...l,gain:0}),C=s(_,{...u,curve:w}),O=e(_,{...l,gain:0}),D=s(_,{...u,curve:b}),M=s(_,{...u,curve:a}),V=e(_,{...l,gain:0}),B=s(_,{...u,curve:g}),G=e(_,{...l,gain:0}),Y=s(_,{...u,curve:y});return{connectGraph(){f.connect(k),f.connect(M.inputs===void 0?M:M.inputs[0]),k.connect(x,0),k.connect(O,0),k.connect(V,1),k.connect(G,1),M.connect(m),m.connect(C.inputs===void 0?C:C.inputs[0]),m.connect(D.inputs===void 0?D:D.inputs[0]),m.connect(B.inputs===void 0?B:B.inputs[0]),m.connect(Y.inputs===void 0?Y:Y.inputs[0]),C.connect(x.gain),D.connect(O.gain),B.connect(V.gain),Y.connect(G.gain),x.connect(v,0,0),V.connect(v,0,0),O.connect(v,0,1),G.connect(v,0,1)},disconnectGraph(){f.disconnect(k),f.disconnect(M.inputs===void 0?M:M.inputs[0]),k.disconnect(x,0),k.disconnect(O,0),k.disconnect(V,1),k.disconnect(G,1),M.disconnect(m),m.disconnect(C.inputs===void 0?C:C.inputs[0]),m.disconnect(D.inputs===void 0?D:D.inputs[0]),m.disconnect(B.inputs===void 0?B:B.inputs[0]),m.disconnect(Y.inputs===void 0?Y:Y.inputs[0]),C.disconnect(x.gain),D.disconnect(O.gain),B.disconnect(V.gain),Y.disconnect(G.gain),x.disconnect(v,0,0),V.disconnect(v,0,0),O.disconnect(v,0,1),G.disconnect(v,0,1)}}},p=(_,f,m,v,w)=>{if(f===1)return h(_,m,v,w);if(f===2)return d(_,m,v,w);throw n()};return(_,{channelCount:f,channelCountMode:m,pan:v,...w})=>{if(m==="max")throw n();const b=i(_,{...w,channelCount:1,channelCountMode:m,numberOfInputs:2}),g=e(_,{...w,channelCount:f,channelCountMode:m,gain:1}),y=e(_,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:v});let{connectGraph:T,disconnectGraph:k}=p(_,f,g,y,b);Object.defineProperty(y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(y.gain,"maxValue",{get:()=>1}),Object.defineProperty(y.gain,"minValue",{get:()=>-1});const x={get bufferSize(){},get channelCount(){return g.channelCount},set channelCount(M){g.channelCount!==M&&(C&&k(),{connectGraph:T,disconnectGraph:k}=p(_,M,g,y,b),C&&T()),g.channelCount=M},get channelCountMode(){return g.channelCountMode},set channelCountMode(M){if(M==="clamped-max"||M==="max")throw n();g.channelCountMode=M},get channelInterpretation(){return g.channelInterpretation},set channelInterpretation(M){g.channelInterpretation=M},get context(){return g.context},get inputs(){return[g]},get numberOfInputs(){return g.numberOfInputs},get numberOfOutputs(){return g.numberOfOutputs},get pan(){return y.gain},addEventListener(...M){return g.addEventListener(M[0],M[1],M[2])},dispatchEvent(...M){return g.dispatchEvent(M[0])},removeEventListener(...M){return g.removeEventListener(M[0],M[1],M[2])}};let C=!1;const O=()=>{T(),C=!0},D=()=>{k(),C=!1};return r(Zn(x,b),O,D)}},__=(i,t,e,s,n,r,o)=>(a,c)=>{const l=a.createWaveShaper();if(r!==null&&r.name==="webkitAudioContext"&&a.createGain().gain.automationRate===void 0)return e(a,c);Gt(l,c);const u=c.curve===null||c.curve instanceof Float32Array?c.curve:new Float32Array(c.curve);if(u!==null&&u.length<2)throw t();Pt(l,{curve:u},"curve"),Pt(l,c,"oversample");let h=null,d=!1;return o(l,"curve",f=>()=>f.call(l),f=>m=>(f.call(l,m),d&&(s(m)&&h===null?h=i(a,l):!s(m)&&h!==null&&(h(),h=null)),m)),n(l,()=>{d=!0,s(l.curve)&&(h=i(a,l))},()=>{d=!1,h!==null&&(h(),h=null)})},g_=(i,t,e,s,n)=>(r,{curve:o,oversample:a,...c})=>{const l=r.createWaveShaper(),u=r.createWaveShaper();Gt(l,c),Gt(u,c);const h=e(r,{...c,gain:1}),d=e(r,{...c,gain:-1}),p=e(r,{...c,gain:1}),_=e(r,{...c,gain:-1});let f=null,m=!1,v=null;const w={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(y){h.channelCount=y,d.channelCount=y,l.channelCount=y,p.channelCount=y,u.channelCount=y,_.channelCount=y},get channelCountMode(){return l.channelCountMode},set channelCountMode(y){h.channelCountMode=y,d.channelCountMode=y,l.channelCountMode=y,p.channelCountMode=y,u.channelCountMode=y,_.channelCountMode=y},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(y){h.channelInterpretation=y,d.channelInterpretation=y,l.channelInterpretation=y,p.channelInterpretation=y,u.channelInterpretation=y,_.channelInterpretation=y},get context(){return l.context},get curve(){return v},set curve(y){if(y!==null&&y.length<2)throw t();if(y===null)l.curve=y,u.curve=y;else{const T=y.length,k=new Float32Array(T+2-T%2),x=new Float32Array(T+2-T%2);k[0]=y[0],x[0]=-y[T-1];const C=Math.ceil((T+1)/2),O=(T+1)/2-1;for(let D=1;D{h.connect(l).connect(p),h.connect(d).connect(u).connect(_).connect(p),m=!0,s(v)&&(f=i(r,h))},g=()=>{h.disconnect(l),l.disconnect(p),h.disconnect(d),d.disconnect(u),u.disconnect(_),_.disconnect(p),m=!1,f!==null&&(f(),f=null)};return n(Zn(w,p),b,g)},oe=()=>new DOMException("","NotSupportedError"),y_={numberOfChannels:1},v_=(i,t,e,s,n)=>class extends i{constructor(o,a,c){let l;if(typeof o=="number"&&a!==void 0&&c!==void 0)l={length:a,numberOfChannels:o,sampleRate:c};else if(typeof o=="object")l=o;else throw new Error("The given parameters are not valid.");const{length:u,numberOfChannels:h,sampleRate:d}={...y_,...l},p=s(h,u,d);t(Oi,()=>Oi(p))||p.addEventListener("statechange",(()=>{let _=0;const f=m=>{this._state==="running"&&(_>0?(p.removeEventListener("statechange",f),m.stopImmediatePropagation(),this._waitForThePromiseToSettle(m)):_+=1)};return f})()),super(p,h),this._length=u,this._nativeOfflineAudioContext=p,this._state=null}get length(){return this._nativeOfflineAudioContext.length===void 0?this._length:this._nativeOfflineAudioContext.length}get state(){return this._state===null?this._nativeOfflineAudioContext.state:this._state}startRendering(){return this._state==="running"?Promise.reject(e()):(this._state="running",n(this.destination,this._nativeOfflineAudioContext).finally(()=>{this._state=null,gu(this)}))}_waitForThePromiseToSettle(o){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(o):setTimeout(()=>this._waitForThePromiseToSettle(o))}},x_={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},k_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...x_,...l},d=e(u,h),p=r(u),_=p?s():null,f=c.sampleRate/2;super(c,!1,d,_),this._detune=t(this,p,d.detune,153600,-153600),this._frequency=t(this,p,d.frequency,f,-f),this._nativeOscillatorNode=d,this._onended=null,this._oscillatorNodeRenderer=_,this._oscillatorNodeRenderer!==null&&h.periodicWave!==void 0&&(this._oscillatorNodeRenderer.periodicWave=h.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeOscillatorNode.onended=l;const u=this._nativeOscillatorNode.onended;this._onended=u!==null&&u===l?c:u}get type(){return this._nativeOscillatorNode.type}set type(c){this._nativeOscillatorNode.type=c,this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(c){this._nativeOscillatorNode.setPeriodicWave(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=c)}start(c=0){if(this._nativeOscillatorNode.start(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.start=c),this.context.state!=="closed"){Vn(this);const l=()=>{this._nativeOscillatorNode.removeEventListener("ended",l),us(this)&&nr(this)};this._nativeOscillatorNode.addEventListener("ended",l)}}stop(c=0){this._nativeOscillatorNode.stop(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=c)}},T_=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null,c=null;const l=async(u,h)=>{let d=e(u);const p=se(d,h);if(!p){const _={channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,detune:d.detune.value,frequency:d.frequency.value,periodicWave:o===null?void 0:o,type:d.type};d=t(h,_),a!==null&&d.start(a),c!==null&&d.stop(c)}return r.set(h,d),p?(await i(h,u.detune,d.detune),await i(h,u.frequency,d.frequency)):(await s(h,u.detune,d.detune),await s(h,u.frequency,d.frequency)),await n(u,h,d),d};return{set periodicWave(u){o=u},set start(u){a=u},set stop(u){c=u},render(u,h){const d=r.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},w_={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},b_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...w_,...l},d=e(u,h),p=r(u),_=p?s():null;super(c,!1,d,_),this._nativePannerNode=d,this._orientationX=t(this,p,d.orientationX,ne,ce),this._orientationY=t(this,p,d.orientationY,ne,ce),this._orientationZ=t(this,p,d.orientationZ,ne,ce),this._positionX=t(this,p,d.positionX,ne,ce),this._positionY=t(this,p,d.positionY,ne,ce),this._positionZ=t(this,p,d.positionZ,ne,ce),o(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(c){this._nativePannerNode.coneInnerAngle=c}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(c){this._nativePannerNode.coneOuterAngle=c}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(c){this._nativePannerNode.coneOuterGain=c}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(c){this._nativePannerNode.distanceModel=c}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(c){this._nativePannerNode.maxDistance=c}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(c){this._nativePannerNode.panningModel=c}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(c){this._nativePannerNode.refDistance=c}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(c){this._nativePannerNode.rolloffFactor=c}},C_=(i,t,e,s,n,r,o,a,c,l)=>()=>{const u=new WeakMap;let h=null;const d=async(p,_)=>{let f=null,m=r(p);const v={channelCount:m.channelCount,channelCountMode:m.channelCountMode,channelInterpretation:m.channelInterpretation},w={...v,coneInnerAngle:m.coneInnerAngle,coneOuterAngle:m.coneOuterAngle,coneOuterGain:m.coneOuterGain,distanceModel:m.distanceModel,maxDistance:m.maxDistance,panningModel:m.panningModel,refDistance:m.refDistance,rolloffFactor:m.rolloffFactor},b=se(m,_);if("bufferSize"in m)f=s(_,{...v,gain:1});else if(!b){const g={...w,orientationX:m.orientationX.value,orientationY:m.orientationY.value,orientationZ:m.orientationZ.value,positionX:m.positionX.value,positionY:m.positionY.value,positionZ:m.positionZ.value};m=n(_,g)}if(u.set(_,f===null?m:f),f!==null){if(h===null){if(o===null)throw new Error("Missing the native OfflineAudioContext constructor.");const D=new o(6,p.context.length,_.sampleRate),M=t(D,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});M.connect(D.destination),h=(async()=>{const V=await Promise.all([p.orientationX,p.orientationY,p.orientationZ,p.positionX,p.positionY,p.positionZ].map(async(B,G)=>{const Y=e(D,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:G===0?1:0});return await a(D,B,Y.offset),Y}));for(let B=0;B<6;B+=1)V[B].connect(M,0,B),V[B].start(0);return l(D)})()}const g=await h,y=s(_,{...v,gain:1});await c(p,_,y);const T=[];for(let D=0;DB!==k[G])||V.some((B,G)=>B!==x[G])){k=M,x=V;const B=D/_.sampleRate;C.gain.setValueAtTime(0,B),C=s(_,{...v,gain:0}),O=n(_,{...w,orientationX:k[0],orientationY:k[1],orientationZ:k[2],positionX:x[0],positionY:x[1],positionZ:x[2]}),C.gain.setValueAtTime(1,B),y.connect(C).connect(O.inputs[0]),O.connect(f)}}return f}return b?(await i(_,p.orientationX,m.orientationX),await i(_,p.orientationY,m.orientationY),await i(_,p.orientationZ,m.orientationZ),await i(_,p.positionX,m.positionX),await i(_,p.positionY,m.positionY),await i(_,p.positionZ,m.positionZ)):(await a(_,p.orientationX,m.orientationX),await a(_,p.orientationY,m.orientationY),await a(_,p.orientationZ,m.orientationZ),await a(_,p.positionX,m.positionX),await a(_,p.positionY,m.positionY),await a(_,p.positionZ,m.positionZ)),Xn(m)?await c(p,_,m.inputs[0]):await c(p,_,m),m};return{render(p,_){const f=u.get(_);return f!==void 0?Promise.resolve(f):d(p,_)}}},S_={disableNormalization:!1},E_=(i,t,e,s)=>class Eu{constructor(r,o){const a=t(r),c=s({...S_,...o}),l=i(a,c);return e.add(l),l}static[Symbol.hasInstance](r){return r!==null&&typeof r=="object"&&Object.getPrototypeOf(r)===Eu.prototype||e.has(r)}},O_=(i,t)=>(e,s,n)=>(i(s).replay(n),t(s,e,n)),A_=(i,t,e)=>async(s,n,r)=>{const o=i(s);await Promise.all(o.activeInputs.map((a,c)=>Array.from(a).map(async([l,u])=>{const d=await t(l).render(l,n),p=s.context.destination;!e(l)&&(s!==p||!e(s))&&d.connect(r,u,c)})).reduce((a,c)=>[...a,...c],[]))},M_=(i,t,e)=>async(s,n,r)=>{const o=t(s);await Promise.all(Array.from(o.activeInputs).map(async([a,c])=>{const u=await i(a).render(a,n);e(a)||u.connect(r,c)}))},D_=(i,t,e,s)=>n=>i(Oi,()=>Oi(n))?Promise.resolve(i(s,s)).then(r=>{if(!r){const o=e(n,512,0,1);n.oncomplete=()=>{o.onaudioprocess=null,o.disconnect()},o.onaudioprocess=()=>n.currentTime,o.connect(n.destination)}return n.startRendering()}):new Promise(r=>{const o=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.oncomplete=a=>{o.disconnect(),r(a.renderedBuffer)},o.connect(n.destination),n.startRendering()}),P_=i=>(t,e)=>{i.set(t,e)},I_=i=>(t,e)=>i.set(t,e),N_=(i,t,e,s,n,r,o,a)=>(c,l)=>e(c).render(c,l).then(()=>Promise.all(Array.from(s(l)).map(u=>e(u).render(u,l)))).then(()=>n(l)).then(u=>(typeof u.copyFromChannel!="function"?(o(u),Ua(u)):t(r,()=>r(u))||a(u),i.add(u),u)),R_={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},F_=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...R_,...c},h=e(l,u),d=r(l),p=d?s():null;super(a,!1,h,p),this._pan=t(this,d,h.pan)}get pan(){return this._pan}},L_=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,pan:l.pan.value};l=t(c,h)}return r.set(c,l),u?await i(c,a.pan,l.pan):await s(c,a.pan,l.pan),Xn(l)?await n(a,c,l.inputs[0]):await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},V_=i=>()=>{if(i===null)return!1;try{new i({length:1,sampleRate:44100})}catch{return!1}return!0},U_=(i,t)=>async()=>{if(i===null)return!0;if(t===null)return!1;const e=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),s=new t(1,128,44100),n=URL.createObjectURL(e);let r=!1,o=!1;try{await s.audioWorklet.addModule(n);const a=new i(s,"a",{numberOfOutputs:0}),c=s.createOscillator();a.port.onmessage=()=>r=!0,a.onprocessorerror=()=>o=!0,c.connect(a),c.start(0),await s.startRendering(),await new Promise(l=>setTimeout(l))}catch{}finally{URL.revokeObjectURL(n)}return r&&!o},z_=(i,t)=>()=>{if(t===null)return Promise.resolve(!1);const e=new t(1,1,44100),s=i(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(n=>{e.oncomplete=()=>{s.disconnect(),n(e.currentTime!==0)},e.startRendering()})},j_=()=>new DOMException("","UnknownError"),B_={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},q_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...B_,...l},d=e(u,h),_=r(u)?s():null;super(c,!0,d,_),this._isCurveNullified=!1,this._nativeWaveShaperNode=d,o(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(c){if(c===null)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(c.length<2)throw t();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=c}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(c){this._nativeWaveShaperNode.oversample=c}},W_=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,curve:a.curve,oversample:a.oversample};a=i(o,l)}return s.set(o,a),Xn(a)?await e(r,o,a.inputs[0]):await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},H_=()=>typeof window>"u"?null:window,Y_=(i,t)=>e=>{e.copyFromChannel=(s,n,r=0)=>{const o=i(r),a=i(n);if(a>=e.numberOfChannels)throw t();const c=e.length,l=e.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+o{const o=i(r),a=i(n);if(a>=e.numberOfChannels)throw t();const c=e.length,l=e.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+ot=>{t.copyFromChannel=(e=>(s,n,r=0)=>{const o=i(r),a=i(n);if(o(s,n,r=0)=>{const o=i(r),a=i(n);if(o(t,e)=>{const s=e.createBuffer(1,1,44100);t.buffer===null&&(t.buffer=s),i(t,"buffer",n=>()=>{const r=n.call(t);return r===s?null:r},n=>r=>n.call(t,r===null?s:r))},X_=(i,t)=>(e,s)=>{s.channelCount=1,s.channelCountMode="explicit",Object.defineProperty(s,"channelCount",{get:()=>1,set:()=>{throw i()}}),Object.defineProperty(s,"channelCountMode",{get:()=>"explicit",set:()=>{throw i()}});const n=e.createBufferSource();t(s,()=>{const a=s.numberOfInputs;for(let c=0;cn.disconnect(s))},Ou=(i,t,e)=>i.copyFromChannel===void 0?i.getChannelData(e)[0]:(i.copyFromChannel(t,e),t[0]),Au=i=>{if(i===null)return!1;const t=i.length;return t%2!==0?i[Math.floor(t/2)]!==0:i[t/2-1]+i[t/2]!==0},cr=(i,t,e,s)=>{let n=i;for(;!n.hasOwnProperty(t);)n=Object.getPrototypeOf(n);const{get:r,set:o}=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(i,t,{get:e(r),set:s(o)})},Z_=i=>({...i,outputChannelCount:i.outputChannelCount!==void 0?i.outputChannelCount:i.numberOfInputs===1&&i.numberOfOutputs===1?[i.channelCount]:Array.from({length:i.numberOfOutputs},()=>1)}),Q_=i=>({...i,channelCount:i.numberOfOutputs}),K_=i=>{const{imag:t,real:e}=i;return t===void 0?e===void 0?{...i,imag:[0,0],real:[0,0]}:{...i,imag:Array.from(e,()=>0),real:e}:e===void 0?{...i,imag:t,real:Array.from(t,()=>0)}:{...i,imag:t,real:e}},Mu=(i,t,e)=>{try{i.setValueAtTime(t,e)}catch(s){if(s.code!==9)throw s;Mu(i,t,e+1e-7)}},J_=i=>{const t=i.createBufferSource();t.start();try{t.start()}catch{return!0}return!1},tg=i=>{const t=i.createBufferSource(),e=i.createBuffer(1,1,44100);t.buffer=e;try{t.start(0,1)}catch{return!1}return!0},eg=i=>{const t=i.createBufferSource();t.start();try{t.stop()}catch{return!1}return!0},Wa=i=>{const t=i.createOscillator();try{t.start(-1)}catch(e){return e instanceof RangeError}return!1},Du=i=>{const t=i.createBuffer(1,1,44100),e=i.createBufferSource();e.buffer=t,e.start(),e.stop();try{return e.stop(),!0}catch{return!1}},Ha=i=>{const t=i.createOscillator();try{t.stop(-1)}catch(e){return e instanceof RangeError}return!1},sg=i=>{const{port1:t,port2:e}=new MessageChannel;try{t.postMessage(i)}finally{t.close(),e.close()}},ng=i=>{i.start=(t=>(e=0,s=0,n)=>{const r=i.buffer,o=r===null?s:Math.min(r.duration,s);r!==null&&o>r.duration-.5/i.context.sampleRate?t.call(i,e,0,0):t.call(i,e,o,n)})(i.start)},Pu=(i,t)=>{const e=t.createGain();i.connect(e);const s=(n=>()=>{n.call(i,e),i.removeEventListener("ended",s)})(i.disconnect);i.addEventListener("ended",s),Zn(i,e),i.stop=(n=>{let r=!1;return(o=0)=>{if(r)try{n.call(i,o)}catch{e.gain.setValueAtTime(0,o)}else n.call(i,o),r=!0}})(i.stop)},Qn=(i,t)=>e=>{const s={value:i};return Object.defineProperties(e,{currentTarget:s,target:s}),typeof t=="function"?t.call(i,e):t.handleEvent.call(i,e)},ig=b0(dn),rg=M0(dn),og=Bp(_o),Iu=new WeakMap,ag=om(Iu),qe=yp(new Map,new WeakMap),Ke=H_(),Nu=Fm(qe,ts),Ya=rm(re),Qt=A_(re,Ya,rn),cg=R0(Nu,Dt,Qt),At=lm(mo),ys=l_(Ke),wt=Sm(ys),Ru=new WeakMap,Fu=Kp(Qn),lr=zm(Ke),Ga=Tm(lr),$a=wm(Ke),Lu=bm(Ke),Ai=Bm(Ke),Wt=op(C0(uu),A0(ig,rg,zr,og,jr,re,ag,sr,Dt,dn,us,rn,Dr),qe,gm(aa,jr,re,Dt,Ei,us),ts,go,oe,Vp(zr,aa,re,Dt,Ei,At,us,wt),Hp(Ru,re,ze),Fu,At,Ga,$a,Lu,wt,Ai),lg=N0(Wt,cg,ts,Nu,At,wt),Xa=new WeakSet,vl=Lm(Ke),Vu=Dp(new Uint32Array(1)),Za=Y_(Vu,ts),Qa=G_(Vu),Uu=L0(Xa,qe,oe,vl,ys,V_(vl),Za,Qa),yo=D0(me),zu=M_(Ya,ir,rn),es=Cp(zu),Kn=Um(yo,qe,J_,tg,eg,Wa,Du,Ha,ng,$_(cr),Pu),ss=O_(am(ir),zu),ug=z0(es,Kn,Dt,ss,Qt),We=ap(S0(hu),Ru,Va,cp,y0,v0,x0,k0,T0,ia,cu,lr,Mu),hg=U0(Wt,ug,We,Xt,Kn,At,wt,Qn),dg=X0(Wt,Z0,ts,Xt,jm(me,cr),At,wt,Qt),fg=gp(es,Cu,Dt,ss,Qt),fn=I_(Iu),pg=_p(Wt,We,fg,go,Cu,At,wt,fn),Us=Nm(dn,$a),mg=X_(Xt,Us),zs=Xm(lr,mg),_g=kp(zs,Dt,Qt),gg=xp(Wt,_g,zs,At,wt),yg=bp(or,Dt,Qt),vg=wp(Wt,yg,or,At,wt,Q_),xg=Km(yo,Kn,me,Us),Jn=Qm(yo,qe,xg,Wa,Ha),kg=Mp(es,Jn,Dt,ss,Qt),Tg=Ap(Wt,We,kg,Jn,At,wt,Qn),ju=Jm(oe,cr),wg=Np(ju,Dt,Qt),bg=Ip(Wt,wg,ju,At,wt,fn),Cg=jp(es,Su,Dt,ss,Qt),Sg=zp(Wt,We,Cg,Su,At,wt,fn),Bu=t_(oe),Eg=Xp(es,Bu,Dt,ss,Qt),Og=$p(Wt,We,Eg,Bu,oe,At,wt,fn),Ag=nm(es,me,Dt,ss,Qt),Mg=sm(Wt,We,Ag,me,At,wt),Dg=i_(go,Xt,ar,oe),vo=D_(qe,me,ar,z_(me,ys)),Pg=_m(Kn,Dt,ys,Qt,vo),Ig=e_(Dg),Ng=pm(Wt,Ig,Pg,At,wt,fn),Rg=Q0(We,zs,Jn,ar,oe,Ou,wt,cr),qu=new WeakMap,Fg=Im(dg,Rg,Fu,wt,qu,Qn),Wu=u_(yo,qe,Wa,Du,Ha,Pu),Lg=T_(es,Wu,Dt,ss,Qt),Vg=k_(Wt,We,Wu,Lg,At,wt,Qn),Hu=Ep(Kn),Ug=g_(Hu,Xt,me,Au,Us),xo=__(Hu,Xt,Ug,Au,Us,lr,cr),zg=d_(zr,Xt,zs,me,ar,xo,oe,jr,Ou,Us),Yu=h_(zg),jg=C_(es,zs,Jn,me,Yu,Dt,ys,ss,Qt,vo),Bg=b_(Wt,We,Yu,jg,At,wt,fn),qg=f_(ts),Wg=E_(qg,At,new WeakSet,K_),Hg=m_(zs,or,me,xo,oe,Us),Gu=p_(Hg,oe),Yg=L_(es,Gu,Dt,ss,Qt),Gg=F_(Wt,We,Gu,Yg,At,wt),$g=W_(xo,Dt,Qt),Xg=q_(Wt,Xt,xo,$g,At,wt,fn),$u=Em(Ke),Ka=Jp(Ke),Xu=new WeakMap,Zg=um(Xu,ys),Qg=$u?O0(qe,oe,Qp(Ke),Ka,tm(w0),At,Zg,wt,Ai,new WeakMap,new WeakMap,U_(Ai,ys),Ke):void 0,Kg=Cm(Ga,wt),Jg=Lp(Xa,qe,Fp,Zp,new WeakSet,At,Kg,Vr,Oi,Za,Qa),Zu=pp(Qg,lg,Uu,hg,pg,gg,vg,Tg,bg,Jg,Sg,Og,Mg,Ng,Fg,Vg,Bg,Wg,Gg,Xg),ty=Om(Wt,r_,At,wt),ey=Mm(Wt,o_,At,wt),sy=Dm(Wt,a_,At,wt),ny=c_(Xt,wt),iy=Pm(Wt,ny,At),ry=$0(Zu,Xt,oe,j_,ty,ey,sy,iy,lr),Ja=hm(qu),oy=P0(Ja),Qu=Sp(ts),ay=qp(Ja),Ku=Yp(ts),Ju=new WeakMap,cy=im(Ju,ze),ly=$m(Qu,ts,Xt,zs,or,Jn,me,ar,oe,Ku,Ka,cy,Us),uy=Wm(Xt,ly,me,oe,Us),hy=fp(es,Qu,Kn,zs,or,Jn,me,ay,Ku,Ka,Dt,Ai,ys,ss,Qt,vo),dy=cm(Xu),fy=P_(Ju),xl=$u?up(oy,Wt,We,hy,uy,re,dy,At,wt,Ai,Z_,fy,sg,Qn):void 0,py=Rp(oe,ys),my=N_(Xa,qe,Ya,Ja,vo,Vr,Za,Qa),_y=v_(Zu,qe,Xt,py,my),gy=ym(mo,Ga),yy=vm(La,$a),vy=xm(Va,Lu),xy=km(mo,wt);function xe(i){return typeof i>"u"}function dt(i){return!xe(i)}function ky(i){return typeof i=="function"}function Ds(i){return typeof i=="number"}function Ks(i){return Object.prototype.toString.call(i)==="[object Object]"&&i.constructor===Object}function Ty(i){return typeof i=="boolean"}function Ue(i){return Array.isArray(i)}function hs(i){return typeof i=="string"}function br(i){return hs(i)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(i)}function ut(i,t){if(!i)throw new Error(t)}function je(i,t,e=1/0){if(!(t<=i&&i<=e))throw new RangeError(`Value must be within [${t}, ${e}], got: ${i}`)}function th(i){!i.isOffline&&i.state!=="running"&&tc('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let eh=!1,kl=!1;function Tl(i){eh=i}function wy(i){xe(i)&&eh&&!kl&&(kl=!0,tc("Events scheduled inside of scheduled callbacks should use the passed in scheduling time. See https://github.com/Tonejs/Tone.js/wiki/Accurate-Timing"))}let sh=console;function by(...i){sh.log(...i)}function tc(...i){sh.warn(...i)}function Cy(i){return new ry(i)}function Sy(i,t,e){return new _y(i,t,e)}const Js=typeof self=="object"?self:null,Ey=Js&&(Js.hasOwnProperty("AudioContext")||Js.hasOwnProperty("webkitAudioContext"));function Oy(i,t,e){return ut(dt(xl),"This node only works in a secure context (https or localhost)"),new xl(i,t,e)}class Ay{constructor(t,e,s,n){this._callback=t,this._type=e,this._minimumUpdateInterval=Math.max(128/(n||44100),.001),this.updateInterval=s,this._createClock()}_createWorker(){const t=new Blob([` // the initial timeout time let timeoutTime = ${(this._updateInterval*1e3).toFixed(1)}; // onmessage callback @@ -145,12 +145,12 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b a } // call tick initially tick(); - `],{type:"text/javascript"}),e=URL.createObjectURL(t),s=new Worker(e);s.onmessage=this._callback.bind(this),this._worker=s}_createTimeout(){this._timeout=setTimeout(()=>{this._createTimeout(),this._callback()},this._updateInterval*1e3)}_createClock(){if(this._type==="worker")try{this._createWorker()}catch{this._type="timeout",this._createClock()}else this._type==="timeout"&&this._createTimeout()}_disposeClock(){this._timeout&&clearTimeout(this._timeout),this._worker&&(this._worker.terminate(),this._worker.onmessage=null)}get updateInterval(){return this._updateInterval}set updateInterval(t){var e;this._updateInterval=Math.max(t,this._minimumUpdateInterval),this._type==="worker"&&((e=this._worker)===null||e===void 0||e.postMessage(this._updateInterval*1e3))}get type(){return this._type}set type(t){this._disposeClock(),this._type=t,this._createClock()}dispose(){this._disposeClock()}}function on(i){return xy(i)}function Os(i){return vy(i)}function Pr(i){return ky(i)}function Sn(i){return yy(i)}function Dy(i){return i instanceof Uu}function Py(i,t){return i==="value"||on(t)||Os(t)||Dy(t)}function Pn(i,...t){if(!t.length)return i;const e=t.shift();if(Ks(i)&&Ks(e))for(const s in e)Py(s,e[s])?i[s]=e[s]:Ks(e[s])?(i[s]||Object.assign(i,{[s]:{}}),Pn(i[s],e[s])):Object.assign(i,{[s]:e[s]});return Pn(i,...t)}function Iy(i,t){return i.length===t.length&&i.every((e,s)=>t[s]===e)}function $(i,t,e=[],s){const n={},r=Array.from(t);if(Ks(r[0])&&s&&!Reflect.has(r[0],s)&&(Object.keys(r[0]).some(a=>Reflect.has(i,a))||(Pn(n,{[s]:r[0]}),e.splice(e.indexOf(s),1),r.shift())),r.length===1&&Ks(r[0]))Pn(n,r[0]);else for(let o=0;o{Reflect.has(i,e)&&delete i[e]}),i}/** + `],{type:"text/javascript"}),e=URL.createObjectURL(t),s=new Worker(e);s.onmessage=this._callback.bind(this),this._worker=s}_createTimeout(){this._timeout=setTimeout(()=>{this._createTimeout(),this._callback()},this._updateInterval*1e3)}_createClock(){if(this._type==="worker")try{this._createWorker()}catch{this._type="timeout",this._createClock()}else this._type==="timeout"&&this._createTimeout()}_disposeClock(){this._timeout&&clearTimeout(this._timeout),this._worker&&(this._worker.terminate(),this._worker.onmessage=null)}get updateInterval(){return this._updateInterval}set updateInterval(t){var e;this._updateInterval=Math.max(t,this._minimumUpdateInterval),this._type==="worker"&&((e=this._worker)===null||e===void 0||e.postMessage(this._updateInterval*1e3))}get type(){return this._type}set type(t){this._disposeClock(),this._type=t,this._createClock()}dispose(){this._disposeClock()}}function on(i){return vy(i)}function Os(i){return yy(i)}function Pr(i){return xy(i)}function Sn(i){return gy(i)}function My(i){return i instanceof Uu}function Dy(i,t){return i==="value"||on(t)||Os(t)||My(t)}function Pn(i,...t){if(!t.length)return i;const e=t.shift();if(Ks(i)&&Ks(e))for(const s in e)Dy(s,e[s])?i[s]=e[s]:Ks(e[s])?(i[s]||Object.assign(i,{[s]:{}}),Pn(i[s],e[s])):Object.assign(i,{[s]:e[s]});return Pn(i,...t)}function Py(i,t){return i.length===t.length&&i.every((e,s)=>t[s]===e)}function $(i,t,e=[],s){const n={},r=Array.from(t);if(Ks(r[0])&&s&&!Reflect.has(r[0],s)&&(Object.keys(r[0]).some(a=>Reflect.has(i,a))||(Pn(n,{[s]:r[0]}),e.splice(e.indexOf(s),1),r.shift())),r.length===1&&Ks(r[0]))Pn(n,r[0]);else for(let o=0;o{Reflect.has(i,e)&&delete i[e]}),i}/** * Tone.js * @author Yotam Mann * @license http://opensource.org/licenses/MIT MIT License * @copyright 2014-2019 Yotam Mann - */class vs{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...t){(this.debug||Js&&this.toString()===Js.TONE_DEBUG_CLASS)&&Cy(this,...t)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}vs.version=au;const ec=1e-6;function Un(i,t){return i>t+ec}function da(i,t){return Un(i,t)||Fe(i,t)}function Hr(i,t){return i+ecthis.memory){const e=this.length-this.memory;this._timeline.splice(0,e)}return this}remove(t){const e=this._timeline.indexOf(t);return e!==-1&&this._timeline.splice(e,1),this}get(t,e="time"){const s=this._search(t,e);return s!==-1?this._timeline[s]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(t,e="time"){const s=this._search(t,e);return s+10&&this._timeline[e-1].time=0?this._timeline[s-1]:null}cancel(t){if(this._timeline.length>1){let e=this._search(t);if(e>=0)if(Fe(this._timeline[e].time,t)){for(let s=e;s>=0&&Fe(this._timeline[s].time,t);s--)e=s;this._timeline=this._timeline.slice(0,e)}else this._timeline=this._timeline.slice(0,e+1);else this._timeline=[]}else this._timeline.length===1&&da(this._timeline[0].time,t)&&(this._timeline=[]);return this}cancelBefore(t){const e=this._search(t);return e>=0&&(this._timeline=this._timeline.slice(e+1)),this}previousEvent(t){const e=this._timeline.indexOf(t);return e>0?this._timeline[e-1]:null}_search(t,e="time"){if(this._timeline.length===0)return-1;let s=0;const n=this._timeline.length;let r=n;if(n>0&&this._timeline[n-1][e]<=t)return n-1;for(;s=0&&this._timeline[s].time>=t;)s--;return this._iterate(e,s+1),this}forEachAtTime(t,e){const s=this._search(t);if(s!==-1&&Fe(this._timeline[s].time,t)){let n=s;for(let r=s;r>=0&&Fe(this._timeline[r].time,t);r--)n=r;this._iterate(r=>{e(r)},n,s)}return this}dispose(){return super.dispose(),this._timeline=[],this}};const ih=[];function ko(i){ih.push(i)}function Fy(i){ih.forEach(t=>t(i))}const rh=[];function To(i){rh.push(i)}function Ly(i){rh.forEach(t=>t(i))}class hr extends vs{constructor(){super(...arguments),this.name="Emitter"}on(t,e){return t.split(/\W+/).forEach(n=>{xe(this._events)&&(this._events={}),this._events.hasOwnProperty(n)||(this._events[n]=[]),this._events[n].push(e)}),this}once(t,e){const s=(...n)=>{e(...n),this.off(t,s)};return this.on(t,s),this}off(t,e){return t.split(/\W+/).forEach(n=>{if(xe(this._events)&&(this._events={}),this._events.hasOwnProperty(n))if(xe(e))this._events[n]=[];else{const r=this._events[n];for(let o=r.length-1;o>=0;o--)r[o]===e&&r.splice(o,1)}}),this}emit(t,...e){if(this._events&&this._events.hasOwnProperty(t)){const s=this._events[t].slice(0);for(let n=0,r=s.length;n{const s=Object.getOwnPropertyDescriptor(hr.prototype,e);Object.defineProperty(t.prototype,e,s)})}dispose(){return super.dispose(),this._events=void 0,this}}class oh extends hr{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}let sc=class ah extends oh{constructor(){var t,e;super(),this.name="Context",this._constants=new Map,this._timeouts=new Xe,this._timeoutIds=0,this._initialized=!1,this._closeStarted=!1,this.isOffline=!1,this._workletPromise=null;const s=$(ah.getDefaults(),arguments,["context"]);s.context?(this._context=s.context,this._latencyHint=((t=arguments[0])===null||t===void 0?void 0:t.latencyHint)||""):(this._context=Sy({latencyHint:s.latencyHint}),this._latencyHint=s.latencyHint),this._ticker=new My(this.emit.bind(this,"tick"),s.clockSource,s.updateInterval,this._context.sampleRate),this.on("tick",this._timeoutLoop.bind(this)),this._context.onstatechange=()=>{this.emit("statechange",this.state)},this[!((e=arguments[0])===null||e===void 0)&&e.hasOwnProperty("updateInterval")?"_lookAhead":"lookAhead"]=s.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){return this._initialized||(Fy(this),this._initialized=!0),this}createAnalyser(){return this._context.createAnalyser()}createOscillator(){return this._context.createOscillator()}createBufferSource(){return this._context.createBufferSource()}createBiquadFilter(){return this._context.createBiquadFilter()}createBuffer(t,e,s){return this._context.createBuffer(t,e,s)}createChannelMerger(t){return this._context.createChannelMerger(t)}createChannelSplitter(t){return this._context.createChannelSplitter(t)}createConstantSource(){return this._context.createConstantSource()}createConvolver(){return this._context.createConvolver()}createDelay(t){return this._context.createDelay(t)}createDynamicsCompressor(){return this._context.createDynamicsCompressor()}createGain(){return this._context.createGain()}createIIRFilter(t,e){return this._context.createIIRFilter(t,e)}createPanner(){return this._context.createPanner()}createPeriodicWave(t,e,s){return this._context.createPeriodicWave(t,e,s)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(t){return ut(Sn(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(t)}createMediaElementSource(t){return ut(Sn(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(t)}createMediaStreamDestination(){return ut(Sn(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamDestination()}decodeAudioData(t){return this._context.decodeAudioData(t)}get currentTime(){return this._context.currentTime}get state(){return this._context.state}get sampleRate(){return this._context.sampleRate}get listener(){return this.initialize(),this._listener}set listener(t){ut(!this._initialized,"The listener cannot be set after initialization."),this._listener=t}get transport(){return this.initialize(),this._transport}set transport(t){ut(!this._initialized,"The transport cannot be set after initialization."),this._transport=t}get draw(){return this.initialize(),this._draw}set draw(t){ut(!this._initialized,"Draw cannot be set after initialization."),this._draw=t}get destination(){return this.initialize(),this._destination}set destination(t){ut(!this._initialized,"The destination cannot be set after initialization."),this._destination=t}createAudioWorkletNode(t,e){return Ay(this.rawContext,t,e)}addAudioWorkletModule(t){return qt(this,void 0,void 0,function*(){ut(dt(this.rawContext.audioWorklet),"AudioWorkletNode is only available in a secure context (https or localhost)"),this._workletPromise||(this._workletPromise=this.rawContext.audioWorklet.addModule(t)),yield this._workletPromise})}workletsAreReady(){return qt(this,void 0,void 0,function*(){(yield this._workletPromise)?this._workletPromise:Promise.resolve()})}get updateInterval(){return this._ticker.updateInterval}set updateInterval(t){this._ticker.updateInterval=t}get clockSource(){return this._ticker.type}set clockSource(t){this._ticker.type=t}get lookAhead(){return this._lookAhead}set lookAhead(t){this._lookAhead=t,this.updateInterval=t?t/2:.01}get latencyHint(){return this._latencyHint}get rawContext(){return this._context}now(){return this._context.currentTime+this._lookAhead}immediate(){return this._context.currentTime}resume(){return Sn(this._context)?this._context.resume():Promise.resolve()}close(){return qt(this,void 0,void 0,function*(){Sn(this._context)&&this.state!=="closed"&&!this._closeStarted&&(this._closeStarted=!0,yield this._context.close()),this._initialized&&Ly(this)})}getConstant(t){if(this._constants.has(t))return this._constants.get(t);{const e=this._context.createBuffer(1,128,this._context.sampleRate),s=e.getChannelData(0);for(let r=0;rthis._constants[t].disconnect()),this.close(),this}_timeoutLoop(){const t=this.now();let e=this._timeouts.peek();for(;this._timeouts.length&&e&&e.time<=t;)e.callback(),this._timeouts.shift(),e=this._timeouts.peek()}setTimeout(t,e){this._timeoutIds++;const s=this.now();return this._timeouts.add({callback:t,id:this._timeoutIds,time:s+e}),this._timeoutIds}clearTimeout(t){return this._timeouts.forEach(e=>{e.id===t&&this._timeouts.remove(e)}),this}clearInterval(t){return this.clearTimeout(t)}setInterval(t,e){const s=++this._timeoutIds,n=()=>{const r=this.now();this._timeouts.add({callback:()=>{t(),n()},id:s,time:r+e})};return n(),s}};class Vy extends oh{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(t,e,s){return{}}createChannelMerger(t){return{}}createChannelSplitter(t){return{}}createConstantSource(){return{}}createConvolver(){return{}}createDelay(t){return{}}createDynamicsCompressor(){return{}}createGain(){return{}}createIIRFilter(t,e){return{}}createPanner(){return{}}createPeriodicWave(t,e,s){return{}}createStereoPanner(){return{}}createWaveShaper(){return{}}createMediaStreamSource(t){return{}}createMediaElementSource(t){return{}}createMediaStreamDestination(){return{}}decodeAudioData(t){return Promise.resolve({})}createAudioWorkletNode(t,e){return{}}get rawContext(){return{}}addAudioWorkletModule(t){return qt(this,void 0,void 0,function*(){return Promise.resolve()})}resume(){return Promise.resolve()}setTimeout(t,e){return 0}clearTimeout(t){return this}setInterval(t,e){return 0}clearInterval(t){return this}getConstant(t){return{}}get currentTime(){return 0}get state(){return{}}get sampleRate(){return 0}get listener(){return{}}get transport(){return{}}get draw(){return{}}set draw(t){}get destination(){return{}}set destination(t){}now(){return 0}immediate(){return 0}}function Mt(i,t){Ue(t)?t.forEach(e=>Mt(i,e)):Object.defineProperty(i,t,{enumerable:!0,writable:!1})}function nc(i,t){Ue(t)?t.forEach(e=>nc(i,e)):Object.defineProperty(i,t,{writable:!0})}const yt=()=>{};class xt extends vs{constructor(){super(),this.name="ToneAudioBuffer",this.onload=yt;const t=$(xt.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=t.reverse,this.onload=t.onload,hs(t.url)?this.load(t.url).catch(t.onerror):t.url&&this.set(t.url)}static getDefaults(){return{onerror:yt,onload:yt,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:Le().sampleRate}set(t){return t instanceof xt?t.loaded?this._buffer=t.get():t.onload=()=>{this.set(t),this.onload(this)}:this._buffer=t,this._reversed&&this._reverse(),this}get(){return this._buffer}load(t){return qt(this,void 0,void 0,function*(){const e=xt.load(t).then(s=>{this.set(s),this.onload(this)});xt.downloads.push(e);try{yield e}finally{const s=xt.downloads.indexOf(e);xt.downloads.splice(s,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(t){const e=Ue(t)&&t[0].length>0,s=e?t.length:1,n=e?t[0].length:t.length,r=Le(),o=r.createBuffer(s,n,r.sampleRate),a=!e&&s===1?[t]:t;for(let c=0;cn/s),this.fromArray(e)}return this}toArray(t){if(Ds(t))return this.getChannelData(t);if(this.numberOfChannels===1)return this.toArray(0);{const e=[];for(let s=0;s0}get duration(){return this._buffer?this._buffer.duration:0}get length(){return this._buffer?this._buffer.length:0}get numberOfChannels(){return this._buffer?this._buffer.numberOfChannels:0}get reverse(){return this._reversed}set reverse(t){this._reversed!==t&&(this._reversed=t,this._reverse())}static fromArray(t){return new xt().fromArray(t)}static fromUrl(t){return qt(this,void 0,void 0,function*(){return yield new xt().load(t)})}static load(t){return qt(this,void 0,void 0,function*(){const e=t.match(/\[([^\]\[]+\|.+)\]$/);if(e){const c=e[1].split("|");let l=c[0];for(const u of c)if(xt.supportsType(u)){l=u;break}t=t.replace(e[0],l)}const s=xt.baseUrl===""||xt.baseUrl.endsWith("/")?xt.baseUrl:xt.baseUrl+"/",n=document.createElement("a");n.href=s+t,n.pathname=(n.pathname+n.hash).split("/").map(encodeURIComponent).join("/");const r=yield fetch(n.href);if(!r.ok)throw new Error(`could not load url: ${t}`);const o=yield r.arrayBuffer();return yield Le().decodeAudioData(o)})}static supportsType(t){const e=t.split("."),s=e[e.length-1];return document.createElement("audio").canPlayType("audio/"+s)!==""}static loaded(){return qt(this,void 0,void 0,function*(){for(yield Promise.resolve();xt.downloads.length;)yield xt.downloads[0]})}}xt.baseUrl="";xt.downloads=[];class wo extends sc{constructor(){super({clockSource:"offline",context:Pr(arguments[0])?arguments[0]:Ey(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:Pr(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=Pr(arguments[0])?arguments[0].length/arguments[0].sampleRate:arguments[1]}now(){return this._currentTime}get currentTime(){return this._currentTime}_renderClock(t){return qt(this,void 0,void 0,function*(){let e=0;for(;this._duration-this._currentTime>=0;){this.emit("tick"),this._currentTime+=128/this.sampleRate,e++;const s=Math.floor(this.sampleRate/128);t&&e%s===0&&(yield new Promise(n=>setTimeout(n,1)))}})}render(t=!0){return qt(this,void 0,void 0,function*(){yield this.workletsAreReady(),yield this._renderClock(t);const e=yield this._context.startRendering();return new xt(e)})}close(){return Promise.resolve()}}const ch=new Vy;let Zs=ch;function Le(){return Zs===ch&&Oy&&Uy(new sc),Zs}function Uy(i,t=!1){t&&Zs.dispose(),Sn(i)?Zs=new sc(i):Pr(i)?Zs=new wo(i):Zs=i}function zy(){return Zs.resume()}if(Js&&!Js.TONE_SILENCE_LOGGING){const t=` * Tone.js v${au} * `;console.log(`%c${t}`,"background: #000; color: #fff")}function jy(i){return Math.pow(10,i/20)}function By(i){return 20*(Math.log(i)/Math.LN10)}function lh(i){return Math.pow(2,i/12)}let bo=440;function qy(){return bo}function Wy(i){bo=i}function fa(i){return Math.round(uh(i))}function uh(i){return 69+12*Math.log2(i/bo)}function Hy(i){return bo*Math.pow(2,(i-69)/12)}class ic extends vs{constructor(t,e,s){super(),this.defaultUnits="s",this._val=e,this._units=s,this.context=t,this._expressions=this._getExpressions()}_getExpressions(){return{hz:{method:t=>this._frequencyToUnits(parseFloat(t)),regexp:/^(\d+(?:\.\d+)?)hz$/i},i:{method:t=>this._ticksToUnits(parseInt(t,10)),regexp:/^(\d+)i$/i},m:{method:t=>this._beatsToUnits(parseInt(t,10)*this._getTimeSignature()),regexp:/^(\d+)m$/i},n:{method:(t,e)=>{const s=parseInt(t,10),n=e==="."?1.5:1;return s===1?this._beatsToUnits(this._getTimeSignature())*n:this._beatsToUnits(4/s)*n},regexp:/^(\d+)n(\.?)$/i},number:{method:t=>this._expressions[this.defaultUnits].method.call(this,t),regexp:/^(\d+(?:\.\d+)?)$/},s:{method:t=>this._secondsToUnits(parseFloat(t)),regexp:/^(\d+(?:\.\d+)?)s$/},samples:{method:t=>parseInt(t,10)/this.context.sampleRate,regexp:/^(\d+)samples$/},t:{method:t=>{const e=parseInt(t,10);return this._beatsToUnits(8/(Math.floor(e)*3))},regexp:/^(\d+)t$/i},tr:{method:(t,e,s)=>{let n=0;return t&&t!=="0"&&(n+=this._beatsToUnits(this._getTimeSignature()*parseFloat(t))),e&&e!=="0"&&(n+=this._beatsToUnits(parseFloat(e))),s&&s!=="0"&&(n+=this._beatsToUnits(parseFloat(s)/4)),n},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof ic&&this.fromType(this._val),xe(this._val))return this._noArg();if(hs(this._val)&&xe(this._units)){for(const t in this._expressions)if(this._expressions[t].regexp.test(this._val.trim())){this._units=t;break}}else if(Ks(this._val)){let t=0;for(const e in this._val)if(dt(this._val[e])){const s=this._val[e],n=new this.constructor(this.context,e).valueOf()*s;t+=n}return t}if(dt(this._units)){const t=this._expressions[this._units],e=this._val.toString().trim().match(t.regexp);return e?t.method.apply(this,e.slice(1)):t.method.call(this,this._val)}else return hs(this._val)?parseFloat(this._val):this._val}_frequencyToUnits(t){return 1/t}_beatsToUnits(t){return 60/this._getBpm()*t}_secondsToUnits(t){return t}_ticksToUnits(t){return t*this._beatsToUnits(1)/this._getPPQ()}_noArg(){return this._now()}_getBpm(){return this.context.transport.bpm.value}_getTimeSignature(){return this.context.transport.timeSignature}_getPPQ(){return this.context.transport.PPQ}fromType(t){switch(this._units=void 0,this.defaultUnits){case"s":this._val=t.toSeconds();break;case"i":this._val=t.toTicks();break;case"hz":this._val=t.toFrequency();break;case"midi":this._val=t.toMidi();break}return this}toFrequency(){return 1/this.toSeconds()}toSamples(){return this.toSeconds()*this.context.sampleRate}toMilliseconds(){return this.toSeconds()*1e3}}class Ve extends ic{constructor(){super(...arguments),this.name="TimeClass"}_getExpressions(){return Object.assign(super._getExpressions(),{now:{method:t=>this._now()+new this.constructor(this.context,t).valueOf(),regexp:/^\+(.+)/},quantize:{method:t=>{const e=new Ve(this.context,t).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(e))},regexp:/^@(.+)/}})}quantize(t,e=1){const s=new this.constructor(this.context,t).valueOf(),n=this.valueOf(),a=Math.round(n/s)*s-n;return n+a*e}toNotation(){const t=this.toSeconds(),e=["1m"];for(let r=1;r<9;r++){const o=Math.pow(2,r);e.push(o+"n."),e.push(o+"n"),e.push(o+"t")}e.push("0");let s=e[0],n=new Ve(this.context,e[0]).toSeconds();return e.forEach(r=>{const o=new Ve(this.context,r).toSeconds();Math.abs(o-t)3&&(n=parseFloat(parseFloat(r).toFixed(3))),[s,e,n].join(":")}toTicks(){const t=this._beatsToUnits(1);return this.valueOf()/t*this._getPPQ()}toSeconds(){return this.valueOf()}toMidi(){return fa(this.toFrequency())}_now(){return this.context.now()}}class Ee extends Ve{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return qy()}static set A4(t){Wy(t)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(t){return this.defaultUnits==="midi"?t:Ee.mtof(t)}},note:{regexp:/^([a-g]{1}(?:b|#|##|x|bb|###|#x|x#|bbb)?)(-?[0-9]+)/i,method(t,e){const n=Yy[t.toLowerCase()]+(parseInt(e,10)+1)*12;return this.defaultUnits==="midi"?n:Ee.mtof(n)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(t,e,s){let n=1;return t&&t!=="0"&&(n*=this._beatsToUnits(this._getTimeSignature()*parseFloat(t))),e&&e!=="0"&&(n*=this._beatsToUnits(parseFloat(e))),s&&s!=="0"&&(n*=this._beatsToUnits(parseFloat(s)/4)),n}}})}transpose(t){return new Ee(this.context,this.valueOf()*lh(t))}harmonize(t){return t.map(e=>this.transpose(e))}toMidi(){return fa(this.valueOf())}toNote(){const t=this.toFrequency(),e=Math.log2(t/Ee.A4);let s=Math.round(12*e)+57;const n=Math.floor(s/12);return n<0&&(s+=-12*n),Gy[s%12]+n.toString()}toSeconds(){return 1/super.toSeconds()}toTicks(){const t=this._beatsToUnits(1),e=this.valueOf()/t;return Math.floor(e*this._getPPQ())}_noArg(){return 0}_frequencyToUnits(t){return t}_ticksToUnits(t){return 1/(t*60/(this._getBpm()*this._getPPQ()))}_beatsToUnits(t){return 1/super._beatsToUnits(t)}_secondsToUnits(t){return 1/t}static mtof(t){return Hy(t)}static ftom(t){return fa(t)}}const Yy={cbbb:-3,cbb:-2,cb:-1,c:0,"c#":1,cx:2,"c##":2,"c###":3,"cx#":3,"c#x":3,dbbb:-1,dbb:0,db:1,d:2,"d#":3,dx:4,"d##":4,"d###":5,"dx#":5,"d#x":5,ebbb:1,ebb:2,eb:3,e:4,"e#":5,ex:6,"e##":6,"e###":7,"ex#":7,"e#x":7,fbbb:2,fbb:3,fb:4,f:5,"f#":6,fx:7,"f##":7,"f###":8,"fx#":8,"f#x":8,gbbb:4,gbb:5,gb:6,g:7,"g#":8,gx:9,"g##":9,"g###":10,"gx#":10,"g#x":10,abbb:6,abb:7,ab:8,a:9,"a#":10,ax:11,"a##":11,"a###":12,"ax#":12,"a#x":12,bbbb:8,bbb:9,bb:10,b:11,"b#":12,bx:13,"b##":13,"b###":14,"bx#":14,"b#x":14},Gy=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class wi extends Ve{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class le extends vs{constructor(){super();const t=$(le.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=t.context}static getDefaults(){return{context:Le()}}now(){return this.context.currentTime+this.context.lookAhead}immediate(){return this.context.currentTime}get sampleTime(){return 1/this.context.sampleRate}get blockTime(){return 128/this.context.sampleRate}toSeconds(t){return by(t),new Ve(this.context,t).toSeconds()}toFrequency(t){return new Ee(this.context,t).toFrequency()}toTicks(t){return new wi(this.context,t).toTicks()}_getPartialProperties(t){const e=this.get();return Object.keys(e).forEach(s=>{xe(t[s])&&delete e[s]}),e}get(){const t=Ny(this);return Object.keys(t).forEach(e=>{if(Reflect.has(this,e)){const s=this[e];dt(s)&&dt(s.value)&&dt(s.setValueAtTime)?t[e]=s.value:s instanceof le?t[e]=s._getPartialProperties(t[e]):Ue(s)||Ds(s)||hs(s)||wy(s)?t[e]=s:delete t[e]}}),t}set(t){return Object.keys(t).forEach(e=>{Reflect.has(this,e)&&dt(this[e])&&(this[e]&&dt(this[e].value)&&dt(this[e].setValueAtTime)?this[e].value!==t[e]&&(this[e].value=t[e]):this[e]instanceof le?this[e].set(t[e]):this[e]=t[e])}),this}}class rc extends Xe{constructor(t="stopped"){super(),this.name="StateTimeline",this._initial=t,this.setStateAtTime(this._initial,0)}getValueAtTime(t){const e=this.get(t);return e!==null?e.state:this._initial}setStateAtTime(t,e,s){return je(e,0),this.add(Object.assign({},s,{state:t,time:e})),this}getLastState(t,e){const s=this._search(e);for(let n=s;n>=0;n--){const r=this._timeline[n];if(r.state===t)return r}}getNextState(t,e){const s=this._search(e);if(s!==-1)for(let n=s;n0,"timeConstant must be a number greater than 0");const r=this.toSeconds(e);return this._assertRange(n),ut(isFinite(n)&&isFinite(r),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(t)}, ${JSON.stringify(e)}`),this._events.add({constant:s,time:r,type:"setTargetAtTime",value:n}),this.log(this.units,"setTargetAtTime",t,r,s),this._param.setTargetAtTime(n,r,s),this}setValueCurveAtTime(t,e,s,n=1){s=this.toSeconds(s),e=this.toSeconds(e);const r=this._fromType(t[0])*n;this.setValueAtTime(this._toType(r),e);const o=s/(t.length-1);for(let a=1;a{n.type==="cancelScheduledValues"?t.cancelScheduledValues(n.time):n.type==="setTargetAtTime"?t.setTargetAtTime(n.value,n.time,n.constant):t[n.type](n.value,n.time)}),this}setParam(t){ut(this._swappable,"The Param must be assigned as 'swappable' in the constructor");const e=this.input;return e.disconnect(this._param),this.apply(t),this._param=t,e.connect(this._param),this}dispose(){return super.dispose(),this._events.dispose(),this}get defaultValue(){return this._toType(this._param.defaultValue)}_exponentialApproach(t,e,s,n,r){return s+(e-s)*Math.exp(-(r-t)/n)}_linearInterpolate(t,e,s,n,r){return e+(n-e)*((r-t)/(s-t))}_exponentialInterpolate(t,e,s,n,r){return e*Math.pow(n/e,(r-t)/(s-t))}}class ot extends le{constructor(){super(...arguments),this._internalChannels=[]}get numberOfInputs(){return dt(this.input)?on(this.input)||this.input instanceof kt?1:this.input.numberOfInputs:0}get numberOfOutputs(){return dt(this.output)?this.output.numberOfOutputs:0}_isAudioNode(t){return dt(t)&&(t instanceof ot||Os(t))}_getInternalNodes(){const t=this._internalChannels.slice(0);return this._isAudioNode(this.input)&&t.push(this.input),this._isAudioNode(this.output)&&this.input!==this.output&&t.push(this.output),t}_setChannelProperties(t){this._getInternalNodes().forEach(s=>{s.channelCount=t.channelCount,s.channelCountMode=t.channelCountMode,s.channelInterpretation=t.channelInterpretation})}_getChannelProperties(){const t=this._getInternalNodes();ut(t.length>0,"ToneAudioNode does not have any internal nodes");const e=t[0];return{channelCount:e.channelCount,channelCountMode:e.channelCountMode,channelInterpretation:e.channelInterpretation}}get channelCount(){return this._getChannelProperties().channelCount}set channelCount(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelCount:t}))}get channelCountMode(){return this._getChannelProperties().channelCountMode}set channelCountMode(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelCountMode:t}))}get channelInterpretation(){return this._getChannelProperties().channelInterpretation}set channelInterpretation(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelInterpretation:t}))}connect(t,e=0,s=0){return Ps(this,t,e,s),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return tc("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(t,e=0,s=0){return $y(this,t,e,s),this}chain(...t){return Mi(this,...t),this}fan(...t){return t.forEach(e=>this.connect(e)),this}dispose(){return super.dispose(),dt(this.input)&&(this.input instanceof ot?this.input.dispose():Os(this.input)&&this.input.disconnect()),dt(this.output)&&(this.output instanceof ot?this.output.dispose():Os(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Mi(...i){const t=i.shift();i.reduce((e,s)=>(e instanceof ot?e.connect(s):Os(e)&&Ps(e,s),s),t)}function Ps(i,t,e=0,s=0){for(ut(dt(i),"Cannot connect from undefined node"),ut(dt(t),"Cannot connect to undefined node"),(t instanceof ot||Os(t))&&ut(t.numberOfInputs>0,"Cannot connect to node with no inputs"),ut(i.numberOfOutputs>0,"Cannot connect from node with no outputs");t instanceof ot||t instanceof kt;)dt(t.input)&&(t=t.input);for(;i instanceof ot;)dt(i.output)&&(i=i.output);on(t)?i.connect(t,e):i.connect(t,e,s)}function $y(i,t,e=0,s=0){if(dt(t))for(;t instanceof ot;)t=t.input;for(;!Os(i);)dt(i.output)&&(i=i.output);on(t)?i.disconnect(t,e):Os(t)?i.disconnect(t,e,s):i.disconnect()}class St extends ot{constructor(){super($(St.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const t=$(St.getDefaults(),arguments,["gain","units"]);this.gain=new kt({context:this.context,convert:t.convert,param:this._gainNode.gain,units:t.units,value:t.gain,minValue:t.minValue,maxValue:t.maxValue}),Mt(this,"gain")}static getDefaults(){return Object.assign(ot.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class zn extends ot{constructor(t){super(t),this.onended=yt,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new St({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(e){const s=this.toSeconds(e);return this._startTime!==-1&&s>=this._startTime&&(this._stopTime===-1||s<=this._stopTime)?"started":"stopped"},this._fadeIn=t.fadeIn,this._fadeOut=t.fadeOut,this._curve=t.curve,this.onended=t.onended}static getDefaults(){return Object.assign(ot.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:yt})}_startGain(t,e=1){ut(this._startTime===-1,"Source cannot be started more than once");const s=this.toSeconds(this._fadeIn);return this._startTime=t+s,this._startTime=Math.max(this._startTime,this.context.currentTime),s>0?(this._gainNode.gain.setValueAtTime(0,t),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(e,t+s):this._gainNode.gain.exponentialApproachValueAtTime(e,t,s)):this._gainNode.gain.setValueAtTime(e,t),this}stop(t){return this.log("stop",t),this._stopGain(this.toSeconds(t)),this}_stopGain(t){ut(this._startTime!==-1,"'start' must be called before 'stop'"),this.cancelStop();const e=this.toSeconds(this._fadeOut);return this._stopTime=this.toSeconds(t)+e,this._stopTime=Math.max(this._stopTime,this.now()),e>0?this._curve==="linear"?this._gainNode.gain.linearRampTo(0,e,t):this._gainNode.gain.targetRampTo(0,e,t):(this._gainNode.gain.cancelAndHoldAtTime(t),this._gainNode.gain.setValueAtTime(0,t)),this.context.clearTimeout(this._timeout),this._timeout=this.context.setTimeout(()=>{const s=this._curve==="exponential"?e*2:0;this._stopSource(this.now()+s),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==yt&&(this.onended(this),this.onended=yt,!this.context.isOffline)){const t=()=>this.dispose();typeof window.requestIdleCallback<"u"?window.requestIdleCallback(t):setTimeout(t,1e3)}}get state(){return this.getStateAtTime(this.now())}cancelStop(){return this.log("cancelStop"),ut(this._startTime!==-1,"Source is not started"),this._gainNode.gain.cancelScheduledValues(this._startTime+this.sampleTime),this.context.clearTimeout(this._timeout),this._stopTime=-1,this}dispose(){return super.dispose(),this._gainNode.dispose(),this.onended=yt,this}}class Yr extends zn{constructor(){super($(Yr.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const t=$(Yr.getDefaults(),arguments,["offset"]);Ps(this._source,this._gainNode),this.offset=new kt({context:this.context,convert:t.convert,param:this._source.offset,units:t.units,value:t.offset,minValue:t.minValue,maxValue:t.maxValue})}static getDefaults(){return Object.assign(zn.getDefaults(),{convert:!0,offset:1,units:"number"})}start(t){const e=this.toSeconds(t);return this.log("start",e),this._startGain(e),this._source.start(e),this}_stopSource(t){this._source.stop(t)}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._source.disconnect(),this.offset.dispose(),this}}class Ot extends ot{constructor(){super($(Ot.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const t=$(Ot.getDefaults(),arguments,["value","units"]);this.output=this._constantSource=new Yr({context:this.context,convert:t.convert,offset:t.value,units:t.units,minValue:t.minValue,maxValue:t.maxValue}),this._constantSource.start(0),this.input=this._param=this._constantSource.offset}static getDefaults(){return Object.assign(ot.getDefaults(),{convert:!0,units:"number",value:0})}connect(t,e=0,s=0){return oc(this,t,e,s),this}dispose(){return super.dispose(),this._param.dispose(),this._constantSource.dispose(),this}setValueAtTime(t,e){return this._param.setValueAtTime(t,e),this}getValueAtTime(t){return this._param.getValueAtTime(t)}setRampPoint(t){return this._param.setRampPoint(t),this}linearRampToValueAtTime(t,e){return this._param.linearRampToValueAtTime(t,e),this}exponentialRampToValueAtTime(t,e){return this._param.exponentialRampToValueAtTime(t,e),this}exponentialRampTo(t,e,s){return this._param.exponentialRampTo(t,e,s),this}linearRampTo(t,e,s){return this._param.linearRampTo(t,e,s),this}targetRampTo(t,e,s){return this._param.targetRampTo(t,e,s),this}exponentialApproachValueAtTime(t,e,s){return this._param.exponentialApproachValueAtTime(t,e,s),this}setTargetAtTime(t,e,s){return this._param.setTargetAtTime(t,e,s),this}setValueCurveAtTime(t,e,s,n){return this._param.setValueCurveAtTime(t,e,s,n),this}cancelScheduledValues(t){return this._param.cancelScheduledValues(t),this}cancelAndHoldAtTime(t){return this._param.cancelAndHoldAtTime(t),this}rampTo(t,e,s){return this._param.rampTo(t,e,s),this}get value(){return this._param.value}set value(t){this._param.value=t}get convert(){return this._param.convert}set convert(t){this._param.convert=t}get units(){return this._param.units}get overridden(){return this._param.overridden}set overridden(t){this._param.overridden=t}get maxValue(){return this._param.maxValue}get minValue(){return this._param.minValue}apply(t){return this._param.apply(t),this}}function oc(i,t,e,s){(t instanceof kt||on(t)||t instanceof Ot&&t.override)&&(t.cancelScheduledValues(0),t.setValueAtTime(0,0),t instanceof Ot&&(t.overridden=!0)),Ps(i,t,e,s)}class Gr extends kt{constructor(){super($(Gr.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new Xe(1/0),this._multiplier=1;const t=$(Gr.getDefaults(),arguments,["value"]);this._multiplier=t.multiplier,this._events.cancel(0),this._events.add({ticks:0,time:0,type:"setValueAtTime",value:this._fromType(t.value)}),this.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(kt.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(t,e,s){e=this.toSeconds(e),this.setRampPoint(e);const n=this._fromType(t),r=this._events.get(e),o=Math.round(Math.max(1/s,1));for(let a=0;a<=o;a++){const c=s*a+e,l=this._exponentialApproach(r.time,r.value,n,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}setValueAtTime(t,e){const s=this.toSeconds(e);super.setValueAtTime(t,e);const n=this._events.get(s),r=this._events.previousEvent(n),o=this._getTicksUntilEvent(r,s);return n.ticks=Math.max(o,0),this}linearRampToValueAtTime(t,e){const s=this.toSeconds(e);super.linearRampToValueAtTime(t,e);const n=this._events.get(s),r=this._events.previousEvent(n),o=this._getTicksUntilEvent(r,s);return n.ticks=Math.max(o,0),this}exponentialRampToValueAtTime(t,e){e=this.toSeconds(e);const s=this._fromType(t),n=this._events.get(e),r=Math.round(Math.max((e-n.time)*10,1)),o=(e-n.time)/r;for(let a=0;a<=r;a++){const c=o*a+n.time,l=this._exponentialInterpolate(n.time,n.value,e,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}_getTicksUntilEvent(t,e){if(t===null)t={ticks:0,time:0,type:"setValueAtTime",value:0};else if(xe(t.ticks)){const o=this._events.previousEvent(t);t.ticks=this._getTicksUntilEvent(o,t.time)}const s=this._fromType(this.getValueAtTime(t.time));let n=this._fromType(this.getValueAtTime(e));const r=this._events.get(e);return r&&r.time===e&&r.type==="setValueAtTime"&&(n=this._fromType(this.getValueAtTime(e-this.sampleTime))),.5*(e-t.time)*(s+n)+t.ticks}getTicksAtTime(t){const e=this.toSeconds(t),s=this._events.get(e);return Math.max(this._getTicksUntilEvent(s,e),0)}getDurationOfTicks(t,e){const s=this.toSeconds(e),n=this.getTicksAtTime(e);return this.getTimeOfTick(n+t)-s}getTimeOfTick(t){const e=this._events.get(t,"ticks"),s=this._events.getAfter(t,"ticks");if(e&&e.ticks===t)return e.time;if(e&&s&&s.type==="linearRampToValueAtTime"&&e.value!==s.value){const n=this._fromType(this.getValueAtTime(e.time)),o=(this._fromType(this.getValueAtTime(s.time))-n)/(s.time-e.time),a=Math.sqrt(Math.pow(n,2)-2*o*(e.ticks-t)),c=(-n+a)/o,l=(-n-a)/o;return(c>0?c:l)+e.time}else return e?e.value===0?1/0:e.time+(t-e.ticks)/e.value:t/this._initialValue}ticksToTime(t,e){return this.getDurationOfTicks(t,e)}timeToTicks(t,e){const s=this.toSeconds(e),n=this.toSeconds(t),r=this.getTicksAtTime(s);return this.getTicksAtTime(s+n)-r}_fromType(t){return this.units==="bpm"&&this.multiplier?1/(60/t/this.multiplier):super._fromType(t)}_toType(t){return this.units==="bpm"&&this.multiplier?t/this.multiplier*60:super._toType(t)}get multiplier(){return this._multiplier}set multiplier(t){const e=this.value;this._multiplier=t,this.cancelScheduledValues(0),this.setValueAtTime(e,0)}}class $r extends Ot{constructor(){super($($r.getDefaults(),arguments,["value"])),this.name="TickSignal";const t=$($r.getDefaults(),arguments,["value"]);this.input=this._param=new Gr({context:this.context,convert:t.convert,multiplier:t.multiplier,param:this._constantSource.offset,units:t.units,value:t.value})}static getDefaults(){return Object.assign(Ot.getDefaults(),{multiplier:1,units:"hertz",value:1})}ticksToTime(t,e){return this._param.ticksToTime(t,e)}timeToTicks(t,e){return this._param.timeToTicks(t,e)}getTimeOfTick(t){return this._param.getTimeOfTick(t)}getDurationOfTicks(t,e){return this._param.getDurationOfTicks(t,e)}getTicksAtTime(t){return this._param.getTicksAtTime(t)}get multiplier(){return this._param.multiplier}set multiplier(t){this._param.multiplier=t}dispose(){return super.dispose(),this._param.dispose(),this}}class Zr extends le{constructor(){super($(Zr.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new rc,this._tickOffset=new Xe,this._ticksAtTime=new Xe,this._secondsAtTime=new Xe;const t=$(Zr.getDefaults(),arguments,["frequency"]);this.frequency=new $r({context:this.context,units:t.units,value:t.frequency}),Mt(this,"frequency"),this._state.setStateAtTime("stopped",0),this.setTicksAtTime(0,0)}static getDefaults(){return Object.assign({frequency:1,units:"hertz"},le.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(t,e){const s=this.toSeconds(t);return this._state.getValueAtTime(s)!=="started"&&(this._state.setStateAtTime("started",s),dt(e)&&this.setTicksAtTime(e,s),this._ticksAtTime.cancel(s),this._secondsAtTime.cancel(s)),this}stop(t){const e=this.toSeconds(t);if(this._state.getValueAtTime(e)==="stopped"){const s=this._state.get(e);s&&s.time>0&&(this._tickOffset.cancel(s.time),this._state.cancel(s.time))}return this._state.cancel(e),this._state.setStateAtTime("stopped",e),this.setTicksAtTime(0,e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}pause(t){const e=this.toSeconds(t);return this._state.getValueAtTime(e)==="started"&&(this._state.setStateAtTime("paused",e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e)),this}cancel(t){return t=this.toSeconds(t),this._state.cancel(t),this._tickOffset.cancel(t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}getTicksAtTime(t){const e=this.toSeconds(t),s=this._state.getLastState("stopped",e),n=this._ticksAtTime.get(e),r={state:"paused",time:e};this._state.add(r);let o=n||s,a=n?n.ticks:0,c=null;return this._state.forEachBetween(o.time,e+this.sampleTime,l=>{let u=o.time;const h=this._tickOffset.get(l.time);h&&h.time>=o.time&&(a=h.ticks,u=h.time),o.state==="started"&&l.state!=="started"&&(a+=this.frequency.getTicksAtTime(l.time)-this.frequency.getTicksAtTime(u),l.time!=r.time&&(c={state:l.state,time:l.time,ticks:a})),o=l}),this._state.remove(r),c&&this._ticksAtTime.add(c),a}get ticks(){return this.getTicksAtTime(this.now())}set ticks(t){this.setTicksAtTime(t,this.now())}get seconds(){return this.getSecondsAtTime(this.now())}set seconds(t){const e=this.now(),s=this.frequency.timeToTicks(t,e);this.setTicksAtTime(s,e)}getSecondsAtTime(t){t=this.toSeconds(t);const e=this._state.getLastState("stopped",t),s={state:"paused",time:t};this._state.add(s);const n=this._secondsAtTime.get(t);let r=n||e,o=n?n.seconds:0,a=null;return this._state.forEachBetween(r.time,t+this.sampleTime,c=>{let l=r.time;const u=this._tickOffset.get(c.time);u&&u.time>=r.time&&(o=u.seconds,l=u.time),r.state==="started"&&c.state!=="started"&&(o+=c.time-l,c.time!=s.time&&(a={state:c.state,time:c.time,seconds:o})),r=c}),this._state.remove(s),a&&this._secondsAtTime.add(a),o}setTicksAtTime(t,e){return e=this.toSeconds(e),this._tickOffset.cancel(e),this._tickOffset.add({seconds:this.frequency.getDurationOfTicks(t,e),ticks:t,time:e}),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}getStateAtTime(t){return t=this.toSeconds(t),this._state.getValueAtTime(t)}getTimeOfTick(t,e=this.now()){const s=this._tickOffset.get(e),n=this._state.get(e),r=Math.max(s.time,n.time),o=this.frequency.getTicksAtTime(r)+t-s.ticks;return this.frequency.getTimeOfTick(o)}forEachTickBetween(t,e,s){let n=this._state.get(t);this._state.forEachBetween(t,e,o=>{n&&n.state==="started"&&o.state!=="started"&&this.forEachTickBetween(Math.max(n.time,t),o.time-this.sampleTime,s),n=o});let r=null;if(n&&n.state==="started"){const o=Math.max(n.time,t),a=this.frequency.getTicksAtTime(o),c=this.frequency.getTicksAtTime(n.time),l=a-c;let u=Math.ceil(l)-l;u=Fe(u,1)?0:u;let h=this.frequency.getTimeOfTick(a+u);for(;h{switch(s.state){case"started":const n=this._tickSource.getTicksAtTime(s.time);this.emit("start",s.time,n);break;case"stopped":s.time!==0&&this.emit("stop",s.time);break;case"paused":this.emit("pause",s.time);break}}),this._tickSource.forEachTickBetween(t,e,(s,n)=>{this.callback(s,n)}))}getStateAtTime(t){const e=this.toSeconds(t);return this._state.getValueAtTime(e)}dispose(){return super.dispose(),this.context.off("tick",this._boundLoop),this._tickSource.dispose(),this._state.dispose(),this}}hr.mixin(Di);class ac extends vs{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const t=$(ac.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=t.baseUrl,Object.keys(t.urls).forEach(e=>{this._loadingCount++;const s=t.urls[e];this.add(e,s,this._bufferLoaded.bind(this,t.onload),t.onerror)})}static getDefaults(){return{baseUrl:"",onerror:yt,onload:yt,urls:{}}}has(t){return this._buffers.has(t.toString())}get(t){return ut(this.has(t),`ToneAudioBuffers has no buffer named: ${t}`),this._buffers.get(t.toString())}_bufferLoaded(t){this._loadingCount--,this._loadingCount===0&&t&&t()}get loaded(){return Array.from(this._buffers).every(([t,e])=>e.loaded)}add(t,e,s=yt,n=yt){return hs(e)?(this.baseUrl&&e.trim().substring(0,11).toLowerCase()==="data:audio/"&&(this.baseUrl=""),this._buffers.set(t.toString(),new xt(this.baseUrl+e,s,n))):this._buffers.set(t.toString(),new xt(e,s,n)),this}dispose(){return super.dispose(),this._buffers.forEach(t=>t.dispose()),this._buffers.clear(),this}}class An extends wi{constructor(){super(...arguments),this.name="Ticks",this.defaultUnits="i"}_now(){return this.context.transport.ticks}_beatsToUnits(t){return this._getPPQ()*t}_secondsToUnits(t){return Math.floor(t/(60/this._getBpm())*this._getPPQ())}_ticksToUnits(t){return t}toTicks(){return this.valueOf()}toSeconds(){return this.valueOf()/this._getPPQ()*(60/this._getBpm())}}class Zy extends le{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new Xe,this._boundDrawLoop=this._drawLoop.bind(this),this._animationFrame=-1}schedule(t,e){return this._events.add({callback:t,time:this.toSeconds(e)}),this._events.length===1&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop)),this}cancel(t){return this._events.cancel(this.toSeconds(t)),this}_drawLoop(){const t=this.context.currentTime;for(;this._events.length&&this._events.peek().time-this.anticipation<=t;){const e=this._events.shift();e&&t-e.time<=this.expiration&&e.callback()}this._events.length>0&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop))}dispose(){return super.dispose(),this._events.dispose(),cancelAnimationFrame(this._animationFrame),this}}ko(i=>{i.draw=new Zy({context:i})});To(i=>{i.draw.dispose()});class Xy extends vs{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(t){ut(dt(t.time),"Events must have a time property"),ut(dt(t.duration),"Events must have a duration parameter"),t.time=t.time.valueOf();let e=new Qy(t.time,t.time+t.duration,t);for(this._root===null?this._root=e:this._root.insert(e),this._length++;e!==null;)e.updateHeight(),e.updateMax(),this._rebalance(e),e=e.parent;return this}remove(t){if(this._root!==null){const e=[];this._root.search(t.time,e);for(const s of e)if(s.event===t){this._removeNode(s),this._length--;break}}return this}get length(){return this._length}cancel(t){return this.forEachFrom(t,e=>this.remove(e)),this}_setRoot(t){this._root=t,this._root!==null&&(this._root.parent=null)}_replaceNodeInParent(t,e){t.parent!==null?(t.isLeftChild()?t.parent.left=e:t.parent.right=e,this._rebalance(t.parent)):this._setRoot(e)}_removeNode(t){if(t.left===null&&t.right===null)this._replaceNodeInParent(t,null);else if(t.right===null)this._replaceNodeInParent(t,t.left);else if(t.left===null)this._replaceNodeInParent(t,t.right);else{const e=t.getBalance();let s,n=null;if(e>0)if(t.left.right===null)s=t.left,s.right=t.right,n=s;else{for(s=t.left.right;s.right!==null;)s=s.right;s.parent&&(s.parent.right=s.left,n=s.parent,s.left=t.left,s.right=t.right)}else if(t.right.left===null)s=t.right,s.left=t.left,n=s;else{for(s=t.right.left;s.left!==null;)s=s.left;s.parent&&(s.parent.left=s.right,n=s.parent,s.left=t.left,s.right=t.right)}t.parent!==null?t.isLeftChild()?t.parent.left=s:t.parent.right=s:this._setRoot(s),n&&this._rebalance(n)}t.dispose()}_rotateLeft(t){const e=t.parent,s=t.isLeftChild(),n=t.right;n&&(t.right=n.left,n.left=t),e!==null?s?e.left=n:e.right=n:this._setRoot(n)}_rotateRight(t){const e=t.parent,s=t.isLeftChild(),n=t.left;n&&(t.left=n.right,n.right=t),e!==null?s?e.left=n:e.right=n:this._setRoot(n)}_rebalance(t){const e=t.getBalance();e>1&&t.left?t.left.getBalance()<0?this._rotateLeft(t.left):this._rotateRight(t):e<-1&&t.right&&(t.right.getBalance()>0?this._rotateRight(t.right):this._rotateLeft(t))}get(t){if(this._root!==null){const e=[];if(this._root.search(t,e),e.length>0){let s=e[0];for(let n=1;ns.low&&(s=e[n]);return s.event}}return null}forEach(t){if(this._root!==null){const e=[];this._root.traverse(s=>e.push(s)),e.forEach(s=>{s.event&&t(s.event)})}return this}forEachAtTime(t,e){if(this._root!==null){const s=[];this._root.search(t,s),s.forEach(n=>{n.event&&e(n.event)})}return this}forEachFrom(t,e){if(this._root!==null){const s=[];this._root.searchAfter(t,s),s.forEach(n=>{n.event&&e(n.event)})}return this}dispose(){return super.dispose(),this._root!==null&&this._root.traverse(t=>t.dispose()),this._root=null,this}}class Qy{constructor(t,e,s){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=s,this.low=t,this.high=e,this.max=this.high}insert(t){t.low<=this.low?this.left===null?this.left=t:this.left.insert(t):this.right===null?this.right=t:this.right.insert(t)}search(t,e){t>this.max||(this.left!==null&&this.left.search(t,e),this.low<=t&&this.high>t&&e.push(this),!(this.low>t)&&this.right!==null&&this.right.search(t,e))}searchAfter(t,e){this.low>=t&&(e.push(this),this.left!==null&&this.left.searchAfter(t,e)),this.right!==null&&this.right.searchAfter(t,e)}traverse(t){t(this),this.left!==null&&this.left.traverse(t),this.right!==null&&this.right.traverse(t)}updateHeight(){this.left!==null&&this.right!==null?this.height=Math.max(this.left.height,this.right.height)+1:this.right!==null?this.height=this.right.height+1:this.left!==null?this.height=this.left.height+1:this.height=0}updateMax(){this.max=this.high,this.left!==null&&(this.max=Math.max(this.max,this.left.max)),this.right!==null&&(this.max=Math.max(this.max,this.right.max))}getBalance(){let t=0;return this.left!==null&&this.right!==null?t=this.left.height-this.right.height:this.left!==null?t=this.left.height+1:this.right!==null&&(t=-(this.right.height+1)),t}isLeftChild(){return this.parent!==null&&this.parent.left===this}get left(){return this._left}set left(t){this._left=t,t!==null&&(t.parent=this),this.updateHeight(),this.updateMax()}get right(){return this._right}set right(t){this._right=t,t!==null&&(t.parent=this),this.updateHeight(),this.updateMax()}dispose(){this.parent=null,this._left=null,this._right=null,this.event=null}}class Is extends ot{constructor(){super($(Is.getDefaults(),arguments,["volume"])),this.name="Volume";const t=$(Is.getDefaults(),arguments,["volume"]);this.input=this.output=new St({context:this.context,gain:t.volume,units:"decibels"}),this.volume=this.output.gain,Mt(this,"volume"),this._unmutedVolume=t.volume,this.mute=t.mute}static getDefaults(){return Object.assign(ot.getDefaults(),{mute:!1,volume:0})}get mute(){return this.volume.value===-1/0}set mute(t){!this.mute&&t?(this._unmutedVolume=this.volume.value,this.volume.value=-1/0):this.mute&&!t&&(this.volume.value=this._unmutedVolume)}dispose(){return super.dispose(),this.input.dispose(),this.volume.dispose(),this}}let Ky=class pa extends ot{constructor(){super($(pa.getDefaults(),arguments)),this.name="Destination",this.input=new Is({context:this.context}),this.output=new St({context:this.context}),this.volume=this.input.volume;const t=$(pa.getDefaults(),arguments);Mi(this.input,this.output,this.context.rawContext.destination),this.mute=t.mute,this._internalChannels=[this.input,this.context.rawContext.destination,this.output]}static getDefaults(){return Object.assign(ot.getDefaults(),{mute:!1,volume:0})}get mute(){return this.input.mute}set mute(t){this.input.mute=t}chain(...t){return this.input.disconnect(),t.unshift(this.input),t.push(this.output),Mi(...t),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}};ko(i=>{i.destination=new Ky({context:i})});To(i=>{i.destination.dispose()});class Jy extends vs{constructor(t){super(),this.name="TimelineValue",this._timeline=new Xe({memory:10}),this._initialValue=t}set(t,e){return this._timeline.add({value:t,time:e}),this}get(t){const e=this._timeline.get(t);return e?e.value:this._initialValue}}class ds extends ot{constructor(){super(Object.assign($(ds.getDefaults(),arguments,["context"])))}connect(t,e=0,s=0){return oc(this,t,e,s),this}}class an extends ds{constructor(){super(Object.assign($(an.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const t=$(an.getDefaults(),arguments,["mapping","length"]);Ue(t.mapping)||t.mapping instanceof Float32Array?this.curve=Float32Array.from(t.mapping):Ty(t.mapping)&&this.setMap(t.mapping,t.length)}static getDefaults(){return Object.assign(Ot.getDefaults(),{length:1024})}setMap(t,e=1024){const s=new Float32Array(e);for(let n=0,r=e;ns.includes(t));ut(e,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=t}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class Pi extends ds{constructor(){super(Object.assign($(Pi.getDefaults(),arguments,["value"]))),this.name="Pow";const t=$(Pi.getDefaults(),arguments,["value"]);this._exponentScaler=this.input=this.output=new an({context:this.context,mapping:this._expFunc(t.value),length:8192}),this._exponent=t.value}static getDefaults(){return Object.assign(ds.getDefaults(),{value:1})}_expFunc(t){return e=>Math.pow(Math.abs(e),t)}get value(){return this._exponent}set value(t){this._exponent=t,this._exponentScaler.setMap(this._expFunc(this._exponent))}dispose(){return super.dispose(),this._exponentScaler.dispose(),this}}class Ns{constructor(t,e){this.id=Ns._eventId++,this._remainderTime=0;const s=Object.assign(Ns.getDefaults(),e);this.transport=t,this.callback=s.callback,this._once=s.once,this.time=Math.floor(s.time),this._remainderTime=s.time-this.time}static getDefaults(){return{callback:yt,once:!1,time:0}}get floatTime(){return this.time+this._remainderTime}invoke(t){if(this.callback){const e=this.transport.bpm.getDurationOfTicks(1,t);this.callback(t+this._remainderTime*e),this._once&&this.transport.clear(this.id)}}dispose(){return this.callback=void 0,this}}Ns._eventId=0;class cc extends Ns{constructor(t,e){super(t,e),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const s=Object.assign(cc.getDefaults(),e);this.duration=s.duration,this._interval=s.interval,this._nextTick=s.time,this.transport.on("start",this._boundRestart),this.transport.on("loopStart",this._boundRestart),this.transport.on("ticks",this._boundRestart),this.context=this.transport.context,this._restart()}static getDefaults(){return Object.assign({},Ns.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(t){this._createEvents(t),super.invoke(t)}_createEvent(){return Hr(this._nextTick,this.floatTime+this.duration)?this.transport.scheduleOnce(this.invoke.bind(this),new An(this.context,this._nextTick).toSeconds()):-1}_createEvents(t){Hr(this._nextTick+this._interval,this.floatTime+this.duration)&&(this._nextTick+=this._interval,this._currentId=this._nextId,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new An(this.context,this._nextTick).toSeconds()))}_restart(t){this.transport.clear(this._currentId),this.transport.clear(this._nextId),this._nextTick=this.floatTime;const e=this.transport.getTicksAtTime(t);Un(e,this.time)&&(this._nextTick=this.floatTime+Math.ceil((e-this.floatTime)/this._interval)*this._interval),this._currentId=this._createEvent(),this._nextTick+=this._interval,this._nextId=this._createEvent()}dispose(){return super.dispose(),this.transport.clear(this._currentId),this.transport.clear(this._nextId),this.transport.off("start",this._boundRestart),this.transport.off("loopStart",this._boundRestart),this.transport.off("ticks",this._boundRestart),this}}class Ii extends le{constructor(){super($(Ii.getDefaults(),arguments)),this.name="Transport",this._loop=new Jy(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new Xe,this._repeatedEvents=new Xy,this._syncedSignals=[],this._swingAmount=0;const t=$(Ii.getDefaults(),arguments);this._ppq=t.ppq,this._clock=new Di({callback:this._processTick.bind(this),context:this.context,frequency:0,units:"bpm"}),this._bindClockEvents(),this.bpm=this._clock.frequency,this._clock.frequency.multiplier=t.ppq,this.bpm.setValueAtTime(t.bpm,0),Mt(this,"bpm"),this._timeSignature=t.timeSignature,this._swingTicks=t.ppq/2}static getDefaults(){return Object.assign(le.getDefaults(),{bpm:120,loopEnd:"4m",loopStart:0,ppq:192,swing:0,swingSubdivision:"8n",timeSignature:4})}_processTick(t,e){if(this._loop.get(t)&&e>=this._loopEnd&&(this.emit("loopEnd",t),this._clock.setTicksAtTime(this._loopStart,t),e=this._loopStart,this.emit("loopStart",t,this._clock.getSecondsAtTime(t)),this.emit("loop",t)),this._swingAmount>0&&e%this._ppq!==0&&e%(this._swingTicks*2)!==0){const s=e%(this._swingTicks*2)/(this._swingTicks*2),n=Math.sin(s*Math.PI)*this._swingAmount;t+=new An(this.context,this._swingTicks*2/3).toSeconds()*n}kl(!0),this._timeline.forEachAtTime(e,s=>s.invoke(t)),kl(!1)}schedule(t,e){const s=new Ns(this,{callback:t,time:new wi(this.context,e).toTicks()});return this._addEvent(s,this._timeline)}scheduleRepeat(t,e,s,n=1/0){const r=new cc(this,{callback:t,duration:new Ve(this.context,n).toTicks(),interval:new Ve(this.context,e).toTicks(),time:new wi(this.context,s).toTicks()});return this._addEvent(r,this._repeatedEvents)}scheduleOnce(t,e){const s=new Ns(this,{callback:t,once:!0,time:new wi(this.context,e).toTicks()});return this._addEvent(s,this._timeline)}clear(t){if(this._scheduledEvents.hasOwnProperty(t)){const e=this._scheduledEvents[t.toString()];e.timeline.remove(e.event),e.event.dispose(),delete this._scheduledEvents[t.toString()]}return this}_addEvent(t,e){return this._scheduledEvents[t.id.toString()]={event:t,timeline:e},e.add(t),t.id}cancel(t=0){const e=this.toTicks(t);return this._timeline.forEachFrom(e,s=>this.clear(s.id)),this._repeatedEvents.forEachFrom(e,s=>this.clear(s.id)),this}_bindClockEvents(){this._clock.on("start",(t,e)=>{e=new An(this.context,e).toSeconds(),this.emit("start",t,e)}),this._clock.on("stop",t=>{this.emit("stop",t)}),this._clock.on("pause",t=>{this.emit("pause",t)})}get state(){return this._clock.getStateAtTime(this.now())}start(t,e){this.context.resume();let s;return dt(e)&&(s=this.toTicks(e)),this._clock.start(t,s),this}stop(t){return this._clock.stop(t),this}pause(t){return this._clock.pause(t),this}toggle(t){return t=this.toSeconds(t),this._clock.getStateAtTime(t)!=="started"?this.start(t):this.stop(t),this}get timeSignature(){return this._timeSignature}set timeSignature(t){Ue(t)&&(t=t[0]/t[1]*4),this._timeSignature=t}get loopStart(){return new Ve(this.context,this._loopStart,"i").toSeconds()}set loopStart(t){this._loopStart=this.toTicks(t)}get loopEnd(){return new Ve(this.context,this._loopEnd,"i").toSeconds()}set loopEnd(t){this._loopEnd=this.toTicks(t)}get loop(){return this._loop.get(this.now())}set loop(t){this._loop.set(t,this.now())}setLoopPoints(t,e){return this.loopStart=t,this.loopEnd=e,this}get swing(){return this._swingAmount}set swing(t){this._swingAmount=t}get swingSubdivision(){return new An(this.context,this._swingTicks).toNotation()}set swingSubdivision(t){this._swingTicks=this.toTicks(t)}get position(){const t=this.now(),e=this._clock.getTicksAtTime(t);return new An(this.context,e).toBarsBeatsSixteenths()}set position(t){const e=this.toTicks(t);this.ticks=e}get seconds(){return this._clock.seconds}set seconds(t){const e=this.now(),s=this._clock.frequency.timeToTicks(t,e);this.ticks=s}get progress(){if(this.loop){const t=this.now();return(this._clock.getTicksAtTime(t)-this._loopStart)/(this._loopEnd-this._loopStart)}else return 0}get ticks(){return this._clock.ticks}set ticks(t){if(this._clock.ticks!==t){const e=this.now();if(this.state==="started"){const s=this._clock.getTicksAtTime(e),n=this._clock.frequency.getDurationOfTicks(Math.ceil(s)-s,e),r=e+n;this.emit("stop",r),this._clock.setTicksAtTime(t,r),this.emit("start",r,this._clock.getSecondsAtTime(r))}else this.emit("ticks",e),this._clock.setTicksAtTime(t,e)}}getTicksAtTime(t){return this._clock.getTicksAtTime(t)}getSecondsAtTime(t){return this._clock.getSecondsAtTime(t)}get PPQ(){return this._clock.frequency.multiplier}set PPQ(t){this._clock.frequency.multiplier=t}nextSubdivision(t){if(t=this.toTicks(t),this.state!=="started")return 0;{const e=this.now(),s=this.getTicksAtTime(e),n=t-s%t;return this._clock.nextTickTime(n,e)}}syncSignal(t,e){const s=this.now();let n=this.bpm,r=1/(60/n.getValueAtTime(s)/this.PPQ),o=[];if(t.units==="time"){const c=.015625/r,l=new St(c),u=new Pi(-1),h=new St(c);n.chain(l,u,h),n=h,r=1/r,o=[l,u,h]}e||(t.getValueAtTime(s)!==0?e=t.getValueAtTime(s)/r:e=0);const a=new St(e);return n.connect(a),a.connect(t._param),o.push(a),this._syncedSignals.push({initial:t.value,nodes:o,signal:t}),t.value=0,this}unsyncSignal(t){for(let e=this._syncedSignals.length-1;e>=0;e--){const s=this._syncedSignals[e];s.signal===t&&(s.nodes.forEach(n=>n.dispose()),s.signal.value=s.initial,this._syncedSignals.splice(e,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),nc(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}hr.mixin(Ii);ko(i=>{i.transport=new Ii({context:i})});To(i=>{i.transport.dispose()});class ee extends ot{constructor(t){super(t),this.input=void 0,this._state=new rc("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=yt,this._syncedStop=yt,this._state.memory=100,this._state.increasing=!0,this._volume=this.output=new Is({context:this.context,mute:t.mute,volume:t.volume}),this.volume=this._volume.volume,Mt(this,"volume"),this.onstop=t.onstop}static getDefaults(){return Object.assign(ot.getDefaults(),{mute:!1,onstop:yt,volume:0})}get state(){return this._synced?this.context.transport.state==="started"?this._state.getValueAtTime(this.context.transport.seconds):"stopped":this._state.getValueAtTime(this.now())}get mute(){return this._volume.mute}set mute(t){this._volume.mute=t}_clampToCurrentTime(t){return this._synced?t:Math.max(t,this.context.currentTime)}start(t,e,s){let n=xe(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(n=this._clampToCurrentTime(n),!this._synced&&this._state.getValueAtTime(n)==="started")ut(Un(n,this._state.get(n).time),"Start time must be strictly greater than previous start time"),this._state.cancel(n),this._state.setStateAtTime("started",n),this.log("restart",n),this.restart(n,e,s);else if(this.log("start",n),this._state.setStateAtTime("started",n),this._synced){const r=this._state.get(n);r&&(r.offset=this.toSeconds(In(e,0)),r.duration=s?this.toSeconds(s):void 0);const o=this.context.transport.schedule(a=>{this._start(a,e,s)},n);this._scheduled.push(o),this.context.transport.state==="started"&&this.context.transport.getSecondsAtTime(this.immediate())>n&&this._syncedStart(this.now(),this.context.transport.seconds)}else th(this.context),this._start(n,e,s);return this}stop(t){let e=xe(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(e=this._clampToCurrentTime(e),this._state.getValueAtTime(e)==="started"||dt(this._state.getNextState("started",e))){if(this.log("stop",e),!this._synced)this._stop(e);else{const s=this.context.transport.schedule(this._stop.bind(this),e);this._scheduled.push(s)}this._state.cancel(e),this._state.setStateAtTime("stopped",e)}return this}restart(t,e,s){return t=this.toSeconds(t),this._state.getValueAtTime(t)==="started"&&(this._state.cancel(t),this._restart(t,e,s)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(t,e)=>{if(Un(e,0)){const s=this._state.get(e);if(s&&s.state==="started"&&s.time!==e){const n=e-this.toSeconds(s.time);let r;s.duration&&(r=this.toSeconds(s.duration)-n),this._start(t,this.toSeconds(s.offset)+n,r)}}},this._syncedStop=t=>{const e=this.context.transport.getSecondsAtTime(Math.max(t-this.sampleTime,0));this._state.getValueAtTime(e)==="started"&&this._stop(t)},this.context.transport.on("start",this._syncedStart),this.context.transport.on("loopStart",this._syncedStart),this.context.transport.on("stop",this._syncedStop),this.context.transport.on("pause",this._syncedStop),this.context.transport.on("loopEnd",this._syncedStop)),this}unsync(){return this._synced&&(this.context.transport.off("stop",this._syncedStop),this.context.transport.off("pause",this._syncedStop),this.context.transport.off("loopEnd",this._syncedStop),this.context.transport.off("start",this._syncedStart),this.context.transport.off("loopStart",this._syncedStart)),this._synced=!1,this._scheduled.forEach(t=>this.context.transport.clear(t)),this._scheduled=[],this._state.cancel(0),this._stop(0),this}dispose(){return super.dispose(),this.onstop=yt,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class jn extends zn{constructor(){super($(jn.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const t=$(jn.getDefaults(),arguments,["url","onload"]);Ps(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new kt({context:this.context,param:this._source.playbackRate,units:"positive",value:t.playbackRate}),this.loop=t.loop,this.loopStart=t.loopStart,this.loopEnd=t.loopEnd,this._buffer=new xt(t.url,t.onload,t.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(zn.getDefaults(),{url:new xt,loop:!1,loopEnd:0,loopStart:0,onload:yt,onerror:yt,playbackRate:1})}get fadeIn(){return this._fadeIn}set fadeIn(t){this._fadeIn=t}get fadeOut(){return this._fadeOut}set fadeOut(t){this._fadeOut=t}get curve(){return this._curve}set curve(t){this._curve=t}start(t,e,s,n=1){ut(this.buffer.loaded,"buffer is either not set or not loaded");const r=this.toSeconds(t);this._startGain(r,n),this.loop?e=In(e,this.loopStart):e=In(e,0);let o=Math.max(this.toSeconds(e),0);if(this.loop){const a=this.toSeconds(this.loopEnd)||this.buffer.duration,c=this.toSeconds(this.loopStart),l=a-c;da(o,a)&&(o=(o-c)%l+c),Fe(o,this.buffer.duration)&&(o=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,Hr(o,this.buffer.duration)&&(this._sourceStarted=!0,this._source.start(r,o)),dt(s)){let a=this.toSeconds(s);a=Math.max(a,0),this.stop(r+a)}return this}_stopSource(t){!this._sourceStopped&&this._sourceStarted&&(this._sourceStopped=!0,this._source.stop(this.toSeconds(t)),this._onended())}get loopStart(){return this._source.loopStart}set loopStart(t){this._source.loopStart=this.toSeconds(t)}get loopEnd(){return this._source.loopEnd}set loopEnd(t){this._source.loopEnd=this.toSeconds(t)}get buffer(){return this._buffer}set buffer(t){this._buffer.set(t)}get loop(){return this._source.loop}set loop(t){this._source.loop=t,this._sourceStarted&&this.cancelStop()}dispose(){return super.dispose(),this._source.onended=null,this._source.disconnect(),this._buffer.dispose(),this.playbackRate.dispose(),this}}class Ni extends ee{constructor(){super($(Ni.getDefaults(),arguments,["type"])),this.name="Noise",this._source=null;const t=$(Ni.getDefaults(),arguments,["type"]);this._playbackRate=t.playbackRate,this.type=t.type,this._fadeIn=t.fadeIn,this._fadeOut=t.fadeOut}static getDefaults(){return Object.assign(ee.getDefaults(),{fadeIn:0,fadeOut:0,playbackRate:1,type:"white"})}get type(){return this._type}set type(t){if(ut(t in Tl,"Noise: invalid type: "+t),this._type!==t&&(this._type=t,this.state==="started")){const e=this.now();this._stop(e),this._start(e)}}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t,this._source&&(this._source.playbackRate.value=t)}_start(t){const e=Tl[this._type];this._source=new jn({url:e,context:this.context,fadeIn:this._fadeIn,fadeOut:this._fadeOut,loop:!0,onended:()=>this.onstop(this),playbackRate:this._playbackRate}).connect(this.output),this._source.start(this.toSeconds(t),Math.random()*(e.duration-.001))}_stop(t){this._source&&(this._source.stop(this.toSeconds(t)),this._source=null)}get fadeIn(){return this._fadeIn}set fadeIn(t){this._fadeIn=t,this._source&&(this._source.fadeIn=this._fadeIn)}get fadeOut(){return this._fadeOut}set fadeOut(t){this._fadeOut=t,this._source&&(this._source.fadeOut=this._fadeOut)}_restart(t){this._stop(t),this._start(t)}dispose(){return super.dispose(),this._source&&this._source.disconnect(),this}}const Tn=44100*5,Wo=2,os={brown:null,pink:null,white:null},Tl={get brown(){if(!os.brown){const i=[];for(let t=0;tthis.onstop(this)});this._oscillator=s,this._wave?this._oscillator.setPeriodicWave(this._wave):this._oscillator.type=this._type,this._oscillator.connect(this.output),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.start(e)}_stop(t){const e=this.toSeconds(t);this._oscillator&&this._oscillator.stop(e)}_restart(t){const e=this.toSeconds(t);return this.log("restart",e),this._oscillator&&this._oscillator.cancelStop(),this._state.cancel(e),this}syncFrequency(){return this.context.transport.syncSignal(this.frequency),this}unsyncFrequency(){return this.context.transport.unsyncSignal(this.frequency),this}_getCachedPeriodicWave(){if(this._type==="custom")return Bt._periodicWaveCache.find(e=>e.phase===this._phase&&Iy(e.partials,this._partials));{const t=Bt._periodicWaveCache.find(e=>e.type===this._type&&e.phase===this._phase);return this._partialCount=t?t.partialCount:this._partialCount,t}}get type(){return this._type}set type(t){this._type=t;const e=["sine","square","sawtooth","triangle"].indexOf(t)!==-1;if(this._phase===0&&e)this._wave=void 0,this._partialCount=0,this._oscillator!==null&&(this._oscillator.type=t);else{const s=this._getCachedPeriodicWave();if(dt(s)){const{partials:n,wave:r}=s;this._wave=r,this._partials=n,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave)}else{const[n,r]=this._getRealImaginary(t,this._phase),o=this.context.createPeriodicWave(n,r);this._wave=o,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave),Bt._periodicWaveCache.push({imag:r,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:n,type:this._type,wave:this._wave}),Bt._periodicWaveCache.length>100&&Bt._periodicWaveCache.shift()}}}get baseType(){return this._type.replace(this.partialCount.toString(),"")}set baseType(t){this.partialCount&&this._type!=="custom"&&t!=="custom"?this.type=t+this.partialCount:this.type=t}get partialCount(){return this._partialCount}set partialCount(t){je(t,0);let e=this._type;const s=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(s&&(e=s[1]),this._type!=="custom")t===0?this.type=e:this.type=e+t.toString();else{const n=new Float32Array(t);this._partials.forEach((r,o)=>n[o]=r),this._partials=Array.from(n),this.type=this._type}}_getRealImaginary(t,e){let n=2048;const r=new Float32Array(n),o=new Float32Array(n);let a=1;if(t==="custom"){if(a=this._partials.length+1,this._partialCount=this._partials.length,n=a,this._partials.length===0)return[r,o]}else{const c=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(t);c?(a=parseInt(c[2],10)+1,this._partialCount=parseInt(c[2],10),t=c[1],a=Math.max(a,2),n=a):this._partialCount=0,this._partials=[]}for(let c=1;c>1&1?-1:1):u=0,this._partials[c-1]=u;break;case"custom":u=this._partials[c-1];break;default:throw new TypeError("Oscillator: invalid type: "+t)}u!==0?(r[c]=-u*Math.sin(e*c),o[c]=u*Math.cos(e*c)):(r[c]=0,o[c]=0)}return[r,o]}_inverseFFT(t,e,s){let n=0;const r=t.length;for(let o=0;o(t+1)/2}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Rs extends Ot{constructor(){super(Object.assign($(Rs.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const t=$(Rs.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new St({context:this.context,minValue:t.minValue,maxValue:t.maxValue}),this.factor=this._param=this._mult.gain,this.factor.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(Ot.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class Ri extends ee{constructor(){super($(Ri.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new t1({context:this.context}),this._modulationNode=new St({context:this.context});const t=$(Ri.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase,type:t.type}),this.frequency=this._carrier.frequency,this.detune=this._carrier.detune,this._modulator=new Bt({context:this.context,phase:t.phase,type:t.modulationType}),this.harmonicity=new Rs({context:this.context,units:"positive",value:t.harmonicity}),this.frequency.chain(this.harmonicity,this._modulator.frequency),this._modulator.chain(this._modulationScale,this._modulationNode.gain),this._carrier.chain(this._modulationNode,this.output),Mt(this,["frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{harmonicity:1,modulationType:"square"})}_start(t){this._modulator.start(t),this._carrier.start(t)}_stop(t){this._modulator.stop(t),this._carrier.stop(t)}_restart(t){this._modulator.restart(t),this._carrier.restart(t)}get type(){return this._carrier.type}set type(t){this._carrier.type=t}get baseType(){return this._carrier.baseType}set baseType(t){this._carrier.baseType=t}get partialCount(){return this._carrier.partialCount}set partialCount(t){this._carrier.partialCount=t}get modulationType(){return this._modulator.type}set modulationType(t){this._modulator.type=t}get phase(){return this._carrier.phase}set phase(t){this._carrier.phase=t,this._modulator.phase=t}get partials(){return this._carrier.partials}set partials(t){this._carrier.partials=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return pn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this._modulationScale.dispose(),this}}class Fi extends ee{constructor(){super($(Fi.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new St({context:this.context,gain:0});const t=$(Fi.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Bt({context:this.context,detune:t.detune,frequency:0,onstop:()=>this.onstop(this),phase:t.phase,type:t.type}),this.detune=this._carrier.detune,this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this._modulator=new Bt({context:this.context,phase:t.phase,type:t.modulationType}),this.harmonicity=new Rs({context:this.context,units:"positive",value:t.harmonicity}),this.modulationIndex=new Rs({context:this.context,units:"positive",value:t.modulationIndex}),this.frequency.connect(this._carrier.frequency),this.frequency.chain(this.harmonicity,this._modulator.frequency),this.frequency.chain(this.modulationIndex,this._modulationNode),this._modulator.connect(this._modulationNode.gain),this._modulationNode.connect(this._carrier.frequency),this._carrier.connect(this.output),this.detune.connect(this._modulator.detune),Mt(this,["modulationIndex","frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{harmonicity:1,modulationIndex:2,modulationType:"square"})}_start(t){this._modulator.start(t),this._carrier.start(t)}_stop(t){this._modulator.stop(t),this._carrier.stop(t)}_restart(t){return this._modulator.restart(t),this._carrier.restart(t),this}get type(){return this._carrier.type}set type(t){this._carrier.type=t}get baseType(){return this._carrier.baseType}set baseType(t){this._carrier.baseType=t}get partialCount(){return this._carrier.partialCount}set partialCount(t){this._carrier.partialCount=t}get modulationType(){return this._modulator.type}set modulationType(t){this._modulator.type=t}get phase(){return this._carrier.phase}set phase(t){this._carrier.phase=t,this._modulator.phase=t}get partials(){return this._carrier.partials}set partials(t){this._carrier.partials=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return pn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this.modulationIndex.dispose(),this}}class Bn extends ee{constructor(){super($(Bn.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new St({context:this.context,gain:0}),this._thresh=new an({context:this.context,mapping:e=>e<=0?-1:1});const t=$(Bn.getDefaults(),arguments,["frequency","width"]);this.width=new Ot({context:this.context,units:"audioRange",value:t.width}),this._triangle=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase,type:"triangle"}),this.frequency=this._triangle.frequency,this.detune=this._triangle.detune,this._triangle.chain(this._thresh,this.output),this.width.chain(this._widthGate,this._thresh),Mt(this,["width","frequency","detune"])}static getDefaults(){return Object.assign(ee.getDefaults(),{detune:0,frequency:440,phase:0,type:"pulse",width:.2})}_start(t){t=this.toSeconds(t),this._triangle.start(t),this._widthGate.gain.setValueAtTime(1,t)}_stop(t){t=this.toSeconds(t),this._triangle.stop(t),this._widthGate.gain.cancelScheduledValues(t),this._widthGate.gain.setValueAtTime(0,t)}_restart(t){this._triangle.restart(t),this._widthGate.gain.cancelScheduledValues(t),this._widthGate.gain.setValueAtTime(1,t)}get phase(){return this._triangle.phase}set phase(t){this._triangle.phase=t}get type(){return"pulse"}get baseType(){return"pulse"}get partials(){return[]}get partialCount(){return 0}set carrierType(t){this._triangle.type=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return pn(this,t)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class Li extends ee{constructor(){super($(Li.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const t=$(Li.getDefaults(),arguments,["frequency","type","spread"]);this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this.detune=new Ot({context:this.context,units:"cents",value:t.detune}),this._spread=t.spread,this._type=t.type,this._phase=t.phase,this._partials=t.partials,this._partialCount=t.partialCount,this.count=t.count,Mt(this,["frequency","detune"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{count:3,spread:20,type:"sawtooth"})}_start(t){t=this.toSeconds(t),this._forEach(e=>e.start(t))}_stop(t){t=this.toSeconds(t),this._forEach(e=>e.stop(t))}_restart(t){this._forEach(e=>e.restart(t))}_forEach(t){for(let e=0;ee.type=t)}get spread(){return this._spread}set spread(t){if(this._spread=t,this._oscillators.length>1){const e=-t/2,s=t/(this._oscillators.length-1);this._forEach((n,r)=>n.detune.value=e+s*r)}}get count(){return this._oscillators.length}set count(t){if(je(t,1),this._oscillators.length!==t){this._forEach(e=>e.dispose()),this._oscillators=[];for(let e=0;ethis.onstop(this):yt});this.type==="custom"&&(s.partials=this._partials),this.frequency.connect(s.frequency),this.detune.connect(s.detune),s.detune.overridden=!1,s.connect(this.output),this._oscillators[e]=s}this.spread=this._spread,this.state==="started"&&this._forEach(e=>e.start())}}get phase(){return this._phase}set phase(t){this._phase=t,this._forEach((e,s)=>e.phase=this._phase+s/this.count*360)}get baseType(){return this._oscillators[0].baseType}set baseType(t){this._forEach(e=>e.baseType=t),this._type=this._oscillators[0].type}get partials(){return this._oscillators[0].partials}set partials(t){this._partials=t,this._partialCount=this._partials.length,t.length&&(this._type="custom",this._forEach(e=>e.partials=t))}get partialCount(){return this._oscillators[0].partialCount}set partialCount(t){this._partialCount=t,this._forEach(e=>e.partialCount=t),this._type=this._oscillators[0].type}asArray(t=1024){return qt(this,void 0,void 0,function*(){return pn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(t=>t.dispose()),this}}class Vi extends ee{constructor(){super($(Vi.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Rs({context:this.context,value:2});const t=$(Vi.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new Bn({context:this.context,frequency:t.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase}),this.frequency=this._modulator.frequency,this.detune=this._modulator.detune,this._modulator.chain(this._scale,this._pulse.width),this._pulse.connect(this.output),Mt(this,["modulationFrequency","frequency","detune"])}static getDefaults(){return Object.assign(ee.getDefaults(),{detune:0,frequency:440,modulationFrequency:.4,phase:0,type:"pwm"})}_start(t){t=this.toSeconds(t),this._modulator.start(t),this._pulse.start(t)}_stop(t){t=this.toSeconds(t),this._modulator.stop(t),this._pulse.stop(t)}_restart(t){this._modulator.restart(t),this._pulse.restart(t)}get type(){return"pwm"}get baseType(){return"pwm"}get partials(){return[]}get partialCount(){return 0}get phase(){return this._modulator.phase}set phase(t){this._modulator.phase=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return pn(this,t)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const wl={am:Ri,fat:Li,fm:Fi,oscillator:Bt,pulse:Bn,pwm:Vi};class cn extends ee{constructor(){super($(cn.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const t=$(cn.getDefaults(),arguments,["frequency","type"]);this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this.detune=new Ot({context:this.context,units:"cents",value:t.detune}),Mt(this,["frequency","detune"]),this.set(t)}static getDefaults(){return Object.assign(Bt.getDefaults(),Fi.getDefaults(),Ri.getDefaults(),Li.getDefaults(),Bn.getDefaults(),Vi.getDefaults())}_start(t){this._oscillator.start(t)}_stop(t){this._oscillator.stop(t)}_restart(t){return this._oscillator.restart(t),this}get type(){let t="";return["am","fm","fat"].some(e=>this._sourceType===e)&&(t=this._sourceType),t+this._oscillator.type}set type(t){t.substr(0,2)==="fm"?(this._createNewOscillator("fm"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(2)):t.substr(0,2)==="am"?(this._createNewOscillator("am"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(2)):t.substr(0,3)==="fat"?(this._createNewOscillator("fat"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(3)):t==="pwm"?(this._createNewOscillator("pwm"),this._oscillator=this._oscillator):t==="pulse"?this._createNewOscillator("pulse"):(this._createNewOscillator("oscillator"),this._oscillator=this._oscillator,this._oscillator.type=t)}get partials(){return this._oscillator.partials}set partials(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partials=t)}get partialCount(){return this._oscillator.partialCount}set partialCount(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partialCount=t)}set(t){return Reflect.has(t,"type")&&t.type&&(this.type=t.type),super.set(t),this}_createNewOscillator(t){if(t!==this._sourceType){this._sourceType=t;const e=wl[t],s=this.now();if(this._oscillator){const n=this._oscillator;n.stop(s),this.context.setTimeout(()=>n.dispose(),this.blockTime)}this._oscillator=new e({context:this.context}),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.connect(this.output),this._oscillator.onstop=()=>this.onstop(this),this.state==="started"&&this._oscillator.start(s)}}get phase(){return this._oscillator.phase}set phase(t){this._oscillator.phase=t}get sourceType(){return this._sourceType}set sourceType(t){let e="sine";this._oscillator.type!=="pwm"&&this._oscillator.type!=="pulse"&&(e=this._oscillator.type),t==="fm"?this.type="fm"+e:t==="am"?this.type="am"+e:t==="fat"?this.type="fat"+e:t==="oscillator"?this.type=e:t==="pulse"?this.type="pulse":t==="pwm"&&(this.type="pwm")}_getOscType(t,e){return t instanceof wl[e]}get baseType(){return this._oscillator.baseType}set baseType(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&t!=="pulse"&&t!=="pwm"&&(this._oscillator.baseType=t)}get width(){if(this._getOscType(this._oscillator,"pulse"))return this._oscillator.width}get count(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.count}set count(t){this._getOscType(this._oscillator,"fat")&&Ds(t)&&(this._oscillator.count=t)}get spread(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.spread}set spread(t){this._getOscType(this._oscillator,"fat")&&Ds(t)&&(this._oscillator.spread=t)}get modulationType(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.modulationType}set modulationType(t){(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))&&hs(t)&&(this._oscillator.modulationType=t)}get modulationIndex(){if(this._getOscType(this._oscillator,"fm"))return this._oscillator.modulationIndex}get harmonicity(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.harmonicity}get modulationFrequency(){if(this._getOscType(this._oscillator,"pwm"))return this._oscillator.modulationFrequency}asArray(t=1024){return qt(this,void 0,void 0,function*(){return pn(this,t)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}class lc extends Ot{constructor(){super(Object.assign($(lc.getDefaults(),arguments,["value"]))),this.override=!1,this.name="Add",this._sum=new St({context:this.context}),this.input=this._sum,this.output=this._sum,this.addend=this._param,Mi(this._constantSource,this._sum)}static getDefaults(){return Object.assign(Ot.getDefaults(),{value:0})}dispose(){return super.dispose(),this._sum.dispose(),this}}class Qr extends ds{constructor(){super(Object.assign($(Qr.getDefaults(),arguments,["min","max"]))),this.name="Scale";const t=$(Qr.getDefaults(),arguments,["min","max"]);this._mult=this.input=new Rs({context:this.context,value:t.max-t.min}),this._add=this.output=new lc({context:this.context,value:t.min}),this._min=t.min,this._max=t.max,this.input.connect(this.output)}static getDefaults(){return Object.assign(ds.getDefaults(),{max:1,min:0})}get min(){return this._min}set min(t){this._min=t,this._setRange()}get max(){return this._max}set max(t){this._max=t,this._setRange()}_setRange(){this._add.value=this._min,this._mult.value=this._max-this._min}dispose(){return super.dispose(),this._add.dispose(),this._mult.dispose(),this}}function hh(i,t=1/0){const e=new WeakMap;return function(s,n){Reflect.defineProperty(s,n,{configurable:!0,enumerable:!0,get:function(){return e.get(this)},set:function(r){je(r,i,t),e.set(this,r)}})}}function xs(i,t=1/0){const e=new WeakMap;return function(s,n){Reflect.defineProperty(s,n,{configurable:!0,enumerable:!0,get:function(){return e.get(this)},set:function(r){je(this.toSeconds(r),i,t),e.set(this,r)}})}}class Ui extends ee{constructor(){super($(Ui.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const t=$(Ui.getDefaults(),arguments,["url","onload"]);this._buffer=new xt({onload:this._onload.bind(this,t.onload),onerror:t.onerror,reverse:t.reverse,url:t.url}),this.autostart=t.autostart,this._loop=t.loop,this._loopStart=t.loopStart,this._loopEnd=t.loopEnd,this._playbackRate=t.playbackRate,this.fadeIn=t.fadeIn,this.fadeOut=t.fadeOut}static getDefaults(){return Object.assign(ee.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:yt,onerror:yt,playbackRate:1,reverse:!1})}load(t){return qt(this,void 0,void 0,function*(){return yield this._buffer.load(t),this._onload(),this})}_onload(t=yt){t(),this.autostart&&this.start()}_onSourceEnd(t){this.onstop(this),this._activeSources.delete(t),this._activeSources.size===0&&!this._synced&&this._state.getValueAtTime(this.now())==="started"&&(this._state.cancel(this.now()),this._state.setStateAtTime("stopped",this.now()))}start(t,e,s){return super.start(t,e,s),this}_start(t,e,s){this._loop?e=In(e,this._loopStart):e=In(e,0);const n=this.toSeconds(e),r=s;s=In(s,Math.max(this._buffer.duration-n,0));let o=this.toSeconds(s);o=o/this._playbackRate,t=this.toSeconds(t);const a=new jn({url:this._buffer,context:this.context,fadeIn:this.fadeIn,fadeOut:this.fadeOut,loop:this._loop,loopEnd:this._loopEnd,loopStart:this._loopStart,onended:this._onSourceEnd.bind(this),playbackRate:this._playbackRate}).connect(this.output);!this._loop&&!this._synced&&(this._state.cancel(t+o),this._state.setStateAtTime("stopped",t+o,{implicitEnd:!0})),this._activeSources.add(a),this._loop&&xe(r)?a.start(t,n):a.start(t,n,o-this.toSeconds(this.fadeOut))}_stop(t){const e=this.toSeconds(t);this._activeSources.forEach(s=>s.stop(e))}restart(t,e,s){return super.restart(t,e,s),this}_restart(t,e,s){var n;(n=[...this._activeSources].pop())===null||n===void 0||n.stop(t),this._start(t,e,s)}seek(t,e){const s=this.toSeconds(e);if(this._state.getValueAtTime(s)==="started"){const n=this.toSeconds(t);this._stop(s),this._start(s,n)}return this}setLoopPoints(t,e){return this.loopStart=t,this.loopEnd=e,this}get loopStart(){return this._loopStart}set loopStart(t){this._loopStart=t,this.buffer.loaded&&je(this.toSeconds(t),0,this.buffer.duration),this._activeSources.forEach(e=>{e.loopStart=t})}get loopEnd(){return this._loopEnd}set loopEnd(t){this._loopEnd=t,this.buffer.loaded&&je(this.toSeconds(t),0,this.buffer.duration),this._activeSources.forEach(e=>{e.loopEnd=t})}get buffer(){return this._buffer}set buffer(t){this._buffer.set(t)}get loop(){return this._loop}set loop(t){if(this._loop!==t&&(this._loop=t,this._activeSources.forEach(e=>{e.loop=t}),t)){const e=this._state.getNextState("stopped",this.now());e&&this._state.cancel(e.time)}}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t;const e=this.now(),s=this._state.getNextState("stopped",e);s&&s.implicitEnd&&(this._state.cancel(s.time),this._activeSources.forEach(n=>n.cancelStop())),this._activeSources.forEach(n=>{n.playbackRate.setValueAtTime(t,e)})}get reverse(){return this._buffer.reverse}set reverse(t){this._buffer.reverse=t}get loaded(){return this._buffer.loaded}dispose(){return super.dispose(),this._activeSources.forEach(t=>t.dispose()),this._activeSources.clear(),this._buffer.dispose(),this}}Be([xs(0)],Ui.prototype,"fadeIn",void 0);Be([xs(0)],Ui.prototype,"fadeOut",void 0);class e1 extends ds{constructor(){super(...arguments),this.name="GainToAudio",this._norm=new an({context:this.context,mapping:t=>Math.abs(t)*2-1}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Me extends ot{constructor(){super($(Me.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new Ot({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const t=$(Me.getDefaults(),arguments,["attack","decay","sustain","release"]);this.attack=t.attack,this.decay=t.decay,this.sustain=t.sustain,this.release=t.release,this.attackCurve=t.attackCurve,this.releaseCurve=t.releaseCurve,this.decayCurve=t.decayCurve}static getDefaults(){return Object.assign(ot.getDefaults(),{attack:.01,attackCurve:"linear",decay:.1,decayCurve:"exponential",release:1,releaseCurve:"exponential",sustain:.5})}get value(){return this.getValueAtTime(this.now())}_getCurve(t,e){if(hs(t))return t;{let s;for(s in Sr)if(Sr[s][e]===t)return s;return t}}_setCurve(t,e,s){if(hs(s)&&Reflect.has(Sr,s)){const n=Sr[s];Ks(n)?t!=="_decayCurve"&&(this[t]=n[e]):this[t]=n}else if(Ue(s)&&t!=="_decayCurve")this[t]=s;else throw new Error("Envelope: invalid curve: "+s)}get attackCurve(){return this._getCurve(this._attackCurve,"In")}set attackCurve(t){this._setCurve("_attackCurve","In",t)}get releaseCurve(){return this._getCurve(this._releaseCurve,"Out")}set releaseCurve(t){this._setCurve("_releaseCurve","Out",t)}get decayCurve(){return this._getCurve(this._decayCurve,"Out")}set decayCurve(t){this._setCurve("_decayCurve","Out",t)}triggerAttack(t,e=1){this.log("triggerAttack",t,e),t=this.toSeconds(t);let n=this.toSeconds(this.attack);const r=this.toSeconds(this.decay),o=this.getValueAtTime(t);if(o>0){const a=1/n;n=(1-o)/a}if(n0){const s=this.toSeconds(this.release);s{let t,e;const s=[];for(t=0;t<128;t++)s[t]=Math.sin(t/(128-1)*(Math.PI/2));const n=[],r=6.4;for(t=0;t<128-1;t++){e=t/(128-1);const d=Math.sin(e*(Math.PI*2)*r-Math.PI/2)+1;n[t]=d/10+e*.83}n[128-1]=1;const o=[],a=5;for(t=0;t<128;t++)o[t]=Math.ceil(t/(128-1)*a)/a;const c=[];for(t=0;t<128;t++)e=t/(128-1),c[t]=.5*(1-Math.cos(Math.PI*e));const l=[];for(t=0;t<128;t++){e=t/(128-1);const d=Math.pow(e,3)*4+.2,p=Math.cos(d*Math.PI*2*e);l[t]=Math.abs(p*(1-e))}function u(d){const p=new Array(d.length);for(let _=0;_this._original_triggerRelease(e);const t=$(ln.getDefaults(),arguments);this._volume=this.output=new Is({context:this.context,volume:t.volume}),this.volume=this._volume.volume,Mt(this,"volume")}static getDefaults(){return Object.assign(ot.getDefaults(),{volume:0})}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",0),this.context.transport.on("stop",this._syncedRelease),this.context.transport.on("pause",this._syncedRelease),this.context.transport.on("loopEnd",this._syncedRelease)),this}_syncState(){let t=!1;return this._synced||(this._synced=!0,t=!0),t}_syncMethod(t,e){const s=this["_original_"+t]=this[t];this[t]=(...n)=>{const r=n[e],o=this.context.transport.schedule(a=>{n[e]=a,s.apply(this,n)},r);this._scheduledEvents.push(o)}}unsync(){return this._scheduledEvents.forEach(t=>this.context.transport.clear(t)),this._scheduledEvents=[],this._synced&&(this._synced=!1,this.triggerAttack=this._original_triggerAttack,this.triggerRelease=this._original_triggerRelease,this.context.transport.off("stop",this._syncedRelease),this.context.transport.off("pause",this._syncedRelease),this.context.transport.off("loopEnd",this._syncedRelease)),this}triggerAttackRelease(t,e,s,n){const r=this.toSeconds(s),o=this.toSeconds(e);return this.triggerAttack(t,r,n),this.triggerRelease(r+o),this}dispose(){return super.dispose(),this._volume.dispose(),this.unsync(),this._scheduledEvents=[],this}}class fs extends ln{constructor(){super($(fs.getDefaults(),arguments));const t=$(fs.getDefaults(),arguments);this.portamento=t.portamento,this.onsilence=t.onsilence}static getDefaults(){return Object.assign(ln.getDefaults(),{detune:0,onsilence:yt,portamento:0})}triggerAttack(t,e,s=1){this.log("triggerAttack",t,e,s);const n=this.toSeconds(e);return this._triggerEnvelopeAttack(n,s),this.setNote(t,n),this}triggerRelease(t){this.log("triggerRelease",t);const e=this.toSeconds(t);return this._triggerEnvelopeRelease(e),this}setNote(t,e){const s=this.toSeconds(e),n=t instanceof Ee?t.toFrequency():t;if(this.portamento>0&&this.getLevelAtTime(s)>.05){const r=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(n,r,s)}else this.frequency.setValueAtTime(n,s);return this}}Be([xs(0)],fs.prototype,"portamento",void 0);class Co extends Me{constructor(){super($(Co.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new St({context:this.context,gain:0}),this.output=this._gainNode,this.input=this._gainNode,this._sig.connect(this._gainNode.gain),this.output=this._gainNode,this.input=this._gainNode}dispose(){return super.dispose(),this._gainNode.dispose(),this}}class zi extends fs{constructor(){super($(zi.getDefaults(),arguments)),this.name="Synth";const t=$(zi.getDefaults(),arguments);this.oscillator=new cn(Object.assign({context:this.context,detune:t.detune,onstop:()=>this.onsilence(this)},t.oscillator)),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.envelope=new Co(Object.assign({context:this.context},t.envelope)),this.oscillator.chain(this.envelope,this.output),Mt(this,["oscillator","frequency","detune","envelope"])}static getDefaults(){return Object.assign(fs.getDefaults(),{envelope:Object.assign(On(Me.getDefaults(),Object.keys(ot.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(On(cn.getDefaults(),[...Object.keys(ee.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(t,e){if(this.envelope.triggerAttack(t,e),this.oscillator.start(t),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),n=this.toSeconds(this.envelope.decay);this.oscillator.stop(t+s+n)}}_triggerEnvelopeRelease(t){this.envelope.triggerRelease(t),this.oscillator.stop(t+this.toSeconds(this.envelope.release))}getLevelAtTime(t){return t=this.toSeconds(t),this.envelope.getValueAtTime(t)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this}}class ji extends ot{constructor(){super($(ji.getDefaults(),arguments,["frequency","type"])),this.name="BiquadFilter";const t=$(ji.getDefaults(),arguments,["frequency","type"]);this._filter=this.context.createBiquadFilter(),this.input=this.output=this._filter,this.Q=new kt({context:this.context,units:"number",value:t.Q,param:this._filter.Q}),this.frequency=new kt({context:this.context,units:"frequency",value:t.frequency,param:this._filter.frequency}),this.detune=new kt({context:this.context,units:"cents",value:t.detune,param:this._filter.detune}),this.gain=new kt({context:this.context,units:"decibels",convert:!1,value:t.gain,param:this._filter.gain}),this.type=t.type}static getDefaults(){return Object.assign(ot.getDefaults(),{Q:1,type:"lowpass",frequency:350,detune:0,gain:0})}get type(){return this._filter.type}set type(t){ut(["lowpass","highpass","bandpass","lowshelf","highshelf","notch","allpass","peaking"].indexOf(t)!==-1,`Invalid filter type: ${t}`),this._filter.type=t}getFrequencyResponse(t=128){const e=new Float32Array(t);for(let o=0;os.type=t)}get rolloff(){return this._rolloff}set rolloff(t){const e=Ds(t)?t:parseInt(t,10),s=[-12,-24,-48,-96];let n=s.indexOf(e);ut(n!==-1,`rolloff can only be ${s.join(", ")}`),n+=1,this._rolloff=e,this.input.disconnect(),this._filters.forEach(r=>r.disconnect()),this._filters=new Array(n);for(let r=0;r1);return this._filters.forEach(()=>{e.getFrequencyResponse(t).forEach((r,o)=>s[o]*=r)}),e.dispose(),s}dispose(){return super.dispose(),this._filters.forEach(t=>{t.dispose()}),nc(this,["detune","frequency","gain","Q"]),this.frequency.dispose(),this.Q.dispose(),this.detune.dispose(),this.gain.dispose(),this}}class Bi extends Me{constructor(){super($(Bi.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="FrequencyEnvelope";const t=$(Bi.getDefaults(),arguments,["attack","decay","sustain","release"]);this._octaves=t.octaves,this._baseFrequency=this.toFrequency(t.baseFrequency),this._exponent=this.input=new Pi({context:this.context,value:t.exponent}),this._scale=this.output=new Qr({context:this.context,min:this._baseFrequency,max:this._baseFrequency*Math.pow(2,this._octaves)}),this._sig.chain(this._exponent,this._scale)}static getDefaults(){return Object.assign(Me.getDefaults(),{baseFrequency:200,exponent:1,octaves:4})}get baseFrequency(){return this._baseFrequency}set baseFrequency(t){const e=this.toFrequency(t);je(e,0),this._baseFrequency=e,this._scale.min=this._baseFrequency,this.octaves=this._octaves}get octaves(){return this._octaves}set octaves(t){this._octaves=t,this._scale.max=this._baseFrequency*Math.pow(2,t)}get exponent(){return this._exponent.value}set exponent(t){this._exponent.value=t}dispose(){return super.dispose(),this._exponent.dispose(),this._scale.dispose(),this}}class qi extends fs{constructor(){super($(qi.getDefaults(),arguments)),this.name="MonoSynth";const t=$(qi.getDefaults(),arguments);this.oscillator=new cn(Object.assign(t.oscillator,{context:this.context,detune:t.detune,onstop:()=>this.onsilence(this)})),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.filter=new qn(Object.assign(t.filter,{context:this.context})),this.filterEnvelope=new Bi(Object.assign(t.filterEnvelope,{context:this.context})),this.envelope=new Co(Object.assign(t.envelope,{context:this.context})),this.oscillator.chain(this.filter,this.envelope,this.output),this.filterEnvelope.connect(this.filter.frequency),Mt(this,["oscillator","frequency","detune","filter","filterEnvelope","envelope"])}static getDefaults(){return Object.assign(fs.getDefaults(),{envelope:Object.assign(On(Me.getDefaults(),Object.keys(ot.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.9}),filter:Object.assign(On(qn.getDefaults(),Object.keys(ot.getDefaults())),{Q:1,rolloff:-12,type:"lowpass"}),filterEnvelope:Object.assign(On(Bi.getDefaults(),Object.keys(ot.getDefaults())),{attack:.6,baseFrequency:200,decay:.2,exponent:2,octaves:3,release:2,sustain:.5}),oscillator:Object.assign(On(cn.getDefaults(),Object.keys(ee.getDefaults())),{type:"sawtooth"})})}_triggerEnvelopeAttack(t,e=1){if(this.envelope.triggerAttack(t,e),this.filterEnvelope.triggerAttack(t),this.oscillator.start(t),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),n=this.toSeconds(this.envelope.decay);this.oscillator.stop(t+s+n)}}_triggerEnvelopeRelease(t){this.envelope.triggerRelease(t),this.filterEnvelope.triggerRelease(t),this.oscillator.stop(t+this.toSeconds(this.envelope.release))}getLevelAtTime(t){return t=this.toSeconds(t),this.envelope.getValueAtTime(t)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this.filterEnvelope.dispose(),this.filter.dispose(),this}}class Wi extends zi{constructor(){super($(Wi.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const t=$(Wi.getDefaults(),arguments);this.pitchDecay=t.pitchDecay,this.octaves=t.octaves,Mt(this,["oscillator","envelope"])}static getDefaults(){return Pn(fs.getDefaults(),zi.getDefaults(),{envelope:{attack:.001,attackCurve:"exponential",decay:.4,release:1.4,sustain:.01},octaves:10,oscillator:{type:"sine"},pitchDecay:.05})}setNote(t,e){const s=this.toSeconds(e),n=this.toFrequency(t instanceof Ee?t.toFrequency():t),r=n*this.octaves;return this.oscillator.frequency.setValueAtTime(r,s),this.oscillator.frequency.exponentialRampToValueAtTime(n,s+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}Be([hh(0)],Wi.prototype,"octaves",void 0);Be([xs(0)],Wi.prototype,"pitchDecay",void 0);const dh=new Set;function uc(i){dh.add(i)}function fh(i,t){const e=`registerProcessor("${i}", ${t})`;dh.add(e)}const s1=` + */class vs{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...t){(this.debug||Js&&this.toString()===Js.TONE_DEBUG_CLASS)&&by(this,...t)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}vs.version=au;const ec=1e-6;function Un(i,t){return i>t+ec}function da(i,t){return Un(i,t)||Fe(i,t)}function Hr(i,t){return i+ecthis.memory){const e=this.length-this.memory;this._timeline.splice(0,e)}return this}remove(t){const e=this._timeline.indexOf(t);return e!==-1&&this._timeline.splice(e,1),this}get(t,e="time"){const s=this._search(t,e);return s!==-1?this._timeline[s]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(t,e="time"){const s=this._search(t,e);return s+10&&this._timeline[e-1].time=0?this._timeline[s-1]:null}cancel(t){if(this._timeline.length>1){let e=this._search(t);if(e>=0)if(Fe(this._timeline[e].time,t)){for(let s=e;s>=0&&Fe(this._timeline[s].time,t);s--)e=s;this._timeline=this._timeline.slice(0,e)}else this._timeline=this._timeline.slice(0,e+1);else this._timeline=[]}else this._timeline.length===1&&da(this._timeline[0].time,t)&&(this._timeline=[]);return this}cancelBefore(t){const e=this._search(t);return e>=0&&(this._timeline=this._timeline.slice(e+1)),this}previousEvent(t){const e=this._timeline.indexOf(t);return e>0?this._timeline[e-1]:null}_search(t,e="time"){if(this._timeline.length===0)return-1;let s=0;const n=this._timeline.length;let r=n;if(n>0&&this._timeline[n-1][e]<=t)return n-1;for(;s=0&&this._timeline[s].time>=t;)s--;return this._iterate(e,s+1),this}forEachAtTime(t,e){const s=this._search(t);if(s!==-1&&Fe(this._timeline[s].time,t)){let n=s;for(let r=s;r>=0&&Fe(this._timeline[r].time,t);r--)n=r;this._iterate(r=>{e(r)},n,s)}return this}dispose(){return super.dispose(),this._timeline=[],this}};const ih=[];function ko(i){ih.push(i)}function Ry(i){ih.forEach(t=>t(i))}const rh=[];function To(i){rh.push(i)}function Fy(i){rh.forEach(t=>t(i))}class ur extends vs{constructor(){super(...arguments),this.name="Emitter"}on(t,e){return t.split(/\W+/).forEach(n=>{xe(this._events)&&(this._events={}),this._events.hasOwnProperty(n)||(this._events[n]=[]),this._events[n].push(e)}),this}once(t,e){const s=(...n)=>{e(...n),this.off(t,s)};return this.on(t,s),this}off(t,e){return t.split(/\W+/).forEach(n=>{if(xe(this._events)&&(this._events={}),this._events.hasOwnProperty(n))if(xe(e))this._events[n]=[];else{const r=this._events[n];for(let o=r.length-1;o>=0;o--)r[o]===e&&r.splice(o,1)}}),this}emit(t,...e){if(this._events&&this._events.hasOwnProperty(t)){const s=this._events[t].slice(0);for(let n=0,r=s.length;n{const s=Object.getOwnPropertyDescriptor(ur.prototype,e);Object.defineProperty(t.prototype,e,s)})}dispose(){return super.dispose(),this._events=void 0,this}}class oh extends ur{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}let sc=class ah extends oh{constructor(){var t,e;super(),this.name="Context",this._constants=new Map,this._timeouts=new Ze,this._timeoutIds=0,this._initialized=!1,this._closeStarted=!1,this.isOffline=!1,this._workletPromise=null;const s=$(ah.getDefaults(),arguments,["context"]);s.context?(this._context=s.context,this._latencyHint=((t=arguments[0])===null||t===void 0?void 0:t.latencyHint)||""):(this._context=Cy({latencyHint:s.latencyHint}),this._latencyHint=s.latencyHint),this._ticker=new Ay(this.emit.bind(this,"tick"),s.clockSource,s.updateInterval,this._context.sampleRate),this.on("tick",this._timeoutLoop.bind(this)),this._context.onstatechange=()=>{this.emit("statechange",this.state)},this[!((e=arguments[0])===null||e===void 0)&&e.hasOwnProperty("updateInterval")?"_lookAhead":"lookAhead"]=s.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){return this._initialized||(Ry(this),this._initialized=!0),this}createAnalyser(){return this._context.createAnalyser()}createOscillator(){return this._context.createOscillator()}createBufferSource(){return this._context.createBufferSource()}createBiquadFilter(){return this._context.createBiquadFilter()}createBuffer(t,e,s){return this._context.createBuffer(t,e,s)}createChannelMerger(t){return this._context.createChannelMerger(t)}createChannelSplitter(t){return this._context.createChannelSplitter(t)}createConstantSource(){return this._context.createConstantSource()}createConvolver(){return this._context.createConvolver()}createDelay(t){return this._context.createDelay(t)}createDynamicsCompressor(){return this._context.createDynamicsCompressor()}createGain(){return this._context.createGain()}createIIRFilter(t,e){return this._context.createIIRFilter(t,e)}createPanner(){return this._context.createPanner()}createPeriodicWave(t,e,s){return this._context.createPeriodicWave(t,e,s)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(t){return ut(Sn(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(t)}createMediaElementSource(t){return ut(Sn(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(t)}createMediaStreamDestination(){return ut(Sn(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamDestination()}decodeAudioData(t){return this._context.decodeAudioData(t)}get currentTime(){return this._context.currentTime}get state(){return this._context.state}get sampleRate(){return this._context.sampleRate}get listener(){return this.initialize(),this._listener}set listener(t){ut(!this._initialized,"The listener cannot be set after initialization."),this._listener=t}get transport(){return this.initialize(),this._transport}set transport(t){ut(!this._initialized,"The transport cannot be set after initialization."),this._transport=t}get draw(){return this.initialize(),this._draw}set draw(t){ut(!this._initialized,"Draw cannot be set after initialization."),this._draw=t}get destination(){return this.initialize(),this._destination}set destination(t){ut(!this._initialized,"The destination cannot be set after initialization."),this._destination=t}createAudioWorkletNode(t,e){return Oy(this.rawContext,t,e)}addAudioWorkletModule(t){return qt(this,void 0,void 0,function*(){ut(dt(this.rawContext.audioWorklet),"AudioWorkletNode is only available in a secure context (https or localhost)"),this._workletPromise||(this._workletPromise=this.rawContext.audioWorklet.addModule(t)),yield this._workletPromise})}workletsAreReady(){return qt(this,void 0,void 0,function*(){(yield this._workletPromise)?this._workletPromise:Promise.resolve()})}get updateInterval(){return this._ticker.updateInterval}set updateInterval(t){this._ticker.updateInterval=t}get clockSource(){return this._ticker.type}set clockSource(t){this._ticker.type=t}get lookAhead(){return this._lookAhead}set lookAhead(t){this._lookAhead=t,this.updateInterval=t?t/2:.01}get latencyHint(){return this._latencyHint}get rawContext(){return this._context}now(){return this._context.currentTime+this._lookAhead}immediate(){return this._context.currentTime}resume(){return Sn(this._context)?this._context.resume():Promise.resolve()}close(){return qt(this,void 0,void 0,function*(){Sn(this._context)&&this.state!=="closed"&&!this._closeStarted&&(this._closeStarted=!0,yield this._context.close()),this._initialized&&Fy(this)})}getConstant(t){if(this._constants.has(t))return this._constants.get(t);{const e=this._context.createBuffer(1,128,this._context.sampleRate),s=e.getChannelData(0);for(let r=0;rthis._constants[t].disconnect()),this.close(),this}_timeoutLoop(){const t=this.now();let e=this._timeouts.peek();for(;this._timeouts.length&&e&&e.time<=t;)e.callback(),this._timeouts.shift(),e=this._timeouts.peek()}setTimeout(t,e){this._timeoutIds++;const s=this.now();return this._timeouts.add({callback:t,id:this._timeoutIds,time:s+e}),this._timeoutIds}clearTimeout(t){return this._timeouts.forEach(e=>{e.id===t&&this._timeouts.remove(e)}),this}clearInterval(t){return this.clearTimeout(t)}setInterval(t,e){const s=++this._timeoutIds,n=()=>{const r=this.now();this._timeouts.add({callback:()=>{t(),n()},id:s,time:r+e})};return n(),s}};class Ly extends oh{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(t,e,s){return{}}createChannelMerger(t){return{}}createChannelSplitter(t){return{}}createConstantSource(){return{}}createConvolver(){return{}}createDelay(t){return{}}createDynamicsCompressor(){return{}}createGain(){return{}}createIIRFilter(t,e){return{}}createPanner(){return{}}createPeriodicWave(t,e,s){return{}}createStereoPanner(){return{}}createWaveShaper(){return{}}createMediaStreamSource(t){return{}}createMediaElementSource(t){return{}}createMediaStreamDestination(){return{}}decodeAudioData(t){return Promise.resolve({})}createAudioWorkletNode(t,e){return{}}get rawContext(){return{}}addAudioWorkletModule(t){return qt(this,void 0,void 0,function*(){return Promise.resolve()})}resume(){return Promise.resolve()}setTimeout(t,e){return 0}clearTimeout(t){return this}setInterval(t,e){return 0}clearInterval(t){return this}getConstant(t){return{}}get currentTime(){return 0}get state(){return{}}get sampleRate(){return 0}get listener(){return{}}get transport(){return{}}get draw(){return{}}set draw(t){}get destination(){return{}}set destination(t){}now(){return 0}immediate(){return 0}}function Mt(i,t){Ue(t)?t.forEach(e=>Mt(i,e)):Object.defineProperty(i,t,{enumerable:!0,writable:!1})}function nc(i,t){Ue(t)?t.forEach(e=>nc(i,e)):Object.defineProperty(i,t,{writable:!0})}const yt=()=>{};class xt extends vs{constructor(){super(),this.name="ToneAudioBuffer",this.onload=yt;const t=$(xt.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=t.reverse,this.onload=t.onload,hs(t.url)?this.load(t.url).catch(t.onerror):t.url&&this.set(t.url)}static getDefaults(){return{onerror:yt,onload:yt,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:Le().sampleRate}set(t){return t instanceof xt?t.loaded?this._buffer=t.get():t.onload=()=>{this.set(t),this.onload(this)}:this._buffer=t,this._reversed&&this._reverse(),this}get(){return this._buffer}load(t){return qt(this,void 0,void 0,function*(){const e=xt.load(t).then(s=>{this.set(s),this.onload(this)});xt.downloads.push(e);try{yield e}finally{const s=xt.downloads.indexOf(e);xt.downloads.splice(s,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(t){const e=Ue(t)&&t[0].length>0,s=e?t.length:1,n=e?t[0].length:t.length,r=Le(),o=r.createBuffer(s,n,r.sampleRate),a=!e&&s===1?[t]:t;for(let c=0;cn/s),this.fromArray(e)}return this}toArray(t){if(Ds(t))return this.getChannelData(t);if(this.numberOfChannels===1)return this.toArray(0);{const e=[];for(let s=0;s0}get duration(){return this._buffer?this._buffer.duration:0}get length(){return this._buffer?this._buffer.length:0}get numberOfChannels(){return this._buffer?this._buffer.numberOfChannels:0}get reverse(){return this._reversed}set reverse(t){this._reversed!==t&&(this._reversed=t,this._reverse())}static fromArray(t){return new xt().fromArray(t)}static fromUrl(t){return qt(this,void 0,void 0,function*(){return yield new xt().load(t)})}static load(t){return qt(this,void 0,void 0,function*(){const e=t.match(/\[([^\]\[]+\|.+)\]$/);if(e){const c=e[1].split("|");let l=c[0];for(const u of c)if(xt.supportsType(u)){l=u;break}t=t.replace(e[0],l)}const s=xt.baseUrl===""||xt.baseUrl.endsWith("/")?xt.baseUrl:xt.baseUrl+"/",n=document.createElement("a");n.href=s+t,n.pathname=(n.pathname+n.hash).split("/").map(encodeURIComponent).join("/");const r=yield fetch(n.href);if(!r.ok)throw new Error(`could not load url: ${t}`);const o=yield r.arrayBuffer();return yield Le().decodeAudioData(o)})}static supportsType(t){const e=t.split("."),s=e[e.length-1];return document.createElement("audio").canPlayType("audio/"+s)!==""}static loaded(){return qt(this,void 0,void 0,function*(){for(yield Promise.resolve();xt.downloads.length;)yield xt.downloads[0]})}}xt.baseUrl="";xt.downloads=[];class wo extends sc{constructor(){super({clockSource:"offline",context:Pr(arguments[0])?arguments[0]:Sy(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:Pr(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=Pr(arguments[0])?arguments[0].length/arguments[0].sampleRate:arguments[1]}now(){return this._currentTime}get currentTime(){return this._currentTime}_renderClock(t){return qt(this,void 0,void 0,function*(){let e=0;for(;this._duration-this._currentTime>=0;){this.emit("tick"),this._currentTime+=128/this.sampleRate,e++;const s=Math.floor(this.sampleRate/128);t&&e%s===0&&(yield new Promise(n=>setTimeout(n,1)))}})}render(t=!0){return qt(this,void 0,void 0,function*(){yield this.workletsAreReady(),yield this._renderClock(t);const e=yield this._context.startRendering();return new xt(e)})}close(){return Promise.resolve()}}const ch=new Ly;let Xs=ch;function Le(){return Xs===ch&&Ey&&Vy(new sc),Xs}function Vy(i,t=!1){t&&Xs.dispose(),Sn(i)?Xs=new sc(i):Pr(i)?Xs=new wo(i):Xs=i}function Uy(){return Xs.resume()}if(Js&&!Js.TONE_SILENCE_LOGGING){const t=` * Tone.js v${au} * `;console.log(`%c${t}`,"background: #000; color: #fff")}function zy(i){return Math.pow(10,i/20)}function jy(i){return 20*(Math.log(i)/Math.LN10)}function lh(i){return Math.pow(2,i/12)}let bo=440;function By(){return bo}function qy(i){bo=i}function fa(i){return Math.round(uh(i))}function uh(i){return 69+12*Math.log2(i/bo)}function Wy(i){return bo*Math.pow(2,(i-69)/12)}class ic extends vs{constructor(t,e,s){super(),this.defaultUnits="s",this._val=e,this._units=s,this.context=t,this._expressions=this._getExpressions()}_getExpressions(){return{hz:{method:t=>this._frequencyToUnits(parseFloat(t)),regexp:/^(\d+(?:\.\d+)?)hz$/i},i:{method:t=>this._ticksToUnits(parseInt(t,10)),regexp:/^(\d+)i$/i},m:{method:t=>this._beatsToUnits(parseInt(t,10)*this._getTimeSignature()),regexp:/^(\d+)m$/i},n:{method:(t,e)=>{const s=parseInt(t,10),n=e==="."?1.5:1;return s===1?this._beatsToUnits(this._getTimeSignature())*n:this._beatsToUnits(4/s)*n},regexp:/^(\d+)n(\.?)$/i},number:{method:t=>this._expressions[this.defaultUnits].method.call(this,t),regexp:/^(\d+(?:\.\d+)?)$/},s:{method:t=>this._secondsToUnits(parseFloat(t)),regexp:/^(\d+(?:\.\d+)?)s$/},samples:{method:t=>parseInt(t,10)/this.context.sampleRate,regexp:/^(\d+)samples$/},t:{method:t=>{const e=parseInt(t,10);return this._beatsToUnits(8/(Math.floor(e)*3))},regexp:/^(\d+)t$/i},tr:{method:(t,e,s)=>{let n=0;return t&&t!=="0"&&(n+=this._beatsToUnits(this._getTimeSignature()*parseFloat(t))),e&&e!=="0"&&(n+=this._beatsToUnits(parseFloat(e))),s&&s!=="0"&&(n+=this._beatsToUnits(parseFloat(s)/4)),n},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof ic&&this.fromType(this._val),xe(this._val))return this._noArg();if(hs(this._val)&&xe(this._units)){for(const t in this._expressions)if(this._expressions[t].regexp.test(this._val.trim())){this._units=t;break}}else if(Ks(this._val)){let t=0;for(const e in this._val)if(dt(this._val[e])){const s=this._val[e],n=new this.constructor(this.context,e).valueOf()*s;t+=n}return t}if(dt(this._units)){const t=this._expressions[this._units],e=this._val.toString().trim().match(t.regexp);return e?t.method.apply(this,e.slice(1)):t.method.call(this,this._val)}else return hs(this._val)?parseFloat(this._val):this._val}_frequencyToUnits(t){return 1/t}_beatsToUnits(t){return 60/this._getBpm()*t}_secondsToUnits(t){return t}_ticksToUnits(t){return t*this._beatsToUnits(1)/this._getPPQ()}_noArg(){return this._now()}_getBpm(){return this.context.transport.bpm.value}_getTimeSignature(){return this.context.transport.timeSignature}_getPPQ(){return this.context.transport.PPQ}fromType(t){switch(this._units=void 0,this.defaultUnits){case"s":this._val=t.toSeconds();break;case"i":this._val=t.toTicks();break;case"hz":this._val=t.toFrequency();break;case"midi":this._val=t.toMidi();break}return this}toFrequency(){return 1/this.toSeconds()}toSamples(){return this.toSeconds()*this.context.sampleRate}toMilliseconds(){return this.toSeconds()*1e3}}class Ve extends ic{constructor(){super(...arguments),this.name="TimeClass"}_getExpressions(){return Object.assign(super._getExpressions(),{now:{method:t=>this._now()+new this.constructor(this.context,t).valueOf(),regexp:/^\+(.+)/},quantize:{method:t=>{const e=new Ve(this.context,t).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(e))},regexp:/^@(.+)/}})}quantize(t,e=1){const s=new this.constructor(this.context,t).valueOf(),n=this.valueOf(),a=Math.round(n/s)*s-n;return n+a*e}toNotation(){const t=this.toSeconds(),e=["1m"];for(let r=1;r<9;r++){const o=Math.pow(2,r);e.push(o+"n."),e.push(o+"n"),e.push(o+"t")}e.push("0");let s=e[0],n=new Ve(this.context,e[0]).toSeconds();return e.forEach(r=>{const o=new Ve(this.context,r).toSeconds();Math.abs(o-t)3&&(n=parseFloat(parseFloat(r).toFixed(3))),[s,e,n].join(":")}toTicks(){const t=this._beatsToUnits(1);return this.valueOf()/t*this._getPPQ()}toSeconds(){return this.valueOf()}toMidi(){return fa(this.toFrequency())}_now(){return this.context.now()}}class Ee extends Ve{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return By()}static set A4(t){qy(t)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(t){return this.defaultUnits==="midi"?t:Ee.mtof(t)}},note:{regexp:/^([a-g]{1}(?:b|#|##|x|bb|###|#x|x#|bbb)?)(-?[0-9]+)/i,method(t,e){const n=Hy[t.toLowerCase()]+(parseInt(e,10)+1)*12;return this.defaultUnits==="midi"?n:Ee.mtof(n)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(t,e,s){let n=1;return t&&t!=="0"&&(n*=this._beatsToUnits(this._getTimeSignature()*parseFloat(t))),e&&e!=="0"&&(n*=this._beatsToUnits(parseFloat(e))),s&&s!=="0"&&(n*=this._beatsToUnits(parseFloat(s)/4)),n}}})}transpose(t){return new Ee(this.context,this.valueOf()*lh(t))}harmonize(t){return t.map(e=>this.transpose(e))}toMidi(){return fa(this.valueOf())}toNote(){const t=this.toFrequency(),e=Math.log2(t/Ee.A4);let s=Math.round(12*e)+57;const n=Math.floor(s/12);return n<0&&(s+=-12*n),Yy[s%12]+n.toString()}toSeconds(){return 1/super.toSeconds()}toTicks(){const t=this._beatsToUnits(1),e=this.valueOf()/t;return Math.floor(e*this._getPPQ())}_noArg(){return 0}_frequencyToUnits(t){return t}_ticksToUnits(t){return 1/(t*60/(this._getBpm()*this._getPPQ()))}_beatsToUnits(t){return 1/super._beatsToUnits(t)}_secondsToUnits(t){return 1/t}static mtof(t){return Wy(t)}static ftom(t){return fa(t)}}const Hy={cbbb:-3,cbb:-2,cb:-1,c:0,"c#":1,cx:2,"c##":2,"c###":3,"cx#":3,"c#x":3,dbbb:-1,dbb:0,db:1,d:2,"d#":3,dx:4,"d##":4,"d###":5,"dx#":5,"d#x":5,ebbb:1,ebb:2,eb:3,e:4,"e#":5,ex:6,"e##":6,"e###":7,"ex#":7,"e#x":7,fbbb:2,fbb:3,fb:4,f:5,"f#":6,fx:7,"f##":7,"f###":8,"fx#":8,"f#x":8,gbbb:4,gbb:5,gb:6,g:7,"g#":8,gx:9,"g##":9,"g###":10,"gx#":10,"g#x":10,abbb:6,abb:7,ab:8,a:9,"a#":10,ax:11,"a##":11,"a###":12,"ax#":12,"a#x":12,bbbb:8,bbb:9,bb:10,b:11,"b#":12,bx:13,"b##":13,"b###":14,"bx#":14,"b#x":14},Yy=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class wi extends Ve{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class le extends vs{constructor(){super();const t=$(le.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=t.context}static getDefaults(){return{context:Le()}}now(){return this.context.currentTime+this.context.lookAhead}immediate(){return this.context.currentTime}get sampleTime(){return 1/this.context.sampleRate}get blockTime(){return 128/this.context.sampleRate}toSeconds(t){return wy(t),new Ve(this.context,t).toSeconds()}toFrequency(t){return new Ee(this.context,t).toFrequency()}toTicks(t){return new wi(this.context,t).toTicks()}_getPartialProperties(t){const e=this.get();return Object.keys(e).forEach(s=>{xe(t[s])&&delete e[s]}),e}get(){const t=Iy(this);return Object.keys(t).forEach(e=>{if(Reflect.has(this,e)){const s=this[e];dt(s)&&dt(s.value)&&dt(s.setValueAtTime)?t[e]=s.value:s instanceof le?t[e]=s._getPartialProperties(t[e]):Ue(s)||Ds(s)||hs(s)||Ty(s)?t[e]=s:delete t[e]}}),t}set(t){return Object.keys(t).forEach(e=>{Reflect.has(this,e)&&dt(this[e])&&(this[e]&&dt(this[e].value)&&dt(this[e].setValueAtTime)?this[e].value!==t[e]&&(this[e].value=t[e]):this[e]instanceof le?this[e].set(t[e]):this[e]=t[e])}),this}}class rc extends Ze{constructor(t="stopped"){super(),this.name="StateTimeline",this._initial=t,this.setStateAtTime(this._initial,0)}getValueAtTime(t){const e=this.get(t);return e!==null?e.state:this._initial}setStateAtTime(t,e,s){return je(e,0),this.add(Object.assign({},s,{state:t,time:e})),this}getLastState(t,e){const s=this._search(e);for(let n=s;n>=0;n--){const r=this._timeline[n];if(r.state===t)return r}}getNextState(t,e){const s=this._search(e);if(s!==-1)for(let n=s;n0,"timeConstant must be a number greater than 0");const r=this.toSeconds(e);return this._assertRange(n),ut(isFinite(n)&&isFinite(r),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(t)}, ${JSON.stringify(e)}`),this._events.add({constant:s,time:r,type:"setTargetAtTime",value:n}),this.log(this.units,"setTargetAtTime",t,r,s),this._param.setTargetAtTime(n,r,s),this}setValueCurveAtTime(t,e,s,n=1){s=this.toSeconds(s),e=this.toSeconds(e);const r=this._fromType(t[0])*n;this.setValueAtTime(this._toType(r),e);const o=s/(t.length-1);for(let a=1;a{n.type==="cancelScheduledValues"?t.cancelScheduledValues(n.time):n.type==="setTargetAtTime"?t.setTargetAtTime(n.value,n.time,n.constant):t[n.type](n.value,n.time)}),this}setParam(t){ut(this._swappable,"The Param must be assigned as 'swappable' in the constructor");const e=this.input;return e.disconnect(this._param),this.apply(t),this._param=t,e.connect(this._param),this}dispose(){return super.dispose(),this._events.dispose(),this}get defaultValue(){return this._toType(this._param.defaultValue)}_exponentialApproach(t,e,s,n,r){return s+(e-s)*Math.exp(-(r-t)/n)}_linearInterpolate(t,e,s,n,r){return e+(n-e)*((r-t)/(s-t))}_exponentialInterpolate(t,e,s,n,r){return e*Math.pow(n/e,(r-t)/(s-t))}}class ot extends le{constructor(){super(...arguments),this._internalChannels=[]}get numberOfInputs(){return dt(this.input)?on(this.input)||this.input instanceof kt?1:this.input.numberOfInputs:0}get numberOfOutputs(){return dt(this.output)?this.output.numberOfOutputs:0}_isAudioNode(t){return dt(t)&&(t instanceof ot||Os(t))}_getInternalNodes(){const t=this._internalChannels.slice(0);return this._isAudioNode(this.input)&&t.push(this.input),this._isAudioNode(this.output)&&this.input!==this.output&&t.push(this.output),t}_setChannelProperties(t){this._getInternalNodes().forEach(s=>{s.channelCount=t.channelCount,s.channelCountMode=t.channelCountMode,s.channelInterpretation=t.channelInterpretation})}_getChannelProperties(){const t=this._getInternalNodes();ut(t.length>0,"ToneAudioNode does not have any internal nodes");const e=t[0];return{channelCount:e.channelCount,channelCountMode:e.channelCountMode,channelInterpretation:e.channelInterpretation}}get channelCount(){return this._getChannelProperties().channelCount}set channelCount(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelCount:t}))}get channelCountMode(){return this._getChannelProperties().channelCountMode}set channelCountMode(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelCountMode:t}))}get channelInterpretation(){return this._getChannelProperties().channelInterpretation}set channelInterpretation(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelInterpretation:t}))}connect(t,e=0,s=0){return Ps(this,t,e,s),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return tc("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(t,e=0,s=0){return Gy(this,t,e,s),this}chain(...t){return Mi(this,...t),this}fan(...t){return t.forEach(e=>this.connect(e)),this}dispose(){return super.dispose(),dt(this.input)&&(this.input instanceof ot?this.input.dispose():Os(this.input)&&this.input.disconnect()),dt(this.output)&&(this.output instanceof ot?this.output.dispose():Os(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Mi(...i){const t=i.shift();i.reduce((e,s)=>(e instanceof ot?e.connect(s):Os(e)&&Ps(e,s),s),t)}function Ps(i,t,e=0,s=0){for(ut(dt(i),"Cannot connect from undefined node"),ut(dt(t),"Cannot connect to undefined node"),(t instanceof ot||Os(t))&&ut(t.numberOfInputs>0,"Cannot connect to node with no inputs"),ut(i.numberOfOutputs>0,"Cannot connect from node with no outputs");t instanceof ot||t instanceof kt;)dt(t.input)&&(t=t.input);for(;i instanceof ot;)dt(i.output)&&(i=i.output);on(t)?i.connect(t,e):i.connect(t,e,s)}function Gy(i,t,e=0,s=0){if(dt(t))for(;t instanceof ot;)t=t.input;for(;!Os(i);)dt(i.output)&&(i=i.output);on(t)?i.disconnect(t,e):Os(t)?i.disconnect(t,e,s):i.disconnect()}class St extends ot{constructor(){super($(St.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const t=$(St.getDefaults(),arguments,["gain","units"]);this.gain=new kt({context:this.context,convert:t.convert,param:this._gainNode.gain,units:t.units,value:t.gain,minValue:t.minValue,maxValue:t.maxValue}),Mt(this,"gain")}static getDefaults(){return Object.assign(ot.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class zn extends ot{constructor(t){super(t),this.onended=yt,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new St({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(e){const s=this.toSeconds(e);return this._startTime!==-1&&s>=this._startTime&&(this._stopTime===-1||s<=this._stopTime)?"started":"stopped"},this._fadeIn=t.fadeIn,this._fadeOut=t.fadeOut,this._curve=t.curve,this.onended=t.onended}static getDefaults(){return Object.assign(ot.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:yt})}_startGain(t,e=1){ut(this._startTime===-1,"Source cannot be started more than once");const s=this.toSeconds(this._fadeIn);return this._startTime=t+s,this._startTime=Math.max(this._startTime,this.context.currentTime),s>0?(this._gainNode.gain.setValueAtTime(0,t),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(e,t+s):this._gainNode.gain.exponentialApproachValueAtTime(e,t,s)):this._gainNode.gain.setValueAtTime(e,t),this}stop(t){return this.log("stop",t),this._stopGain(this.toSeconds(t)),this}_stopGain(t){ut(this._startTime!==-1,"'start' must be called before 'stop'"),this.cancelStop();const e=this.toSeconds(this._fadeOut);return this._stopTime=this.toSeconds(t)+e,this._stopTime=Math.max(this._stopTime,this.now()),e>0?this._curve==="linear"?this._gainNode.gain.linearRampTo(0,e,t):this._gainNode.gain.targetRampTo(0,e,t):(this._gainNode.gain.cancelAndHoldAtTime(t),this._gainNode.gain.setValueAtTime(0,t)),this.context.clearTimeout(this._timeout),this._timeout=this.context.setTimeout(()=>{const s=this._curve==="exponential"?e*2:0;this._stopSource(this.now()+s),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==yt&&(this.onended(this),this.onended=yt,!this.context.isOffline)){const t=()=>this.dispose();typeof window.requestIdleCallback<"u"?window.requestIdleCallback(t):setTimeout(t,1e3)}}get state(){return this.getStateAtTime(this.now())}cancelStop(){return this.log("cancelStop"),ut(this._startTime!==-1,"Source is not started"),this._gainNode.gain.cancelScheduledValues(this._startTime+this.sampleTime),this.context.clearTimeout(this._timeout),this._stopTime=-1,this}dispose(){return super.dispose(),this._gainNode.dispose(),this.onended=yt,this}}class Yr extends zn{constructor(){super($(Yr.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const t=$(Yr.getDefaults(),arguments,["offset"]);Ps(this._source,this._gainNode),this.offset=new kt({context:this.context,convert:t.convert,param:this._source.offset,units:t.units,value:t.offset,minValue:t.minValue,maxValue:t.maxValue})}static getDefaults(){return Object.assign(zn.getDefaults(),{convert:!0,offset:1,units:"number"})}start(t){const e=this.toSeconds(t);return this.log("start",e),this._startGain(e),this._source.start(e),this}_stopSource(t){this._source.stop(t)}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._source.disconnect(),this.offset.dispose(),this}}class Ot extends ot{constructor(){super($(Ot.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const t=$(Ot.getDefaults(),arguments,["value","units"]);this.output=this._constantSource=new Yr({context:this.context,convert:t.convert,offset:t.value,units:t.units,minValue:t.minValue,maxValue:t.maxValue}),this._constantSource.start(0),this.input=this._param=this._constantSource.offset}static getDefaults(){return Object.assign(ot.getDefaults(),{convert:!0,units:"number",value:0})}connect(t,e=0,s=0){return oc(this,t,e,s),this}dispose(){return super.dispose(),this._param.dispose(),this._constantSource.dispose(),this}setValueAtTime(t,e){return this._param.setValueAtTime(t,e),this}getValueAtTime(t){return this._param.getValueAtTime(t)}setRampPoint(t){return this._param.setRampPoint(t),this}linearRampToValueAtTime(t,e){return this._param.linearRampToValueAtTime(t,e),this}exponentialRampToValueAtTime(t,e){return this._param.exponentialRampToValueAtTime(t,e),this}exponentialRampTo(t,e,s){return this._param.exponentialRampTo(t,e,s),this}linearRampTo(t,e,s){return this._param.linearRampTo(t,e,s),this}targetRampTo(t,e,s){return this._param.targetRampTo(t,e,s),this}exponentialApproachValueAtTime(t,e,s){return this._param.exponentialApproachValueAtTime(t,e,s),this}setTargetAtTime(t,e,s){return this._param.setTargetAtTime(t,e,s),this}setValueCurveAtTime(t,e,s,n){return this._param.setValueCurveAtTime(t,e,s,n),this}cancelScheduledValues(t){return this._param.cancelScheduledValues(t),this}cancelAndHoldAtTime(t){return this._param.cancelAndHoldAtTime(t),this}rampTo(t,e,s){return this._param.rampTo(t,e,s),this}get value(){return this._param.value}set value(t){this._param.value=t}get convert(){return this._param.convert}set convert(t){this._param.convert=t}get units(){return this._param.units}get overridden(){return this._param.overridden}set overridden(t){this._param.overridden=t}get maxValue(){return this._param.maxValue}get minValue(){return this._param.minValue}apply(t){return this._param.apply(t),this}}function oc(i,t,e,s){(t instanceof kt||on(t)||t instanceof Ot&&t.override)&&(t.cancelScheduledValues(0),t.setValueAtTime(0,0),t instanceof Ot&&(t.overridden=!0)),Ps(i,t,e,s)}class Gr extends kt{constructor(){super($(Gr.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new Ze(1/0),this._multiplier=1;const t=$(Gr.getDefaults(),arguments,["value"]);this._multiplier=t.multiplier,this._events.cancel(0),this._events.add({ticks:0,time:0,type:"setValueAtTime",value:this._fromType(t.value)}),this.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(kt.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(t,e,s){e=this.toSeconds(e),this.setRampPoint(e);const n=this._fromType(t),r=this._events.get(e),o=Math.round(Math.max(1/s,1));for(let a=0;a<=o;a++){const c=s*a+e,l=this._exponentialApproach(r.time,r.value,n,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}setValueAtTime(t,e){const s=this.toSeconds(e);super.setValueAtTime(t,e);const n=this._events.get(s),r=this._events.previousEvent(n),o=this._getTicksUntilEvent(r,s);return n.ticks=Math.max(o,0),this}linearRampToValueAtTime(t,e){const s=this.toSeconds(e);super.linearRampToValueAtTime(t,e);const n=this._events.get(s),r=this._events.previousEvent(n),o=this._getTicksUntilEvent(r,s);return n.ticks=Math.max(o,0),this}exponentialRampToValueAtTime(t,e){e=this.toSeconds(e);const s=this._fromType(t),n=this._events.get(e),r=Math.round(Math.max((e-n.time)*10,1)),o=(e-n.time)/r;for(let a=0;a<=r;a++){const c=o*a+n.time,l=this._exponentialInterpolate(n.time,n.value,e,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}_getTicksUntilEvent(t,e){if(t===null)t={ticks:0,time:0,type:"setValueAtTime",value:0};else if(xe(t.ticks)){const o=this._events.previousEvent(t);t.ticks=this._getTicksUntilEvent(o,t.time)}const s=this._fromType(this.getValueAtTime(t.time));let n=this._fromType(this.getValueAtTime(e));const r=this._events.get(e);return r&&r.time===e&&r.type==="setValueAtTime"&&(n=this._fromType(this.getValueAtTime(e-this.sampleTime))),.5*(e-t.time)*(s+n)+t.ticks}getTicksAtTime(t){const e=this.toSeconds(t),s=this._events.get(e);return Math.max(this._getTicksUntilEvent(s,e),0)}getDurationOfTicks(t,e){const s=this.toSeconds(e),n=this.getTicksAtTime(e);return this.getTimeOfTick(n+t)-s}getTimeOfTick(t){const e=this._events.get(t,"ticks"),s=this._events.getAfter(t,"ticks");if(e&&e.ticks===t)return e.time;if(e&&s&&s.type==="linearRampToValueAtTime"&&e.value!==s.value){const n=this._fromType(this.getValueAtTime(e.time)),o=(this._fromType(this.getValueAtTime(s.time))-n)/(s.time-e.time),a=Math.sqrt(Math.pow(n,2)-2*o*(e.ticks-t)),c=(-n+a)/o,l=(-n-a)/o;return(c>0?c:l)+e.time}else return e?e.value===0?1/0:e.time+(t-e.ticks)/e.value:t/this._initialValue}ticksToTime(t,e){return this.getDurationOfTicks(t,e)}timeToTicks(t,e){const s=this.toSeconds(e),n=this.toSeconds(t),r=this.getTicksAtTime(s);return this.getTicksAtTime(s+n)-r}_fromType(t){return this.units==="bpm"&&this.multiplier?1/(60/t/this.multiplier):super._fromType(t)}_toType(t){return this.units==="bpm"&&this.multiplier?t/this.multiplier*60:super._toType(t)}get multiplier(){return this._multiplier}set multiplier(t){const e=this.value;this._multiplier=t,this.cancelScheduledValues(0),this.setValueAtTime(e,0)}}class $r extends Ot{constructor(){super($($r.getDefaults(),arguments,["value"])),this.name="TickSignal";const t=$($r.getDefaults(),arguments,["value"]);this.input=this._param=new Gr({context:this.context,convert:t.convert,multiplier:t.multiplier,param:this._constantSource.offset,units:t.units,value:t.value})}static getDefaults(){return Object.assign(Ot.getDefaults(),{multiplier:1,units:"hertz",value:1})}ticksToTime(t,e){return this._param.ticksToTime(t,e)}timeToTicks(t,e){return this._param.timeToTicks(t,e)}getTimeOfTick(t){return this._param.getTimeOfTick(t)}getDurationOfTicks(t,e){return this._param.getDurationOfTicks(t,e)}getTicksAtTime(t){return this._param.getTicksAtTime(t)}get multiplier(){return this._param.multiplier}set multiplier(t){this._param.multiplier=t}dispose(){return super.dispose(),this._param.dispose(),this}}class Xr extends le{constructor(){super($(Xr.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new rc,this._tickOffset=new Ze,this._ticksAtTime=new Ze,this._secondsAtTime=new Ze;const t=$(Xr.getDefaults(),arguments,["frequency"]);this.frequency=new $r({context:this.context,units:t.units,value:t.frequency}),Mt(this,"frequency"),this._state.setStateAtTime("stopped",0),this.setTicksAtTime(0,0)}static getDefaults(){return Object.assign({frequency:1,units:"hertz"},le.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(t,e){const s=this.toSeconds(t);return this._state.getValueAtTime(s)!=="started"&&(this._state.setStateAtTime("started",s),dt(e)&&this.setTicksAtTime(e,s),this._ticksAtTime.cancel(s),this._secondsAtTime.cancel(s)),this}stop(t){const e=this.toSeconds(t);if(this._state.getValueAtTime(e)==="stopped"){const s=this._state.get(e);s&&s.time>0&&(this._tickOffset.cancel(s.time),this._state.cancel(s.time))}return this._state.cancel(e),this._state.setStateAtTime("stopped",e),this.setTicksAtTime(0,e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}pause(t){const e=this.toSeconds(t);return this._state.getValueAtTime(e)==="started"&&(this._state.setStateAtTime("paused",e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e)),this}cancel(t){return t=this.toSeconds(t),this._state.cancel(t),this._tickOffset.cancel(t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}getTicksAtTime(t){const e=this.toSeconds(t),s=this._state.getLastState("stopped",e),n=this._ticksAtTime.get(e),r={state:"paused",time:e};this._state.add(r);let o=n||s,a=n?n.ticks:0,c=null;return this._state.forEachBetween(o.time,e+this.sampleTime,l=>{let u=o.time;const h=this._tickOffset.get(l.time);h&&h.time>=o.time&&(a=h.ticks,u=h.time),o.state==="started"&&l.state!=="started"&&(a+=this.frequency.getTicksAtTime(l.time)-this.frequency.getTicksAtTime(u),l.time!=r.time&&(c={state:l.state,time:l.time,ticks:a})),o=l}),this._state.remove(r),c&&this._ticksAtTime.add(c),a}get ticks(){return this.getTicksAtTime(this.now())}set ticks(t){this.setTicksAtTime(t,this.now())}get seconds(){return this.getSecondsAtTime(this.now())}set seconds(t){const e=this.now(),s=this.frequency.timeToTicks(t,e);this.setTicksAtTime(s,e)}getSecondsAtTime(t){t=this.toSeconds(t);const e=this._state.getLastState("stopped",t),s={state:"paused",time:t};this._state.add(s);const n=this._secondsAtTime.get(t);let r=n||e,o=n?n.seconds:0,a=null;return this._state.forEachBetween(r.time,t+this.sampleTime,c=>{let l=r.time;const u=this._tickOffset.get(c.time);u&&u.time>=r.time&&(o=u.seconds,l=u.time),r.state==="started"&&c.state!=="started"&&(o+=c.time-l,c.time!=s.time&&(a={state:c.state,time:c.time,seconds:o})),r=c}),this._state.remove(s),a&&this._secondsAtTime.add(a),o}setTicksAtTime(t,e){return e=this.toSeconds(e),this._tickOffset.cancel(e),this._tickOffset.add({seconds:this.frequency.getDurationOfTicks(t,e),ticks:t,time:e}),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}getStateAtTime(t){return t=this.toSeconds(t),this._state.getValueAtTime(t)}getTimeOfTick(t,e=this.now()){const s=this._tickOffset.get(e),n=this._state.get(e),r=Math.max(s.time,n.time),o=this.frequency.getTicksAtTime(r)+t-s.ticks;return this.frequency.getTimeOfTick(o)}forEachTickBetween(t,e,s){let n=this._state.get(t);this._state.forEachBetween(t,e,o=>{n&&n.state==="started"&&o.state!=="started"&&this.forEachTickBetween(Math.max(n.time,t),o.time-this.sampleTime,s),n=o});let r=null;if(n&&n.state==="started"){const o=Math.max(n.time,t),a=this.frequency.getTicksAtTime(o),c=this.frequency.getTicksAtTime(n.time),l=a-c;let u=Math.ceil(l)-l;u=Fe(u,1)?0:u;let h=this.frequency.getTimeOfTick(a+u);for(;h{switch(s.state){case"started":const n=this._tickSource.getTicksAtTime(s.time);this.emit("start",s.time,n);break;case"stopped":s.time!==0&&this.emit("stop",s.time);break;case"paused":this.emit("pause",s.time);break}}),this._tickSource.forEachTickBetween(t,e,(s,n)=>{this.callback(s,n)}))}getStateAtTime(t){const e=this.toSeconds(t);return this._state.getValueAtTime(e)}dispose(){return super.dispose(),this.context.off("tick",this._boundLoop),this._tickSource.dispose(),this._state.dispose(),this}}ur.mixin(Di);class ac extends vs{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const t=$(ac.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=t.baseUrl,Object.keys(t.urls).forEach(e=>{this._loadingCount++;const s=t.urls[e];this.add(e,s,this._bufferLoaded.bind(this,t.onload),t.onerror)})}static getDefaults(){return{baseUrl:"",onerror:yt,onload:yt,urls:{}}}has(t){return this._buffers.has(t.toString())}get(t){return ut(this.has(t),`ToneAudioBuffers has no buffer named: ${t}`),this._buffers.get(t.toString())}_bufferLoaded(t){this._loadingCount--,this._loadingCount===0&&t&&t()}get loaded(){return Array.from(this._buffers).every(([t,e])=>e.loaded)}add(t,e,s=yt,n=yt){return hs(e)?(this.baseUrl&&e.trim().substring(0,11).toLowerCase()==="data:audio/"&&(this.baseUrl=""),this._buffers.set(t.toString(),new xt(this.baseUrl+e,s,n))):this._buffers.set(t.toString(),new xt(e,s,n)),this}dispose(){return super.dispose(),this._buffers.forEach(t=>t.dispose()),this._buffers.clear(),this}}class An extends wi{constructor(){super(...arguments),this.name="Ticks",this.defaultUnits="i"}_now(){return this.context.transport.ticks}_beatsToUnits(t){return this._getPPQ()*t}_secondsToUnits(t){return Math.floor(t/(60/this._getBpm())*this._getPPQ())}_ticksToUnits(t){return t}toTicks(){return this.valueOf()}toSeconds(){return this.valueOf()/this._getPPQ()*(60/this._getBpm())}}class $y extends le{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new Ze,this._boundDrawLoop=this._drawLoop.bind(this),this._animationFrame=-1}schedule(t,e){return this._events.add({callback:t,time:this.toSeconds(e)}),this._events.length===1&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop)),this}cancel(t){return this._events.cancel(this.toSeconds(t)),this}_drawLoop(){const t=this.context.currentTime;for(;this._events.length&&this._events.peek().time-this.anticipation<=t;){const e=this._events.shift();e&&t-e.time<=this.expiration&&e.callback()}this._events.length>0&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop))}dispose(){return super.dispose(),this._events.dispose(),cancelAnimationFrame(this._animationFrame),this}}ko(i=>{i.draw=new $y({context:i})});To(i=>{i.draw.dispose()});class Xy extends vs{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(t){ut(dt(t.time),"Events must have a time property"),ut(dt(t.duration),"Events must have a duration parameter"),t.time=t.time.valueOf();let e=new Zy(t.time,t.time+t.duration,t);for(this._root===null?this._root=e:this._root.insert(e),this._length++;e!==null;)e.updateHeight(),e.updateMax(),this._rebalance(e),e=e.parent;return this}remove(t){if(this._root!==null){const e=[];this._root.search(t.time,e);for(const s of e)if(s.event===t){this._removeNode(s),this._length--;break}}return this}get length(){return this._length}cancel(t){return this.forEachFrom(t,e=>this.remove(e)),this}_setRoot(t){this._root=t,this._root!==null&&(this._root.parent=null)}_replaceNodeInParent(t,e){t.parent!==null?(t.isLeftChild()?t.parent.left=e:t.parent.right=e,this._rebalance(t.parent)):this._setRoot(e)}_removeNode(t){if(t.left===null&&t.right===null)this._replaceNodeInParent(t,null);else if(t.right===null)this._replaceNodeInParent(t,t.left);else if(t.left===null)this._replaceNodeInParent(t,t.right);else{const e=t.getBalance();let s,n=null;if(e>0)if(t.left.right===null)s=t.left,s.right=t.right,n=s;else{for(s=t.left.right;s.right!==null;)s=s.right;s.parent&&(s.parent.right=s.left,n=s.parent,s.left=t.left,s.right=t.right)}else if(t.right.left===null)s=t.right,s.left=t.left,n=s;else{for(s=t.right.left;s.left!==null;)s=s.left;s.parent&&(s.parent.left=s.right,n=s.parent,s.left=t.left,s.right=t.right)}t.parent!==null?t.isLeftChild()?t.parent.left=s:t.parent.right=s:this._setRoot(s),n&&this._rebalance(n)}t.dispose()}_rotateLeft(t){const e=t.parent,s=t.isLeftChild(),n=t.right;n&&(t.right=n.left,n.left=t),e!==null?s?e.left=n:e.right=n:this._setRoot(n)}_rotateRight(t){const e=t.parent,s=t.isLeftChild(),n=t.left;n&&(t.left=n.right,n.right=t),e!==null?s?e.left=n:e.right=n:this._setRoot(n)}_rebalance(t){const e=t.getBalance();e>1&&t.left?t.left.getBalance()<0?this._rotateLeft(t.left):this._rotateRight(t):e<-1&&t.right&&(t.right.getBalance()>0?this._rotateRight(t.right):this._rotateLeft(t))}get(t){if(this._root!==null){const e=[];if(this._root.search(t,e),e.length>0){let s=e[0];for(let n=1;ns.low&&(s=e[n]);return s.event}}return null}forEach(t){if(this._root!==null){const e=[];this._root.traverse(s=>e.push(s)),e.forEach(s=>{s.event&&t(s.event)})}return this}forEachAtTime(t,e){if(this._root!==null){const s=[];this._root.search(t,s),s.forEach(n=>{n.event&&e(n.event)})}return this}forEachFrom(t,e){if(this._root!==null){const s=[];this._root.searchAfter(t,s),s.forEach(n=>{n.event&&e(n.event)})}return this}dispose(){return super.dispose(),this._root!==null&&this._root.traverse(t=>t.dispose()),this._root=null,this}}class Zy{constructor(t,e,s){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=s,this.low=t,this.high=e,this.max=this.high}insert(t){t.low<=this.low?this.left===null?this.left=t:this.left.insert(t):this.right===null?this.right=t:this.right.insert(t)}search(t,e){t>this.max||(this.left!==null&&this.left.search(t,e),this.low<=t&&this.high>t&&e.push(this),!(this.low>t)&&this.right!==null&&this.right.search(t,e))}searchAfter(t,e){this.low>=t&&(e.push(this),this.left!==null&&this.left.searchAfter(t,e)),this.right!==null&&this.right.searchAfter(t,e)}traverse(t){t(this),this.left!==null&&this.left.traverse(t),this.right!==null&&this.right.traverse(t)}updateHeight(){this.left!==null&&this.right!==null?this.height=Math.max(this.left.height,this.right.height)+1:this.right!==null?this.height=this.right.height+1:this.left!==null?this.height=this.left.height+1:this.height=0}updateMax(){this.max=this.high,this.left!==null&&(this.max=Math.max(this.max,this.left.max)),this.right!==null&&(this.max=Math.max(this.max,this.right.max))}getBalance(){let t=0;return this.left!==null&&this.right!==null?t=this.left.height-this.right.height:this.left!==null?t=this.left.height+1:this.right!==null&&(t=-(this.right.height+1)),t}isLeftChild(){return this.parent!==null&&this.parent.left===this}get left(){return this._left}set left(t){this._left=t,t!==null&&(t.parent=this),this.updateHeight(),this.updateMax()}get right(){return this._right}set right(t){this._right=t,t!==null&&(t.parent=this),this.updateHeight(),this.updateMax()}dispose(){this.parent=null,this._left=null,this._right=null,this.event=null}}class Is extends ot{constructor(){super($(Is.getDefaults(),arguments,["volume"])),this.name="Volume";const t=$(Is.getDefaults(),arguments,["volume"]);this.input=this.output=new St({context:this.context,gain:t.volume,units:"decibels"}),this.volume=this.output.gain,Mt(this,"volume"),this._unmutedVolume=t.volume,this.mute=t.mute}static getDefaults(){return Object.assign(ot.getDefaults(),{mute:!1,volume:0})}get mute(){return this.volume.value===-1/0}set mute(t){!this.mute&&t?(this._unmutedVolume=this.volume.value,this.volume.value=-1/0):this.mute&&!t&&(this.volume.value=this._unmutedVolume)}dispose(){return super.dispose(),this.input.dispose(),this.volume.dispose(),this}}let Qy=class pa extends ot{constructor(){super($(pa.getDefaults(),arguments)),this.name="Destination",this.input=new Is({context:this.context}),this.output=new St({context:this.context}),this.volume=this.input.volume;const t=$(pa.getDefaults(),arguments);Mi(this.input,this.output,this.context.rawContext.destination),this.mute=t.mute,this._internalChannels=[this.input,this.context.rawContext.destination,this.output]}static getDefaults(){return Object.assign(ot.getDefaults(),{mute:!1,volume:0})}get mute(){return this.input.mute}set mute(t){this.input.mute=t}chain(...t){return this.input.disconnect(),t.unshift(this.input),t.push(this.output),Mi(...t),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}};ko(i=>{i.destination=new Qy({context:i})});To(i=>{i.destination.dispose()});class Ky extends vs{constructor(t){super(),this.name="TimelineValue",this._timeline=new Ze({memory:10}),this._initialValue=t}set(t,e){return this._timeline.add({value:t,time:e}),this}get(t){const e=this._timeline.get(t);return e?e.value:this._initialValue}}class ds extends ot{constructor(){super(Object.assign($(ds.getDefaults(),arguments,["context"])))}connect(t,e=0,s=0){return oc(this,t,e,s),this}}class an extends ds{constructor(){super(Object.assign($(an.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const t=$(an.getDefaults(),arguments,["mapping","length"]);Ue(t.mapping)||t.mapping instanceof Float32Array?this.curve=Float32Array.from(t.mapping):ky(t.mapping)&&this.setMap(t.mapping,t.length)}static getDefaults(){return Object.assign(Ot.getDefaults(),{length:1024})}setMap(t,e=1024){const s=new Float32Array(e);for(let n=0,r=e;ns.includes(t));ut(e,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=t}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class Pi extends ds{constructor(){super(Object.assign($(Pi.getDefaults(),arguments,["value"]))),this.name="Pow";const t=$(Pi.getDefaults(),arguments,["value"]);this._exponentScaler=this.input=this.output=new an({context:this.context,mapping:this._expFunc(t.value),length:8192}),this._exponent=t.value}static getDefaults(){return Object.assign(ds.getDefaults(),{value:1})}_expFunc(t){return e=>Math.pow(Math.abs(e),t)}get value(){return this._exponent}set value(t){this._exponent=t,this._exponentScaler.setMap(this._expFunc(this._exponent))}dispose(){return super.dispose(),this._exponentScaler.dispose(),this}}class Ns{constructor(t,e){this.id=Ns._eventId++,this._remainderTime=0;const s=Object.assign(Ns.getDefaults(),e);this.transport=t,this.callback=s.callback,this._once=s.once,this.time=Math.floor(s.time),this._remainderTime=s.time-this.time}static getDefaults(){return{callback:yt,once:!1,time:0}}get floatTime(){return this.time+this._remainderTime}invoke(t){if(this.callback){const e=this.transport.bpm.getDurationOfTicks(1,t);this.callback(t+this._remainderTime*e),this._once&&this.transport.clear(this.id)}}dispose(){return this.callback=void 0,this}}Ns._eventId=0;class cc extends Ns{constructor(t,e){super(t,e),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const s=Object.assign(cc.getDefaults(),e);this.duration=s.duration,this._interval=s.interval,this._nextTick=s.time,this.transport.on("start",this._boundRestart),this.transport.on("loopStart",this._boundRestart),this.transport.on("ticks",this._boundRestart),this.context=this.transport.context,this._restart()}static getDefaults(){return Object.assign({},Ns.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(t){this._createEvents(t),super.invoke(t)}_createEvent(){return Hr(this._nextTick,this.floatTime+this.duration)?this.transport.scheduleOnce(this.invoke.bind(this),new An(this.context,this._nextTick).toSeconds()):-1}_createEvents(t){Hr(this._nextTick+this._interval,this.floatTime+this.duration)&&(this._nextTick+=this._interval,this._currentId=this._nextId,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new An(this.context,this._nextTick).toSeconds()))}_restart(t){this.transport.clear(this._currentId),this.transport.clear(this._nextId),this._nextTick=this.floatTime;const e=this.transport.getTicksAtTime(t);Un(e,this.time)&&(this._nextTick=this.floatTime+Math.ceil((e-this.floatTime)/this._interval)*this._interval),this._currentId=this._createEvent(),this._nextTick+=this._interval,this._nextId=this._createEvent()}dispose(){return super.dispose(),this.transport.clear(this._currentId),this.transport.clear(this._nextId),this.transport.off("start",this._boundRestart),this.transport.off("loopStart",this._boundRestart),this.transport.off("ticks",this._boundRestart),this}}class Ii extends le{constructor(){super($(Ii.getDefaults(),arguments)),this.name="Transport",this._loop=new Ky(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new Ze,this._repeatedEvents=new Xy,this._syncedSignals=[],this._swingAmount=0;const t=$(Ii.getDefaults(),arguments);this._ppq=t.ppq,this._clock=new Di({callback:this._processTick.bind(this),context:this.context,frequency:0,units:"bpm"}),this._bindClockEvents(),this.bpm=this._clock.frequency,this._clock.frequency.multiplier=t.ppq,this.bpm.setValueAtTime(t.bpm,0),Mt(this,"bpm"),this._timeSignature=t.timeSignature,this._swingTicks=t.ppq/2}static getDefaults(){return Object.assign(le.getDefaults(),{bpm:120,loopEnd:"4m",loopStart:0,ppq:192,swing:0,swingSubdivision:"8n",timeSignature:4})}_processTick(t,e){if(this._loop.get(t)&&e>=this._loopEnd&&(this.emit("loopEnd",t),this._clock.setTicksAtTime(this._loopStart,t),e=this._loopStart,this.emit("loopStart",t,this._clock.getSecondsAtTime(t)),this.emit("loop",t)),this._swingAmount>0&&e%this._ppq!==0&&e%(this._swingTicks*2)!==0){const s=e%(this._swingTicks*2)/(this._swingTicks*2),n=Math.sin(s*Math.PI)*this._swingAmount;t+=new An(this.context,this._swingTicks*2/3).toSeconds()*n}Tl(!0),this._timeline.forEachAtTime(e,s=>s.invoke(t)),Tl(!1)}schedule(t,e){const s=new Ns(this,{callback:t,time:new wi(this.context,e).toTicks()});return this._addEvent(s,this._timeline)}scheduleRepeat(t,e,s,n=1/0){const r=new cc(this,{callback:t,duration:new Ve(this.context,n).toTicks(),interval:new Ve(this.context,e).toTicks(),time:new wi(this.context,s).toTicks()});return this._addEvent(r,this._repeatedEvents)}scheduleOnce(t,e){const s=new Ns(this,{callback:t,once:!0,time:new wi(this.context,e).toTicks()});return this._addEvent(s,this._timeline)}clear(t){if(this._scheduledEvents.hasOwnProperty(t)){const e=this._scheduledEvents[t.toString()];e.timeline.remove(e.event),e.event.dispose(),delete this._scheduledEvents[t.toString()]}return this}_addEvent(t,e){return this._scheduledEvents[t.id.toString()]={event:t,timeline:e},e.add(t),t.id}cancel(t=0){const e=this.toTicks(t);return this._timeline.forEachFrom(e,s=>this.clear(s.id)),this._repeatedEvents.forEachFrom(e,s=>this.clear(s.id)),this}_bindClockEvents(){this._clock.on("start",(t,e)=>{e=new An(this.context,e).toSeconds(),this.emit("start",t,e)}),this._clock.on("stop",t=>{this.emit("stop",t)}),this._clock.on("pause",t=>{this.emit("pause",t)})}get state(){return this._clock.getStateAtTime(this.now())}start(t,e){this.context.resume();let s;return dt(e)&&(s=this.toTicks(e)),this._clock.start(t,s),this}stop(t){return this._clock.stop(t),this}pause(t){return this._clock.pause(t),this}toggle(t){return t=this.toSeconds(t),this._clock.getStateAtTime(t)!=="started"?this.start(t):this.stop(t),this}get timeSignature(){return this._timeSignature}set timeSignature(t){Ue(t)&&(t=t[0]/t[1]*4),this._timeSignature=t}get loopStart(){return new Ve(this.context,this._loopStart,"i").toSeconds()}set loopStart(t){this._loopStart=this.toTicks(t)}get loopEnd(){return new Ve(this.context,this._loopEnd,"i").toSeconds()}set loopEnd(t){this._loopEnd=this.toTicks(t)}get loop(){return this._loop.get(this.now())}set loop(t){this._loop.set(t,this.now())}setLoopPoints(t,e){return this.loopStart=t,this.loopEnd=e,this}get swing(){return this._swingAmount}set swing(t){this._swingAmount=t}get swingSubdivision(){return new An(this.context,this._swingTicks).toNotation()}set swingSubdivision(t){this._swingTicks=this.toTicks(t)}get position(){const t=this.now(),e=this._clock.getTicksAtTime(t);return new An(this.context,e).toBarsBeatsSixteenths()}set position(t){const e=this.toTicks(t);this.ticks=e}get seconds(){return this._clock.seconds}set seconds(t){const e=this.now(),s=this._clock.frequency.timeToTicks(t,e);this.ticks=s}get progress(){if(this.loop){const t=this.now();return(this._clock.getTicksAtTime(t)-this._loopStart)/(this._loopEnd-this._loopStart)}else return 0}get ticks(){return this._clock.ticks}set ticks(t){if(this._clock.ticks!==t){const e=this.now();if(this.state==="started"){const s=this._clock.getTicksAtTime(e),n=this._clock.frequency.getDurationOfTicks(Math.ceil(s)-s,e),r=e+n;this.emit("stop",r),this._clock.setTicksAtTime(t,r),this.emit("start",r,this._clock.getSecondsAtTime(r))}else this.emit("ticks",e),this._clock.setTicksAtTime(t,e)}}getTicksAtTime(t){return this._clock.getTicksAtTime(t)}getSecondsAtTime(t){return this._clock.getSecondsAtTime(t)}get PPQ(){return this._clock.frequency.multiplier}set PPQ(t){this._clock.frequency.multiplier=t}nextSubdivision(t){if(t=this.toTicks(t),this.state!=="started")return 0;{const e=this.now(),s=this.getTicksAtTime(e),n=t-s%t;return this._clock.nextTickTime(n,e)}}syncSignal(t,e){const s=this.now();let n=this.bpm,r=1/(60/n.getValueAtTime(s)/this.PPQ),o=[];if(t.units==="time"){const c=.015625/r,l=new St(c),u=new Pi(-1),h=new St(c);n.chain(l,u,h),n=h,r=1/r,o=[l,u,h]}e||(t.getValueAtTime(s)!==0?e=t.getValueAtTime(s)/r:e=0);const a=new St(e);return n.connect(a),a.connect(t._param),o.push(a),this._syncedSignals.push({initial:t.value,nodes:o,signal:t}),t.value=0,this}unsyncSignal(t){for(let e=this._syncedSignals.length-1;e>=0;e--){const s=this._syncedSignals[e];s.signal===t&&(s.nodes.forEach(n=>n.dispose()),s.signal.value=s.initial,this._syncedSignals.splice(e,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),nc(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}ur.mixin(Ii);ko(i=>{i.transport=new Ii({context:i})});To(i=>{i.transport.dispose()});class ee extends ot{constructor(t){super(t),this.input=void 0,this._state=new rc("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=yt,this._syncedStop=yt,this._state.memory=100,this._state.increasing=!0,this._volume=this.output=new Is({context:this.context,mute:t.mute,volume:t.volume}),this.volume=this._volume.volume,Mt(this,"volume"),this.onstop=t.onstop}static getDefaults(){return Object.assign(ot.getDefaults(),{mute:!1,onstop:yt,volume:0})}get state(){return this._synced?this.context.transport.state==="started"?this._state.getValueAtTime(this.context.transport.seconds):"stopped":this._state.getValueAtTime(this.now())}get mute(){return this._volume.mute}set mute(t){this._volume.mute=t}_clampToCurrentTime(t){return this._synced?t:Math.max(t,this.context.currentTime)}start(t,e,s){let n=xe(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(n=this._clampToCurrentTime(n),!this._synced&&this._state.getValueAtTime(n)==="started")ut(Un(n,this._state.get(n).time),"Start time must be strictly greater than previous start time"),this._state.cancel(n),this._state.setStateAtTime("started",n),this.log("restart",n),this.restart(n,e,s);else if(this.log("start",n),this._state.setStateAtTime("started",n),this._synced){const r=this._state.get(n);r&&(r.offset=this.toSeconds(In(e,0)),r.duration=s?this.toSeconds(s):void 0);const o=this.context.transport.schedule(a=>{this._start(a,e,s)},n);this._scheduled.push(o),this.context.transport.state==="started"&&this.context.transport.getSecondsAtTime(this.immediate())>n&&this._syncedStart(this.now(),this.context.transport.seconds)}else th(this.context),this._start(n,e,s);return this}stop(t){let e=xe(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(e=this._clampToCurrentTime(e),this._state.getValueAtTime(e)==="started"||dt(this._state.getNextState("started",e))){if(this.log("stop",e),!this._synced)this._stop(e);else{const s=this.context.transport.schedule(this._stop.bind(this),e);this._scheduled.push(s)}this._state.cancel(e),this._state.setStateAtTime("stopped",e)}return this}restart(t,e,s){return t=this.toSeconds(t),this._state.getValueAtTime(t)==="started"&&(this._state.cancel(t),this._restart(t,e,s)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(t,e)=>{if(Un(e,0)){const s=this._state.get(e);if(s&&s.state==="started"&&s.time!==e){const n=e-this.toSeconds(s.time);let r;s.duration&&(r=this.toSeconds(s.duration)-n),this._start(t,this.toSeconds(s.offset)+n,r)}}},this._syncedStop=t=>{const e=this.context.transport.getSecondsAtTime(Math.max(t-this.sampleTime,0));this._state.getValueAtTime(e)==="started"&&this._stop(t)},this.context.transport.on("start",this._syncedStart),this.context.transport.on("loopStart",this._syncedStart),this.context.transport.on("stop",this._syncedStop),this.context.transport.on("pause",this._syncedStop),this.context.transport.on("loopEnd",this._syncedStop)),this}unsync(){return this._synced&&(this.context.transport.off("stop",this._syncedStop),this.context.transport.off("pause",this._syncedStop),this.context.transport.off("loopEnd",this._syncedStop),this.context.transport.off("start",this._syncedStart),this.context.transport.off("loopStart",this._syncedStart)),this._synced=!1,this._scheduled.forEach(t=>this.context.transport.clear(t)),this._scheduled=[],this._state.cancel(0),this._stop(0),this}dispose(){return super.dispose(),this.onstop=yt,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class jn extends zn{constructor(){super($(jn.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const t=$(jn.getDefaults(),arguments,["url","onload"]);Ps(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new kt({context:this.context,param:this._source.playbackRate,units:"positive",value:t.playbackRate}),this.loop=t.loop,this.loopStart=t.loopStart,this.loopEnd=t.loopEnd,this._buffer=new xt(t.url,t.onload,t.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(zn.getDefaults(),{url:new xt,loop:!1,loopEnd:0,loopStart:0,onload:yt,onerror:yt,playbackRate:1})}get fadeIn(){return this._fadeIn}set fadeIn(t){this._fadeIn=t}get fadeOut(){return this._fadeOut}set fadeOut(t){this._fadeOut=t}get curve(){return this._curve}set curve(t){this._curve=t}start(t,e,s,n=1){ut(this.buffer.loaded,"buffer is either not set or not loaded");const r=this.toSeconds(t);this._startGain(r,n),this.loop?e=In(e,this.loopStart):e=In(e,0);let o=Math.max(this.toSeconds(e),0);if(this.loop){const a=this.toSeconds(this.loopEnd)||this.buffer.duration,c=this.toSeconds(this.loopStart),l=a-c;da(o,a)&&(o=(o-c)%l+c),Fe(o,this.buffer.duration)&&(o=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,Hr(o,this.buffer.duration)&&(this._sourceStarted=!0,this._source.start(r,o)),dt(s)){let a=this.toSeconds(s);a=Math.max(a,0),this.stop(r+a)}return this}_stopSource(t){!this._sourceStopped&&this._sourceStarted&&(this._sourceStopped=!0,this._source.stop(this.toSeconds(t)),this._onended())}get loopStart(){return this._source.loopStart}set loopStart(t){this._source.loopStart=this.toSeconds(t)}get loopEnd(){return this._source.loopEnd}set loopEnd(t){this._source.loopEnd=this.toSeconds(t)}get buffer(){return this._buffer}set buffer(t){this._buffer.set(t)}get loop(){return this._source.loop}set loop(t){this._source.loop=t,this._sourceStarted&&this.cancelStop()}dispose(){return super.dispose(),this._source.onended=null,this._source.disconnect(),this._buffer.dispose(),this.playbackRate.dispose(),this}}class Ni extends ee{constructor(){super($(Ni.getDefaults(),arguments,["type"])),this.name="Noise",this._source=null;const t=$(Ni.getDefaults(),arguments,["type"]);this._playbackRate=t.playbackRate,this.type=t.type,this._fadeIn=t.fadeIn,this._fadeOut=t.fadeOut}static getDefaults(){return Object.assign(ee.getDefaults(),{fadeIn:0,fadeOut:0,playbackRate:1,type:"white"})}get type(){return this._type}set type(t){if(ut(t in wl,"Noise: invalid type: "+t),this._type!==t&&(this._type=t,this.state==="started")){const e=this.now();this._stop(e),this._start(e)}}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t,this._source&&(this._source.playbackRate.value=t)}_start(t){const e=wl[this._type];this._source=new jn({url:e,context:this.context,fadeIn:this._fadeIn,fadeOut:this._fadeOut,loop:!0,onended:()=>this.onstop(this),playbackRate:this._playbackRate}).connect(this.output),this._source.start(this.toSeconds(t),Math.random()*(e.duration-.001))}_stop(t){this._source&&(this._source.stop(this.toSeconds(t)),this._source=null)}get fadeIn(){return this._fadeIn}set fadeIn(t){this._fadeIn=t,this._source&&(this._source.fadeIn=this._fadeIn)}get fadeOut(){return this._fadeOut}set fadeOut(t){this._fadeOut=t,this._source&&(this._source.fadeOut=this._fadeOut)}_restart(t){this._stop(t),this._start(t)}dispose(){return super.dispose(),this._source&&this._source.disconnect(),this}}const Tn=44100*5,Wo=2,os={brown:null,pink:null,white:null},wl={get brown(){if(!os.brown){const i=[];for(let t=0;tthis.onstop(this)});this._oscillator=s,this._wave?this._oscillator.setPeriodicWave(this._wave):this._oscillator.type=this._type,this._oscillator.connect(this.output),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.start(e)}_stop(t){const e=this.toSeconds(t);this._oscillator&&this._oscillator.stop(e)}_restart(t){const e=this.toSeconds(t);return this.log("restart",e),this._oscillator&&this._oscillator.cancelStop(),this._state.cancel(e),this}syncFrequency(){return this.context.transport.syncSignal(this.frequency),this}unsyncFrequency(){return this.context.transport.unsyncSignal(this.frequency),this}_getCachedPeriodicWave(){if(this._type==="custom")return Bt._periodicWaveCache.find(e=>e.phase===this._phase&&Py(e.partials,this._partials));{const t=Bt._periodicWaveCache.find(e=>e.type===this._type&&e.phase===this._phase);return this._partialCount=t?t.partialCount:this._partialCount,t}}get type(){return this._type}set type(t){this._type=t;const e=["sine","square","sawtooth","triangle"].indexOf(t)!==-1;if(this._phase===0&&e)this._wave=void 0,this._partialCount=0,this._oscillator!==null&&(this._oscillator.type=t);else{const s=this._getCachedPeriodicWave();if(dt(s)){const{partials:n,wave:r}=s;this._wave=r,this._partials=n,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave)}else{const[n,r]=this._getRealImaginary(t,this._phase),o=this.context.createPeriodicWave(n,r);this._wave=o,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave),Bt._periodicWaveCache.push({imag:r,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:n,type:this._type,wave:this._wave}),Bt._periodicWaveCache.length>100&&Bt._periodicWaveCache.shift()}}}get baseType(){return this._type.replace(this.partialCount.toString(),"")}set baseType(t){this.partialCount&&this._type!=="custom"&&t!=="custom"?this.type=t+this.partialCount:this.type=t}get partialCount(){return this._partialCount}set partialCount(t){je(t,0);let e=this._type;const s=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(s&&(e=s[1]),this._type!=="custom")t===0?this.type=e:this.type=e+t.toString();else{const n=new Float32Array(t);this._partials.forEach((r,o)=>n[o]=r),this._partials=Array.from(n),this.type=this._type}}_getRealImaginary(t,e){let n=2048;const r=new Float32Array(n),o=new Float32Array(n);let a=1;if(t==="custom"){if(a=this._partials.length+1,this._partialCount=this._partials.length,n=a,this._partials.length===0)return[r,o]}else{const c=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(t);c?(a=parseInt(c[2],10)+1,this._partialCount=parseInt(c[2],10),t=c[1],a=Math.max(a,2),n=a):this._partialCount=0,this._partials=[]}for(let c=1;c>1&1?-1:1):u=0,this._partials[c-1]=u;break;case"custom":u=this._partials[c-1];break;default:throw new TypeError("Oscillator: invalid type: "+t)}u!==0?(r[c]=-u*Math.sin(e*c),o[c]=u*Math.cos(e*c)):(r[c]=0,o[c]=0)}return[r,o]}_inverseFFT(t,e,s){let n=0;const r=t.length;for(let o=0;o(t+1)/2}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Rs extends Ot{constructor(){super(Object.assign($(Rs.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const t=$(Rs.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new St({context:this.context,minValue:t.minValue,maxValue:t.maxValue}),this.factor=this._param=this._mult.gain,this.factor.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(Ot.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class Ri extends ee{constructor(){super($(Ri.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new Jy({context:this.context}),this._modulationNode=new St({context:this.context});const t=$(Ri.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase,type:t.type}),this.frequency=this._carrier.frequency,this.detune=this._carrier.detune,this._modulator=new Bt({context:this.context,phase:t.phase,type:t.modulationType}),this.harmonicity=new Rs({context:this.context,units:"positive",value:t.harmonicity}),this.frequency.chain(this.harmonicity,this._modulator.frequency),this._modulator.chain(this._modulationScale,this._modulationNode.gain),this._carrier.chain(this._modulationNode,this.output),Mt(this,["frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{harmonicity:1,modulationType:"square"})}_start(t){this._modulator.start(t),this._carrier.start(t)}_stop(t){this._modulator.stop(t),this._carrier.stop(t)}_restart(t){this._modulator.restart(t),this._carrier.restart(t)}get type(){return this._carrier.type}set type(t){this._carrier.type=t}get baseType(){return this._carrier.baseType}set baseType(t){this._carrier.baseType=t}get partialCount(){return this._carrier.partialCount}set partialCount(t){this._carrier.partialCount=t}get modulationType(){return this._modulator.type}set modulationType(t){this._modulator.type=t}get phase(){return this._carrier.phase}set phase(t){this._carrier.phase=t,this._modulator.phase=t}get partials(){return this._carrier.partials}set partials(t){this._carrier.partials=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return pn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this._modulationScale.dispose(),this}}class Fi extends ee{constructor(){super($(Fi.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new St({context:this.context,gain:0});const t=$(Fi.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Bt({context:this.context,detune:t.detune,frequency:0,onstop:()=>this.onstop(this),phase:t.phase,type:t.type}),this.detune=this._carrier.detune,this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this._modulator=new Bt({context:this.context,phase:t.phase,type:t.modulationType}),this.harmonicity=new Rs({context:this.context,units:"positive",value:t.harmonicity}),this.modulationIndex=new Rs({context:this.context,units:"positive",value:t.modulationIndex}),this.frequency.connect(this._carrier.frequency),this.frequency.chain(this.harmonicity,this._modulator.frequency),this.frequency.chain(this.modulationIndex,this._modulationNode),this._modulator.connect(this._modulationNode.gain),this._modulationNode.connect(this._carrier.frequency),this._carrier.connect(this.output),this.detune.connect(this._modulator.detune),Mt(this,["modulationIndex","frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{harmonicity:1,modulationIndex:2,modulationType:"square"})}_start(t){this._modulator.start(t),this._carrier.start(t)}_stop(t){this._modulator.stop(t),this._carrier.stop(t)}_restart(t){return this._modulator.restart(t),this._carrier.restart(t),this}get type(){return this._carrier.type}set type(t){this._carrier.type=t}get baseType(){return this._carrier.baseType}set baseType(t){this._carrier.baseType=t}get partialCount(){return this._carrier.partialCount}set partialCount(t){this._carrier.partialCount=t}get modulationType(){return this._modulator.type}set modulationType(t){this._modulator.type=t}get phase(){return this._carrier.phase}set phase(t){this._carrier.phase=t,this._modulator.phase=t}get partials(){return this._carrier.partials}set partials(t){this._carrier.partials=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return pn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this.modulationIndex.dispose(),this}}class Bn extends ee{constructor(){super($(Bn.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new St({context:this.context,gain:0}),this._thresh=new an({context:this.context,mapping:e=>e<=0?-1:1});const t=$(Bn.getDefaults(),arguments,["frequency","width"]);this.width=new Ot({context:this.context,units:"audioRange",value:t.width}),this._triangle=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase,type:"triangle"}),this.frequency=this._triangle.frequency,this.detune=this._triangle.detune,this._triangle.chain(this._thresh,this.output),this.width.chain(this._widthGate,this._thresh),Mt(this,["width","frequency","detune"])}static getDefaults(){return Object.assign(ee.getDefaults(),{detune:0,frequency:440,phase:0,type:"pulse",width:.2})}_start(t){t=this.toSeconds(t),this._triangle.start(t),this._widthGate.gain.setValueAtTime(1,t)}_stop(t){t=this.toSeconds(t),this._triangle.stop(t),this._widthGate.gain.cancelScheduledValues(t),this._widthGate.gain.setValueAtTime(0,t)}_restart(t){this._triangle.restart(t),this._widthGate.gain.cancelScheduledValues(t),this._widthGate.gain.setValueAtTime(1,t)}get phase(){return this._triangle.phase}set phase(t){this._triangle.phase=t}get type(){return"pulse"}get baseType(){return"pulse"}get partials(){return[]}get partialCount(){return 0}set carrierType(t){this._triangle.type=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return pn(this,t)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class Li extends ee{constructor(){super($(Li.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const t=$(Li.getDefaults(),arguments,["frequency","type","spread"]);this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this.detune=new Ot({context:this.context,units:"cents",value:t.detune}),this._spread=t.spread,this._type=t.type,this._phase=t.phase,this._partials=t.partials,this._partialCount=t.partialCount,this.count=t.count,Mt(this,["frequency","detune"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{count:3,spread:20,type:"sawtooth"})}_start(t){t=this.toSeconds(t),this._forEach(e=>e.start(t))}_stop(t){t=this.toSeconds(t),this._forEach(e=>e.stop(t))}_restart(t){this._forEach(e=>e.restart(t))}_forEach(t){for(let e=0;ee.type=t)}get spread(){return this._spread}set spread(t){if(this._spread=t,this._oscillators.length>1){const e=-t/2,s=t/(this._oscillators.length-1);this._forEach((n,r)=>n.detune.value=e+s*r)}}get count(){return this._oscillators.length}set count(t){if(je(t,1),this._oscillators.length!==t){this._forEach(e=>e.dispose()),this._oscillators=[];for(let e=0;ethis.onstop(this):yt});this.type==="custom"&&(s.partials=this._partials),this.frequency.connect(s.frequency),this.detune.connect(s.detune),s.detune.overridden=!1,s.connect(this.output),this._oscillators[e]=s}this.spread=this._spread,this.state==="started"&&this._forEach(e=>e.start())}}get phase(){return this._phase}set phase(t){this._phase=t,this._forEach((e,s)=>e.phase=this._phase+s/this.count*360)}get baseType(){return this._oscillators[0].baseType}set baseType(t){this._forEach(e=>e.baseType=t),this._type=this._oscillators[0].type}get partials(){return this._oscillators[0].partials}set partials(t){this._partials=t,this._partialCount=this._partials.length,t.length&&(this._type="custom",this._forEach(e=>e.partials=t))}get partialCount(){return this._oscillators[0].partialCount}set partialCount(t){this._partialCount=t,this._forEach(e=>e.partialCount=t),this._type=this._oscillators[0].type}asArray(t=1024){return qt(this,void 0,void 0,function*(){return pn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(t=>t.dispose()),this}}class Vi extends ee{constructor(){super($(Vi.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Rs({context:this.context,value:2});const t=$(Vi.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new Bn({context:this.context,frequency:t.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase}),this.frequency=this._modulator.frequency,this.detune=this._modulator.detune,this._modulator.chain(this._scale,this._pulse.width),this._pulse.connect(this.output),Mt(this,["modulationFrequency","frequency","detune"])}static getDefaults(){return Object.assign(ee.getDefaults(),{detune:0,frequency:440,modulationFrequency:.4,phase:0,type:"pwm"})}_start(t){t=this.toSeconds(t),this._modulator.start(t),this._pulse.start(t)}_stop(t){t=this.toSeconds(t),this._modulator.stop(t),this._pulse.stop(t)}_restart(t){this._modulator.restart(t),this._pulse.restart(t)}get type(){return"pwm"}get baseType(){return"pwm"}get partials(){return[]}get partialCount(){return 0}get phase(){return this._modulator.phase}set phase(t){this._modulator.phase=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return pn(this,t)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const bl={am:Ri,fat:Li,fm:Fi,oscillator:Bt,pulse:Bn,pwm:Vi};class cn extends ee{constructor(){super($(cn.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const t=$(cn.getDefaults(),arguments,["frequency","type"]);this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this.detune=new Ot({context:this.context,units:"cents",value:t.detune}),Mt(this,["frequency","detune"]),this.set(t)}static getDefaults(){return Object.assign(Bt.getDefaults(),Fi.getDefaults(),Ri.getDefaults(),Li.getDefaults(),Bn.getDefaults(),Vi.getDefaults())}_start(t){this._oscillator.start(t)}_stop(t){this._oscillator.stop(t)}_restart(t){return this._oscillator.restart(t),this}get type(){let t="";return["am","fm","fat"].some(e=>this._sourceType===e)&&(t=this._sourceType),t+this._oscillator.type}set type(t){t.substr(0,2)==="fm"?(this._createNewOscillator("fm"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(2)):t.substr(0,2)==="am"?(this._createNewOscillator("am"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(2)):t.substr(0,3)==="fat"?(this._createNewOscillator("fat"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(3)):t==="pwm"?(this._createNewOscillator("pwm"),this._oscillator=this._oscillator):t==="pulse"?this._createNewOscillator("pulse"):(this._createNewOscillator("oscillator"),this._oscillator=this._oscillator,this._oscillator.type=t)}get partials(){return this._oscillator.partials}set partials(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partials=t)}get partialCount(){return this._oscillator.partialCount}set partialCount(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partialCount=t)}set(t){return Reflect.has(t,"type")&&t.type&&(this.type=t.type),super.set(t),this}_createNewOscillator(t){if(t!==this._sourceType){this._sourceType=t;const e=bl[t],s=this.now();if(this._oscillator){const n=this._oscillator;n.stop(s),this.context.setTimeout(()=>n.dispose(),this.blockTime)}this._oscillator=new e({context:this.context}),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.connect(this.output),this._oscillator.onstop=()=>this.onstop(this),this.state==="started"&&this._oscillator.start(s)}}get phase(){return this._oscillator.phase}set phase(t){this._oscillator.phase=t}get sourceType(){return this._sourceType}set sourceType(t){let e="sine";this._oscillator.type!=="pwm"&&this._oscillator.type!=="pulse"&&(e=this._oscillator.type),t==="fm"?this.type="fm"+e:t==="am"?this.type="am"+e:t==="fat"?this.type="fat"+e:t==="oscillator"?this.type=e:t==="pulse"?this.type="pulse":t==="pwm"&&(this.type="pwm")}_getOscType(t,e){return t instanceof bl[e]}get baseType(){return this._oscillator.baseType}set baseType(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&t!=="pulse"&&t!=="pwm"&&(this._oscillator.baseType=t)}get width(){if(this._getOscType(this._oscillator,"pulse"))return this._oscillator.width}get count(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.count}set count(t){this._getOscType(this._oscillator,"fat")&&Ds(t)&&(this._oscillator.count=t)}get spread(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.spread}set spread(t){this._getOscType(this._oscillator,"fat")&&Ds(t)&&(this._oscillator.spread=t)}get modulationType(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.modulationType}set modulationType(t){(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))&&hs(t)&&(this._oscillator.modulationType=t)}get modulationIndex(){if(this._getOscType(this._oscillator,"fm"))return this._oscillator.modulationIndex}get harmonicity(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.harmonicity}get modulationFrequency(){if(this._getOscType(this._oscillator,"pwm"))return this._oscillator.modulationFrequency}asArray(t=1024){return qt(this,void 0,void 0,function*(){return pn(this,t)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}class lc extends Ot{constructor(){super(Object.assign($(lc.getDefaults(),arguments,["value"]))),this.override=!1,this.name="Add",this._sum=new St({context:this.context}),this.input=this._sum,this.output=this._sum,this.addend=this._param,Mi(this._constantSource,this._sum)}static getDefaults(){return Object.assign(Ot.getDefaults(),{value:0})}dispose(){return super.dispose(),this._sum.dispose(),this}}class Qr extends ds{constructor(){super(Object.assign($(Qr.getDefaults(),arguments,["min","max"]))),this.name="Scale";const t=$(Qr.getDefaults(),arguments,["min","max"]);this._mult=this.input=new Rs({context:this.context,value:t.max-t.min}),this._add=this.output=new lc({context:this.context,value:t.min}),this._min=t.min,this._max=t.max,this.input.connect(this.output)}static getDefaults(){return Object.assign(ds.getDefaults(),{max:1,min:0})}get min(){return this._min}set min(t){this._min=t,this._setRange()}get max(){return this._max}set max(t){this._max=t,this._setRange()}_setRange(){this._add.value=this._min,this._mult.value=this._max-this._min}dispose(){return super.dispose(),this._add.dispose(),this._mult.dispose(),this}}function hh(i,t=1/0){const e=new WeakMap;return function(s,n){Reflect.defineProperty(s,n,{configurable:!0,enumerable:!0,get:function(){return e.get(this)},set:function(r){je(r,i,t),e.set(this,r)}})}}function xs(i,t=1/0){const e=new WeakMap;return function(s,n){Reflect.defineProperty(s,n,{configurable:!0,enumerable:!0,get:function(){return e.get(this)},set:function(r){je(this.toSeconds(r),i,t),e.set(this,r)}})}}class Ui extends ee{constructor(){super($(Ui.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const t=$(Ui.getDefaults(),arguments,["url","onload"]);this._buffer=new xt({onload:this._onload.bind(this,t.onload),onerror:t.onerror,reverse:t.reverse,url:t.url}),this.autostart=t.autostart,this._loop=t.loop,this._loopStart=t.loopStart,this._loopEnd=t.loopEnd,this._playbackRate=t.playbackRate,this.fadeIn=t.fadeIn,this.fadeOut=t.fadeOut}static getDefaults(){return Object.assign(ee.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:yt,onerror:yt,playbackRate:1,reverse:!1})}load(t){return qt(this,void 0,void 0,function*(){return yield this._buffer.load(t),this._onload(),this})}_onload(t=yt){t(),this.autostart&&this.start()}_onSourceEnd(t){this.onstop(this),this._activeSources.delete(t),this._activeSources.size===0&&!this._synced&&this._state.getValueAtTime(this.now())==="started"&&(this._state.cancel(this.now()),this._state.setStateAtTime("stopped",this.now()))}start(t,e,s){return super.start(t,e,s),this}_start(t,e,s){this._loop?e=In(e,this._loopStart):e=In(e,0);const n=this.toSeconds(e),r=s;s=In(s,Math.max(this._buffer.duration-n,0));let o=this.toSeconds(s);o=o/this._playbackRate,t=this.toSeconds(t);const a=new jn({url:this._buffer,context:this.context,fadeIn:this.fadeIn,fadeOut:this.fadeOut,loop:this._loop,loopEnd:this._loopEnd,loopStart:this._loopStart,onended:this._onSourceEnd.bind(this),playbackRate:this._playbackRate}).connect(this.output);!this._loop&&!this._synced&&(this._state.cancel(t+o),this._state.setStateAtTime("stopped",t+o,{implicitEnd:!0})),this._activeSources.add(a),this._loop&&xe(r)?a.start(t,n):a.start(t,n,o-this.toSeconds(this.fadeOut))}_stop(t){const e=this.toSeconds(t);this._activeSources.forEach(s=>s.stop(e))}restart(t,e,s){return super.restart(t,e,s),this}_restart(t,e,s){var n;(n=[...this._activeSources].pop())===null||n===void 0||n.stop(t),this._start(t,e,s)}seek(t,e){const s=this.toSeconds(e);if(this._state.getValueAtTime(s)==="started"){const n=this.toSeconds(t);this._stop(s),this._start(s,n)}return this}setLoopPoints(t,e){return this.loopStart=t,this.loopEnd=e,this}get loopStart(){return this._loopStart}set loopStart(t){this._loopStart=t,this.buffer.loaded&&je(this.toSeconds(t),0,this.buffer.duration),this._activeSources.forEach(e=>{e.loopStart=t})}get loopEnd(){return this._loopEnd}set loopEnd(t){this._loopEnd=t,this.buffer.loaded&&je(this.toSeconds(t),0,this.buffer.duration),this._activeSources.forEach(e=>{e.loopEnd=t})}get buffer(){return this._buffer}set buffer(t){this._buffer.set(t)}get loop(){return this._loop}set loop(t){if(this._loop!==t&&(this._loop=t,this._activeSources.forEach(e=>{e.loop=t}),t)){const e=this._state.getNextState("stopped",this.now());e&&this._state.cancel(e.time)}}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t;const e=this.now(),s=this._state.getNextState("stopped",e);s&&s.implicitEnd&&(this._state.cancel(s.time),this._activeSources.forEach(n=>n.cancelStop())),this._activeSources.forEach(n=>{n.playbackRate.setValueAtTime(t,e)})}get reverse(){return this._buffer.reverse}set reverse(t){this._buffer.reverse=t}get loaded(){return this._buffer.loaded}dispose(){return super.dispose(),this._activeSources.forEach(t=>t.dispose()),this._activeSources.clear(),this._buffer.dispose(),this}}Be([xs(0)],Ui.prototype,"fadeIn",void 0);Be([xs(0)],Ui.prototype,"fadeOut",void 0);class t1 extends ds{constructor(){super(...arguments),this.name="GainToAudio",this._norm=new an({context:this.context,mapping:t=>Math.abs(t)*2-1}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Me extends ot{constructor(){super($(Me.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new Ot({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const t=$(Me.getDefaults(),arguments,["attack","decay","sustain","release"]);this.attack=t.attack,this.decay=t.decay,this.sustain=t.sustain,this.release=t.release,this.attackCurve=t.attackCurve,this.releaseCurve=t.releaseCurve,this.decayCurve=t.decayCurve}static getDefaults(){return Object.assign(ot.getDefaults(),{attack:.01,attackCurve:"linear",decay:.1,decayCurve:"exponential",release:1,releaseCurve:"exponential",sustain:.5})}get value(){return this.getValueAtTime(this.now())}_getCurve(t,e){if(hs(t))return t;{let s;for(s in Cr)if(Cr[s][e]===t)return s;return t}}_setCurve(t,e,s){if(hs(s)&&Reflect.has(Cr,s)){const n=Cr[s];Ks(n)?t!=="_decayCurve"&&(this[t]=n[e]):this[t]=n}else if(Ue(s)&&t!=="_decayCurve")this[t]=s;else throw new Error("Envelope: invalid curve: "+s)}get attackCurve(){return this._getCurve(this._attackCurve,"In")}set attackCurve(t){this._setCurve("_attackCurve","In",t)}get releaseCurve(){return this._getCurve(this._releaseCurve,"Out")}set releaseCurve(t){this._setCurve("_releaseCurve","Out",t)}get decayCurve(){return this._getCurve(this._decayCurve,"Out")}set decayCurve(t){this._setCurve("_decayCurve","Out",t)}triggerAttack(t,e=1){this.log("triggerAttack",t,e),t=this.toSeconds(t);let n=this.toSeconds(this.attack);const r=this.toSeconds(this.decay),o=this.getValueAtTime(t);if(o>0){const a=1/n;n=(1-o)/a}if(n0){const s=this.toSeconds(this.release);s{let t,e;const s=[];for(t=0;t<128;t++)s[t]=Math.sin(t/(128-1)*(Math.PI/2));const n=[],r=6.4;for(t=0;t<128-1;t++){e=t/(128-1);const d=Math.sin(e*(Math.PI*2)*r-Math.PI/2)+1;n[t]=d/10+e*.83}n[128-1]=1;const o=[],a=5;for(t=0;t<128;t++)o[t]=Math.ceil(t/(128-1)*a)/a;const c=[];for(t=0;t<128;t++)e=t/(128-1),c[t]=.5*(1-Math.cos(Math.PI*e));const l=[];for(t=0;t<128;t++){e=t/(128-1);const d=Math.pow(e,3)*4+.2,p=Math.cos(d*Math.PI*2*e);l[t]=Math.abs(p*(1-e))}function u(d){const p=new Array(d.length);for(let _=0;_this._original_triggerRelease(e);const t=$(ln.getDefaults(),arguments);this._volume=this.output=new Is({context:this.context,volume:t.volume}),this.volume=this._volume.volume,Mt(this,"volume")}static getDefaults(){return Object.assign(ot.getDefaults(),{volume:0})}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",0),this.context.transport.on("stop",this._syncedRelease),this.context.transport.on("pause",this._syncedRelease),this.context.transport.on("loopEnd",this._syncedRelease)),this}_syncState(){let t=!1;return this._synced||(this._synced=!0,t=!0),t}_syncMethod(t,e){const s=this["_original_"+t]=this[t];this[t]=(...n)=>{const r=n[e],o=this.context.transport.schedule(a=>{n[e]=a,s.apply(this,n)},r);this._scheduledEvents.push(o)}}unsync(){return this._scheduledEvents.forEach(t=>this.context.transport.clear(t)),this._scheduledEvents=[],this._synced&&(this._synced=!1,this.triggerAttack=this._original_triggerAttack,this.triggerRelease=this._original_triggerRelease,this.context.transport.off("stop",this._syncedRelease),this.context.transport.off("pause",this._syncedRelease),this.context.transport.off("loopEnd",this._syncedRelease)),this}triggerAttackRelease(t,e,s,n){const r=this.toSeconds(s),o=this.toSeconds(e);return this.triggerAttack(t,r,n),this.triggerRelease(r+o),this}dispose(){return super.dispose(),this._volume.dispose(),this.unsync(),this._scheduledEvents=[],this}}class fs extends ln{constructor(){super($(fs.getDefaults(),arguments));const t=$(fs.getDefaults(),arguments);this.portamento=t.portamento,this.onsilence=t.onsilence}static getDefaults(){return Object.assign(ln.getDefaults(),{detune:0,onsilence:yt,portamento:0})}triggerAttack(t,e,s=1){this.log("triggerAttack",t,e,s);const n=this.toSeconds(e);return this._triggerEnvelopeAttack(n,s),this.setNote(t,n),this}triggerRelease(t){this.log("triggerRelease",t);const e=this.toSeconds(t);return this._triggerEnvelopeRelease(e),this}setNote(t,e){const s=this.toSeconds(e),n=t instanceof Ee?t.toFrequency():t;if(this.portamento>0&&this.getLevelAtTime(s)>.05){const r=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(n,r,s)}else this.frequency.setValueAtTime(n,s);return this}}Be([xs(0)],fs.prototype,"portamento",void 0);class Co extends Me{constructor(){super($(Co.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new St({context:this.context,gain:0}),this.output=this._gainNode,this.input=this._gainNode,this._sig.connect(this._gainNode.gain),this.output=this._gainNode,this.input=this._gainNode}dispose(){return super.dispose(),this._gainNode.dispose(),this}}class zi extends fs{constructor(){super($(zi.getDefaults(),arguments)),this.name="Synth";const t=$(zi.getDefaults(),arguments);this.oscillator=new cn(Object.assign({context:this.context,detune:t.detune,onstop:()=>this.onsilence(this)},t.oscillator)),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.envelope=new Co(Object.assign({context:this.context},t.envelope)),this.oscillator.chain(this.envelope,this.output),Mt(this,["oscillator","frequency","detune","envelope"])}static getDefaults(){return Object.assign(fs.getDefaults(),{envelope:Object.assign(On(Me.getDefaults(),Object.keys(ot.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(On(cn.getDefaults(),[...Object.keys(ee.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(t,e){if(this.envelope.triggerAttack(t,e),this.oscillator.start(t),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),n=this.toSeconds(this.envelope.decay);this.oscillator.stop(t+s+n)}}_triggerEnvelopeRelease(t){this.envelope.triggerRelease(t),this.oscillator.stop(t+this.toSeconds(this.envelope.release))}getLevelAtTime(t){return t=this.toSeconds(t),this.envelope.getValueAtTime(t)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this}}class ji extends ot{constructor(){super($(ji.getDefaults(),arguments,["frequency","type"])),this.name="BiquadFilter";const t=$(ji.getDefaults(),arguments,["frequency","type"]);this._filter=this.context.createBiquadFilter(),this.input=this.output=this._filter,this.Q=new kt({context:this.context,units:"number",value:t.Q,param:this._filter.Q}),this.frequency=new kt({context:this.context,units:"frequency",value:t.frequency,param:this._filter.frequency}),this.detune=new kt({context:this.context,units:"cents",value:t.detune,param:this._filter.detune}),this.gain=new kt({context:this.context,units:"decibels",convert:!1,value:t.gain,param:this._filter.gain}),this.type=t.type}static getDefaults(){return Object.assign(ot.getDefaults(),{Q:1,type:"lowpass",frequency:350,detune:0,gain:0})}get type(){return this._filter.type}set type(t){ut(["lowpass","highpass","bandpass","lowshelf","highshelf","notch","allpass","peaking"].indexOf(t)!==-1,`Invalid filter type: ${t}`),this._filter.type=t}getFrequencyResponse(t=128){const e=new Float32Array(t);for(let o=0;os.type=t)}get rolloff(){return this._rolloff}set rolloff(t){const e=Ds(t)?t:parseInt(t,10),s=[-12,-24,-48,-96];let n=s.indexOf(e);ut(n!==-1,`rolloff can only be ${s.join(", ")}`),n+=1,this._rolloff=e,this.input.disconnect(),this._filters.forEach(r=>r.disconnect()),this._filters=new Array(n);for(let r=0;r1);return this._filters.forEach(()=>{e.getFrequencyResponse(t).forEach((r,o)=>s[o]*=r)}),e.dispose(),s}dispose(){return super.dispose(),this._filters.forEach(t=>{t.dispose()}),nc(this,["detune","frequency","gain","Q"]),this.frequency.dispose(),this.Q.dispose(),this.detune.dispose(),this.gain.dispose(),this}}class Bi extends Me{constructor(){super($(Bi.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="FrequencyEnvelope";const t=$(Bi.getDefaults(),arguments,["attack","decay","sustain","release"]);this._octaves=t.octaves,this._baseFrequency=this.toFrequency(t.baseFrequency),this._exponent=this.input=new Pi({context:this.context,value:t.exponent}),this._scale=this.output=new Qr({context:this.context,min:this._baseFrequency,max:this._baseFrequency*Math.pow(2,this._octaves)}),this._sig.chain(this._exponent,this._scale)}static getDefaults(){return Object.assign(Me.getDefaults(),{baseFrequency:200,exponent:1,octaves:4})}get baseFrequency(){return this._baseFrequency}set baseFrequency(t){const e=this.toFrequency(t);je(e,0),this._baseFrequency=e,this._scale.min=this._baseFrequency,this.octaves=this._octaves}get octaves(){return this._octaves}set octaves(t){this._octaves=t,this._scale.max=this._baseFrequency*Math.pow(2,t)}get exponent(){return this._exponent.value}set exponent(t){this._exponent.value=t}dispose(){return super.dispose(),this._exponent.dispose(),this._scale.dispose(),this}}class qi extends fs{constructor(){super($(qi.getDefaults(),arguments)),this.name="MonoSynth";const t=$(qi.getDefaults(),arguments);this.oscillator=new cn(Object.assign(t.oscillator,{context:this.context,detune:t.detune,onstop:()=>this.onsilence(this)})),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.filter=new qn(Object.assign(t.filter,{context:this.context})),this.filterEnvelope=new Bi(Object.assign(t.filterEnvelope,{context:this.context})),this.envelope=new Co(Object.assign(t.envelope,{context:this.context})),this.oscillator.chain(this.filter,this.envelope,this.output),this.filterEnvelope.connect(this.filter.frequency),Mt(this,["oscillator","frequency","detune","filter","filterEnvelope","envelope"])}static getDefaults(){return Object.assign(fs.getDefaults(),{envelope:Object.assign(On(Me.getDefaults(),Object.keys(ot.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.9}),filter:Object.assign(On(qn.getDefaults(),Object.keys(ot.getDefaults())),{Q:1,rolloff:-12,type:"lowpass"}),filterEnvelope:Object.assign(On(Bi.getDefaults(),Object.keys(ot.getDefaults())),{attack:.6,baseFrequency:200,decay:.2,exponent:2,octaves:3,release:2,sustain:.5}),oscillator:Object.assign(On(cn.getDefaults(),Object.keys(ee.getDefaults())),{type:"sawtooth"})})}_triggerEnvelopeAttack(t,e=1){if(this.envelope.triggerAttack(t,e),this.filterEnvelope.triggerAttack(t),this.oscillator.start(t),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),n=this.toSeconds(this.envelope.decay);this.oscillator.stop(t+s+n)}}_triggerEnvelopeRelease(t){this.envelope.triggerRelease(t),this.filterEnvelope.triggerRelease(t),this.oscillator.stop(t+this.toSeconds(this.envelope.release))}getLevelAtTime(t){return t=this.toSeconds(t),this.envelope.getValueAtTime(t)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this.filterEnvelope.dispose(),this.filter.dispose(),this}}class Wi extends zi{constructor(){super($(Wi.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const t=$(Wi.getDefaults(),arguments);this.pitchDecay=t.pitchDecay,this.octaves=t.octaves,Mt(this,["oscillator","envelope"])}static getDefaults(){return Pn(fs.getDefaults(),zi.getDefaults(),{envelope:{attack:.001,attackCurve:"exponential",decay:.4,release:1.4,sustain:.01},octaves:10,oscillator:{type:"sine"},pitchDecay:.05})}setNote(t,e){const s=this.toSeconds(e),n=this.toFrequency(t instanceof Ee?t.toFrequency():t),r=n*this.octaves;return this.oscillator.frequency.setValueAtTime(r,s),this.oscillator.frequency.exponentialRampToValueAtTime(n,s+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}Be([hh(0)],Wi.prototype,"octaves",void 0);Be([xs(0)],Wi.prototype,"pitchDecay",void 0);const dh=new Set;function uc(i){dh.add(i)}function fh(i,t){const e=`registerProcessor("${i}", ${t})`;dh.add(e)}const e1=` /** * The base AudioWorkletProcessor for use in Tone.js. Works with the [[ToneAudioWorklet]]. */ @@ -180,7 +180,7 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b a }; } } -`;uc(s1);const n1=` +`;uc(e1);const s1=` /** * Abstract class for a single input/output processor. * has a 'generate' function which processes one sample at a time @@ -247,7 +247,7 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b a return !this.disposed; } }; -`;uc(n1);const i1=` +`;uc(s1);const n1=` /** * A multichannel buffer for use within an AudioWorkletProcessor as a delay line */ @@ -291,7 +291,7 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b a return this.buffer[channel][readHead]; } } -`;uc(i1);const r1="feedback-comb-filter",o1=` +`;uc(n1);const i1="feedback-comb-filter",r1=` class FeedbackCombFilterWorklet extends SingleIOProcessor { constructor(options) { @@ -321,7 +321,7 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b a return delayedSample; } } -`;fh(r1,o1);class Hi extends ln{constructor(){super($(Hi.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const t=$(Hi.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),e={};Object.keys(t.urls).forEach(s=>{const n=parseInt(s,10);if(ut(Cr(s)||Ds(n)&&isFinite(n),`url key is neither a note or midi pitch: ${s}`),Cr(s)){const r=new Ee(this.context,s).toMidi();e[r]=t.urls[s]}else Ds(n)&&isFinite(n)&&(e[n]=t.urls[n])}),this._buffers=new ac({urls:e,onload:t.onload,baseUrl:t.baseUrl,onerror:t.onerror}),this.attack=t.attack,this.release=t.release,this.curve=t.curve,this._buffers.loaded&&Promise.resolve().then(t.onload)}static getDefaults(){return Object.assign(ln.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:yt,onerror:yt,release:.1,urls:{}})}_findClosest(t){let s=0;for(;s<96;){if(this._buffers.has(t+s))return-s;if(this._buffers.has(t-s))return s;s++}throw new Error(`No available buffers for note: ${t}`)}triggerAttack(t,e,s=1){return this.log("triggerAttack",t,e,s),Array.isArray(t)||(t=[t]),t.forEach(n=>{const r=uh(new Ee(this.context,n).toFrequency()),o=Math.round(r),a=r-o,c=this._findClosest(o),l=o-c,u=this._buffers.get(l),h=lh(c+a),d=new jn({url:u,context:this.context,curve:this.curve,fadeIn:this.attack,fadeOut:this.release,playbackRate:h}).connect(this.output);d.start(e,0,u.duration/h,s),Ue(this._activeSources.get(o))||this._activeSources.set(o,[]),this._activeSources.get(o).push(d),d.onended=()=>{if(this._activeSources&&this._activeSources.has(o)){const p=this._activeSources.get(o),_=p.indexOf(d);_!==-1&&p.splice(_,1)}}}),this}triggerRelease(t,e){return this.log("triggerRelease",t,e),Array.isArray(t)||(t=[t]),t.forEach(s=>{const n=new Ee(this.context,s).toMidi();if(this._activeSources.has(n)&&this._activeSources.get(n).length){const r=this._activeSources.get(n);e=this.toSeconds(e),r.forEach(o=>{o.stop(e)}),this._activeSources.set(n,[])}}),this}releaseAll(t){const e=this.toSeconds(t);return this._activeSources.forEach(s=>{for(;s.length;)s.shift().stop(e)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(t,e,s,n=1){const r=this.toSeconds(s);return this.triggerAttack(t,r,n),Ue(e)?(ut(Ue(t),"notes must be an array when duration is array"),t.forEach((o,a)=>{const c=e[Math.min(a,e.length-1)];this.triggerRelease(o,r+this.toSeconds(c))})):this.triggerRelease(t,r+this.toSeconds(e)),this}add(t,e,s){if(ut(Cr(t)||isFinite(t),`note must be a pitch or midi: ${t}`),Cr(t)){const n=new Ee(this.context,t).toMidi();this._buffers.add(n,e,s)}else this._buffers.add(t,e,s);return this}get loaded(){return this._buffers.loaded}dispose(){return super.dispose(),this._buffers.dispose(),this._activeSources.forEach(t=>{t.forEach(e=>e.dispose())}),this._activeSources.clear(),this}}Be([xs(0)],Hi.prototype,"attack",void 0);Be([xs(0)],Hi.prototype,"release",void 0);class Kr extends ot{constructor(){super(Object.assign($(Kr.getDefaults(),arguments,["fade"]))),this.name="CrossFade",this._panner=this.context.createStereoPanner(),this._split=this.context.createChannelSplitter(2),this._g2a=new e1({context:this.context}),this.a=new St({context:this.context,gain:0}),this.b=new St({context:this.context,gain:0}),this.output=new St({context:this.context}),this._internalChannels=[this.a,this.b];const t=$(Kr.getDefaults(),arguments,["fade"]);this.fade=new Ot({context:this.context,units:"normalRange",value:t.fade}),Mt(this,"fade"),this.context.getConstant(1).connect(this._panner),this._panner.connect(this._split),this._panner.channelCount=1,this._panner.channelCountMode="explicit",Ps(this._split,this.a.gain,0),Ps(this._split,this.b.gain,1),this.fade.chain(this._g2a,this._panner.pan),this.a.connect(this.output),this.b.connect(this.output)}static getDefaults(){return Object.assign(ot.getDefaults(),{fade:.5})}dispose(){return super.dispose(),this.a.dispose(),this.b.dispose(),this.output.dispose(),this.fade.dispose(),this._g2a.dispose(),this._panner.disconnect(),this._split.disconnect(),this}}class bl extends ot{constructor(t){super(t),this.name="Effect",this._dryWet=new Kr({context:this.context}),this.wet=this._dryWet.fade,this.effectSend=new St({context:this.context}),this.effectReturn=new St({context:this.context}),this.input=new St({context:this.context}),this.output=this._dryWet,this.input.fan(this._dryWet.a,this.effectSend),this.effectReturn.connect(this._dryWet.b),this.wet.setValueAtTime(t.wet,0),this._internalChannels=[this.effectReturn,this.effectSend],Mt(this,"wet")}static getDefaults(){return Object.assign(ot.getDefaults(),{wet:1})}connectEffect(t){return this._internalChannels.push(t),this.effectSend.chain(t,this.effectReturn),this}dispose(){return super.dispose(),this._dryWet.dispose(),this.effectSend.dispose(),this.effectReturn.dispose(),this.wet.dispose(),this}}class Jr extends ot{constructor(){super(Object.assign($(Jr.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const t=$(Jr.getDefaults(),arguments,["pan"]);this.pan=new kt({context:this.context,param:this._panner.pan,value:t.pan,minValue:-1,maxValue:1}),this._panner.channelCount=t.channelCount,this._panner.channelCountMode="explicit",Mt(this,"pan")}static getDefaults(){return Object.assign(ot.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const a1="bit-crusher",c1=` +`;fh(i1,r1);class Hi extends ln{constructor(){super($(Hi.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const t=$(Hi.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),e={};Object.keys(t.urls).forEach(s=>{const n=parseInt(s,10);if(ut(br(s)||Ds(n)&&isFinite(n),`url key is neither a note or midi pitch: ${s}`),br(s)){const r=new Ee(this.context,s).toMidi();e[r]=t.urls[s]}else Ds(n)&&isFinite(n)&&(e[n]=t.urls[n])}),this._buffers=new ac({urls:e,onload:t.onload,baseUrl:t.baseUrl,onerror:t.onerror}),this.attack=t.attack,this.release=t.release,this.curve=t.curve,this._buffers.loaded&&Promise.resolve().then(t.onload)}static getDefaults(){return Object.assign(ln.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:yt,onerror:yt,release:.1,urls:{}})}_findClosest(t){let s=0;for(;s<96;){if(this._buffers.has(t+s))return-s;if(this._buffers.has(t-s))return s;s++}throw new Error(`No available buffers for note: ${t}`)}triggerAttack(t,e,s=1){return this.log("triggerAttack",t,e,s),Array.isArray(t)||(t=[t]),t.forEach(n=>{const r=uh(new Ee(this.context,n).toFrequency()),o=Math.round(r),a=r-o,c=this._findClosest(o),l=o-c,u=this._buffers.get(l),h=lh(c+a),d=new jn({url:u,context:this.context,curve:this.curve,fadeIn:this.attack,fadeOut:this.release,playbackRate:h}).connect(this.output);d.start(e,0,u.duration/h,s),Ue(this._activeSources.get(o))||this._activeSources.set(o,[]),this._activeSources.get(o).push(d),d.onended=()=>{if(this._activeSources&&this._activeSources.has(o)){const p=this._activeSources.get(o),_=p.indexOf(d);_!==-1&&p.splice(_,1)}}}),this}triggerRelease(t,e){return this.log("triggerRelease",t,e),Array.isArray(t)||(t=[t]),t.forEach(s=>{const n=new Ee(this.context,s).toMidi();if(this._activeSources.has(n)&&this._activeSources.get(n).length){const r=this._activeSources.get(n);e=this.toSeconds(e),r.forEach(o=>{o.stop(e)}),this._activeSources.set(n,[])}}),this}releaseAll(t){const e=this.toSeconds(t);return this._activeSources.forEach(s=>{for(;s.length;)s.shift().stop(e)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(t,e,s,n=1){const r=this.toSeconds(s);return this.triggerAttack(t,r,n),Ue(e)?(ut(Ue(t),"notes must be an array when duration is array"),t.forEach((o,a)=>{const c=e[Math.min(a,e.length-1)];this.triggerRelease(o,r+this.toSeconds(c))})):this.triggerRelease(t,r+this.toSeconds(e)),this}add(t,e,s){if(ut(br(t)||isFinite(t),`note must be a pitch or midi: ${t}`),br(t)){const n=new Ee(this.context,t).toMidi();this._buffers.add(n,e,s)}else this._buffers.add(t,e,s);return this}get loaded(){return this._buffers.loaded}dispose(){return super.dispose(),this._buffers.dispose(),this._activeSources.forEach(t=>{t.forEach(e=>e.dispose())}),this._activeSources.clear(),this}}Be([xs(0)],Hi.prototype,"attack",void 0);Be([xs(0)],Hi.prototype,"release",void 0);class Kr extends ot{constructor(){super(Object.assign($(Kr.getDefaults(),arguments,["fade"]))),this.name="CrossFade",this._panner=this.context.createStereoPanner(),this._split=this.context.createChannelSplitter(2),this._g2a=new t1({context:this.context}),this.a=new St({context:this.context,gain:0}),this.b=new St({context:this.context,gain:0}),this.output=new St({context:this.context}),this._internalChannels=[this.a,this.b];const t=$(Kr.getDefaults(),arguments,["fade"]);this.fade=new Ot({context:this.context,units:"normalRange",value:t.fade}),Mt(this,"fade"),this.context.getConstant(1).connect(this._panner),this._panner.connect(this._split),this._panner.channelCount=1,this._panner.channelCountMode="explicit",Ps(this._split,this.a.gain,0),Ps(this._split,this.b.gain,1),this.fade.chain(this._g2a,this._panner.pan),this.a.connect(this.output),this.b.connect(this.output)}static getDefaults(){return Object.assign(ot.getDefaults(),{fade:.5})}dispose(){return super.dispose(),this.a.dispose(),this.b.dispose(),this.output.dispose(),this.fade.dispose(),this._g2a.dispose(),this._panner.disconnect(),this._split.disconnect(),this}}class Cl extends ot{constructor(t){super(t),this.name="Effect",this._dryWet=new Kr({context:this.context}),this.wet=this._dryWet.fade,this.effectSend=new St({context:this.context}),this.effectReturn=new St({context:this.context}),this.input=new St({context:this.context}),this.output=this._dryWet,this.input.fan(this._dryWet.a,this.effectSend),this.effectReturn.connect(this._dryWet.b),this.wet.setValueAtTime(t.wet,0),this._internalChannels=[this.effectReturn,this.effectSend],Mt(this,"wet")}static getDefaults(){return Object.assign(ot.getDefaults(),{wet:1})}connectEffect(t){return this._internalChannels.push(t),this.effectSend.chain(t,this.effectReturn),this}dispose(){return super.dispose(),this._dryWet.dispose(),this.effectSend.dispose(),this.effectReturn.dispose(),this.wet.dispose(),this}}class Jr extends ot{constructor(){super(Object.assign($(Jr.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const t=$(Jr.getDefaults(),arguments,["pan"]);this.pan=new kt({context:this.context,param:this._panner.pan,value:t.pan,minValue:-1,maxValue:1}),this._panner.channelCount=t.channelCount,this._panner.channelCountMode="explicit",Mt(this,"pan")}static getDefaults(){return Object.assign(ot.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const o1="bit-crusher",a1=` class BitCrusherWorklet extends SingleIOProcessor { static get parameterDescriptors() { @@ -340,7 +340,7 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b a return val; } } -`;fh(a1,c1);class to extends ot{constructor(){super($(to.getDefaults(),arguments,["channels"])),this.name="Merge";const t=$(to.getDefaults(),arguments,["channels"]);this._merger=this.output=this.input=this.context.createChannelMerger(t.channels)}static getDefaults(){return Object.assign(ot.getDefaults(),{channels:2})}dispose(){return super.dispose(),this._merger.disconnect(),this}}class eo extends bl{constructor(){super($(eo.getDefaults(),arguments,["decay"])),this.name="Reverb",this._convolver=this.context.createConvolver(),this.ready=Promise.resolve();const t=$(eo.getDefaults(),arguments,["decay"]);this._decay=t.decay,this._preDelay=t.preDelay,this.generate(),this.connectEffect(this._convolver)}static getDefaults(){return Object.assign(bl.getDefaults(),{decay:1.5,preDelay:.01})}get decay(){return this._decay}set decay(t){t=this.toSeconds(t),je(t,.001),this._decay=t,this.generate()}get preDelay(){return this._preDelay}set preDelay(t){t=this.toSeconds(t),je(t,0),this._preDelay=t,this.generate()}generate(){return qt(this,void 0,void 0,function*(){const t=this.ready,e=new wo(2,this._decay+this._preDelay,this.context.sampleRate),s=new Ni({context:e}),n=new Ni({context:e}),r=new to({context:e});s.connect(r,0,0),n.connect(r,0,1);const o=new St({context:e}).toDestination();r.connect(o),s.start(0),n.start(0),o.gain.setValueAtTime(0,0),o.gain.setValueAtTime(1,this._preDelay),o.gain.exponentialApproachValueAtTime(0,this._preDelay,this.decay);const a=e.render();return this.ready=a.then(yt),yield t,this._convolver.buffer=(yield a).get(),this})}dispose(){return super.dispose(),this._convolver.disconnect(),this}}class zt extends ot{constructor(){super($(zt.getDefaults(),arguments,["solo"])),this.name="Solo";const t=$(zt.getDefaults(),arguments,["solo"]);this.input=this.output=new St({context:this.context}),zt._allSolos.has(this.context)||zt._allSolos.set(this.context,new Set),zt._allSolos.get(this.context).add(this),this.solo=t.solo}static getDefaults(){return Object.assign(ot.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(t){t?this._addSolo():this._removeSolo(),zt._allSolos.get(this.context).forEach(e=>e._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){zt._soloed.has(this.context)||zt._soloed.set(this.context,new Set),zt._soloed.get(this.context).add(this)}_removeSolo(){zt._soloed.has(this.context)&&zt._soloed.get(this.context).delete(this)}_isSoloed(){return zt._soloed.has(this.context)&&zt._soloed.get(this.context).has(this)}_noSolos(){return!zt._soloed.has(this.context)||zt._soloed.has(this.context)&&zt._soloed.get(this.context).size===0}_updateSolo(){this._isSoloed()?this.input.gain.value=1:this._noSolos()?this.input.gain.value=1:this.input.gain.value=0}dispose(){return super.dispose(),zt._allSolos.get(this.context).delete(this),this._removeSolo(),this}}zt._allSolos=new Map;zt._soloed=new Map;class so extends ot{constructor(){super($(so.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const t=$(so.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new Jr({context:this.context,pan:t.pan,channelCount:t.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new Is({context:this.context,volume:t.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=t.mute,Mt(this,["pan","volume"])}static getDefaults(){return Object.assign(ot.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(t){this._volume.mute=t}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class $s extends ot{constructor(){super($($s.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const t=$($s.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new zt({solo:t.solo,context:this.context}),this._panVol=this.output=new so({context:this.context,pan:t.pan,volume:t.volume,mute:t.mute,channelCount:t.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),Mt(this,["pan","volume"])}static getDefaults(){return Object.assign(ot.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(t){this._solo.solo=t}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(t){this._panVol.mute=t}_getBus(t){return $s.buses.has(t)||$s.buses.set(t,new St({context:this.context})),$s.buses.get(t)}send(t,e=0){const s=this._getBus(t),n=new St({context:this.context,units:"decibels",gain:e});return this.connect(n),n.connect(s),n}receive(t){return this._getBus(t).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}$s.buses=new Map;class l1 extends ot{constructor(){super(...arguments),this.name="Listener",this.positionX=new kt({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new kt({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new kt({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new kt({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new kt({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new kt({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new kt({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new kt({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new kt({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(ot.getDefaults(),{positionX:0,positionY:0,positionZ:0,forwardX:0,forwardY:0,forwardZ:-1,upX:0,upY:1,upZ:0})}dispose(){return super.dispose(),this.positionX.dispose(),this.positionY.dispose(),this.positionZ.dispose(),this.forwardX.dispose(),this.forwardY.dispose(),this.forwardZ.dispose(),this.upX.dispose(),this.upY.dispose(),this.upZ.dispose(),this}}ko(i=>{i.listener=new l1({context:i})});To(i=>{i.listener.dispose()});Le().transport;const hc=Le().destination;Le().destination;Le().listener;Le().draw;Le();const dc=new qn(900,"highpass"),ph=new Is(-6);ph.chain(dc,hc);const u1=new eo(3).connect(ph),So=new qi({envelope:{attack:0,decay:.9,sustain:.2,release:.1}});So.oscillator.type="triangle2";So.volume.value=-6;So.chain(dc,hc);const Eo=new qi({envelope:{attack:.4,decay:.9,sustain:.7,release:.6}}).connect(u1);Eo.oscillator.type="triangle";Eo.volume.value=-6;Eo.chain(dc,hc);function h1(){return Math.floor((Math.random()-.5)*20)}let Cl=!1;const d1=async(i=0)=>{Cl||(await zy(),Cl=!0);try{if(i>2e3)Eo.triggerAttackRelease(60,.3);else if(i>1e3){let t=310;t+=h1(),So.triggerAttackRelease(t,.001)}}catch(t){console.warn(t)}},Er=1800,f1=(i,t)=>i.clone().normalize().clone().negate().normalize().multiplyScalar(t).add(i),p1=(i,t,e,s,n)=>{const r=new Jl,o=1e-5;r.absarc(o,o,o,-Math.PI/2,-Math.PI,!0),r.absarc(o,t-s*2,o,Math.PI,Math.PI/2,!0),r.absarc(i-s*2,t-s*2,o,Math.PI/2,0,!0),r.absarc(i-s*2,o,o,0,-Math.PI/2,!0);const a=new Sf(r,{depth:e-s*2,bevelEnabled:!0,bevelSegments:n,steps:2,bevelSize:s,bevelThickness:s,curveSegments:n});a.center();const c=[],l=a.getAttribute("normal"),u=a.getAttribute("position");for(let h=0;h.9?(_=p.x/i+.5,f=1-(p.z/e+.5)):Math.abs(d.x)>.9?(_=-p.z/e+.5,f=1-(-p.y/t+.5)):Math.abs(d.z)>.9&&(_=p.x/i+.5,f=1-(-p.y/t+.5)),c.push(_,f)}return a.setAttribute("uv",new Mr(c,2)),a};p1(10,10,10,2,10);new Cf(10,10,10);const m1=500,_1=800,g1=new rt(0,0,0),no=.5,y1=16777215,v1=50,x1=(i,t)=>{var r,o;if(!(i!=null&&i.ref_id)||!(t!=null&&t.ref_id))return!1;let e=!1;const s=i.guests,n=t.guests;return((r=i.children)!=null&&r.includes(t.ref_id)||(o=t.children)!=null&&o.includes(i.ref_id))&&(e=!0),(s!=null&&s.find(a=>a.ref_id===t.ref_id)||n!=null&&n.find(a=>a.ref_id===i.ref_id))&&(e=!0),e};let mi=null;const k1=500,mh=(i,t)=>{if(mi)return null;mi=setTimeout(()=>{mi&&(clearTimeout(mi),mi=null)},k1);const e=[];return i.forEach(n=>{const r=t.position.distanceTo(g1.set(n.x,n.y,n.z));r<_1&&e.push({id:n.ref_id||"",distance:r})}),e.sort((n,r)=>n.distance-r.distance).slice(0,m1).map(n=>n.id)};let wn,_i;const T1=1e3,w1=2e3,b1=i=>{const t=gs(),e=Es(x=>x.isUserDragging),s=Es(x=>x.isUserScrolling),n=Es(x=>x.setUserMovedCamera),{data:r,graphStyle:o,showSelectionGraph:a,setNearbyNodeIds:c,cameraFocusTrigger:l,graphRadius:u}=pe(x=>x),{camera:h}=It(),[d,p]=P.useState(!1),[_,f]=P.useState(!1),[m,v]=P.useState(sl),b=P.useMemo(()=>{if(a)return new rt(0,0,0);const x=r==null?void 0:r.nodes.find(I=>I.ref_id===(t==null?void 0:t.ref_id)),C=u+300;let O=new rt(0,0,C);if(x&&r){const I=r==null?void 0:r.nodes.filter(Y=>{var j;return(j=x.children)==null?void 0:j.find(z=>z===Y.id)}),M=new rt(x.x,x.y,x.z);let V=new rt(0,0,0);I.map(Y=>(V=V.add(new rt(Y.x,Y.y,Y.z).normalize()),Y));const B=x.scale?1-1/(x.scale+10):1,G=M.sub(V).multiplyScalar(.8*B);O=M.add(G)}return O},[a,t,r,u]),w=P.useMemo(()=>{if(a)return new rt(0,0,0);const x=r==null?void 0:r.nodes.find(C=>C.ref_id===(t==null?void 0:t.ref_id));return new rt((x==null?void 0:x.x)||0,(x==null?void 0:x.y)||0,(x==null?void 0:x.z)||0)},[a,t,r]);P.useEffect(()=>{var x;a&&((x=i.current)==null||x.setLookAt(Bo.x,Bo.y,Bo.z,0,0,0,!1)),g()},[a]),P.useEffect(()=>{a?v(m0):(t==null?void 0:t.node_type)==="topic"?v(p0):v(sl)},[t,v,a]),P.useEffect(()=>{y()},[l]),P.useEffect(()=>{(e||s)&&(p(!0),f(!0))},[e,s,p,f]),P.useEffect(()=>{if(t)if(!a&&o==="earth"&&(i!=null&&i.current)){const x=i.current.camera.position.distanceTo(new rt),C=f1(w,-x/2);i.current.setLookAt(C.x,C.y,C.z,0,0,0,!0)}else wn&&clearTimeout(wn),wn=setTimeout(()=>{f(!0),clearTimeout(wn)},w1),g();return()=>{wn&&clearTimeout(wn),_i&&clearTimeout(_i)}},[t]),Pe(x=>{i.current&&(d||T(b,x.camera),_||k(w,x.camera))});const g=()=>{if(t){const x=h.position.distanceTo(b);d1(x)}y()},y=()=>{p(!1),f(!1),n(!1),_i&&clearTimeout(_i),_i=setTimeout(()=>{p(!0),f(!0)},T1)},T=(x,C)=>{if(C.position.distanceTo(x){var O;(O=i==null?void 0:i.current)==null||O.setLookAt(C.position.x,C.position.y,C.position.z,x.x,x.y,x.z,!0)};return null},C1=1;let Or=null;const S1=(i,{enabled:t})=>{const e=gs();b1(i);const s=Es(a=>a.isUserDragging),{graphStyle:n,graphRadius:r,disableCameraRotation:o}=pe(a=>a);return P.useEffect(()=>{t||(Or==null||Or.kill(),Or=null)},[t]),P.useEffect(()=>{i.current&&r&&(n==="sphere"?(i.current.maxDistance=8e3,i.current.minDistance=200,i.current.setTarget(0,0,500,!0)):(i.current.maxDistance=i.current.getDistanceToFitSphere(r+200),i.current.minDistance=100))},[r,n,i]),P.useEffect(()=>{!e&&i.current&&i.current.setLookAt(Ti.x,Ti.y,r,0,0,0,!0)},[e,r]),Pe((a,c)=>{i.current&&(!o&&!s&&(i.current.azimuthAngle+=C1*c*Ef.DEG2RAD),i.current.update(c))}),null},E1=({disableAnimations:i})=>{const t=P.useRef(null),{data:e,setNearbyNodeIds:s,setDisableCameraRotation:n}=pe(h=>h),[r]=P.useState(.8),{camera:o}=It(),[a,c,l,u]=Es(h=>[h.isUserDragging,h.setIsUserDragging,h.isUserScrolling,h.isUserScrollingOnHtmlPanel]);return S1(t,{enabled:!i&&!l&&!a}),P.useEffect(()=>{if(!a){const h=mh((e==null?void 0:e.nodes)||[],o);h&&s(h)}},[o,o.position,o.position.x,o.position.y,o.position.z,e==null?void 0:e.nodes,s,a]),P.useEffect(()=>{a&&n(!0)},[a,n]),L.jsx(Gf,{ref:t,boundaryEnclosesCamera:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>c(!1),onStart:()=>c(!0),smoothTime:r})};function cs(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function _h(i,t){i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.__proto__=t}/*! +`;fh(o1,a1);class to extends ot{constructor(){super($(to.getDefaults(),arguments,["channels"])),this.name="Merge";const t=$(to.getDefaults(),arguments,["channels"]);this._merger=this.output=this.input=this.context.createChannelMerger(t.channels)}static getDefaults(){return Object.assign(ot.getDefaults(),{channels:2})}dispose(){return super.dispose(),this._merger.disconnect(),this}}class eo extends Cl{constructor(){super($(eo.getDefaults(),arguments,["decay"])),this.name="Reverb",this._convolver=this.context.createConvolver(),this.ready=Promise.resolve();const t=$(eo.getDefaults(),arguments,["decay"]);this._decay=t.decay,this._preDelay=t.preDelay,this.generate(),this.connectEffect(this._convolver)}static getDefaults(){return Object.assign(Cl.getDefaults(),{decay:1.5,preDelay:.01})}get decay(){return this._decay}set decay(t){t=this.toSeconds(t),je(t,.001),this._decay=t,this.generate()}get preDelay(){return this._preDelay}set preDelay(t){t=this.toSeconds(t),je(t,0),this._preDelay=t,this.generate()}generate(){return qt(this,void 0,void 0,function*(){const t=this.ready,e=new wo(2,this._decay+this._preDelay,this.context.sampleRate),s=new Ni({context:e}),n=new Ni({context:e}),r=new to({context:e});s.connect(r,0,0),n.connect(r,0,1);const o=new St({context:e}).toDestination();r.connect(o),s.start(0),n.start(0),o.gain.setValueAtTime(0,0),o.gain.setValueAtTime(1,this._preDelay),o.gain.exponentialApproachValueAtTime(0,this._preDelay,this.decay);const a=e.render();return this.ready=a.then(yt),yield t,this._convolver.buffer=(yield a).get(),this})}dispose(){return super.dispose(),this._convolver.disconnect(),this}}class zt extends ot{constructor(){super($(zt.getDefaults(),arguments,["solo"])),this.name="Solo";const t=$(zt.getDefaults(),arguments,["solo"]);this.input=this.output=new St({context:this.context}),zt._allSolos.has(this.context)||zt._allSolos.set(this.context,new Set),zt._allSolos.get(this.context).add(this),this.solo=t.solo}static getDefaults(){return Object.assign(ot.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(t){t?this._addSolo():this._removeSolo(),zt._allSolos.get(this.context).forEach(e=>e._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){zt._soloed.has(this.context)||zt._soloed.set(this.context,new Set),zt._soloed.get(this.context).add(this)}_removeSolo(){zt._soloed.has(this.context)&&zt._soloed.get(this.context).delete(this)}_isSoloed(){return zt._soloed.has(this.context)&&zt._soloed.get(this.context).has(this)}_noSolos(){return!zt._soloed.has(this.context)||zt._soloed.has(this.context)&&zt._soloed.get(this.context).size===0}_updateSolo(){this._isSoloed()?this.input.gain.value=1:this._noSolos()?this.input.gain.value=1:this.input.gain.value=0}dispose(){return super.dispose(),zt._allSolos.get(this.context).delete(this),this._removeSolo(),this}}zt._allSolos=new Map;zt._soloed=new Map;class so extends ot{constructor(){super($(so.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const t=$(so.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new Jr({context:this.context,pan:t.pan,channelCount:t.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new Is({context:this.context,volume:t.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=t.mute,Mt(this,["pan","volume"])}static getDefaults(){return Object.assign(ot.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(t){this._volume.mute=t}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class $s extends ot{constructor(){super($($s.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const t=$($s.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new zt({solo:t.solo,context:this.context}),this._panVol=this.output=new so({context:this.context,pan:t.pan,volume:t.volume,mute:t.mute,channelCount:t.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),Mt(this,["pan","volume"])}static getDefaults(){return Object.assign(ot.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(t){this._solo.solo=t}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(t){this._panVol.mute=t}_getBus(t){return $s.buses.has(t)||$s.buses.set(t,new St({context:this.context})),$s.buses.get(t)}send(t,e=0){const s=this._getBus(t),n=new St({context:this.context,units:"decibels",gain:e});return this.connect(n),n.connect(s),n}receive(t){return this._getBus(t).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}$s.buses=new Map;class c1 extends ot{constructor(){super(...arguments),this.name="Listener",this.positionX=new kt({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new kt({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new kt({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new kt({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new kt({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new kt({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new kt({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new kt({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new kt({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(ot.getDefaults(),{positionX:0,positionY:0,positionZ:0,forwardX:0,forwardY:0,forwardZ:-1,upX:0,upY:1,upZ:0})}dispose(){return super.dispose(),this.positionX.dispose(),this.positionY.dispose(),this.positionZ.dispose(),this.forwardX.dispose(),this.forwardY.dispose(),this.forwardZ.dispose(),this.upX.dispose(),this.upY.dispose(),this.upZ.dispose(),this}}ko(i=>{i.listener=new c1({context:i})});To(i=>{i.listener.dispose()});Le().transport;const hc=Le().destination;Le().destination;Le().listener;Le().draw;Le();const dc=new qn(900,"highpass"),ph=new Is(-6);ph.chain(dc,hc);const l1=new eo(3).connect(ph),So=new qi({envelope:{attack:0,decay:.9,sustain:.2,release:.1}});So.oscillator.type="triangle2";So.volume.value=-6;So.chain(dc,hc);const Eo=new qi({envelope:{attack:.4,decay:.9,sustain:.7,release:.6}}).connect(l1);Eo.oscillator.type="triangle";Eo.volume.value=-6;Eo.chain(dc,hc);function u1(){return Math.floor((Math.random()-.5)*20)}let Sl=!1;const h1=async(i=0)=>{Sl||(await Uy(),Sl=!0);try{if(i>2e3)Eo.triggerAttackRelease(60,.3);else if(i>1e3){let t=310;t+=u1(),So.triggerAttackRelease(t,.001)}}catch(t){console.warn(t)}},Sr=1800,d1=(i,t)=>i.clone().normalize().clone().negate().normalize().multiplyScalar(t).add(i),f1=(i,t,e,s,n)=>{const r=new tu,o=1e-5;r.absarc(o,o,o,-Math.PI/2,-Math.PI,!0),r.absarc(o,t-s*2,o,Math.PI,Math.PI/2,!0),r.absarc(i-s*2,t-s*2,o,Math.PI/2,0,!0),r.absarc(i-s*2,o,o,0,-Math.PI/2,!0);const a=new Cf(r,{depth:e-s*2,bevelEnabled:!0,bevelSegments:n,steps:2,bevelSize:s,bevelThickness:s,curveSegments:n});a.center();const c=[],l=a.getAttribute("normal"),u=a.getAttribute("position");for(let h=0;h.9?(_=p.x/i+.5,f=1-(p.z/e+.5)):Math.abs(d.x)>.9?(_=-p.z/e+.5,f=1-(-p.y/t+.5)):Math.abs(d.z)>.9&&(_=p.x/i+.5,f=1-(-p.y/t+.5)),c.push(_,f)}return a.setAttribute("uv",new Mr(c,2)),a};f1(10,10,10,2,10);new bf(10,10,10);const p1=500,m1=800,_1=new it(0,0,0),El=1,g1=16777215,y1=50,v1=(i,t)=>{var r,o;if(!(i!=null&&i.ref_id)||!(t!=null&&t.ref_id))return!1;let e=!1;const s=i.guests,n=t.guests;return((r=i.children)!=null&&r.includes(t.ref_id)||(o=t.children)!=null&&o.includes(i.ref_id))&&(e=!0),(s!=null&&s.find(a=>a.ref_id===t.ref_id)||n!=null&&n.find(a=>a.ref_id===i.ref_id))&&(e=!0),e};let mi=null;const x1=500,mh=(i,t)=>{if(mi)return null;mi=setTimeout(()=>{mi&&(clearTimeout(mi),mi=null)},x1);const e=[];return i.forEach(n=>{const r=t.position.distanceTo(_1.set(n.x,n.y,n.z));rn.distance-r.distance).slice(0,p1).map(n=>n.id)};let wn,_i;const k1=1e3,T1=2e3,w1=i=>{const t=gs(),e=Es(x=>x.isUserDragging),s=Es(x=>x.isUserScrolling),n=Es(x=>x.setUserMovedCamera),{data:r,graphStyle:o,showSelectionGraph:a,setNearbyNodeIds:c,cameraFocusTrigger:l,graphRadius:u}=pe(x=>x),{camera:h}=It(),[d,p]=I.useState(!1),[_,f]=I.useState(!1),[m,v]=I.useState(nl),w=I.useMemo(()=>{if(a)return new it(0,0,0);const x=r==null?void 0:r.nodes.find(D=>D.ref_id===(t==null?void 0:t.ref_id)),C=u+300;let O=new it(0,0,C);if(x&&r){const D=r==null?void 0:r.nodes.filter(Y=>{var j;return(j=x.children)==null?void 0:j.find(z=>z===Y.id)}),M=new it(x.x,x.y,x.z);let V=new it(0,0,0);D.map(Y=>(V=V.add(new it(Y.x,Y.y,Y.z).normalize()),Y));const B=x.scale?1-1/(x.scale+10):1,G=M.sub(V).multiplyScalar(.8*B);O=M.add(G)}return O},[a,t,r,u]),b=I.useMemo(()=>{if(a)return new it(0,0,0);const x=r==null?void 0:r.nodes.find(C=>C.ref_id===(t==null?void 0:t.ref_id));return new it((x==null?void 0:x.x)||0,(x==null?void 0:x.y)||0,(x==null?void 0:x.z)||0)},[a,t,r]);I.useEffect(()=>{var x;a&&((x=i.current)==null||x.setLookAt(Bo.x,Bo.y,Bo.z,0,0,0,!1)),g()},[a]),I.useEffect(()=>{a?v(p0):(t==null?void 0:t.node_type)==="topic"?v(f0):v(nl)},[t,v,a]),I.useEffect(()=>{y()},[l]),I.useEffect(()=>{(e||s)&&(p(!0),f(!0))},[e,s,p,f]),I.useEffect(()=>{if(t)if(!a&&o==="earth"&&(i!=null&&i.current)){const x=i.current.camera.position.distanceTo(new it),C=d1(b,-x/2);i.current.setLookAt(C.x,C.y,C.z,0,0,0,!0)}else wn&&clearTimeout(wn),wn=setTimeout(()=>{f(!0),clearTimeout(wn)},T1),g();return()=>{wn&&clearTimeout(wn),_i&&clearTimeout(_i)}},[t]),Pe(x=>{i.current&&(d||T(w,x.camera),_||k(b,x.camera))});const g=()=>{if(t){const x=h.position.distanceTo(w);h1(x)}y()},y=()=>{p(!1),f(!1),n(!1),_i&&clearTimeout(_i),_i=setTimeout(()=>{p(!0),f(!0)},k1)},T=(x,C)=>{if(C.position.distanceTo(x){var O;(O=i==null?void 0:i.current)==null||O.setLookAt(C.position.x,C.position.y,C.position.z,x.x,x.y,x.z,!0)};return null},b1=1;let Er=null;const C1=(i,{enabled:t})=>{const e=gs();w1(i);const s=Es(a=>a.isUserDragging),{graphStyle:n,graphRadius:r,disableCameraRotation:o}=pe(a=>a);return I.useEffect(()=>{t||(Er==null||Er.kill(),Er=null)},[t]),I.useEffect(()=>{i.current&&r&&(n==="sphere"?(i.current.maxDistance=8e3,i.current.minDistance=200,i.current.setTarget(0,0,500,!0)):(i.current.maxDistance=i.current.getDistanceToFitSphere(r+200),i.current.minDistance=100))},[r,n,i]),I.useEffect(()=>{!e&&i.current&&i.current.setLookAt(Ti.x,Ti.y,r,0,0,0,!0)},[e,r]),Pe((a,c)=>{i.current&&(!o&&!s&&(i.current.azimuthAngle+=b1*c*Sf.DEG2RAD),i.current.update(c))}),null},S1=({disableAnimations:i})=>{const t=I.useRef(null),{data:e,setNearbyNodeIds:s,setDisableCameraRotation:n}=pe(h=>h),[r]=I.useState(.8),{camera:o}=It(),[a,c,l,u]=Es(h=>[h.isUserDragging,h.setIsUserDragging,h.isUserScrolling,h.isUserScrollingOnHtmlPanel]);return C1(t,{enabled:!i&&!l&&!a}),I.useEffect(()=>{if(!a){const h=mh((e==null?void 0:e.nodes)||[],o);h&&s(h)}},[o,o.position,o.position.x,o.position.y,o.position.z,e==null?void 0:e.nodes,s,a]),I.useEffect(()=>{a&&n(!0)},[a,n]),L.jsx(Yf,{ref:t,boundaryEnclosesCamera:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>c(!1),onStart:()=>c(!0),smoothTime:r})};function cs(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function _h(i,t){i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.__proto__=t}/*! * GSAP 3.12.4 * https://gsap.com * @@ -348,7 +348,7 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b 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 ke={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Wn={duration:.5,overwrite:!1,delay:0},fc,Jt,Lt,Oe=1e8,Ct=1/Oe,ma=Math.PI*2,O1=ma/4,A1=0,gh=Math.sqrt,M1=Math.cos,D1=Math.sin,Xt=function(t){return typeof t=="string"},Vt=function(t){return typeof t=="function"},ps=function(t){return typeof t=="number"},pc=function(t){return typeof t>"u"},Je=function(t){return typeof t=="object"},ue=function(t){return t!==!1},mc=function(){return typeof window<"u"},Ar=function(t){return Vt(t)||Xt(t)},yh=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},te=Array.isArray,_a=/(?:-?\.?\d|\.)+/gi,vh=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Mn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ho=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,xh=/[+-]=-?[.\d]+/,kh=/[^,'"\[\]\s]+/gi,P1=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Nt,Ce,ga,_c,Te={},io={},Th,wh=function(t){return(io=un(t,Te))&&_e},gc=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Yi=function(t,e){return!e&&console.warn(t)},bh=function(t,e){return t&&(Te[t]=e)&&io&&(io[t]=e)||Te},Gi=function(){return 0},I1={suppressEvents:!0,isStart:!0,kill:!1},Ir={suppressEvents:!0,kill:!1},N1={suppressEvents:!0},yc={},As=[],ya={},Ch,ge={},Yo={},Sl=30,Nr=[],vc="",xc=function(t){var e=t[0],s,n;if(Je(e)||Vt(e)||(t=[t]),!(s=(e._gsap||{}).harness)){for(n=Nr.length;n--&&!Nr[n].targetTest(e););s=Nr[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Zh(t[n],s)))||t.splice(n,1);return t},tn=function(t){return t._gsap||xc(Ae(t))[0]._gsap},Sh=function(t,e,s){return(s=t[e])&&Vt(s)?t[e]():pc(s)&&t.getAttribute&&t.getAttribute(e)||s},he=function(t,e){return(t=t.split(",")).forEach(e)||t},jt=function(t){return Math.round(t*1e5)/1e5||0},$t=function(t){return Math.round(t*1e7)/1e7||0},Nn=function(t,e){var s=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),s==="+"?t+n:s==="-"?t-n:s==="*"?t*n:t/n},R1=function(t,e){for(var s=e.length,n=0;t.indexOf(e[n])<0&&++na;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[s],t[s]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Oo=function(t,e,s,n){s===void 0&&(s="_first"),n===void 0&&(n="_last");var r=e._prev,o=e._next;r?r._next=o:t[s]===e&&(t[s]=o),o?o._prev=r:t[n]===e&&(t[n]=r),e._next=e._prev=e.parent=null},Fs=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},en=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var s=t;s;)s._dirty=1,s=s.parent;return t},V1=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},va=function(t,e,s,n){return t._startAt&&(Jt?t._startAt.revert(Ir):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},U1=function i(t){return!t||t._ts&&i(t.parent)},Ol=function(t){return t._repeat?Hn(t._tTime,t=t.duration()+t._rDelay)*t:0},Hn=function(t,e){var s=Math.floor(t/=e);return t&&s===t?s-1:s},ao=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ao=function(t){return t._end=$t(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ct)||0))},Mo=function(t,e){var s=t._dp;return s&&s.smoothChildTiming&&t._ts&&(t._start=$t(s._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ao(t),s._dirty||en(s,t)),t},Dh=function(t,e){var s;if((e._time||!e._dur&&e._initted||e._startCt)&&e.render(s,!0)),en(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&s.totalTime(s._tTime),s=s._dp;t._zTime=-Ct}},$e=function(t,e,s,n){return e.parent&&Fs(e),e._start=$t((ps(s)?s:s||t!==Nt?be(t,s,e):t._time)+e._delay),e._end=$t(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Mh(t,e,"_first","_last",t._sort?"_start":0),xa(e)||(t._recent=e),n||Dh(t,e),t._ts<0&&Mo(t,t._tTime),t},Ph=function(t,e){return(Te.ScrollTrigger||gc("scrollTrigger",e))&&Te.ScrollTrigger.create(e,t)},Ih=function(t,e,s,n,r){if(Tc(t,e,r),!t._initted)return 1;if(!s&&t._pt&&!Jt&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Ch!==ye.frame)return As.push(t),t._lazy=[r,n],1},z1=function i(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||i(e))},xa=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},j1=function(t,e,s,n){var r=t.ratio,o=e<0||!e&&(!t._start&&z1(t)&&!(!t._initted&&xa(t))||(t._ts<0||t._dp._ts<0)&&!xa(t))?0:1,a=t._rDelay,c=0,l,u,h;if(a&&t._repeat&&(c=dr(0,t._tDur,e),u=Hn(c,a),t._yoyo&&u&1&&(o=1-o),u!==Hn(t._tTime,a)&&(r=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==r||Jt||n||t._zTime===Ct||!e&&t._zTime){if(!t._initted&&Ih(t,e,n,s,c))return;for(h=t._zTime,t._zTime=e||(s?Ct:0),s||(s=e&&!h),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=c,l=t._pt;l;)l.r(o,l.d),l=l._next;e<0&&va(t,e,s,!0),t._onUpdate&&!s&&ve(t,"onUpdate"),c&&t._repeat&&!s&&t.parent&&ve(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&Fs(t,1),!s&&!Jt&&(ve(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},B1=function(t,e,s){var n;if(s>e)for(n=t._first;n&&n._start<=s;){if(n.data==="isPause"&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=s;){if(n.data==="isPause"&&n._start0&&!n&&Mo(t,t._tTime=t._tDur*a),t.parent&&Ao(t),s||en(t.parent,t),t},Al=function(t){return t instanceof ie?en(t):Yn(t,t._dur)},q1={_start:0,endTime:Gi,totalDuration:Gi},be=function i(t,e,s){var n=t.labels,r=t._recent||q1,o=t.duration()>=Oe?r.endTime(!1):t._dur,a,c,l;return Xt(e)&&(isNaN(e)||e in n)?(c=e.charAt(0),l=e.substr(-1)==="%",a=e.indexOf("="),c==="<"||c===">"?(a>=0&&(e=e.replace(/=/,"")),(c==="<"?r._start:r.endTime(r._repeat>=0))+(parseFloat(e.substr(1))||0)*(l?(a<0?r:s).totalDuration()/100:1)):a<0?(e in n||(n[e]=o),n[e]):(c=parseFloat(e.charAt(a-1)+e.substr(a+1)),l&&s&&(c=c/100*(te(s)?s[0]:s).totalDuration()),a>1?i(t,e.substr(0,a-1),s)+c:o+c)):e==null?o:+e},Ci=function(t,e,s){var n=ps(e[1]),r=(n?2:1)+(t<2?0:1),o=e[r],a,c;if(n&&(o.duration=e[1]),o.parent=s,t){for(a=o,c=s;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=ue(c.vars.inherit)&&c.parent;o.immediateRender=ue(a.immediateRender),t<2?o.runBackwards=1:o.startAt=e[r-1]}return new Ht(e[0],o,e[r+1])},js=function(t,e){return t||t===0?e(t):e},dr=function(t,e,s){return se?e:s},Kt=function(t,e){return!Xt(t)||!(e=P1.exec(t))?"":e[1]},W1=function(t,e,s){return js(s,function(n){return dr(t,e,n)})},ka=[].slice,Nh=function(t,e){return t&&Je(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Je(t[0]))&&!t.nodeType&&t!==Ce},H1=function(t,e,s){return s===void 0&&(s=[]),t.forEach(function(n){var r;return Xt(n)&&!e||Nh(n,1)?(r=s).push.apply(r,Ae(n)):s.push(n)})||s},Ae=function(t,e,s){return Lt&&!e&&Lt.selector?Lt.selector(t):Xt(t)&&!s&&(ga||!Gn())?ka.call((e||_c).querySelectorAll(t),0):te(t)?H1(t,s):Nh(t)?ka.call(t,0):t?[t]:[]},Ta=function(t){return t=Ae(t)[0]||Yi("Invalid scope")||{},function(e){var s=t.current||t.nativeElement||t;return Ae(e,s.querySelectorAll?s:s===t?Yi("Invalid scope")||_c.createElement("div"):t)}},Rh=function(t){return t.sort(function(){return .5-Math.random()})},Fh=function(t){if(Vt(t))return t;var e=Je(t)?t:{each:t},s=sn(e.ease),n=e.from||0,r=parseFloat(e.base)||0,o={},a=n>0&&n<1,c=isNaN(n)||a,l=e.axis,u=n,h=n;return Xt(n)?u=h={center:.5,edges:.5,end:1}[n]||0:!a&&c&&(u=n[0],h=n[1]),function(d,p,_){var f=(_||e).length,m=o[f],v,b,w,g,y,T,k,x,C;if(!m){if(C=e.grid==="auto"?0:(e.grid||[1,Oe])[1],!C){for(k=-Oe;k<(k=_[C++].getBoundingClientRect().left)&&Ck&&(k=y),yf?f-1:l?l==="y"?f/C:C:Math.max(C,f/C))||0)*(n==="edges"?-1:1),m.b=f<0?r-f:r,m.u=Kt(e.amount||e.each)||0,s=s&&f<0?Yh(s):s}return f=(m[d]-m.min)/m.max||0,$t(m.b+(s?s(f):f)*m.v)+m.u}},wa=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(s){var n=$t(Math.round(parseFloat(s)/t)*t*e);return(n-n%1)/e+(ps(s)?0:Kt(s))}},Lh=function(t,e){var s=te(t),n,r;return!s&&Je(t)&&(n=s=t.radius||Oe,t.values?(t=Ae(t.values),(r=!ps(t[0]))&&(n*=n)):t=wa(t.increment)),js(e,s?Vt(t)?function(o){return r=t(o),Math.abs(r-o)<=n?r:o}:function(o){for(var a=parseFloat(r?o.x:o),c=parseFloat(r?o.y:0),l=Oe,u=0,h=t.length,d,p;h--;)r?(d=t[h].x-a,p=t[h].y-c,d=d*d+p*p):d=Math.abs(t[h]-a),dn?r-o:o)})},$i=function(t){for(var e=0,s="",n,r,o,a;~(n=t.indexOf("random(",e));)o=t.indexOf(")",n),a=t.charAt(n+7)==="[",r=t.substr(n+7,o-n-7).match(a?kh:_a),s+=t.substr(e,n-e)+Vh(a?r:+r[0],a?0:+r[1],+r[2]||1e-5),e=o+1;return s+t.substr(e,t.length-e)},zh=function(t,e,s,n,r){var o=e-t,a=n-s;return js(r,function(c){return s+((c-t)/o*a||0)})},Q1=function i(t,e,s,n){var r=isNaN(t+e)?0:function(p){return(1-p)*t+p*e};if(!r){var o=Xt(t),a={},c,l,u,h,d;if(s===!0&&(n=1)&&(s=null),o)t={p:t},e={p:e};else if(te(t)&&!te(e)){for(u=[],h=t.length,d=h-2,l=1;l(a=Math.abs(a))&&(c=o,r=a);return c},ve=function(t,e,s){var n=t.vars,r=n[e],o=Lt,a=t._ctx,c,l,u;if(r)return c=n[e+"Params"],l=n.callbackScope||t,s&&As.length&&ro(),a&&(Lt=a),u=c?r.apply(l,c):r.call(l),Lt=o,u},vi=function(t){return Fs(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Jt),t.progress()<1&&ve(t,"onInterrupt"),t},Dn,jh=[],Bh=function(t){if(mc()&&t){t=!t.name&&t.default||t;var e=t.name,s=Vt(t),n=e&&!s&&t.init?function(){this._props=[]}:t,r={init:Gi,render:Cc,add:kc,kill:fv,modifier:dv,rawVars:0},o={targetTest:0,get:0,getSetter:bc,aliases:{},register:0};if(Gn(),t!==n){if(ge[e])return;De(n,De(oo(t,r),o)),un(n.prototype,un(r,oo(t,o))),ge[n.prop=e]=n,t.targetTest&&(Nr.push(n),yc[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}bh(e,n),t.register&&t.register(_e,n,de)}else t&&jh.push(t)},bt=255,xi={aqua:[0,bt,bt],lime:[0,bt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,bt],navy:[0,0,128],white:[bt,bt,bt],olive:[128,128,0],yellow:[bt,bt,0],orange:[bt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[bt,0,0],pink:[bt,192,203],cyan:[0,bt,bt],transparent:[bt,bt,bt,0]},Go=function(t,e,s){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(s-e)*t*6:t<.5?s:t*3<2?e+(s-e)*(2/3-t)*6:e)*bt+.5|0},qh=function(t,e,s){var n=t?ps(t)?[t>>16,t>>8&bt,t&bt]:0:xi.black,r,o,a,c,l,u,h,d,p,_;if(!n){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),xi[t])n=xi[t];else if(t.charAt(0)==="#"){if(t.length<6&&(r=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+r+r+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return n=parseInt(t.substr(1,6),16),[n>>16,n>>8&bt,n&bt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),n=[t>>16,t>>8&bt,t&bt]}else if(t.substr(0,3)==="hsl"){if(n=_=t.match(_a),!e)c=+n[0]%360/360,l=+n[1]/100,u=+n[2]/100,o=u<=.5?u*(l+1):u+l-u*l,r=u*2-o,n.length>3&&(n[3]*=1),n[0]=Go(c+1/3,r,o),n[1]=Go(c,r,o),n[2]=Go(c-1/3,r,o);else if(~t.indexOf("="))return n=t.match(vh),s&&n.length<4&&(n[3]=1),n}else n=t.match(_a)||xi.transparent;n=n.map(Number)}return e&&!_&&(r=n[0]/bt,o=n[1]/bt,a=n[2]/bt,h=Math.max(r,o,a),d=Math.min(r,o,a),u=(h+d)/2,h===d?c=l=0:(p=h-d,l=u>.5?p/(2-h-d):p/(h+d),c=h===r?(o-a)/p+(ot&&(s+=v-e),n+=v,y=n-s,w=y-o,(w>0||b)&&(T=++h.frame,d=y-h.time*1e3,h.time=y=y/1e3,o+=w+(w>=r?4:r-w),g=1),b||(c=l(f)),g)for(p=0;p=v&&p--},_listeners:a},h}(),Gn=function(){return!Zi&&ye.wake()},ft={},J1=/^[\d.\-M][\d.\-,\s]/,tv=/["']/g,ev=function(t){for(var e={},s=t.substr(1,t.length-3).split(":"),n=s[0],r=1,o=s.length,a,c,l;r1&&s.config?s.config.apply(null,~t.indexOf("{")?[ev(e[1])]:sv(t).split(",").map(Oh)):ft._CE&&J1.test(t)?ft._CE("",t):s},Yh=function(t){return function(e){return 1-t(1-e)}},Gh=function i(t,e){for(var s=t._first,n;s;)s instanceof ie?i(s,e):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==e&&(s.timeline?i(s.timeline,e):(n=s._ease,s._ease=s._yEase,s._yEase=n,s._yoyo=e)),s=s._next},sn=function(t,e){return t&&(Vt(t)?t:ft[t]||nv(t))||e},mn=function(t,e,s,n){s===void 0&&(s=function(c){return 1-e(1-c)}),n===void 0&&(n=function(c){return c<.5?e(c*2)/2:1-e((1-c)*2)/2});var r={easeIn:e,easeOut:s,easeInOut:n},o;return he(t,function(a){ft[a]=Te[a]=r,ft[o=a.toLowerCase()]=s;for(var c in r)ft[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=ft[a+"."+c]=r[c]}),r},$h=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},$o=function i(t,e,s){var n=e>=1?e:1,r=(s||(t?.3:.45))/(e<1?e:1),o=r/ma*(Math.asin(1/n)||0),a=function(u){return u===1?1:n*Math.pow(2,-10*u)*D1((u-o)*r)+1},c=t==="out"?a:t==="in"?function(l){return 1-a(1-l)}:$h(a);return r=ma/r,c.config=function(l,u){return i(t,l,u)},c},Zo=function i(t,e){e===void 0&&(e=1.70158);var s=function(o){return o?--o*o*((e+1)*o+e)+1:0},n=t==="out"?s:t==="in"?function(r){return 1-s(1-r)}:$h(s);return n.config=function(r){return i(t,r)},n};he("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,t){var e=t<5?t+1:t;mn(i+",Power"+(e-1),t?function(s){return Math.pow(s,e)}:function(s){return s},function(s){return 1-Math.pow(1-s,e)},function(s){return s<.5?Math.pow(s*2,e)/2:1-Math.pow((1-s)*2,e)/2})});ft.Linear.easeNone=ft.none=ft.Linear.easeIn;mn("Elastic",$o("in"),$o("out"),$o());(function(i,t){var e=1/t,s=2*e,n=2.5*e,r=function(a){return a0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},t.totalDuration=function(s){return arguments.length?(this._dirty=0,Yn(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(s,n){if(Gn(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Mo(this,s),!r._dp||r.parent||Dh(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&s0||!this._tDur&&!s)&&$e(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===Ct||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),Eh(this,s,n)),this},t.time=function(s,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+Ol(this))%(this._dur+this._rDelay)||(s?this._dur:0),n):this._time},t.totalProgress=function(s,n){return arguments.length?this.totalTime(this.totalDuration()*s,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(s,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+Ol(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(s,n){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*r,n):this._repeat?Hn(this._tTime,r)+1:1},t.timeScale=function(s,n){if(!arguments.length)return this._rts===-Ct?0:this._rts;if(this._rts===s)return this;var r=this.parent&&this._ts?ao(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-Ct?0:this._rts,this.totalTime(dr(-Math.abs(this._delay),this._tDur,r),n!==!1),Ao(this),V1(this)},t.paused=function(s){return arguments.length?(this._ps!==s&&(this._ps=s,s?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Gn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ct&&(this._tTime-=Ct)))),this):this._ps},t.startTime=function(s){if(arguments.length){this._start=s;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&$e(n,this,s-this._delay),this}return this._start},t.endTime=function(s){return this._start+(ue(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(s){var n=this.parent||this._dp;return n?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ao(n.rawTime(s),this):this._tTime:this._tTime},t.revert=function(s){s===void 0&&(s=N1);var n=Jt;return Jt=s,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),Jt=n,this},t.globalTime=function(s){for(var n=this,r=arguments.length?s:n.rawTime();n;)r=n._start+r/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(s):r},t.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,Al(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(s){if(arguments.length){var n=this._time;return this._rDelay=s,Al(this),n?this.time(n):this}return this._rDelay},t.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},t.seek=function(s,n){return this.totalTime(be(this,s),ue(n))},t.restart=function(s,n){return this.play().totalTime(s?-this._delay:0,ue(n))},t.play=function(s,n){return s!=null&&this.seek(s,n),this.reversed(!1).paused(!1)},t.reverse=function(s,n){return s!=null&&this.seek(s||this.totalDuration(),n),this.reversed(!0).paused(!1)},t.pause=function(s,n){return s!=null&&this.seek(s,n),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-Ct:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ct,this},t.isActive=function(){var s=this.parent||this._dp,n=this._start,r;return!!(!s||this._ts&&this._initted&&s.isActive()&&(r=s.rawTime(!0))>=n&&r1?(n?(o[s]=n,r&&(o[s+"Params"]=r),s==="onUpdate"&&(this._onUpdate=n)):delete o[s],this):o[s]},t.then=function(s){var n=this;return new Promise(function(r){var o=Vt(s)?s:Ah,a=function(){var l=n.then;n.then=null,Vt(o)&&(o=o(n))&&(o.then||o===n)&&(n.then=l),r(o),n.then=l};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?a():n._prom=a})},t.kill=function(){vi(this)},i}();De(Xi.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Ct,_prom:0,_ps:!1,_rts:1});var ie=function(i){_h(t,i);function t(s,n){var r;return s===void 0&&(s={}),r=i.call(this,s)||this,r.labels={},r.smoothChildTiming=!!s.smoothChildTiming,r.autoRemoveChildren=!!s.autoRemoveChildren,r._sort=ue(s.sortChildren),Nt&&$e(s.parent||Nt,cs(r),n),s.reversed&&r.reverse(),s.paused&&r.paused(!0),s.scrollTrigger&&Ph(cs(r),s.scrollTrigger),r}var e=t.prototype;return e.to=function(n,r,o){return Ci(0,arguments,this),this},e.from=function(n,r,o){return Ci(1,arguments,this),this},e.fromTo=function(n,r,o,a){return Ci(2,arguments,this),this},e.set=function(n,r,o){return r.duration=0,r.parent=this,bi(r).repeatDelay||(r.repeat=0),r.immediateRender=!!r.immediateRender,new Ht(n,r,be(this,o),1),this},e.call=function(n,r,o){return $e(this,Ht.delayedCall(0,n,r),o)},e.staggerTo=function(n,r,o,a,c,l,u){return o.duration=r,o.stagger=o.stagger||a,o.onComplete=l,o.onCompleteParams=u,o.parent=this,new Ht(n,o,be(this,c)),this},e.staggerFrom=function(n,r,o,a,c,l,u){return o.runBackwards=1,bi(o).immediateRender=ue(o.immediateRender),this.staggerTo(n,r,o,a,c,l,u)},e.staggerFromTo=function(n,r,o,a,c,l,u,h){return a.startAt=o,bi(a).immediateRender=ue(a.immediateRender),this.staggerTo(n,r,a,c,l,u,h)},e.render=function(n,r,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,l=this._dur,u=n<=0?0:$t(n),h=this._zTime<0!=n<0&&(this._initted||!l),d,p,_,f,m,v,b,w,g,y,T,k;if(this!==Nt&&u>c&&n>=0&&(u=c),u!==this._tTime||o||h){if(a!==this._time&&l&&(u+=this._time-a,n+=this._time-a),d=u,g=this._start,w=this._ts,v=!w,h&&(l||(a=this._zTime),(n||!r)&&(this._zTime=n)),this._repeat){if(T=this._yoyo,m=l+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(m*100+n,r,o);if(d=$t(u%m),u===c?(f=this._repeat,d=l):(f=~~(u/m),f&&f===u/m&&(d=l,f--),d>l&&(d=l)),y=Hn(this._tTime,m),!a&&this._tTime&&y!==f&&this._tTime-y*m-this._dur<=0&&(y=f),T&&f&1&&(d=l-d,k=1),f!==y&&!this._lock){var x=T&&y&1,C=x===(T&&f&1);if(f=a&&n>=0)for(p=this._first;p;){if(_=p._next,(p._act||d>=p._start)&&p._ts&&b!==p){if(p.parent!==this)return this.render(n,r,o);if(p.render(p._ts>0?(d-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(d-p._start)*p._ts,r,o),d!==this._time||!this._ts&&!v){b=0,_&&(u+=this._zTime=-Ct);break}}p=_}else{p=this._last;for(var O=n<0?n:d;p;){if(_=p._prev,(p._act||O<=p._end)&&p._ts&&b!==p){if(p.parent!==this)return this.render(n,r,o);if(p.render(p._ts>0?(O-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(O-p._start)*p._ts,r,o||Jt&&(p._initted||p._startAt)),d!==this._time||!this._ts&&!v){b=0,_&&(u+=this._zTime=O?-Ct:Ct);break}}p=_}}if(b&&!r&&(this.pause(),b.render(d>=a?0:-Ct)._zTime=d>=a?1:-1,this._ts))return this._start=g,Ao(this),this.render(n,r,o);this._onUpdate&&!r&&ve(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(g===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((n||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&Fs(this,1),!r&&!(n<0&&!a)&&(u||a||!c)&&(ve(this,u===c&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},e.add=function(n,r){var o=this;if(ps(r)||(r=be(this,r,n)),!(n instanceof Xi)){if(te(n))return n.forEach(function(a){return o.add(a,r)}),this;if(Xt(n))return this.addLabel(n,r);if(Vt(n))n=Ht.delayedCall(0,n);else return this}return this!==n?$e(this,n,r):this},e.getChildren=function(n,r,o,a){n===void 0&&(n=!0),r===void 0&&(r=!0),o===void 0&&(o=!0),a===void 0&&(a=-Oe);for(var c=[],l=this._first;l;)l._start>=a&&(l instanceof Ht?r&&c.push(l):(o&&c.push(l),n&&c.push.apply(c,l.getChildren(!0,r,o)))),l=l._next;return c},e.getById=function(n){for(var r=this.getChildren(1,1,1),o=r.length;o--;)if(r[o].vars.id===n)return r[o]},e.remove=function(n){return Xt(n)?this.removeLabel(n):Vt(n)?this.killTweensOf(n):(Oo(this,n),n===this._recent&&(this._recent=this._last),en(this))},e.totalTime=function(n,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=$t(ye.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),i.prototype.totalTime.call(this,n,r),this._forcing=0,this):this._tTime},e.addLabel=function(n,r){return this.labels[n]=be(this,r),this},e.removeLabel=function(n){return delete this.labels[n],this},e.addPause=function(n,r,o){var a=Ht.delayedCall(0,r||Gi,o);return a.data="isPause",this._hasPause=1,$e(this,a,be(this,n))},e.removePause=function(n){var r=this._first;for(n=be(this,n);r;)r._start===n&&r.data==="isPause"&&Fs(r),r=r._next},e.killTweensOf=function(n,r,o){for(var a=this.getTweensOf(n,o),c=a.length;c--;)bs!==a[c]&&a[c].kill(n,r);return this},e.getTweensOf=function(n,r){for(var o=[],a=Ae(n),c=this._first,l=ps(r),u;c;)c instanceof Ht?R1(c._targets,a)&&(l?(!bs||c._initted&&c._ts)&&c.globalTime(0)<=r&&c.globalTime(c.totalDuration())>r:!r||c.isActive())&&o.push(c):(u=c.getTweensOf(a,r)).length&&o.push.apply(o,u),c=c._next;return o},e.tweenTo=function(n,r){r=r||{};var o=this,a=be(o,n),c=r,l=c.startAt,u=c.onStart,h=c.onStartParams,d=c.immediateRender,p,_=Ht.to(o,De({ease:r.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale())||Ct,onStart:function(){if(o.pause(),!p){var m=r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale());_._dur!==m&&Yn(_,m,0,1).render(_._time,!0,!0),p=1}u&&u.apply(_,h||[])}},r));return d?_.render(0):_},e.tweenFromTo=function(n,r,o){return this.tweenTo(r,De({startAt:{time:be(this,n)}},o))},e.recent=function(){return this._recent},e.nextLabel=function(n){return n===void 0&&(n=this._time),Ml(this,be(this,n))},e.previousLabel=function(n){return n===void 0&&(n=this._time),Ml(this,be(this,n),1)},e.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+Ct)},e.shiftChildren=function(n,r,o){o===void 0&&(o=0);for(var a=this._first,c=this.labels,l;a;)a._start>=o&&(a._start+=n,a._end+=n),a=a._next;if(r)for(l in c)c[l]>=o&&(c[l]+=n);return en(this)},e.invalidate=function(n){var r=this._first;for(this._lock=0;r;)r.invalidate(n),r=r._next;return i.prototype.invalidate.call(this,n)},e.clear=function(n){n===void 0&&(n=!0);for(var r=this._first,o;r;)o=r._next,this.remove(r),r=o;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),en(this)},e.totalDuration=function(n){var r=0,o=this,a=o._last,c=Oe,l,u,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-n:n));if(o._dirty){for(h=o.parent;a;)l=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>c&&o._sort&&a._ts&&!o._lock?(o._lock=1,$e(o,a,u-a._delay,1)._lock=0):c=u,u<0&&a._ts&&(r-=u,(!h&&!o._dp||h&&h.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),c=0),a._end>r&&a._ts&&(r=a._end),a=l;Yn(o,o===Nt&&o._time>r?o._time:r,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(n){if(Nt._ts&&(Eh(Nt,ao(n,Nt)),Ch=ye.frame),ye.frame>=Sl){Sl+=ke.autoSleep||120;var r=Nt._first;if((!r||!r._ts)&&ke.autoSleep&&ye._listeners.length<2){for(;r&&!r._ts;)r=r._next;r||ye.sleep()}}},t}(Xi);De(ie.prototype,{_lock:0,_hasPause:0,_forcing:0});var iv=function(t,e,s,n,r,o,a){var c=new de(this._pt,t,e,0,1,ed,null,r),l=0,u=0,h,d,p,_,f,m,v,b;for(c.b=s,c.e=n,s+="",n+="",(v=~n.indexOf("random("))&&(n=$i(n)),o&&(b=[s,n],o(b,t,e),s=b[0],n=b[1]),d=s.match(Ho)||[];h=Ho.exec(n);)_=h[0],f=n.substring(l,h.index),p?p=(p+1)%5:f.substr(-5)==="rgba("&&(p=1),_!==d[u++]&&(m=parseFloat(d[u-1])||0,c._pt={_next:c._pt,p:f||u===1?f:",",s:m,c:_.charAt(1)==="="?Nn(m,_)-m:parseFloat(_)-m,m:p&&p<4?Math.round:0},l=Ho.lastIndex);return c.c=l")}),g.duration();else{T={};for(x in _)x==="ease"||x==="easeEach"||cv(x,_[x],T,_.easeEach);for(x in T)for(V=T[x].sort(function(Y,j){return Y.t-j.t}),M=0,y=0;yc-Ct&&!u?c:nl&&(d=l)),v=this._yoyo&&_&1,v&&(g=this._yEase,d=l-d),m=Hn(this._tTime,f),d===a&&!o&&this._initted&&_===m)return this._tTime=h,this;_!==m&&(w&&this._yEase&&Gh(w,v),this.vars.repeatRefresh&&!v&&!this._lock&&this._time!==l&&this._initted&&(this._lock=o=1,this.render($t(f*_),!0).invalidate()._lock=0))}if(!this._initted){if(Ih(this,u?n:d,o,r,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&_!==m))return this;if(l!==this._dur)return this.render(n,r,o)}if(this._tTime=h,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(g||this._ease)(d/l),this._from&&(this.ratio=b=1-b),d&&!a&&!r&&!_&&(ve(this,"onStart"),this._tTime!==h))return this;for(p=this._pt;p;)p.r(b,p.d),p=p._next;w&&w.render(n<0?n:!d&&v?-Ct:w._dur*w._ease(d/this._dur),r,o)||this._startAt&&(this._zTime=n),this._onUpdate&&!r&&(u&&va(this,n,r,o),ve(this,"onUpdate")),this._repeat&&_!==m&&this.vars.onRepeat&&!r&&this.parent&&ve(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&va(this,n,!0,!0),(n||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Fs(this,1),!r&&!(u&&!a)&&(h||a||v)&&(ve(this,h===c?"onComplete":"onReverseComplete",!0),this._prom&&!(h0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),i.prototype.invalidate.call(this,n)},e.resetTo=function(n,r,o,a,c){Zi||ye.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||Tc(this,l),u=this._ease(l/this._dur),ov(this,n,r,o,a,u,l,c)?this.resetTo(n,r,o,a,1):(Mo(this,0),this.parent||Mh(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(n,r){if(r===void 0&&(r="all"),!n&&(!r||r==="all"))return this._lazy=this._pt=0,this.parent?vi(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(n,r,bs&&bs.vars.overwrite!==!0)._first||vi(this),this.parent&&o!==this.timeline.totalDuration()&&Yn(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=n?Ae(n):a,l=this._ptLookup,u=this._pt,h,d,p,_,f,m,v;if((!r||r==="all")&&L1(a,c))return r==="all"&&(this._pt=0),vi(this);for(h=this._op=this._op||[],r!=="all"&&(Xt(r)&&(f={},he(r,function(b){return f[b]=1}),r=f),r=av(a,r)),v=a.length;v--;)if(~c.indexOf(a[v])){d=l[v],r==="all"?(h[v]=r,_=d,p={}):(p=h[v]=h[v]||{},_=r);for(f in _)m=d&&d[f],m&&((!("kill"in m.d)||m.d.kill(f)===!0)&&Oo(this,m,"_pt"),delete d[f]),p!=="all"&&(p[f]=1)}return this._initted&&!this._pt&&u&&vi(this),this},t.to=function(n,r){return new t(n,r,arguments[2])},t.from=function(n,r){return Ci(1,arguments)},t.delayedCall=function(n,r,o,a){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:r,onReverseComplete:r,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(n,r,o){return Ci(2,arguments)},t.set=function(n,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(n,r)},t.killTweensOf=function(n,r,o){return Nt.killTweensOf(n,r,o)},t}(Xi);De(Ht.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});he("staggerTo,staggerFrom,staggerFromTo",function(i){Ht[i]=function(){var t=new ie,e=ka.call(arguments,0);return e.splice(i==="staggerFromTo"?5:4,0,0),t[i].apply(t,e)}});var wc=function(t,e,s){return t[e]=s},Jh=function(t,e,s){return t[e](s)},lv=function(t,e,s,n){return t[e](n.fp,s)},uv=function(t,e,s){return t.setAttribute(e,s)},bc=function(t,e){return Vt(t[e])?Jh:pc(t[e])&&t.setAttribute?uv:wc},td=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},hv=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ed=function(t,e){var s=e._pt,n="";if(!t&&e.b)n=e.b;else if(t===1&&e.e)n=e.e;else{for(;s;)n=s.p+(s.m?s.m(s.s+s.c*t):Math.round((s.s+s.c*t)*1e4)/1e4)+n,s=s._next;n+=e.c}e.set(e.t,e.p,n,e)},Cc=function(t,e){for(var s=e._pt;s;)s.r(t,s.d),s=s._next},dv=function(t,e,s,n){for(var r=this._pt,o;r;)o=r._next,r.p===n&&r.modifier(t,e,s),r=o},fv=function(t){for(var e=this._pt,s,n;e;)n=e._next,e.p===t&&!e.op||e.op===t?Oo(this,e,"_pt"):e.dep||(s=1),e=n;return!s},pv=function(t,e,s,n){n.mSet(t,e,n.m.call(n.tween,s,n.mt),n)},sd=function(t){for(var e=t._pt,s,n,r,o;e;){for(s=e._next,n=r;n&&n.pr>e.pr;)n=n._next;(e._prev=n?n._prev:o)?e._prev._next=e:r=e,(e._next=n)?n._prev=e:o=e,e=s}t._pt=r},de=function(){function i(e,s,n,r,o,a,c,l,u){this.t=s,this.s=r,this.c=o,this.p=n,this.r=a||td,this.d=c||this,this.set=l||wc,this.pr=u||0,this._next=e,e&&(e._prev=this)}var t=i.prototype;return t.modifier=function(s,n,r){this.mSet=this.mSet||this.set,this.set=pv,this.m=s,this.mt=r,this.tween=n},i}();he(vc+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(i){return yc[i]=1});Te.TweenMax=Te.TweenLite=Ht;Te.TimelineLite=Te.TimelineMax=ie;Nt=new ie({sortChildren:!1,defaults:Wn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});ke.stringFilter=Hh;var nn=[],Rr={},mv=[],Pl=0,_v=0,Xo=function(t){return(Rr[t]||mv).map(function(e){return e()})},Ca=function(){var t=Date.now(),e=[];t-Pl>2&&(Xo("matchMediaInit"),nn.forEach(function(s){var n=s.queries,r=s.conditions,o,a,c,l;for(a in n)o=Ce.matchMedia(n[a]).matches,o&&(c=1),o!==r[a]&&(r[a]=o,l=1);l&&(s.revert(),c&&e.push(s))}),Xo("matchMediaRevert"),e.forEach(function(s){return s.onMatch(s,function(n){return s.add(null,n)})}),Pl=t,Xo("matchMedia"))},nd=function(){function i(e,s){this.selector=s&&Ta(s),this.data=[],this._r=[],this.isReverted=!1,this.id=_v++,e&&this.add(e)}var t=i.prototype;return t.add=function(s,n,r){Vt(s)&&(r=n,n=s,s=Vt);var o=this,a=function(){var l=Lt,u=o.selector,h;return l&&l!==o&&l.data.push(o),r&&(o.selector=Ta(r)),Lt=o,h=n.apply(o,arguments),Vt(h)&&o._r.push(h),Lt=l,o.selector=u,o.isReverted=!1,h};return o.last=a,s===Vt?a(o,function(c){return o.add(null,c)}):s?o[s]=a:a},t.ignore=function(s){var n=Lt;Lt=null,s(this),Lt=n},t.getTweens=function(){var s=[];return this.data.forEach(function(n){return n instanceof i?s.push.apply(s,n.getTweens()):n instanceof Ht&&!(n.parent&&n.parent.data==="nested")&&s.push(n)}),s},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(s,n){var r=this;if(s?function(){for(var a=r.getTweens(),c=r.data.length,l;c--;)l=r.data[c],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,h){return h.g-u.g||-1/0}).forEach(function(u){return u.t.revert(s)}),c=r.data.length;c--;)l=r.data[c],l instanceof ie?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof Ht)&&l.revert&&l.revert(s);r._r.forEach(function(u){return u(s,r)}),r.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),n)for(var o=nn.length;o--;)nn[o].id===this.id&&nn.splice(o,1)},t.revert=function(s){this.kill(s||{})},i}(),gv=function(){function i(e){this.contexts=[],this.scope=e}var t=i.prototype;return t.add=function(s,n,r){Je(s)||(s={matches:s});var o=new nd(0,r||this.scope),a=o.conditions={},c,l,u;Lt&&!o.selector&&(o.selector=Lt.selector),this.contexts.push(o),n=o.add("onMatch",n),o.queries=s;for(l in s)l==="all"?u=1:(c=Ce.matchMedia(s[l]),c&&(nn.indexOf(o)<0&&nn.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(Ca):c.addEventListener("change",Ca)));return u&&n(o,function(h){return o.add(null,h)}),this},t.revert=function(s){this.kill(s||{})},t.kill=function(s){this.contexts.forEach(function(n){return n.kill(s,!0)})},i}(),co={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),s=0;s1){var n=t.map(function(u){return _e.quickSetter(u,e,s)}),r=n.length;return function(u){for(var h=r;h--;)n[h](u)}}t=t[0]||{};var o=ge[e],a=tn(t),c=a.harness&&(a.harness.aliases||{})[e]||e,l=o?function(u){var h=new o;Dn._pt=0,h.init(t,s?u+s:u,Dn,0,[t]),h.render(1,h),Dn._pt&&Cc(1,Dn)}:a.set(t,c);return o?l:function(u){return l(t,c,s?u+s:u,a,1)}},quickTo:function(t,e,s){var n,r=_e.to(t,un((n={},n[e]="+=0.1",n.paused=!0,n),s||{})),o=function(c,l,u){return r.resetTo(e,c,l,u)};return o.tween=r,o},isTweening:function(t){return Nt.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=sn(t.ease,Wn.ease)),El(Wn,t||{})},config:function(t){return El(ke,t||{})},registerEffect:function(t){var e=t.name,s=t.effect,n=t.plugins,r=t.defaults,o=t.extendTimeline;(n||"").split(",").forEach(function(a){return a&&!ge[a]&&!Te[a]&&Yi(e+" effect requires "+a+" plugin.")}),Yo[e]=function(a,c,l){return s(Ae(a),De(c||{},r),l)},o&&(ie.prototype[e]=function(a,c,l){return this.add(Yo[e](a,Je(c)?c:(l=c)&&{},this),l)})},registerEase:function(t,e){ft[t]=sn(e)},parseEase:function(t,e){return arguments.length?sn(t,e):ft},getById:function(t){return Nt.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var s=new ie(t),n,r;for(s.smoothChildTiming=ue(t.smoothChildTiming),Nt.remove(s),s._dp=0,s._time=s._tTime=Nt._time,n=Nt._first;n;)r=n._next,(e||!(!n._dur&&n instanceof Ht&&n.vars.onComplete===n._targets[0]))&&$e(s,n,n._start-n._delay),n=r;return $e(Nt,s,0),s},context:function(t,e){return t?new nd(t,e):Lt},matchMedia:function(t){return new gv(t)},matchMediaRefresh:function(){return nn.forEach(function(t){var e=t.conditions,s,n;for(n in e)e[n]&&(e[n]=!1,s=1);s&&t.revert()})||Ca()},addEventListener:function(t,e){var s=Rr[t]||(Rr[t]=[]);~s.indexOf(e)||s.push(e)},removeEventListener:function(t,e){var s=Rr[t],n=s&&s.indexOf(e);n>=0&&s.splice(n,1)},utils:{wrap:Z1,wrapYoyo:X1,distribute:Fh,random:Vh,snap:Lh,normalize:$1,getUnit:Kt,clamp:W1,splitColor:qh,toArray:Ae,selector:Ta,mapRange:zh,pipe:Y1,unitize:G1,interpolate:Q1,shuffle:Rh},install:wh,effects:Yo,ticker:ye,updateRoot:ie.updateRoot,plugins:ge,globalTimeline:Nt,core:{PropTween:de,globals:bh,Tween:Ht,Timeline:ie,Animation:Xi,getCache:tn,_removeLinkedListItem:Oo,reverting:function(){return Jt},context:function(t){return t&&Lt&&(Lt.data.push(t),t._ctx=Lt),Lt},suppressOverwrites:function(t){return fc=t}}};he("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return co[i]=Ht[i]});ye.add(ie.updateRoot);Dn=co.to({},{duration:0});var yv=function(t,e){for(var s=t._pt;s&&s.p!==e&&s.op!==e&&s.fp!==e;)s=s._next;return s},vv=function(t,e){var s=t._targets,n,r,o;for(n in e)for(r=s.length;r--;)o=t._ptLookup[r][n],o&&(o=o.d)&&(o._pt&&(o=yv(o,n)),o&&o.modifier&&o.modifier(e[n],t,s[r],n))},Qo=function(t,e){return{name:t,rawVars:1,init:function(n,r,o){o._onInit=function(a){var c,l;if(Xt(r)&&(c={},he(r,function(u){return c[u]=1}),r=c),e){c={};for(l in r)c[l]=e(r[l]);r=c}vv(a,r)}}}},_e=co.registerPlugin({name:"attr",init:function(t,e,s,n,r){var o,a,c;this.tween=s;for(o in e)c=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(c||0)+"",e[o],n,r,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(t,e){for(var s=e._pt;s;)Jt?s.set(s.t,s.p,s.b,s):s.r(t,s.d),s=s._next}},{name:"endArray",init:function(t,e){for(var s=e.length;s--;)this.add(t,s,t[s]||0,e[s],0,0,0,0,0,1)}},Qo("roundProps",wa),Qo("modifiers"),Qo("snap",Lh))||co;Ht.version=ie.version=_e.version="3.12.4";Th=1;mc()&&Gn();ft.Power0;ft.Power1;ft.Power2;ft.Power3;ft.Power4;ft.Linear;ft.Quad;ft.Cubic;ft.Quart;ft.Quint;ft.Strong;ft.Elastic;ft.Back;ft.SteppedEase;ft.Bounce;ft.Sine;ft.Expo;ft.Circ;/*! +*/var ke={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Wn={duration:.5,overwrite:!1,delay:0},fc,Jt,Lt,Oe=1e8,Ct=1/Oe,ma=Math.PI*2,E1=ma/4,O1=0,gh=Math.sqrt,A1=Math.cos,M1=Math.sin,Zt=function(t){return typeof t=="string"},Vt=function(t){return typeof t=="function"},ps=function(t){return typeof t=="number"},pc=function(t){return typeof t>"u"},Je=function(t){return typeof t=="object"},ue=function(t){return t!==!1},mc=function(){return typeof window<"u"},Or=function(t){return Vt(t)||Zt(t)},yh=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},te=Array.isArray,_a=/(?:-?\.?\d|\.)+/gi,vh=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Mn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ho=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,xh=/[+-]=-?[.\d]+/,kh=/[^,'"\[\]\s]+/gi,D1=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Nt,Ce,ga,_c,Te={},no={},Th,wh=function(t){return(no=un(t,Te))&&_e},gc=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Yi=function(t,e){return!e&&console.warn(t)},bh=function(t,e){return t&&(Te[t]=e)&&no&&(no[t]=e)||Te},Gi=function(){return 0},P1={suppressEvents:!0,isStart:!0,kill:!1},Ir={suppressEvents:!0,kill:!1},I1={suppressEvents:!0},yc={},As=[],ya={},Ch,ge={},Yo={},Ol=30,Nr=[],vc="",xc=function(t){var e=t[0],s,n;if(Je(e)||Vt(e)||(t=[t]),!(s=(e._gsap||{}).harness)){for(n=Nr.length;n--&&!Nr[n].targetTest(e););s=Nr[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Xh(t[n],s)))||t.splice(n,1);return t},tn=function(t){return t._gsap||xc(Ae(t))[0]._gsap},Sh=function(t,e,s){return(s=t[e])&&Vt(s)?t[e]():pc(s)&&t.getAttribute&&t.getAttribute(e)||s},he=function(t,e){return(t=t.split(",")).forEach(e)||t},jt=function(t){return Math.round(t*1e5)/1e5||0},$t=function(t){return Math.round(t*1e7)/1e7||0},Nn=function(t,e){var s=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),s==="+"?t+n:s==="-"?t-n:s==="*"?t*n:t/n},N1=function(t,e){for(var s=e.length,n=0;t.indexOf(e[n])<0&&++na;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[s],t[s]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Oo=function(t,e,s,n){s===void 0&&(s="_first"),n===void 0&&(n="_last");var r=e._prev,o=e._next;r?r._next=o:t[s]===e&&(t[s]=o),o?o._prev=r:t[n]===e&&(t[n]=r),e._next=e._prev=e.parent=null},Fs=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},en=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var s=t;s;)s._dirty=1,s=s.parent;return t},L1=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},va=function(t,e,s,n){return t._startAt&&(Jt?t._startAt.revert(Ir):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},V1=function i(t){return!t||t._ts&&i(t.parent)},Ml=function(t){return t._repeat?Hn(t._tTime,t=t.duration()+t._rDelay)*t:0},Hn=function(t,e){var s=Math.floor(t/=e);return t&&s===t?s-1:s},oo=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ao=function(t){return t._end=$t(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ct)||0))},Mo=function(t,e){var s=t._dp;return s&&s.smoothChildTiming&&t._ts&&(t._start=$t(s._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ao(t),s._dirty||en(s,t)),t},Dh=function(t,e){var s;if((e._time||!e._dur&&e._initted||e._startCt)&&e.render(s,!0)),en(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&s.totalTime(s._tTime),s=s._dp;t._zTime=-Ct}},$e=function(t,e,s,n){return e.parent&&Fs(e),e._start=$t((ps(s)?s:s||t!==Nt?be(t,s,e):t._time)+e._delay),e._end=$t(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Mh(t,e,"_first","_last",t._sort?"_start":0),xa(e)||(t._recent=e),n||Dh(t,e),t._ts<0&&Mo(t,t._tTime),t},Ph=function(t,e){return(Te.ScrollTrigger||gc("scrollTrigger",e))&&Te.ScrollTrigger.create(e,t)},Ih=function(t,e,s,n,r){if(Tc(t,e,r),!t._initted)return 1;if(!s&&t._pt&&!Jt&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Ch!==ye.frame)return As.push(t),t._lazy=[r,n],1},U1=function i(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||i(e))},xa=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},z1=function(t,e,s,n){var r=t.ratio,o=e<0||!e&&(!t._start&&U1(t)&&!(!t._initted&&xa(t))||(t._ts<0||t._dp._ts<0)&&!xa(t))?0:1,a=t._rDelay,c=0,l,u,h;if(a&&t._repeat&&(c=hr(0,t._tDur,e),u=Hn(c,a),t._yoyo&&u&1&&(o=1-o),u!==Hn(t._tTime,a)&&(r=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==r||Jt||n||t._zTime===Ct||!e&&t._zTime){if(!t._initted&&Ih(t,e,n,s,c))return;for(h=t._zTime,t._zTime=e||(s?Ct:0),s||(s=e&&!h),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=c,l=t._pt;l;)l.r(o,l.d),l=l._next;e<0&&va(t,e,s,!0),t._onUpdate&&!s&&ve(t,"onUpdate"),c&&t._repeat&&!s&&t.parent&&ve(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&Fs(t,1),!s&&!Jt&&(ve(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},j1=function(t,e,s){var n;if(s>e)for(n=t._first;n&&n._start<=s;){if(n.data==="isPause"&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=s;){if(n.data==="isPause"&&n._start0&&!n&&Mo(t,t._tTime=t._tDur*a),t.parent&&Ao(t),s||en(t.parent,t),t},Dl=function(t){return t instanceof ie?en(t):Yn(t,t._dur)},B1={_start:0,endTime:Gi,totalDuration:Gi},be=function i(t,e,s){var n=t.labels,r=t._recent||B1,o=t.duration()>=Oe?r.endTime(!1):t._dur,a,c,l;return Zt(e)&&(isNaN(e)||e in n)?(c=e.charAt(0),l=e.substr(-1)==="%",a=e.indexOf("="),c==="<"||c===">"?(a>=0&&(e=e.replace(/=/,"")),(c==="<"?r._start:r.endTime(r._repeat>=0))+(parseFloat(e.substr(1))||0)*(l?(a<0?r:s).totalDuration()/100:1)):a<0?(e in n||(n[e]=o),n[e]):(c=parseFloat(e.charAt(a-1)+e.substr(a+1)),l&&s&&(c=c/100*(te(s)?s[0]:s).totalDuration()),a>1?i(t,e.substr(0,a-1),s)+c:o+c)):e==null?o:+e},Ci=function(t,e,s){var n=ps(e[1]),r=(n?2:1)+(t<2?0:1),o=e[r],a,c;if(n&&(o.duration=e[1]),o.parent=s,t){for(a=o,c=s;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=ue(c.vars.inherit)&&c.parent;o.immediateRender=ue(a.immediateRender),t<2?o.runBackwards=1:o.startAt=e[r-1]}return new Ht(e[0],o,e[r+1])},js=function(t,e){return t||t===0?e(t):e},hr=function(t,e,s){return se?e:s},Kt=function(t,e){return!Zt(t)||!(e=D1.exec(t))?"":e[1]},q1=function(t,e,s){return js(s,function(n){return hr(t,e,n)})},ka=[].slice,Nh=function(t,e){return t&&Je(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Je(t[0]))&&!t.nodeType&&t!==Ce},W1=function(t,e,s){return s===void 0&&(s=[]),t.forEach(function(n){var r;return Zt(n)&&!e||Nh(n,1)?(r=s).push.apply(r,Ae(n)):s.push(n)})||s},Ae=function(t,e,s){return Lt&&!e&&Lt.selector?Lt.selector(t):Zt(t)&&!s&&(ga||!Gn())?ka.call((e||_c).querySelectorAll(t),0):te(t)?W1(t,s):Nh(t)?ka.call(t,0):t?[t]:[]},Ta=function(t){return t=Ae(t)[0]||Yi("Invalid scope")||{},function(e){var s=t.current||t.nativeElement||t;return Ae(e,s.querySelectorAll?s:s===t?Yi("Invalid scope")||_c.createElement("div"):t)}},Rh=function(t){return t.sort(function(){return .5-Math.random()})},Fh=function(t){if(Vt(t))return t;var e=Je(t)?t:{each:t},s=sn(e.ease),n=e.from||0,r=parseFloat(e.base)||0,o={},a=n>0&&n<1,c=isNaN(n)||a,l=e.axis,u=n,h=n;return Zt(n)?u=h={center:.5,edges:.5,end:1}[n]||0:!a&&c&&(u=n[0],h=n[1]),function(d,p,_){var f=(_||e).length,m=o[f],v,w,b,g,y,T,k,x,C;if(!m){if(C=e.grid==="auto"?0:(e.grid||[1,Oe])[1],!C){for(k=-Oe;k<(k=_[C++].getBoundingClientRect().left)&&Ck&&(k=y),yf?f-1:l?l==="y"?f/C:C:Math.max(C,f/C))||0)*(n==="edges"?-1:1),m.b=f<0?r-f:r,m.u=Kt(e.amount||e.each)||0,s=s&&f<0?Yh(s):s}return f=(m[d]-m.min)/m.max||0,$t(m.b+(s?s(f):f)*m.v)+m.u}},wa=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(s){var n=$t(Math.round(parseFloat(s)/t)*t*e);return(n-n%1)/e+(ps(s)?0:Kt(s))}},Lh=function(t,e){var s=te(t),n,r;return!s&&Je(t)&&(n=s=t.radius||Oe,t.values?(t=Ae(t.values),(r=!ps(t[0]))&&(n*=n)):t=wa(t.increment)),js(e,s?Vt(t)?function(o){return r=t(o),Math.abs(r-o)<=n?r:o}:function(o){for(var a=parseFloat(r?o.x:o),c=parseFloat(r?o.y:0),l=Oe,u=0,h=t.length,d,p;h--;)r?(d=t[h].x-a,p=t[h].y-c,d=d*d+p*p):d=Math.abs(t[h]-a),dn?r-o:o)})},$i=function(t){for(var e=0,s="",n,r,o,a;~(n=t.indexOf("random(",e));)o=t.indexOf(")",n),a=t.charAt(n+7)==="[",r=t.substr(n+7,o-n-7).match(a?kh:_a),s+=t.substr(e,n-e)+Vh(a?r:+r[0],a?0:+r[1],+r[2]||1e-5),e=o+1;return s+t.substr(e,t.length-e)},zh=function(t,e,s,n,r){var o=e-t,a=n-s;return js(r,function(c){return s+((c-t)/o*a||0)})},Z1=function i(t,e,s,n){var r=isNaN(t+e)?0:function(p){return(1-p)*t+p*e};if(!r){var o=Zt(t),a={},c,l,u,h,d;if(s===!0&&(n=1)&&(s=null),o)t={p:t},e={p:e};else if(te(t)&&!te(e)){for(u=[],h=t.length,d=h-2,l=1;l(a=Math.abs(a))&&(c=o,r=a);return c},ve=function(t,e,s){var n=t.vars,r=n[e],o=Lt,a=t._ctx,c,l,u;if(r)return c=n[e+"Params"],l=n.callbackScope||t,s&&As.length&&io(),a&&(Lt=a),u=c?r.apply(l,c):r.call(l),Lt=o,u},vi=function(t){return Fs(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Jt),t.progress()<1&&ve(t,"onInterrupt"),t},Dn,jh=[],Bh=function(t){if(mc()&&t){t=!t.name&&t.default||t;var e=t.name,s=Vt(t),n=e&&!s&&t.init?function(){this._props=[]}:t,r={init:Gi,render:Cc,add:kc,kill:dv,modifier:hv,rawVars:0},o={targetTest:0,get:0,getSetter:bc,aliases:{},register:0};if(Gn(),t!==n){if(ge[e])return;De(n,De(ro(t,r),o)),un(n.prototype,un(r,ro(t,o))),ge[n.prop=e]=n,t.targetTest&&(Nr.push(n),yc[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}bh(e,n),t.register&&t.register(_e,n,de)}else t&&jh.push(t)},bt=255,xi={aqua:[0,bt,bt],lime:[0,bt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,bt],navy:[0,0,128],white:[bt,bt,bt],olive:[128,128,0],yellow:[bt,bt,0],orange:[bt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[bt,0,0],pink:[bt,192,203],cyan:[0,bt,bt],transparent:[bt,bt,bt,0]},Go=function(t,e,s){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(s-e)*t*6:t<.5?s:t*3<2?e+(s-e)*(2/3-t)*6:e)*bt+.5|0},qh=function(t,e,s){var n=t?ps(t)?[t>>16,t>>8&bt,t&bt]:0:xi.black,r,o,a,c,l,u,h,d,p,_;if(!n){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),xi[t])n=xi[t];else if(t.charAt(0)==="#"){if(t.length<6&&(r=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+r+r+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return n=parseInt(t.substr(1,6),16),[n>>16,n>>8&bt,n&bt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),n=[t>>16,t>>8&bt,t&bt]}else if(t.substr(0,3)==="hsl"){if(n=_=t.match(_a),!e)c=+n[0]%360/360,l=+n[1]/100,u=+n[2]/100,o=u<=.5?u*(l+1):u+l-u*l,r=u*2-o,n.length>3&&(n[3]*=1),n[0]=Go(c+1/3,r,o),n[1]=Go(c,r,o),n[2]=Go(c-1/3,r,o);else if(~t.indexOf("="))return n=t.match(vh),s&&n.length<4&&(n[3]=1),n}else n=t.match(_a)||xi.transparent;n=n.map(Number)}return e&&!_&&(r=n[0]/bt,o=n[1]/bt,a=n[2]/bt,h=Math.max(r,o,a),d=Math.min(r,o,a),u=(h+d)/2,h===d?c=l=0:(p=h-d,l=u>.5?p/(2-h-d):p/(h+d),c=h===r?(o-a)/p+(ot&&(s+=v-e),n+=v,y=n-s,b=y-o,(b>0||w)&&(T=++h.frame,d=y-h.time*1e3,h.time=y=y/1e3,o+=b+(b>=r?4:r-b),g=1),w||(c=l(f)),g)for(p=0;p=v&&p--},_listeners:a},h}(),Gn=function(){return!Xi&&ye.wake()},ft={},K1=/^[\d.\-M][\d.\-,\s]/,J1=/["']/g,tv=function(t){for(var e={},s=t.substr(1,t.length-3).split(":"),n=s[0],r=1,o=s.length,a,c,l;r1&&s.config?s.config.apply(null,~t.indexOf("{")?[tv(e[1])]:ev(t).split(",").map(Oh)):ft._CE&&K1.test(t)?ft._CE("",t):s},Yh=function(t){return function(e){return 1-t(1-e)}},Gh=function i(t,e){for(var s=t._first,n;s;)s instanceof ie?i(s,e):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==e&&(s.timeline?i(s.timeline,e):(n=s._ease,s._ease=s._yEase,s._yEase=n,s._yoyo=e)),s=s._next},sn=function(t,e){return t&&(Vt(t)?t:ft[t]||sv(t))||e},mn=function(t,e,s,n){s===void 0&&(s=function(c){return 1-e(1-c)}),n===void 0&&(n=function(c){return c<.5?e(c*2)/2:1-e((1-c)*2)/2});var r={easeIn:e,easeOut:s,easeInOut:n},o;return he(t,function(a){ft[a]=Te[a]=r,ft[o=a.toLowerCase()]=s;for(var c in r)ft[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=ft[a+"."+c]=r[c]}),r},$h=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},$o=function i(t,e,s){var n=e>=1?e:1,r=(s||(t?.3:.45))/(e<1?e:1),o=r/ma*(Math.asin(1/n)||0),a=function(u){return u===1?1:n*Math.pow(2,-10*u)*M1((u-o)*r)+1},c=t==="out"?a:t==="in"?function(l){return 1-a(1-l)}:$h(a);return r=ma/r,c.config=function(l,u){return i(t,l,u)},c},Xo=function i(t,e){e===void 0&&(e=1.70158);var s=function(o){return o?--o*o*((e+1)*o+e)+1:0},n=t==="out"?s:t==="in"?function(r){return 1-s(1-r)}:$h(s);return n.config=function(r){return i(t,r)},n};he("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,t){var e=t<5?t+1:t;mn(i+",Power"+(e-1),t?function(s){return Math.pow(s,e)}:function(s){return s},function(s){return 1-Math.pow(1-s,e)},function(s){return s<.5?Math.pow(s*2,e)/2:1-Math.pow((1-s)*2,e)/2})});ft.Linear.easeNone=ft.none=ft.Linear.easeIn;mn("Elastic",$o("in"),$o("out"),$o());(function(i,t){var e=1/t,s=2*e,n=2.5*e,r=function(a){return a0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},t.totalDuration=function(s){return arguments.length?(this._dirty=0,Yn(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(s,n){if(Gn(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Mo(this,s),!r._dp||r.parent||Dh(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&s0||!this._tDur&&!s)&&$e(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===Ct||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),Eh(this,s,n)),this},t.time=function(s,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+Ml(this))%(this._dur+this._rDelay)||(s?this._dur:0),n):this._time},t.totalProgress=function(s,n){return arguments.length?this.totalTime(this.totalDuration()*s,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(s,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+Ml(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(s,n){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*r,n):this._repeat?Hn(this._tTime,r)+1:1},t.timeScale=function(s,n){if(!arguments.length)return this._rts===-Ct?0:this._rts;if(this._rts===s)return this;var r=this.parent&&this._ts?oo(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-Ct?0:this._rts,this.totalTime(hr(-Math.abs(this._delay),this._tDur,r),n!==!1),Ao(this),L1(this)},t.paused=function(s){return arguments.length?(this._ps!==s&&(this._ps=s,s?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Gn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ct&&(this._tTime-=Ct)))),this):this._ps},t.startTime=function(s){if(arguments.length){this._start=s;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&$e(n,this,s-this._delay),this}return this._start},t.endTime=function(s){return this._start+(ue(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(s){var n=this.parent||this._dp;return n?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?oo(n.rawTime(s),this):this._tTime:this._tTime},t.revert=function(s){s===void 0&&(s=I1);var n=Jt;return Jt=s,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),Jt=n,this},t.globalTime=function(s){for(var n=this,r=arguments.length?s:n.rawTime();n;)r=n._start+r/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(s):r},t.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,Dl(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(s){if(arguments.length){var n=this._time;return this._rDelay=s,Dl(this),n?this.time(n):this}return this._rDelay},t.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},t.seek=function(s,n){return this.totalTime(be(this,s),ue(n))},t.restart=function(s,n){return this.play().totalTime(s?-this._delay:0,ue(n))},t.play=function(s,n){return s!=null&&this.seek(s,n),this.reversed(!1).paused(!1)},t.reverse=function(s,n){return s!=null&&this.seek(s||this.totalDuration(),n),this.reversed(!0).paused(!1)},t.pause=function(s,n){return s!=null&&this.seek(s,n),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-Ct:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ct,this},t.isActive=function(){var s=this.parent||this._dp,n=this._start,r;return!!(!s||this._ts&&this._initted&&s.isActive()&&(r=s.rawTime(!0))>=n&&r1?(n?(o[s]=n,r&&(o[s+"Params"]=r),s==="onUpdate"&&(this._onUpdate=n)):delete o[s],this):o[s]},t.then=function(s){var n=this;return new Promise(function(r){var o=Vt(s)?s:Ah,a=function(){var l=n.then;n.then=null,Vt(o)&&(o=o(n))&&(o.then||o===n)&&(n.then=l),r(o),n.then=l};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?a():n._prom=a})},t.kill=function(){vi(this)},i}();De(Zi.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Ct,_prom:0,_ps:!1,_rts:1});var ie=function(i){_h(t,i);function t(s,n){var r;return s===void 0&&(s={}),r=i.call(this,s)||this,r.labels={},r.smoothChildTiming=!!s.smoothChildTiming,r.autoRemoveChildren=!!s.autoRemoveChildren,r._sort=ue(s.sortChildren),Nt&&$e(s.parent||Nt,cs(r),n),s.reversed&&r.reverse(),s.paused&&r.paused(!0),s.scrollTrigger&&Ph(cs(r),s.scrollTrigger),r}var e=t.prototype;return e.to=function(n,r,o){return Ci(0,arguments,this),this},e.from=function(n,r,o){return Ci(1,arguments,this),this},e.fromTo=function(n,r,o,a){return Ci(2,arguments,this),this},e.set=function(n,r,o){return r.duration=0,r.parent=this,bi(r).repeatDelay||(r.repeat=0),r.immediateRender=!!r.immediateRender,new Ht(n,r,be(this,o),1),this},e.call=function(n,r,o){return $e(this,Ht.delayedCall(0,n,r),o)},e.staggerTo=function(n,r,o,a,c,l,u){return o.duration=r,o.stagger=o.stagger||a,o.onComplete=l,o.onCompleteParams=u,o.parent=this,new Ht(n,o,be(this,c)),this},e.staggerFrom=function(n,r,o,a,c,l,u){return o.runBackwards=1,bi(o).immediateRender=ue(o.immediateRender),this.staggerTo(n,r,o,a,c,l,u)},e.staggerFromTo=function(n,r,o,a,c,l,u,h){return a.startAt=o,bi(a).immediateRender=ue(a.immediateRender),this.staggerTo(n,r,a,c,l,u,h)},e.render=function(n,r,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,l=this._dur,u=n<=0?0:$t(n),h=this._zTime<0!=n<0&&(this._initted||!l),d,p,_,f,m,v,w,b,g,y,T,k;if(this!==Nt&&u>c&&n>=0&&(u=c),u!==this._tTime||o||h){if(a!==this._time&&l&&(u+=this._time-a,n+=this._time-a),d=u,g=this._start,b=this._ts,v=!b,h&&(l||(a=this._zTime),(n||!r)&&(this._zTime=n)),this._repeat){if(T=this._yoyo,m=l+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(m*100+n,r,o);if(d=$t(u%m),u===c?(f=this._repeat,d=l):(f=~~(u/m),f&&f===u/m&&(d=l,f--),d>l&&(d=l)),y=Hn(this._tTime,m),!a&&this._tTime&&y!==f&&this._tTime-y*m-this._dur<=0&&(y=f),T&&f&1&&(d=l-d,k=1),f!==y&&!this._lock){var x=T&&y&1,C=x===(T&&f&1);if(f=a&&n>=0)for(p=this._first;p;){if(_=p._next,(p._act||d>=p._start)&&p._ts&&w!==p){if(p.parent!==this)return this.render(n,r,o);if(p.render(p._ts>0?(d-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(d-p._start)*p._ts,r,o),d!==this._time||!this._ts&&!v){w=0,_&&(u+=this._zTime=-Ct);break}}p=_}else{p=this._last;for(var O=n<0?n:d;p;){if(_=p._prev,(p._act||O<=p._end)&&p._ts&&w!==p){if(p.parent!==this)return this.render(n,r,o);if(p.render(p._ts>0?(O-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(O-p._start)*p._ts,r,o||Jt&&(p._initted||p._startAt)),d!==this._time||!this._ts&&!v){w=0,_&&(u+=this._zTime=O?-Ct:Ct);break}}p=_}}if(w&&!r&&(this.pause(),w.render(d>=a?0:-Ct)._zTime=d>=a?1:-1,this._ts))return this._start=g,Ao(this),this.render(n,r,o);this._onUpdate&&!r&&ve(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(g===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((n||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&Fs(this,1),!r&&!(n<0&&!a)&&(u||a||!c)&&(ve(this,u===c&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},e.add=function(n,r){var o=this;if(ps(r)||(r=be(this,r,n)),!(n instanceof Zi)){if(te(n))return n.forEach(function(a){return o.add(a,r)}),this;if(Zt(n))return this.addLabel(n,r);if(Vt(n))n=Ht.delayedCall(0,n);else return this}return this!==n?$e(this,n,r):this},e.getChildren=function(n,r,o,a){n===void 0&&(n=!0),r===void 0&&(r=!0),o===void 0&&(o=!0),a===void 0&&(a=-Oe);for(var c=[],l=this._first;l;)l._start>=a&&(l instanceof Ht?r&&c.push(l):(o&&c.push(l),n&&c.push.apply(c,l.getChildren(!0,r,o)))),l=l._next;return c},e.getById=function(n){for(var r=this.getChildren(1,1,1),o=r.length;o--;)if(r[o].vars.id===n)return r[o]},e.remove=function(n){return Zt(n)?this.removeLabel(n):Vt(n)?this.killTweensOf(n):(Oo(this,n),n===this._recent&&(this._recent=this._last),en(this))},e.totalTime=function(n,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=$t(ye.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),i.prototype.totalTime.call(this,n,r),this._forcing=0,this):this._tTime},e.addLabel=function(n,r){return this.labels[n]=be(this,r),this},e.removeLabel=function(n){return delete this.labels[n],this},e.addPause=function(n,r,o){var a=Ht.delayedCall(0,r||Gi,o);return a.data="isPause",this._hasPause=1,$e(this,a,be(this,n))},e.removePause=function(n){var r=this._first;for(n=be(this,n);r;)r._start===n&&r.data==="isPause"&&Fs(r),r=r._next},e.killTweensOf=function(n,r,o){for(var a=this.getTweensOf(n,o),c=a.length;c--;)bs!==a[c]&&a[c].kill(n,r);return this},e.getTweensOf=function(n,r){for(var o=[],a=Ae(n),c=this._first,l=ps(r),u;c;)c instanceof Ht?N1(c._targets,a)&&(l?(!bs||c._initted&&c._ts)&&c.globalTime(0)<=r&&c.globalTime(c.totalDuration())>r:!r||c.isActive())&&o.push(c):(u=c.getTweensOf(a,r)).length&&o.push.apply(o,u),c=c._next;return o},e.tweenTo=function(n,r){r=r||{};var o=this,a=be(o,n),c=r,l=c.startAt,u=c.onStart,h=c.onStartParams,d=c.immediateRender,p,_=Ht.to(o,De({ease:r.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale())||Ct,onStart:function(){if(o.pause(),!p){var m=r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale());_._dur!==m&&Yn(_,m,0,1).render(_._time,!0,!0),p=1}u&&u.apply(_,h||[])}},r));return d?_.render(0):_},e.tweenFromTo=function(n,r,o){return this.tweenTo(r,De({startAt:{time:be(this,n)}},o))},e.recent=function(){return this._recent},e.nextLabel=function(n){return n===void 0&&(n=this._time),Pl(this,be(this,n))},e.previousLabel=function(n){return n===void 0&&(n=this._time),Pl(this,be(this,n),1)},e.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+Ct)},e.shiftChildren=function(n,r,o){o===void 0&&(o=0);for(var a=this._first,c=this.labels,l;a;)a._start>=o&&(a._start+=n,a._end+=n),a=a._next;if(r)for(l in c)c[l]>=o&&(c[l]+=n);return en(this)},e.invalidate=function(n){var r=this._first;for(this._lock=0;r;)r.invalidate(n),r=r._next;return i.prototype.invalidate.call(this,n)},e.clear=function(n){n===void 0&&(n=!0);for(var r=this._first,o;r;)o=r._next,this.remove(r),r=o;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),en(this)},e.totalDuration=function(n){var r=0,o=this,a=o._last,c=Oe,l,u,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-n:n));if(o._dirty){for(h=o.parent;a;)l=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>c&&o._sort&&a._ts&&!o._lock?(o._lock=1,$e(o,a,u-a._delay,1)._lock=0):c=u,u<0&&a._ts&&(r-=u,(!h&&!o._dp||h&&h.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),c=0),a._end>r&&a._ts&&(r=a._end),a=l;Yn(o,o===Nt&&o._time>r?o._time:r,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(n){if(Nt._ts&&(Eh(Nt,oo(n,Nt)),Ch=ye.frame),ye.frame>=Ol){Ol+=ke.autoSleep||120;var r=Nt._first;if((!r||!r._ts)&&ke.autoSleep&&ye._listeners.length<2){for(;r&&!r._ts;)r=r._next;r||ye.sleep()}}},t}(Zi);De(ie.prototype,{_lock:0,_hasPause:0,_forcing:0});var nv=function(t,e,s,n,r,o,a){var c=new de(this._pt,t,e,0,1,ed,null,r),l=0,u=0,h,d,p,_,f,m,v,w;for(c.b=s,c.e=n,s+="",n+="",(v=~n.indexOf("random("))&&(n=$i(n)),o&&(w=[s,n],o(w,t,e),s=w[0],n=w[1]),d=s.match(Ho)||[];h=Ho.exec(n);)_=h[0],f=n.substring(l,h.index),p?p=(p+1)%5:f.substr(-5)==="rgba("&&(p=1),_!==d[u++]&&(m=parseFloat(d[u-1])||0,c._pt={_next:c._pt,p:f||u===1?f:",",s:m,c:_.charAt(1)==="="?Nn(m,_)-m:parseFloat(_)-m,m:p&&p<4?Math.round:0},l=Ho.lastIndex);return c.c=l")}),g.duration();else{T={};for(x in _)x==="ease"||x==="easeEach"||av(x,_[x],T,_.easeEach);for(x in T)for(V=T[x].sort(function(Y,j){return Y.t-j.t}),M=0,y=0;yc-Ct&&!u?c:nl&&(d=l)),v=this._yoyo&&_&1,v&&(g=this._yEase,d=l-d),m=Hn(this._tTime,f),d===a&&!o&&this._initted&&_===m)return this._tTime=h,this;_!==m&&(b&&this._yEase&&Gh(b,v),this.vars.repeatRefresh&&!v&&!this._lock&&this._time!==l&&this._initted&&(this._lock=o=1,this.render($t(f*_),!0).invalidate()._lock=0))}if(!this._initted){if(Ih(this,u?n:d,o,r,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&_!==m))return this;if(l!==this._dur)return this.render(n,r,o)}if(this._tTime=h,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(g||this._ease)(d/l),this._from&&(this.ratio=w=1-w),d&&!a&&!r&&!_&&(ve(this,"onStart"),this._tTime!==h))return this;for(p=this._pt;p;)p.r(w,p.d),p=p._next;b&&b.render(n<0?n:!d&&v?-Ct:b._dur*b._ease(d/this._dur),r,o)||this._startAt&&(this._zTime=n),this._onUpdate&&!r&&(u&&va(this,n,r,o),ve(this,"onUpdate")),this._repeat&&_!==m&&this.vars.onRepeat&&!r&&this.parent&&ve(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&va(this,n,!0,!0),(n||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Fs(this,1),!r&&!(u&&!a)&&(h||a||v)&&(ve(this,h===c?"onComplete":"onReverseComplete",!0),this._prom&&!(h0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),i.prototype.invalidate.call(this,n)},e.resetTo=function(n,r,o,a,c){Xi||ye.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||Tc(this,l),u=this._ease(l/this._dur),rv(this,n,r,o,a,u,l,c)?this.resetTo(n,r,o,a,1):(Mo(this,0),this.parent||Mh(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(n,r){if(r===void 0&&(r="all"),!n&&(!r||r==="all"))return this._lazy=this._pt=0,this.parent?vi(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(n,r,bs&&bs.vars.overwrite!==!0)._first||vi(this),this.parent&&o!==this.timeline.totalDuration()&&Yn(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=n?Ae(n):a,l=this._ptLookup,u=this._pt,h,d,p,_,f,m,v;if((!r||r==="all")&&F1(a,c))return r==="all"&&(this._pt=0),vi(this);for(h=this._op=this._op||[],r!=="all"&&(Zt(r)&&(f={},he(r,function(w){return f[w]=1}),r=f),r=ov(a,r)),v=a.length;v--;)if(~c.indexOf(a[v])){d=l[v],r==="all"?(h[v]=r,_=d,p={}):(p=h[v]=h[v]||{},_=r);for(f in _)m=d&&d[f],m&&((!("kill"in m.d)||m.d.kill(f)===!0)&&Oo(this,m,"_pt"),delete d[f]),p!=="all"&&(p[f]=1)}return this._initted&&!this._pt&&u&&vi(this),this},t.to=function(n,r){return new t(n,r,arguments[2])},t.from=function(n,r){return Ci(1,arguments)},t.delayedCall=function(n,r,o,a){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:r,onReverseComplete:r,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(n,r,o){return Ci(2,arguments)},t.set=function(n,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(n,r)},t.killTweensOf=function(n,r,o){return Nt.killTweensOf(n,r,o)},t}(Zi);De(Ht.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});he("staggerTo,staggerFrom,staggerFromTo",function(i){Ht[i]=function(){var t=new ie,e=ka.call(arguments,0);return e.splice(i==="staggerFromTo"?5:4,0,0),t[i].apply(t,e)}});var wc=function(t,e,s){return t[e]=s},Jh=function(t,e,s){return t[e](s)},cv=function(t,e,s,n){return t[e](n.fp,s)},lv=function(t,e,s){return t.setAttribute(e,s)},bc=function(t,e){return Vt(t[e])?Jh:pc(t[e])&&t.setAttribute?lv:wc},td=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},uv=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ed=function(t,e){var s=e._pt,n="";if(!t&&e.b)n=e.b;else if(t===1&&e.e)n=e.e;else{for(;s;)n=s.p+(s.m?s.m(s.s+s.c*t):Math.round((s.s+s.c*t)*1e4)/1e4)+n,s=s._next;n+=e.c}e.set(e.t,e.p,n,e)},Cc=function(t,e){for(var s=e._pt;s;)s.r(t,s.d),s=s._next},hv=function(t,e,s,n){for(var r=this._pt,o;r;)o=r._next,r.p===n&&r.modifier(t,e,s),r=o},dv=function(t){for(var e=this._pt,s,n;e;)n=e._next,e.p===t&&!e.op||e.op===t?Oo(this,e,"_pt"):e.dep||(s=1),e=n;return!s},fv=function(t,e,s,n){n.mSet(t,e,n.m.call(n.tween,s,n.mt),n)},sd=function(t){for(var e=t._pt,s,n,r,o;e;){for(s=e._next,n=r;n&&n.pr>e.pr;)n=n._next;(e._prev=n?n._prev:o)?e._prev._next=e:r=e,(e._next=n)?n._prev=e:o=e,e=s}t._pt=r},de=function(){function i(e,s,n,r,o,a,c,l,u){this.t=s,this.s=r,this.c=o,this.p=n,this.r=a||td,this.d=c||this,this.set=l||wc,this.pr=u||0,this._next=e,e&&(e._prev=this)}var t=i.prototype;return t.modifier=function(s,n,r){this.mSet=this.mSet||this.set,this.set=fv,this.m=s,this.mt=r,this.tween=n},i}();he(vc+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(i){return yc[i]=1});Te.TweenMax=Te.TweenLite=Ht;Te.TimelineLite=Te.TimelineMax=ie;Nt=new ie({sortChildren:!1,defaults:Wn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});ke.stringFilter=Hh;var nn=[],Rr={},pv=[],Nl=0,mv=0,Zo=function(t){return(Rr[t]||pv).map(function(e){return e()})},Ca=function(){var t=Date.now(),e=[];t-Nl>2&&(Zo("matchMediaInit"),nn.forEach(function(s){var n=s.queries,r=s.conditions,o,a,c,l;for(a in n)o=Ce.matchMedia(n[a]).matches,o&&(c=1),o!==r[a]&&(r[a]=o,l=1);l&&(s.revert(),c&&e.push(s))}),Zo("matchMediaRevert"),e.forEach(function(s){return s.onMatch(s,function(n){return s.add(null,n)})}),Nl=t,Zo("matchMedia"))},nd=function(){function i(e,s){this.selector=s&&Ta(s),this.data=[],this._r=[],this.isReverted=!1,this.id=mv++,e&&this.add(e)}var t=i.prototype;return t.add=function(s,n,r){Vt(s)&&(r=n,n=s,s=Vt);var o=this,a=function(){var l=Lt,u=o.selector,h;return l&&l!==o&&l.data.push(o),r&&(o.selector=Ta(r)),Lt=o,h=n.apply(o,arguments),Vt(h)&&o._r.push(h),Lt=l,o.selector=u,o.isReverted=!1,h};return o.last=a,s===Vt?a(o,function(c){return o.add(null,c)}):s?o[s]=a:a},t.ignore=function(s){var n=Lt;Lt=null,s(this),Lt=n},t.getTweens=function(){var s=[];return this.data.forEach(function(n){return n instanceof i?s.push.apply(s,n.getTweens()):n instanceof Ht&&!(n.parent&&n.parent.data==="nested")&&s.push(n)}),s},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(s,n){var r=this;if(s?function(){for(var a=r.getTweens(),c=r.data.length,l;c--;)l=r.data[c],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,h){return h.g-u.g||-1/0}).forEach(function(u){return u.t.revert(s)}),c=r.data.length;c--;)l=r.data[c],l instanceof ie?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof Ht)&&l.revert&&l.revert(s);r._r.forEach(function(u){return u(s,r)}),r.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),n)for(var o=nn.length;o--;)nn[o].id===this.id&&nn.splice(o,1)},t.revert=function(s){this.kill(s||{})},i}(),_v=function(){function i(e){this.contexts=[],this.scope=e}var t=i.prototype;return t.add=function(s,n,r){Je(s)||(s={matches:s});var o=new nd(0,r||this.scope),a=o.conditions={},c,l,u;Lt&&!o.selector&&(o.selector=Lt.selector),this.contexts.push(o),n=o.add("onMatch",n),o.queries=s;for(l in s)l==="all"?u=1:(c=Ce.matchMedia(s[l]),c&&(nn.indexOf(o)<0&&nn.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(Ca):c.addEventListener("change",Ca)));return u&&n(o,function(h){return o.add(null,h)}),this},t.revert=function(s){this.kill(s||{})},t.kill=function(s){this.contexts.forEach(function(n){return n.kill(s,!0)})},i}(),ao={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),s=0;s1){var n=t.map(function(u){return _e.quickSetter(u,e,s)}),r=n.length;return function(u){for(var h=r;h--;)n[h](u)}}t=t[0]||{};var o=ge[e],a=tn(t),c=a.harness&&(a.harness.aliases||{})[e]||e,l=o?function(u){var h=new o;Dn._pt=0,h.init(t,s?u+s:u,Dn,0,[t]),h.render(1,h),Dn._pt&&Cc(1,Dn)}:a.set(t,c);return o?l:function(u){return l(t,c,s?u+s:u,a,1)}},quickTo:function(t,e,s){var n,r=_e.to(t,un((n={},n[e]="+=0.1",n.paused=!0,n),s||{})),o=function(c,l,u){return r.resetTo(e,c,l,u)};return o.tween=r,o},isTweening:function(t){return Nt.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=sn(t.ease,Wn.ease)),Al(Wn,t||{})},config:function(t){return Al(ke,t||{})},registerEffect:function(t){var e=t.name,s=t.effect,n=t.plugins,r=t.defaults,o=t.extendTimeline;(n||"").split(",").forEach(function(a){return a&&!ge[a]&&!Te[a]&&Yi(e+" effect requires "+a+" plugin.")}),Yo[e]=function(a,c,l){return s(Ae(a),De(c||{},r),l)},o&&(ie.prototype[e]=function(a,c,l){return this.add(Yo[e](a,Je(c)?c:(l=c)&&{},this),l)})},registerEase:function(t,e){ft[t]=sn(e)},parseEase:function(t,e){return arguments.length?sn(t,e):ft},getById:function(t){return Nt.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var s=new ie(t),n,r;for(s.smoothChildTiming=ue(t.smoothChildTiming),Nt.remove(s),s._dp=0,s._time=s._tTime=Nt._time,n=Nt._first;n;)r=n._next,(e||!(!n._dur&&n instanceof Ht&&n.vars.onComplete===n._targets[0]))&&$e(s,n,n._start-n._delay),n=r;return $e(Nt,s,0),s},context:function(t,e){return t?new nd(t,e):Lt},matchMedia:function(t){return new _v(t)},matchMediaRefresh:function(){return nn.forEach(function(t){var e=t.conditions,s,n;for(n in e)e[n]&&(e[n]=!1,s=1);s&&t.revert()})||Ca()},addEventListener:function(t,e){var s=Rr[t]||(Rr[t]=[]);~s.indexOf(e)||s.push(e)},removeEventListener:function(t,e){var s=Rr[t],n=s&&s.indexOf(e);n>=0&&s.splice(n,1)},utils:{wrap:$1,wrapYoyo:X1,distribute:Fh,random:Vh,snap:Lh,normalize:G1,getUnit:Kt,clamp:q1,splitColor:qh,toArray:Ae,selector:Ta,mapRange:zh,pipe:H1,unitize:Y1,interpolate:Z1,shuffle:Rh},install:wh,effects:Yo,ticker:ye,updateRoot:ie.updateRoot,plugins:ge,globalTimeline:Nt,core:{PropTween:de,globals:bh,Tween:Ht,Timeline:ie,Animation:Zi,getCache:tn,_removeLinkedListItem:Oo,reverting:function(){return Jt},context:function(t){return t&&Lt&&(Lt.data.push(t),t._ctx=Lt),Lt},suppressOverwrites:function(t){return fc=t}}};he("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return ao[i]=Ht[i]});ye.add(ie.updateRoot);Dn=ao.to({},{duration:0});var gv=function(t,e){for(var s=t._pt;s&&s.p!==e&&s.op!==e&&s.fp!==e;)s=s._next;return s},yv=function(t,e){var s=t._targets,n,r,o;for(n in e)for(r=s.length;r--;)o=t._ptLookup[r][n],o&&(o=o.d)&&(o._pt&&(o=gv(o,n)),o&&o.modifier&&o.modifier(e[n],t,s[r],n))},Qo=function(t,e){return{name:t,rawVars:1,init:function(n,r,o){o._onInit=function(a){var c,l;if(Zt(r)&&(c={},he(r,function(u){return c[u]=1}),r=c),e){c={};for(l in r)c[l]=e(r[l]);r=c}yv(a,r)}}}},_e=ao.registerPlugin({name:"attr",init:function(t,e,s,n,r){var o,a,c;this.tween=s;for(o in e)c=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(c||0)+"",e[o],n,r,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(t,e){for(var s=e._pt;s;)Jt?s.set(s.t,s.p,s.b,s):s.r(t,s.d),s=s._next}},{name:"endArray",init:function(t,e){for(var s=e.length;s--;)this.add(t,s,t[s]||0,e[s],0,0,0,0,0,1)}},Qo("roundProps",wa),Qo("modifiers"),Qo("snap",Lh))||ao;Ht.version=ie.version=_e.version="3.12.4";Th=1;mc()&&Gn();ft.Power0;ft.Power1;ft.Power2;ft.Power3;ft.Power4;ft.Linear;ft.Quad;ft.Cubic;ft.Quart;ft.Quint;ft.Strong;ft.Elastic;ft.Back;ft.SteppedEase;ft.Bounce;ft.Sine;ft.Expo;ft.Circ;/*! * CSSPlugin 3.12.4 * https://gsap.com * @@ -356,7 +356,7 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b 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,Cs,Rn,Sc,Xs,Nl,Ec,xv=function(){return typeof window<"u"},ms={},Gs=180/Math.PI,Fn=Math.PI/180,bn=Math.atan2,Rl=1e8,Oc=/([A-Z])/g,kv=/(left|right|width|margin|padding|x)/i,Tv=/[\s,\(]\S/,Ze={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Sa=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},wv=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)},bv=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)},Cv=function(t,e){var s=e.s+e.c*t;e.set(e.t,e.p,~~(s+(s<0?-.5:.5))+e.u,e)},id=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},rd=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Sv=function(t,e,s){return t.style[e]=s},Ev=function(t,e,s){return t.style.setProperty(e,s)},Ov=function(t,e,s){return t._gsap[e]=s},Av=function(t,e,s){return t._gsap.scaleX=t._gsap.scaleY=s},Mv=function(t,e,s,n,r){var o=t._gsap;o.scaleX=o.scaleY=s,o.renderTransform(r,o)},Dv=function(t,e,s,n,r){var o=t._gsap;o[e]=s,o.renderTransform(r,o)},Rt="transform",fe=Rt+"Origin",Pv=function i(t,e){var s=this,n=this.target,r=n.style,o=n._gsap;if(t in ms&&r){if(this.tfm=this.tfm||{},t!=="transform")t=Ze[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return s.tfm[a]=ls(n,a)}):this.tfm[t]=o.x?o[t]:ls(n,t),t===fe&&(this.tfm.zOrigin=o.zOrigin);else return Ze.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(fe,e,"")),t=Rt}(r||e)&&this.props.push(t,e,r[t])},od=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Iv=function(){var t=this.props,e=this.target,s=e.style,n=e._gsap,r,o;for(r=0;r=0?Fl[o]:"")+t},Oa=function(){xv()&&window.document&&(Il=window,Cs=Il.document,Rn=Cs.documentElement,Xs=Ea("div")||{style:{}},Ea("div"),Rt=$n(Rt),fe=Rt+"Origin",Xs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",cd=!!$n("perspective"),Ec=_e.core.reverting,Sc=1)},Ko=function i(t){var e=Ea("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},Ll=function(t,e){for(var s=e.length;s--;)if(t.hasAttribute(e[s]))return t.getAttribute(e[s])},ld=function(t){var e;try{e=t.getBBox()}catch{e=Ko.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Ko||(e=Ko.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+Ll(t,["x","cx","x1"])||0,y:+Ll(t,["y","cy","y1"])||0,width:0,height:0}:e},ud=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&ld(t))},hn=function(t,e){if(e){var s=t.style,n;e in ms&&e!==fe&&(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)}},Ss=function(t,e,s,n,r,o){var a=new de(t._pt,e,s,0,1,o?rd:id);return t._pt=a,a.b=n,a.e=r,t._props.push(s),a},Vl={deg:1,rad:1,turn:1},Nv={grid:1,flex:1},Ls=function i(t,e,s,n){var r=parseFloat(s)||0,o=(s+"").trim().substr((r+"").length)||"px",a=Xs.style,c=kv.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||Vl[n]||Vl[o])return r;if(o!=="px"&&!d&&(r=i(t,e,s,"px")),v=t.getCTM&&ud(t),(p||o==="%")&&(ms[e]||~e.indexOf("adius")))return _=v?t.getBBox()[c?"width":"height"]:t[u],jt(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===Cs||!f.appendChild)&&(f=Cs.body),m=f._gsap,m&&p&&m.width&&c&&m.time===ye.time&&!m.uncache)return jt(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:hn(t,e)}else(p||o==="%")&&!Nv[Qe(f,"display")]&&(a.position=Qe(t,"position")),f===t&&(a.position="static"),f.appendChild(Xs),_=Xs[u],f.removeChild(Xs),a.position="absolute";return c&&p&&(m=tn(f),m.time=ye.time,m.width=f[u]),jt(d?_*r/h:_&&r?h/_*r:0)},ls=function(t,e,s,n){var r;return Sc||Oa(),e in Ze&&e!=="transform"&&(e=Ze[e],~e.indexOf(",")&&(e=e.split(",")[0])),ms[e]&&e!=="transform"?(r=Ki(t,n),r=e!=="transformOrigin"?r[e]:r.svg?r.origin:uo(Qe(t,fe))+" "+r.zOrigin+"px"):(r=t.style[e],(!r||r==="auto"||n||~(r+"").indexOf("calc("))&&(r=lo[e]&&lo[e](t,e,s)||Qe(t,e)||Sh(t,e)||(e==="opacity"?1:0))),s&&!~(r+"").trim().indexOf(" ")?Ls(t,e,r,s)+s:r},Rv=function(t,e,s,n){if(!s||s==="none"){var r=$n(e,t,1),o=r&&Qe(t,r,1);o&&o!==s?(e=r,s=o):e==="borderColor"&&(s=Qe(t,"borderTopColor"))}var a=new de(this._pt,t.style,e,0,1,ed),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=Qe(t,e)||n,f?t.style[e]=f:hn(t,e)),u=[s,n],Hh(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=Nn(p,m)+g),v=parseFloat(m),w=m.substr((v+"").length),c=Mn.lastIndex-w.length,w||(w=w||ke.units[e]||g,c===n.length&&(n+=w,a.e+=w)),g!==w&&(p=Ls(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],ms[a]&&(c=1,a=a==="transformOrigin"?fe:Rt),hn(s,a);c&&(hn(s,Rt),o&&(o.svg&&s.removeAttribute("transform"),Ki(s,1),o.uncache=1,od(n)))}},lo={clearProps:function(t,e,s,n,r){if(r.data!=="isFromStart"){var o=t._pt=new de(t._pt,e,s,0,0,Lv);return o.u=n,o.pr=-10,o.tween=r,t._props.push(s),1}}},Qi=[1,0,0,1,0,0],hd={},dd=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},zl=function(t){var e=Qe(t,Rt);return dd(e)?Qi:e.substr(7).match(vh).map(jt)},Ac=function(t,e){var s=t._gsap||tn(t),n=t.style,r=zl(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=zl(t),c?n.display=c:hn(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)},Aa=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,T,k,x,C;s?c!==Qi&&(k=p*m-_*f)&&(x=g*(m/k)+y*(-f/k)+(f*b-m*v)/k,C=g*(-_/k)+y*(p/k)-(p*b-_*v)/k,g=x,y=C):(T=ld(t),g=T.x+(~w[0].indexOf("%")?g/100*T.width:g),y=T.y+(~(w[1]||w[0]).indexOf("%")?y/100*T.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[fe]="0px 0px",o&&(Ss(o,a,"xOrigin",l,g),Ss(o,a,"yOrigin",u,y),Ss(o,a,"xOffset",h,a.xOffset),Ss(o,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",g+" "+y)},Ki=function(t,e){var s=t._gsap||new Zh(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=Qe(t,fe)||"0",u,h,d,p,_,f,m,v,b,w,g,y,T,k,x,C,O,I,M,V,B,G,Y,j,z,Z,Q,et,R,F,S,D;return u=h=d=f=m=v=b=w=g=0,p=_=1,s.svg=!!(t.getCTM&&ud(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"),k=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"),Aa(t,j||l,!!j||s.originIsAbsolute,s.smooth!==!1,k)),y=s.xOrigin||0,T=s.yOrigin||0,k!==Qi&&(I=k[0],M=k[1],V=k[2],B=k[3],u=G=k[4],h=Y=k[5],k.length===6?(p=Math.sqrt(I*I+M*M),_=Math.sqrt(B*B+V*V),f=I||M?bn(M,I)*Gs:0,b=V||B?bn(V,B)*Gs+f:0,b&&(_*=Math.abs(Math.cos(b*Fn))),s.svg&&(u-=y-(y*I+T*V),h-=T-(y*M+T*B))):(D=k[6],F=k[7],Q=k[8],et=k[9],R=k[10],S=k[11],u=k[12],h=k[13],d=k[14],x=bn(D,R),m=x*Gs,x&&(C=Math.cos(-x),O=Math.sin(-x),j=G*C+Q*O,z=Y*C+et*O,Z=D*C+R*O,Q=G*-O+Q*C,et=Y*-O+et*C,R=D*-O+R*C,S=F*-O+S*C,G=j,Y=z,D=Z),x=bn(-V,R),v=x*Gs,x&&(C=Math.cos(-x),O=Math.sin(-x),j=I*C-Q*O,z=M*C-et*O,Z=V*C-R*O,S=B*O+S*C,I=j,M=z,V=Z),x=bn(M,I),f=x*Gs,x&&(C=Math.cos(x),O=Math.sin(x),j=I*C+M*O,z=G*C+Y*O,M=M*C-I*O,Y=Y*C-G*O,I=j,G=z),m&&Math.abs(m)+Math.abs(f)>359.9&&(m=f=0,v=180-v),p=jt(Math.sqrt(I*I+M*M+V*V)),_=jt(Math.sqrt(Y*Y+D*D)),x=bn(G,Y),b=Math.abs(x)>2e-4?x*Gs:0,g=S?1/(S<0?-S:S):0),s.svg&&(j=t.getAttribute("transform"),s.forceCSS=t.setAttribute("transform","")||!dd(Qe(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=jt(p),s.scaleY=jt(_),s.rotation=jt(f)+a,s.rotationX=jt(m)+a,s.rotationY=jt(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[fe]=uo(l)),s.xOffset=s.yOffset=0,s.force3D=ke.force3D,s.renderTransform=s.svg?Uv:cd?fd:Vv,s.uncache=0,s},uo=function(t){return(t=t.split(" "))[0]+" "+t[1]},Jo=function(t,e,s){var n=Kt(e);return jt(parseFloat(e)+parseFloat(Ls(t,"x",s+"px",n)))+n},Vv=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,fd(t,e)},Hs="0deg",gi="0px",Ys=") ",fd=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!==Hs||u!==Hs)){var T=parseFloat(u)*Fn,k=Math.sin(T),x=Math.cos(T),C;T=parseFloat(h)*Fn,C=Math.cos(T),o=Jo(b,o,k*C*-w),a=Jo(b,a,-Math.sin(T)*-w),c=Jo(b,c,x*C*-w+w)}m!==gi&&(g+="perspective("+m+Ys),(n||r)&&(g+="translate("+n+"%, "+r+"%) "),(y||o!==gi||a!==gi||c!==gi)&&(g+=c!==gi||y?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Ys),l!==Hs&&(g+="rotate("+l+Ys),u!==Hs&&(g+="rotateY("+u+Ys),h!==Hs&&(g+="rotateX("+h+Ys),(d!==Hs||p!==Hs)&&(g+="skew("+d+", "+p+Ys),(_!==1||f!==1)&&(g+="scale("+_+", "+f+Ys),b.style[Rt]=g||"translate(0, 0)"},Uv=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,T,k,x,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,T=Math.sin(c)*h,k=Math.sin(c-l)*-d,x=Math.cos(c-l)*d,l&&(u*=Fn,C=Math.tan(l-u),C=Math.sqrt(1+C*C),k*=C,x*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),y*=C,T*=C)),y=jt(y),T=jt(T),k=jt(k),x=jt(x)):(y=h,x=d,T=k=0),(w&&!~(o+"").indexOf("px")||g&&!~(a+"").indexOf("px"))&&(w=Ls(p,"x",o,"px"),g=Ls(p,"y",a,"px")),(_||f||m||v)&&(w=jt(w+_-(_*y+f*k)+m),g=jt(g+f-(_*T+f*x)+v)),(n||r)&&(C=p.getBBox(),w=jt(w+n/100*C.width),g=jt(g+r/100*C.height)),C="matrix("+y+","+T+","+k+","+x+","+w+","+g+")",p.setAttribute("transform",C),b&&(p.style[Rt]=C)},zv=function(t,e,s,n,r){var o=360,a=Xt(r),c=parseFloat(r)*(a&&~r.indexOf("rad")?Gs: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*Rl)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*Rl)%o-~~(l/o)*o)),t._pt=d=new de(t._pt,e,s,n,l,wv),d.e=u,d.u="deg",t._props.push(s),d},jl=function(t,e){for(var s in e)t[s]=e[s];return t},jv=function(t,e,s){var n=jl({},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),hn(s,Rt),s.setAttribute("transform",l)):(l=getComputedStyle(s)[Rt],o[Rt]=e,a=Ki(s,1),o[Rt]=l);for(c in ms)l=n[c],u=a[c],l!==u&&r.indexOf(c)<0&&(p=Kt(l),_=Kt(u),h=p!==_?Ls(s,c,l,_):parseFloat(l),d=parseFloat(u),t._pt=new de(t._pt,a,c,h,d-h,Sa),t._pt.u=_||0,t._props.push(c));jl(a,n)};he("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});lo[t>1?"border"+i:i]=function(a,c,l,u,h){var d,p;if(arguments.length<4)return d=o.map(function(_){return ls(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 pd={name:"css",register:Oa,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,T,k,x;Sc||Oa(),this.styles=this.styles||ad(t),x=this.styles.props,this.tween=s;for(f in e)if(f!=="autoRound"&&(u=e[f],!(ge[f]&&Xh(f,e,s,n,t,r)))){if(p=typeof u,_=lo[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)&&(k=1);else if(f.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(f)+"").trim(),u+="",Ms.lastIndex=0,Ms.test(l)||(m=Kt(l),v=Kt(u)),v?m!==v&&(l=Ls(t,f,l,v)+v):m&&(u+=m),this.add(a,"setProperty",l,u,n,r,0,0,f),o.push(f),x.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],Xt(l)&&~l.indexOf("random(")&&(l=$i(l)),Kt(l+"")||l==="auto"||(l+=ke.units[f]||Kt(ls(t,f))||""),(l+"").charAt(1)==="="&&(l=ls(t,f))):l=ls(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 Ze&&(f==="autoAlpha"&&(d===1&&ls(t,"visibility")==="hidden"&&h&&(d=0),x.push("visibility",0,a.visibility),Ss(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=Ze[f],~f.indexOf(",")&&(f=f.split(",")[0]))),w=f in ms,w){if(this.styles.save(f),g||(y=t._gsap,y.renderTransform&&!e.parseTransform||Ki(t,e.parseTransform),T=e.smoothOrigin!==!1&&y.smooth,g=this._pt=new de(this._pt,a,Rt,0,1,y.renderTransform,y,0,-1),g.dep=1),f==="scale")this._pt=new de(this._pt,y,"scaleY",y.scaleY,(b?Nn(y.scaleY,b+h):h)-y.scaleY||0,Sa),this._pt.u=0,o.push("scaleY",f),f+="X";else if(f==="transformOrigin"){x.push(fe,0,a[fe]),u=Fv(u),y.svg?Aa(t,u,0,T,0,this):(v=parseFloat(u.split(" ")[2])||0,v!==y.zOrigin&&Ss(this,y,"zOrigin",y.zOrigin,v),Ss(this,a,f,uo(l),uo(u)));continue}else if(f==="svgOrigin"){Aa(t,u,1,T,0,this);continue}else if(f in hd){zv(this,y,f,d,b?Nn(d,b+u):u);continue}else if(f==="smoothOrigin"){Ss(this,y,"smooth",y.smooth,u);continue}else if(f==="force3D"){y[f]=u;continue}else if(f==="transform"){jv(this,u,t);continue}}else f in a||(f=$n(f)||f);if(w||(h||h===0)&&(d||d===0)&&!Tv.test(u)&&f in a)m=(l+"").substr((d+"").length),h||(h=0),v=Kt(u)||(f in ke.units?ke.units[f]:m),m!==v&&(d=Ls(t,f,l,v)),this._pt=new de(this._pt,w?y:a,f,d,(b?Nn(d,b+h):h)-d,!w&&(v==="px"||f==="zIndex")&&e.autoRound!==!1?Cv:Sa),this._pt.u=v||0,m!==v&&v!=="%"&&(this._pt.b=l,this._pt.r=bv);else if(f in a)Rv.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?x.push(f,0,a[f]):x.push(f,1,l||t[f])),o.push(f)}}k&&sd(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:ls,aliases:Ze,getSetter:function(t,e,s){var n=Ze[e];return n&&n.indexOf(",")<0&&(e=n),e in ms&&e!==fe&&(t._gsap.x||ls(t,"x"))?s&&Nl===s?e==="scale"?Av:Ov:(Nl=s||{})&&(e==="scale"?Mv:Dv):t.style&&!pc(t.style[e])?Sv:~e.indexOf("-")?Ev:bc(t,e)},core:{_removeProperty:hn,_getMatrix:Ac}};_e.utils.checkPrefix=$n;_e.core.getStyleSaver=ad;(function(i,t,e,s){var n=he(i+","+t+","+e,function(r){ms[r]=1});he(t,function(r){ke.units[r]="deg",hd[r]=1}),Ze[n[13]]=i+","+t,he(s,function(r){var o=r.split(":");Ze[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");he("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){ke.units[i]="px"});_e.registerPlugin(pd);var Ji=_e.registerPlugin(pd)||_e;Ji.core.Tween;const md=P.forwardRef(({isSelected:i,position:t},e)=>(P.useEffect(()=>{if(e&&e.current){const s=e.current;Ji.fromTo(s.material,{linewidth:no*5},{linewidth:no,duration:1})}},[i,e]),L.jsx(Ud,{ref:e,isLine2:!0,opacity:.5,points:[new rt(t.sx,t.sy,t.sz),new rt(t.tx,t.ty,t.tz)]})));md.displayName="LineComponent";const Bv=P.memo(md),Bl=.5,_d=P.memo(({linksPosition:i})=>{const t=Vs(o=>o.dataInitial),{showSelectionGraph:e}=pe(o=>o),s=gs(),n=Kl(),r=P.useRef(new Map);return P.useEffect(()=>{const o=n||s;if(!o){r.current.forEach(a=>{a&&Ji.to(a.material,{linewidth:no,duration:Bl})});return}r.current.forEach((a,c)=>{if(a){const l=t==null?void 0:t.links.find(h=>h.ref_id===c),u=l&&(l.source===o.ref_id||l.target===o.ref_id);Ji.to(a.material,{linewidth:u?no*2:0,duration:Bl})}})},[t==null?void 0:t.links,n,s]),L.jsx("group",{name:"simulation-3d-group__connections",visible:!e||!0,children:t==null?void 0:t.links.map(o=>{const a=(s==null?void 0:s.ref_id)===o.source||(s==null?void 0:s.ref_id)===o.target,c=i.get(o.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return L.jsx(Bv,{ref:l=>{l?r.current.set(o.ref_id,l):r.current.delete(o.ref_id)},isSelected:a,position:c},o.ref_id)})})});_d.displayName="Connections";const qv=({color:i,scale:t})=>L.jsx(eu,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,children:L.jsx(ru,{color:i,scale:t})}),Wv=["#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"],Hv=()=>{const i=gs(),t=Vs(r=>r.dataInitial),{normalizedSchemasByType:e}=Ma(r=>r),s=$l(),n=P.useMemo(()=>new Of(30,2,16,100),[]);return L.jsx(L.Fragment,{children:L.jsxs(Xf,{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)??(Wv[s.indexOf(r.node_type)]||Tt.white);return L.jsx(qv,{color:a,scale:r.scale||1},r.ref_id)})]})})},Yv=P.memo(Hv),Gv=Ut(_s)` +*/var Rl,Cs,Rn,Sc,Zs,Fl,Ec,vv=function(){return typeof window<"u"},ms={},Gs=180/Math.PI,Fn=Math.PI/180,bn=Math.atan2,Ll=1e8,Oc=/([A-Z])/g,xv=/(left|right|width|margin|padding|x)/i,kv=/[\s,\(]\S/,Xe={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Sa=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Tv=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)},wv=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)},bv=function(t,e){var s=e.s+e.c*t;e.set(e.t,e.p,~~(s+(s<0?-.5:.5))+e.u,e)},id=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},rd=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Cv=function(t,e,s){return t.style[e]=s},Sv=function(t,e,s){return t.style.setProperty(e,s)},Ev=function(t,e,s){return t._gsap[e]=s},Ov=function(t,e,s){return t._gsap.scaleX=t._gsap.scaleY=s},Av=function(t,e,s,n,r){var o=t._gsap;o.scaleX=o.scaleY=s,o.renderTransform(r,o)},Mv=function(t,e,s,n,r){var o=t._gsap;o[e]=s,o.renderTransform(r,o)},Rt="transform",fe=Rt+"Origin",Dv=function i(t,e){var s=this,n=this.target,r=n.style,o=n._gsap;if(t in ms&&r){if(this.tfm=this.tfm||{},t!=="transform")t=Xe[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return s.tfm[a]=ls(n,a)}):this.tfm[t]=o.x?o[t]:ls(n,t),t===fe&&(this.tfm.zOrigin=o.zOrigin);else return Xe.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(fe,e,"")),t=Rt}(r||e)&&this.props.push(t,e,r[t])},od=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Pv=function(){var t=this.props,e=this.target,s=e.style,n=e._gsap,r,o;for(r=0;r=0?Vl[o]:"")+t},Oa=function(){vv()&&window.document&&(Rl=window,Cs=Rl.document,Rn=Cs.documentElement,Zs=Ea("div")||{style:{}},Ea("div"),Rt=$n(Rt),fe=Rt+"Origin",Zs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",cd=!!$n("perspective"),Ec=_e.core.reverting,Sc=1)},Ko=function i(t){var e=Ea("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},Ul=function(t,e){for(var s=e.length;s--;)if(t.hasAttribute(e[s]))return t.getAttribute(e[s])},ld=function(t){var e;try{e=t.getBBox()}catch{e=Ko.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Ko||(e=Ko.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+Ul(t,["x","cx","x1"])||0,y:+Ul(t,["y","cy","y1"])||0,width:0,height:0}:e},ud=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&ld(t))},hn=function(t,e){if(e){var s=t.style,n;e in ms&&e!==fe&&(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)}},Ss=function(t,e,s,n,r,o){var a=new de(t._pt,e,s,0,1,o?rd:id);return t._pt=a,a.b=n,a.e=r,t._props.push(s),a},zl={deg:1,rad:1,turn:1},Iv={grid:1,flex:1},Ls=function i(t,e,s,n){var r=parseFloat(s)||0,o=(s+"").trim().substr((r+"").length)||"px",a=Zs.style,c=xv.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||zl[n]||zl[o])return r;if(o!=="px"&&!d&&(r=i(t,e,s,"px")),v=t.getCTM&&ud(t),(p||o==="%")&&(ms[e]||~e.indexOf("adius")))return _=v?t.getBBox()[c?"width":"height"]:t[u],jt(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===Cs||!f.appendChild)&&(f=Cs.body),m=f._gsap,m&&p&&m.width&&c&&m.time===ye.time&&!m.uncache)return jt(r/m.width*h);if(p&&(e==="height"||e==="width")){var w=t.style[e];t.style[e]=h+n,_=t[u],w?t.style[e]=w:hn(t,e)}else(p||o==="%")&&!Iv[Qe(f,"display")]&&(a.position=Qe(t,"position")),f===t&&(a.position="static"),f.appendChild(Zs),_=Zs[u],f.removeChild(Zs),a.position="absolute";return c&&p&&(m=tn(f),m.time=ye.time,m.width=f[u]),jt(d?_*r/h:_&&r?h/_*r:0)},ls=function(t,e,s,n){var r;return Sc||Oa(),e in Xe&&e!=="transform"&&(e=Xe[e],~e.indexOf(",")&&(e=e.split(",")[0])),ms[e]&&e!=="transform"?(r=Ki(t,n),r=e!=="transformOrigin"?r[e]:r.svg?r.origin:lo(Qe(t,fe))+" "+r.zOrigin+"px"):(r=t.style[e],(!r||r==="auto"||n||~(r+"").indexOf("calc("))&&(r=co[e]&&co[e](t,e,s)||Qe(t,e)||Sh(t,e)||(e==="opacity"?1:0))),s&&!~(r+"").trim().indexOf(" ")?Ls(t,e,r,s)+s:r},Nv=function(t,e,s,n){if(!s||s==="none"){var r=$n(e,t,1),o=r&&Qe(t,r,1);o&&o!==s?(e=r,s=o):e==="borderColor"&&(s=Qe(t,"borderTopColor"))}var a=new de(this._pt,t.style,e,0,1,ed),c=0,l=0,u,h,d,p,_,f,m,v,w,b,g,y;if(a.b=s,a.e=n,s+="",n+="",n==="auto"&&(f=t.style[e],t.style[e]=n,n=Qe(t,e)||n,f?t.style[e]=f:hn(t,e)),u=[s,n],Hh(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],w=n.substring(c,h.index),_?_=(_+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(_=1),m!==(f=d[l++]||"")&&(p=parseFloat(f)||0,g=f.substr((p+"").length),m.charAt(1)==="="&&(m=Nn(p,m)+g),v=parseFloat(m),b=m.substr((v+"").length),c=Mn.lastIndex-b.length,b||(b=b||ke.units[e]||g,c===n.length&&(n+=b,a.e+=b)),g!==b&&(p=Ls(t,e,f,b)||0),a._pt={_next:a._pt,p:w||l===1?w:",",s:p,c:v-p,m:_&&_<4||e==="zIndex"?Math.round:0});a.c=c-1;)a=r[l],ms[a]&&(c=1,a=a==="transformOrigin"?fe:Rt),hn(s,a);c&&(hn(s,Rt),o&&(o.svg&&s.removeAttribute("transform"),Ki(s,1),o.uncache=1,od(n)))}},co={clearProps:function(t,e,s,n,r){if(r.data!=="isFromStart"){var o=t._pt=new de(t._pt,e,s,0,0,Fv);return o.u=n,o.pr=-10,o.tween=r,t._props.push(s),1}}},Qi=[1,0,0,1,0,0],hd={},dd=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},Bl=function(t){var e=Qe(t,Rt);return dd(e)?Qi:e.substr(7).match(vh).map(jt)},Ac=function(t,e){var s=t._gsap||tn(t),n=t.style,r=Bl(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=Bl(t),c?n.display=c:hn(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)},Aa=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],w=c[5],b=e.split(" "),g=parseFloat(b[0])||0,y=parseFloat(b[1])||0,T,k,x,C;s?c!==Qi&&(k=p*m-_*f)&&(x=g*(m/k)+y*(-f/k)+(f*w-m*v)/k,C=g*(-_/k)+y*(p/k)-(p*w-_*v)/k,g=x,y=C):(T=ld(t),g=T.x+(~b[0].indexOf("%")?g/100*T.width:g),y=T.y+(~(b[1]||b[0]).indexOf("%")?y/100*T.height:y)),n||n!==!1&&a.smooth?(v=g-l,w=y-u,a.xOffset=h+(v*p+w*f)-v,a.yOffset=d+(v*_+w*m)-w):a.xOffset=a.yOffset=0,a.xOrigin=g,a.yOrigin=y,a.smooth=!!n,a.origin=e,a.originIsAbsolute=!!s,t.style[fe]="0px 0px",o&&(Ss(o,a,"xOrigin",l,g),Ss(o,a,"yOrigin",u,y),Ss(o,a,"xOffset",h,a.xOffset),Ss(o,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",g+" "+y)},Ki=function(t,e){var s=t._gsap||new Xh(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=Qe(t,fe)||"0",u,h,d,p,_,f,m,v,w,b,g,y,T,k,x,C,O,D,M,V,B,G,Y,j,z,X,Z,et,R,F,S,P;return u=h=d=f=m=v=w=b=g=0,p=_=1,s.svg=!!(t.getCTM&&ud(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"),k=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"),Aa(t,j||l,!!j||s.originIsAbsolute,s.smooth!==!1,k)),y=s.xOrigin||0,T=s.yOrigin||0,k!==Qi&&(D=k[0],M=k[1],V=k[2],B=k[3],u=G=k[4],h=Y=k[5],k.length===6?(p=Math.sqrt(D*D+M*M),_=Math.sqrt(B*B+V*V),f=D||M?bn(M,D)*Gs:0,w=V||B?bn(V,B)*Gs+f:0,w&&(_*=Math.abs(Math.cos(w*Fn))),s.svg&&(u-=y-(y*D+T*V),h-=T-(y*M+T*B))):(P=k[6],F=k[7],Z=k[8],et=k[9],R=k[10],S=k[11],u=k[12],h=k[13],d=k[14],x=bn(P,R),m=x*Gs,x&&(C=Math.cos(-x),O=Math.sin(-x),j=G*C+Z*O,z=Y*C+et*O,X=P*C+R*O,Z=G*-O+Z*C,et=Y*-O+et*C,R=P*-O+R*C,S=F*-O+S*C,G=j,Y=z,P=X),x=bn(-V,R),v=x*Gs,x&&(C=Math.cos(-x),O=Math.sin(-x),j=D*C-Z*O,z=M*C-et*O,X=V*C-R*O,S=B*O+S*C,D=j,M=z,V=X),x=bn(M,D),f=x*Gs,x&&(C=Math.cos(x),O=Math.sin(x),j=D*C+M*O,z=G*C+Y*O,M=M*C-D*O,Y=Y*C-G*O,D=j,G=z),m&&Math.abs(m)+Math.abs(f)>359.9&&(m=f=0,v=180-v),p=jt(Math.sqrt(D*D+M*M+V*V)),_=jt(Math.sqrt(Y*Y+P*P)),x=bn(G,Y),w=Math.abs(x)>2e-4?x*Gs:0,g=S?1/(S<0?-S:S):0),s.svg&&(j=t.getAttribute("transform"),s.forceCSS=t.setAttribute("transform","")||!dd(Qe(t,Rt)),j&&t.setAttribute("transform",j))),Math.abs(w)>90&&Math.abs(w)<270&&(r?(p*=-1,w+=f<=0?180:-180,f+=f<=0?180:-180):(_*=-1,w+=w<=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=jt(p),s.scaleY=jt(_),s.rotation=jt(f)+a,s.rotationX=jt(m)+a,s.rotationY=jt(v)+a,s.skewX=w+a,s.skewY=b+a,s.transformPerspective=g+o,(s.zOrigin=parseFloat(l.split(" ")[2])||!e&&s.zOrigin||0)&&(n[fe]=lo(l)),s.xOffset=s.yOffset=0,s.force3D=ke.force3D,s.renderTransform=s.svg?Vv:cd?fd:Lv,s.uncache=0,s},lo=function(t){return(t=t.split(" "))[0]+" "+t[1]},Jo=function(t,e,s){var n=Kt(e);return jt(parseFloat(e)+parseFloat(Ls(t,"x",s+"px",n)))+n},Lv=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,fd(t,e)},Hs="0deg",gi="0px",Ys=") ",fd=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,w=s.target,b=s.zOrigin,g="",y=v==="auto"&&t&&t!==1||v===!0;if(b&&(h!==Hs||u!==Hs)){var T=parseFloat(u)*Fn,k=Math.sin(T),x=Math.cos(T),C;T=parseFloat(h)*Fn,C=Math.cos(T),o=Jo(w,o,k*C*-b),a=Jo(w,a,-Math.sin(T)*-b),c=Jo(w,c,x*C*-b+b)}m!==gi&&(g+="perspective("+m+Ys),(n||r)&&(g+="translate("+n+"%, "+r+"%) "),(y||o!==gi||a!==gi||c!==gi)&&(g+=c!==gi||y?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Ys),l!==Hs&&(g+="rotate("+l+Ys),u!==Hs&&(g+="rotateY("+u+Ys),h!==Hs&&(g+="rotateX("+h+Ys),(d!==Hs||p!==Hs)&&(g+="skew("+d+", "+p+Ys),(_!==1||f!==1)&&(g+="scale("+_+", "+f+Ys),w.style[Rt]=g||"translate(0, 0)"},Vv=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,w=s.forceCSS,b=parseFloat(o),g=parseFloat(a),y,T,k,x,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,T=Math.sin(c)*h,k=Math.sin(c-l)*-d,x=Math.cos(c-l)*d,l&&(u*=Fn,C=Math.tan(l-u),C=Math.sqrt(1+C*C),k*=C,x*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),y*=C,T*=C)),y=jt(y),T=jt(T),k=jt(k),x=jt(x)):(y=h,x=d,T=k=0),(b&&!~(o+"").indexOf("px")||g&&!~(a+"").indexOf("px"))&&(b=Ls(p,"x",o,"px"),g=Ls(p,"y",a,"px")),(_||f||m||v)&&(b=jt(b+_-(_*y+f*k)+m),g=jt(g+f-(_*T+f*x)+v)),(n||r)&&(C=p.getBBox(),b=jt(b+n/100*C.width),g=jt(g+r/100*C.height)),C="matrix("+y+","+T+","+k+","+x+","+b+","+g+")",p.setAttribute("transform",C),w&&(p.style[Rt]=C)},Uv=function(t,e,s,n,r){var o=360,a=Zt(r),c=parseFloat(r)*(a&&~r.indexOf("rad")?Gs: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*Ll)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*Ll)%o-~~(l/o)*o)),t._pt=d=new de(t._pt,e,s,n,l,Tv),d.e=u,d.u="deg",t._props.push(s),d},ql=function(t,e){for(var s in e)t[s]=e[s];return t},zv=function(t,e,s){var n=ql({},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),hn(s,Rt),s.setAttribute("transform",l)):(l=getComputedStyle(s)[Rt],o[Rt]=e,a=Ki(s,1),o[Rt]=l);for(c in ms)l=n[c],u=a[c],l!==u&&r.indexOf(c)<0&&(p=Kt(l),_=Kt(u),h=p!==_?Ls(s,c,l,_):parseFloat(l),d=parseFloat(u),t._pt=new de(t._pt,a,c,h,d-h,Sa),t._pt.u=_||0,t._props.push(c));ql(a,n)};he("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 ls(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 pd={name:"css",register:Oa,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,w,b,g,y,T,k,x;Sc||Oa(),this.styles=this.styles||ad(t),x=this.styles.props,this.tween=s;for(f in e)if(f!=="autoRound"&&(u=e[f],!(ge[f]&&Zh(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)&&(k=1);else if(f.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(f)+"").trim(),u+="",Ms.lastIndex=0,Ms.test(l)||(m=Kt(l),v=Kt(u)),v?m!==v&&(l=Ls(t,f,l,v)+v):m&&(u+=m),this.add(a,"setProperty",l,u,n,r,0,0,f),o.push(f),x.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+=ke.units[f]||Kt(ls(t,f))||""),(l+"").charAt(1)==="="&&(l=ls(t,f))):l=ls(t,f),d=parseFloat(l),w=p==="string"&&u.charAt(1)==="="&&u.substr(0,2),w&&(u=u.substr(2)),h=parseFloat(u),f in Xe&&(f==="autoAlpha"&&(d===1&&ls(t,"visibility")==="hidden"&&h&&(d=0),x.push("visibility",0,a.visibility),Ss(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=Xe[f],~f.indexOf(",")&&(f=f.split(",")[0]))),b=f in ms,b){if(this.styles.save(f),g||(y=t._gsap,y.renderTransform&&!e.parseTransform||Ki(t,e.parseTransform),T=e.smoothOrigin!==!1&&y.smooth,g=this._pt=new de(this._pt,a,Rt,0,1,y.renderTransform,y,0,-1),g.dep=1),f==="scale")this._pt=new de(this._pt,y,"scaleY",y.scaleY,(w?Nn(y.scaleY,w+h):h)-y.scaleY||0,Sa),this._pt.u=0,o.push("scaleY",f),f+="X";else if(f==="transformOrigin"){x.push(fe,0,a[fe]),u=Rv(u),y.svg?Aa(t,u,0,T,0,this):(v=parseFloat(u.split(" ")[2])||0,v!==y.zOrigin&&Ss(this,y,"zOrigin",y.zOrigin,v),Ss(this,a,f,lo(l),lo(u)));continue}else if(f==="svgOrigin"){Aa(t,u,1,T,0,this);continue}else if(f in hd){Uv(this,y,f,d,w?Nn(d,w+u):u);continue}else if(f==="smoothOrigin"){Ss(this,y,"smooth",y.smooth,u);continue}else if(f==="force3D"){y[f]=u;continue}else if(f==="transform"){zv(this,u,t);continue}}else f in a||(f=$n(f)||f);if(b||(h||h===0)&&(d||d===0)&&!kv.test(u)&&f in a)m=(l+"").substr((d+"").length),h||(h=0),v=Kt(u)||(f in ke.units?ke.units[f]:m),m!==v&&(d=Ls(t,f,l,v)),this._pt=new de(this._pt,b?y:a,f,d,(w?Nn(d,w+h):h)-d,!b&&(v==="px"||f==="zIndex")&&e.autoRound!==!1?bv:Sa),this._pt.u=v||0,m!==v&&v!=="%"&&(this._pt.b=l,this._pt.r=wv);else if(f in a)Nv.call(this,t,f,l,w?w+u:u);else if(f in t)this.add(t,f,l||t[f],w?w+u:u,n,r);else if(f!=="parseTransform"){gc(f,u);continue}b||(f in a?x.push(f,0,a[f]):x.push(f,1,l||t[f])),o.push(f)}}k&&sd(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:ls,aliases:Xe,getSetter:function(t,e,s){var n=Xe[e];return n&&n.indexOf(",")<0&&(e=n),e in ms&&e!==fe&&(t._gsap.x||ls(t,"x"))?s&&Fl===s?e==="scale"?Ov:Ev:(Fl=s||{})&&(e==="scale"?Av:Mv):t.style&&!pc(t.style[e])?Cv:~e.indexOf("-")?Sv:bc(t,e)},core:{_removeProperty:hn,_getMatrix:Ac}};_e.utils.checkPrefix=$n;_e.core.getStyleSaver=ad;(function(i,t,e,s){var n=he(i+","+t+","+e,function(r){ms[r]=1});he(t,function(r){ke.units[r]="deg",hd[r]=1}),Xe[n[13]]=i+","+t,he(s,function(r){var o=r.split(":");Xe[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");he("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){ke.units[i]="px"});_e.registerPlugin(pd);var Mc=_e.registerPlugin(pd)||_e;Mc.core.Tween;const md=({isSelected:i,position:t,label:e})=>{const s=I.useRef(null);return I.useEffect(()=>{if(s.current){const n=s.current;Mc.fromTo(n.material,{linewidth:El*15},{linewidth:El,duration:1})}},[i,s]),L.jsxs("group",{children:[L.jsx(Vd,{ref:s,isLine2:!0,name:"line",opacity:.5,points:[new it(t.sx,t.sy,t.sz),new it(t.tx,t.ty,t.tz)]}),L.jsx(Ra,{children:L.jsx(Ql,{anchorX:"center",anchorY:"middle",color:"white",fontSize:10,children:e})})]})};md.displayName="LineComponent";const jv=I.memo(md),_d=I.memo(({linksPosition:i})=>{const t=Vs(n=>n.dataInitial),{showSelectionGraph:e}=pe(n=>n),s=gs();return L.jsx("group",{name:"simulation-3d-group__connections",visible:!e||!0,children:t==null?void 0:t.links.map(n=>{const r=(s==null?void 0:s.ref_id)===n.source||(s==null?void 0:s.ref_id)===n.target,o=i.get(n.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return L.jsx(jv,{isSelected:r,label:n.edge_type,position:o},n.ref_id)})})});_d.displayName="Connections";const Bv=({color:i,scale:t})=>L.jsx(Ra,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,children:L.jsx(ru,{color:i,scale:t})}),qv=["#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"],Wv=()=>{const i=gs(),t=Vs(r=>r.dataInitial),{normalizedSchemasByType:e}=Ma(r=>r),s=$l(),n=I.useMemo(()=>new Ef(30,2,16,100),[]);return L.jsx(L.Fragment,{children:L.jsxs(Xf,{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)??(qv[s.indexOf(r.node_type)]||Tt.white);return L.jsx(Bv,{color:a,scale:r.scale||1},r.ref_id)})]})})},Hv=I.memo(Wv),Yv=Ut(_s)` text-align: center; width: ${i=>i.type==="topic"?"auto":`${i.size}px`}; height: ${i=>i.type==="topic"?"auto":`${i.size}px`}; @@ -410,7 +410,7 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b a top: -7px; left: -14px; } -`,$v=Ut(_s)` +`,Gv=Ut(_s)` text-align: center; outline: 1px solid ${Tt.white}; outline-offset: 0px; @@ -510,7 +510,7 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b a font-weight: 500; border-radius: 6px; margin-right: 5px; -`;const Zv=new rt,Xv=({position:i,userData:t,color:e})=>{const s=P.useRef(null),{selectedNode:n,setSelectedNode:r,showSelectionGraph:o,hoveredNode:a,setHoveredNode:c}=pe(Pa(p=>p)),l=((t==null?void 0:t.node_type)||"")==="Topic"||!!t.name,u=((t==null?void 0:t.node_type)||"")==="Guest"||((t==null?void 0:t.node_type)||"")==="Person";Pe(()=>{if(o&&s.current){const p=Zv.set((t==null?void 0:t.x)||0,(t==null?void 0:t.y)||0,(t==null?void 0:t.z)||0);s.current.position.copy(p)}}),P.useEffect(()=>function(){s.current&&s.current.clear()},[s]);const h=P.useMemo(()=>(a==null?void 0:a.ref_id)===(t==null?void 0:t.ref_id),[a==null?void 0:a.ref_id,t==null?void 0:t.ref_id]),d=(n==null?void 0:n.ref_id)===(t==null?void 0:t.ref_id);return l||d&&o||!d?L.jsx("group",{ref:s,position:i,children:L.jsx(er,{center:!0,sprite:!0,zIndexRange:[0,0],children:l?L.jsxs($v,{direction:"column",onClick:p=>{p.stopPropagation(),t&&r(t)},onPointerOut:p=>{p.stopPropagation()},onPointerOver:p=>{p.stopPropagation()},children:[L.jsx("div",{className:"badge-wrapper",children:L.jsx(Ic,{type:(t==null?void 0:t.node_type)||""})}),t!=null&&t.name?L.jsx("span",{children:Ql(t==null?void 0:t.name,20)}):null]}):L.jsxs(Gv,{className:Zl(t==null?void 0:t.node_type,{selected:d}),color:e,fontColor:Tt.white,fontSize:l?64:20,onClick:p=>{p.stopPropagation(),t&&r(t)},onPointerOut:p=>{p.stopPropagation()},onPointerOver:p=>{p.stopPropagation()},scale:h?1.05:1,selected:!1,size:d?68:40,type:(t==null?void 0:t.node_type)||"",children:[!u&&!l?L.jsx("div",{className:"badge-wrapper",children:L.jsx(Ic,{type:(t==null?void 0:t.node_type)||""})}):null,t!=null&&t.name?t==null?void 0:t.name:L.jsx(Zd,{rounded:u,size:d?60:52,src:(t==null?void 0:t.image_url)||"audio_default.svg",type:t==null?void 0:t.node_type})]})})}):null},gd=P.memo(()=>{const{simulation:i,showSelectionGraph:t,selectedNode:e,selectionGraphData:s}=pe(Pa(o=>o)),n=Ia(),r=P.useMemo(()=>{const o=(i==null?void 0:i.nodes())||[];return(t?s.nodes:o).filter(u=>n.includes((u==null?void 0:u.ref_id)||"")||(e==null?void 0:e.ref_id)===(u==null?void 0:u.ref_id)).slice(0,v1).map(u=>{const h=Xl(u.node_type||"",!0),d=new rt((u==null?void 0:u.x)||0,(u==null?void 0:u.y)||0,(u==null?void 0:u.z)||0),p=o.filter(_=>_.ref_id&&x1(_,u)).map(_=>(_==null?void 0:_.ref_id)||"")||[];return L.jsx(Xv,{color:h,position:d,relativeIds:p,userData:u},`node-badge-${u.ref_id}`)})},[i,t,s.nodes,n,e==null?void 0:e.ref_id]);return L.jsx(P.Fragment,{children:r.length?r:null},"node-badges")});gd.displayName="RelevanceBadges";const Qv=({link:i,animated:t})=>{const e=P.useRef(null),s=gs(),[n,r]=P.useState(new rt(0,0,0)),[o,a]=P.useState(new rt(0,0,0)),[c,l]=P.useState(8947848),u=pe(h=>h.selectionGraphData);return P.useEffect(()=>{var p,_,f,m,v,b;const h=(s==null?void 0:s.ref_id)||"",d=s&&(h===i.target||h===i.source);!i.onlyVisibleOnSelect||d?(r(new rt(((p=i.sourcePosition)==null?void 0:p.x)||0,((_=i.sourcePosition)==null?void 0:_.y)||0,((f=i.sourcePosition)==null?void 0:f.z)||0)),a(new rt(((m=i.targetPosition)==null?void 0:m.x)||0,((v=i.targetPosition)==null?void 0:v.y)||0,((b=i.targetPosition)==null?void 0:b.z)||0))):(r(new rt(0,0,0)),a(new rt(0,0,0))),l(d?i.color||Ed.children.segmentColor:s?5592405:8947848)},[s,i]),Pe(()=>{if(t&&e.current){const h=u.nodes.find(p=>p.ref_id===i.source),d=u.nodes.find(p=>p.ref_id===i.target);e.current.start.set((h==null?void 0:h.x)||0,(h==null?void 0:h.y)||0,(h==null?void 0:h.z)||0),e.current.end.set((d==null?void 0:d.x)||0,(d==null?void 0:d.y)||0,(d==null?void 0:d.z)||0)}}),L.jsx(L.Fragment,{children:L.jsx(Jf,{ref:e,color:"0xFFFFFF",end:o,start:n})})},Kv=({links:i,simulation:t})=>{const e=P.useRef(null);return P.useEffect(()=>function(){e.current&&e.current.clear()},[e]),Pe(()=>{if(e.current){const s=t.nodes();e.current.children.forEach((r,o)=>{var u;const a=i[o],c=s.find(h=>a.source===h.ref_id),l=s.find(h=>a.target===h.ref_id);(u=r.position)==null||u.set((c.x+l.x)/2,(c.y+l.y)/2,(c.z+l.z)/2)})}}),i.length?L.jsx("group",{ref:e,children:i.map(s=>L.jsx("mesh",{children:L.jsx(er,{center:!0,sprite:!0,children:L.jsxs(Jv,{direction:"row",justify:"center",onClick:n=>{n.stopPropagation()},onPointerOut:n=>{n.stopPropagation()},onPointerOver:n=>{n.stopPropagation()},children:[L.jsx("span",{children:s.edge_type}),L.jsx(_s,{className:"icon",children:L.jsx(Xd,{})})]})})},s.ref_id))}):null},Jv=Ut(_s)` +`;const $v=new it,Xv=({position:i,userData:t,color:e})=>{const s=I.useRef(null),{selectedNode:n,setSelectedNode:r,showSelectionGraph:o,hoveredNode:a,setHoveredNode:c}=pe(Pa(p=>p)),l=((t==null?void 0:t.node_type)||"")==="Topic"||!!t.name,u=((t==null?void 0:t.node_type)||"")==="Guest"||((t==null?void 0:t.node_type)||"")==="Person";Pe(()=>{if(o&&s.current){const p=$v.set((t==null?void 0:t.x)||0,(t==null?void 0:t.y)||0,(t==null?void 0:t.z)||0);s.current.position.copy(p)}}),I.useEffect(()=>function(){s.current&&s.current.clear()},[s]);const h=I.useMemo(()=>(a==null?void 0:a.ref_id)===(t==null?void 0:t.ref_id),[a==null?void 0:a.ref_id,t==null?void 0:t.ref_id]),d=(n==null?void 0:n.ref_id)===(t==null?void 0:t.ref_id);return l||d&&o||!d?L.jsx("group",{ref:s,position:i,children:L.jsx(tr,{center:!0,sprite:!0,zIndexRange:[0,0],children:l?L.jsxs(Gv,{direction:"column",onClick:p=>{p.stopPropagation(),t&&r(t)},onPointerOut:p=>{p.stopPropagation()},onPointerOver:p=>{p.stopPropagation()},children:[L.jsx("div",{className:"badge-wrapper",children:L.jsx(Nc,{type:(t==null?void 0:t.node_type)||""})}),t!=null&&t.name?L.jsx("span",{children:Jl(t==null?void 0:t.name,20)}):null]}):L.jsxs(Yv,{className:Xl(t==null?void 0:t.node_type,{selected:d}),color:e,fontColor:Tt.white,fontSize:l?64:20,onClick:p=>{p.stopPropagation(),t&&r(t)},onPointerOut:p=>{p.stopPropagation()},onPointerOver:p=>{p.stopPropagation()},scale:h?1.05:1,selected:!1,size:d?68:40,type:(t==null?void 0:t.node_type)||"",children:[!u&&!l?L.jsx("div",{className:"badge-wrapper",children:L.jsx(Nc,{type:(t==null?void 0:t.node_type)||""})}):null,t!=null&&t.name?t==null?void 0:t.name:L.jsx(Gd,{rounded:u,size:d?60:52,src:(t==null?void 0:t.image_url)||"audio_default.svg",type:t==null?void 0:t.node_type})]})})}):null},gd=I.memo(()=>{const{simulation:i,showSelectionGraph:t,selectedNode:e,selectionGraphData:s}=pe(Pa(o=>o)),n=Ia(),r=I.useMemo(()=>{const o=(i==null?void 0:i.nodes())||[];return(t?s.nodes:o).filter(u=>n.includes((u==null?void 0:u.ref_id)||"")||(e==null?void 0:e.ref_id)===(u==null?void 0:u.ref_id)).slice(0,y1).map(u=>{const h=Kl(u.node_type||"",!0),d=new it((u==null?void 0:u.x)||0,(u==null?void 0:u.y)||0,(u==null?void 0:u.z)||0),p=o.filter(_=>_.ref_id&&v1(_,u)).map(_=>(_==null?void 0:_.ref_id)||"")||[];return L.jsx(Xv,{color:h,position:d,relativeIds:p,userData:u},`node-badge-${u.ref_id}`)})},[i,t,s.nodes,n,e==null?void 0:e.ref_id]);return L.jsx(I.Fragment,{children:r.length?r:null},"node-badges")});gd.displayName="RelevanceBadges";const Zv=({link:i,animated:t})=>{const e=I.useRef(null),s=gs(),[n,r]=I.useState(new it(0,0,0)),[o,a]=I.useState(new it(0,0,0)),[c,l]=I.useState(8947848),u=pe(h=>h.selectionGraphData);return I.useEffect(()=>{var p,_,f,m,v,w;const h=(s==null?void 0:s.ref_id)||"",d=s&&(h===i.target||h===i.source);!i.onlyVisibleOnSelect||d?(r(new it(((p=i.sourcePosition)==null?void 0:p.x)||0,((_=i.sourcePosition)==null?void 0:_.y)||0,((f=i.sourcePosition)==null?void 0:f.z)||0)),a(new it(((m=i.targetPosition)==null?void 0:m.x)||0,((v=i.targetPosition)==null?void 0:v.y)||0,((w=i.targetPosition)==null?void 0:w.z)||0))):(r(new it(0,0,0)),a(new it(0,0,0))),l(d?i.color||Ed.children.segmentColor:s?5592405:8947848)},[s,i]),Pe(()=>{if(t&&e.current){const h=u.nodes.find(p=>p.ref_id===i.source),d=u.nodes.find(p=>p.ref_id===i.target);e.current.start.set((h==null?void 0:h.x)||0,(h==null?void 0:h.y)||0,(h==null?void 0:h.z)||0),e.current.end.set((d==null?void 0:d.x)||0,(d==null?void 0:d.y)||0,(d==null?void 0:d.z)||0)}}),L.jsx(L.Fragment,{children:L.jsx(Kf,{ref:e,color:"0xFFFFFF",end:o,start:n})})},Qv=({links:i,simulation:t})=>{const e=I.useRef(null);return I.useEffect(()=>function(){e.current&&e.current.clear()},[e]),Pe(()=>{if(e.current){const s=t.nodes();e.current.children.forEach((r,o)=>{var u;const a=i[o],c=s.find(h=>a.source===h.ref_id),l=s.find(h=>a.target===h.ref_id);(u=r.position)==null||u.set((c.x+l.x)/2,(c.y+l.y)/2,(c.z+l.z)/2)})}}),i.length?L.jsx("group",{ref:e,children:i.map(s=>L.jsx("mesh",{children:L.jsx(tr,{center:!0,sprite:!0,children:L.jsxs(Kv,{direction:"row",justify:"center",onClick:n=>{n.stopPropagation()},onPointerOut:n=>{n.stopPropagation()},onPointerOver:n=>{n.stopPropagation()},children:[L.jsx("span",{children:s.edge_type}),L.jsx(_s,{className:"icon",children:L.jsx($d,{})})]})})},s.ref_id))}):null},Kv=Ut(_s)` text-align: center; outline-offset: 0px; @@ -561,9 +561,9 @@ import{r as P,y as Se,j as L,c as Hl,s as Ut,a as Tt,F as _s,B as Yl,u as Vs,b a top: -7px; left: -14px; } -`,tx=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:"")},yd={metalness:.9,roughness:0},vd=new po,xd=vd.load("noimage.jpeg");new Ra({...yd,map:xd});const ex=.4;new Ra({...yd,map:xd,transparent:!0,opacity:ex});const ql={},sx=i=>{const[t,e]=P.useState(null);return P.useEffect(()=>{if(!i){e(null);return}const s=i;if(ql[s]){e(ql[s].texture);return}vd.load(i,n=>{e(n)},void 0,()=>{e(null)})},[i]),P.useEffect(()=>function(){t&&t.dispose()},[t]),{texture:t}},nx=["#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 ix(i){const t=Ql(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} +`,Jv=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:"")},yd={metalness:.9,roughness:0},vd=new fo,xd=vd.load("noimage.jpeg");new po({...yd,map:xd});const tx=.4;new po({...yd,map:xd,transparent:!0,opacity:tx});const Ar={},ex=i=>{const[t,e]=I.useState(null);return I.useEffect(()=>{var n;if(!i){e(null);return}const s=i;if((n=Ar[s])!=null&&n.texture){e(Ar[s].texture);return}vd.load(i,r=>{Ar[s]={texture:r,material:new po({map:r})},e(r)},void 0,()=>{e(null)})},[i]),I.useEffect(()=>()=>{t&&(Object.values(Ar).some(n=>n.texture===t)||t.dispose())},[t]),{texture:t}},sx=["#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 nx(i){const t=Jl(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 Mc=P.memo(({node:i,hide:t,ignoreDistance:e})=>{var w,g,y,T;const s=P.useRef(null),n=P.useRef(null),r=P.useRef(null),o=P.useRef(new rt),{texture:a}=sx(((w=i.properties)==null?void 0:w.image_url)||""),{normalizedSchemasByType:c,getNodeKeysByType:l}=Ma(k=>k);Pe(({camera:k,clock:x})=>{const{selectedNode:C,hoveredNode:O,activeEdge:I}=pe.getState(),M=()=>{const B=o.current.setFromMatrixPosition(n.current.matrixWorld);n.current&&(n.current.visible=e?!0:B.distanceTo(k.position)<2500)};if(i.ref_id===(C==null?void 0:C.ref_id)||i.ref_id===(O==null?void 0:O.ref_id)||(I==null?void 0:I.target)===i.ref_id||(I==null?void 0:I.source)===i.ref_id){n.current&&(n.current.visible=!0);const B=3+.2*Math.sin(x.getElapsedTime()*2);r.current&&(r.current.visible=!0,r.current.scale.set(B,B,B));return}r.current&&(r.current.visible=!1),M()}),P.useEffect(()=>{n.current&&Ji.fromTo(n.current.scale,{x:1,y:1,z:1},{x:6,y:6,z:6,duration:1.5,yoyo:!0,repeat:1})},[n]);const u=$l(),h=(g=c[i.node_type])==null?void 0:g.primary_color,d=(y=c[i.node_type])==null?void 0:y.icon,p=h??(nx[u.indexOf(i.node_type)]||Tt.white),f=(d?Qd[d]:null)?d:"NodesIcon",m=l(i.node_type)||"",v=m&&(i!=null&&i.properties)?tx(String((i==null?void 0:i.properties[m])||"")):"",b={u_texture:{value:a},u_radius:{value:.5}};return L.jsx(eu,{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.jsxs("mesh",{ref:r,position:[0,0,-2],visible:!1,children:[L.jsx("circleGeometry",{args:[30,32]}),L.jsx("meshBasicMaterial",{color:p,opacity:.5,transparent:!0})]}),(T=i.properties)!=null&&T.image_url&&["Person","Episode"].includes(i.node_type)&&a?L.jsx(zd,{args:[10*2,10*2],scale:2,children:L.jsx("shaderMaterial",{fragmentShader:` +${a}`}const Dc=I.memo(({node:i,hide:t,ignoreDistance:e})=>{var b,g,y,T;const s=I.useRef(null),n=I.useRef(null),r=I.useRef(null),o=I.useRef(new it),{texture:a}=ex(((b=i.properties)==null?void 0:b.image_url)||""),{normalizedSchemasByType:c,getNodeKeysByType:l}=Ma(k=>k);Pe(({camera:k,clock:x})=>{const{selectedNode:C,hoveredNode:O,activeEdge:D}=pe.getState(),M=()=>{const B=o.current.setFromMatrixPosition(n.current.matrixWorld);n.current&&(n.current.visible=e?!0:B.distanceTo(k.position)<2500)};if(i.ref_id===(C==null?void 0:C.ref_id)||i.ref_id===(O==null?void 0:O.ref_id)||(D==null?void 0:D.target)===i.ref_id||(D==null?void 0:D.source)===i.ref_id){n.current&&(n.current.visible=!0);const B=3+.2*Math.sin(x.getElapsedTime()*2);r.current&&(r.current.visible=!0,r.current.scale.set(B,B,B));return}r.current&&(r.current.visible=!1),M()}),I.useEffect(()=>{n.current&&Mc.fromTo(n.current.scale,{x:1,y:1,z:1},{x:6,y:6,z:6,duration:1.5,yoyo:!0,repeat:1})},[n]);const u=$l(),h=(g=c[i.node_type])==null?void 0:g.primary_color,d=(y=c[i.node_type])==null?void 0:y.icon,p=h??(sx[u.indexOf(i.node_type)]||Tt.white),f=(d?Xd[d]:null)?d:"NodesIcon",m=l(i.node_type)||"",v=m&&(i!=null&&i.properties)?Jv(String((i==null?void 0:i.properties[m])||"")):"",w={u_texture:{value:a},u_radius:{value:.5}};return L.jsx(Ra,{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.jsxs("mesh",{ref:r,position:[0,0,-2],visible:!1,children:[L.jsx("circleGeometry",{args:[30,32]}),L.jsx("meshBasicMaterial",{color:p,opacity:.5,transparent:!0})]}),(T=i.properties)!=null&&T.image_url&&["Person","Episode","Guest","Host","Show"].includes(i.node_type)&&a?L.jsx(Ud,{args:[10*2,10*2],scale:2,children:L.jsx("shaderMaterial",{fragmentShader:` uniform sampler2D u_texture; uniform float u_radius; varying vec2 vUv; @@ -577,13 +577,13 @@ ${a}`}const Mc=P.memo(({node:i,hide:t,ignoreDistance:e})=>{var w,g,y,T;const s=P discard; // Discard pixels outside the circle } } - `,uniforms:b,vertexShader:` + `,uniforms:w,vertexShader:` varying vec2 vUv; void main() { vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); } - `})}):L.jsx(Bf,{ref:s,name:"svg",onUpdate:k=>{k.traverse(x=>{x instanceof tu&&(x.material=new Af({color:p}))})},position:[-15,15,0],scale:2,src:`svg-icons/${f}.svg`,strokeMaterial:{color:"yellow"},userData:i}),v&&L.jsx(jd,{color:p,fillOpacity:1,name:"text",position:[0,-65,0],scale:20,userData:i,...Bd,children:ix(v)})]})})});Mc.displayName="TextNode";const kd=P.memo(()=>{const[i,t]=P.useState(null),{dataInitial:e}=Vs(l=>l),s=gs(),n=P.useRef(null),r=Ia(),o=qd(e==null?void 0:e.nodes.length),{selectionGraphData:a,setSelectionData:c}=pe(Pa(l=>l));return P.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]),P.useEffect(()=>{if(i||!a.nodes.length)return;const l=structuredClone(a.links),u=Kd([]).numDimensions(2).stop().nodes(a.nodes).force("link",Jd().links(l).id(h=>h.ref_id)).force("collide",tf().radius(()=>150).strength(1).iterations(1)).alpha(1).restart();t(u)},[a,i]),P.useEffect(()=>()=>{c({nodes:[],links:[]})},[c]),P.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]),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.jsx(Mc,{hide:!0,ignoreDistance:!0,node:l},l.ref_id||l.id)},l.ref_id))}),L.jsx(Qf,{fog:!0,lineWidth:.9,children:(a==null?void 0:a.links).map((l,u)=>L.jsx(Qv,{animated:!0,link:l},u.toString()))},`selection-links-${a==null?void 0:a.links.length}`),i&&L.jsx(Kv,{links:a.links,simulation:i})]})});kd.displayName="SelectionDataNodes";const rx=200,Td=P.memo(()=>{const i=gs(),t=Kl(),e=Ia(),{selectionGraphData:s,showSelectionGraph:n,setHoveredNode:r,setIsHovering:o}=pe(f=>f),a=Vs(f=>f.dataInitial),c=tr(f=>f.setTranscriptOpen),l=P.useCallback(f=>!!(n&&!s.nodes.find(m=>m.ref_id===f.ref_id)),[n,s]),u=P.useCallback(f=>{const m=f==null?void 0:f[0];m&&(c(!1),m.userData&&(l(m.userData)||pe.getState().setSelectedNode((m==null?void 0:m.userData)||null)))},[c,l]),h=P.useRef(null),d=P.useCallback(f=>{f.stopPropagation(),h.current&&(clearTimeout(h.current),h.current=null),t&&(o(!1),r(null))},[o,r,t]),p=P.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)},rx))}},[r,l,o]),_=n&&!!i;return L.jsxs(jf,{filter:f=>f.filter(m=>{var v;return!!((v=m.userData)!=null&&v.ref_id)}),onChange:u,onPointerOut:d,onPointerOver:p,children:[L.jsx(gd,{}),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.scale||1,userData:f,children:[L.jsx("boxGeometry",{args:[40,40,40]}),L.jsx("meshStandardMaterial",{opacity:0,transparent:!0}),L.jsx(Mc,{hide:_||m,ignoreDistance:!1,node:f},f.ref_id||f.id)]},f.ref_id)})}),L.jsx("group",{name:"simulation-3d-group__node-points",children:L.jsx(Yv,{})}),_&&L.jsx(kd,{})]})});Td.displayName="Cubes";const ox={earthRef:null},ax=Hl(i=>({...ox,setEarthRef:t=>i({earthRef:t})})),cx=new rt(0,0,0),lx=()=>{const i=P.useRef(null),t=P.useRef(null),{graphStyle:e,showSelectionGraph:s}=pe(a=>a),n=ax(a=>a.setEarthRef),r=Qs("textures/earth/galaxy.png"),o=Qs("textures/earth/clouds.png");return Pe(({camera:a})=>{t.current&&t.current.position.copy(a.getWorldPosition(cx))}),P.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:[Er,200,200]}),L.jsx(ux,{})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Er+2,200,200]}),L.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Er*4,200,200]}),L.jsx("meshStandardMaterial",{map:r,opacity:.4,side:sa,transparent:!0})]}),L.jsx("directionalLight",{ref:t,intensity:.9,position:[0,0,Er*3]})]})},ux=()=>{const i=Qs("textures/earth/earth.jpeg"),t=Qs("textures/earth/bump.jpeg"),e=Qs("textures/earth/water.png"),s=P.useMemo(()=>new Ra({map:i,bumpMap:t,aoMap:t,roughnessMap:t,metalnessMap:e,toneMapped:!0,roughness:35,metalness:0}),[i,t,e]);return L.jsx("meshStandardMaterial",{...s})},hx="C",dx=256,fx=256,px={g:"LottieFiles AE 0.1.20"},mx=[{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}],_x="5.5.7",gx=60,yx=104,vx=0,xx=[{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}]}],kx={nm:hx,h:dx,w:fx,meta:px,layers:mx,v:_x,fr:gx,op:yx,ip:vx,assets:xx},Tx=({meshId:i})=>{const t=P.useRef(null);return P.useEffect(()=>{const e=document.getElementById(`lottie-animation-${i}`);return e&&(t.current=Od.loadAnimation({container:e,animationData:kx,loop:!0,autoplay:!0})),()=>{t.current&&t.current.destroy()}},[i]),L.jsx("div",{id:`lottie-animation-${i}`,style:{width:"2em",height:"2em"}})},ta=()=>Math.floor(Math.random()*2001)-1e3,wx=()=>L.jsx(L.Fragment,{children:["a","b","c"].map(i=>{const t=ta(),e=ta(),s=ta();return L.jsx("mesh",{position:[t,e,s],children:L.jsx(er,{center:!0,sprite:!0,children:L.jsx(bx,{children:L.jsx(Tx,{meshId:i})})})},i)})}),bx=Ut.div` + `})}):L.jsx(jf,{ref:s,name:"svg",onUpdate:k=>{k.traverse(x=>{x instanceof eu&&(x.material=new Of({color:p}))})},position:[-15,15,0],scale:2,src:`svg-icons/${f}.svg`,strokeMaterial:{color:"yellow"},userData:i}),v&&L.jsx(Ql,{color:p,fillOpacity:1,name:"text",position:[0,-65,0],scale:20,userData:i,...zd,children:nx(v)})]})})});Dc.displayName="TextNode";const kd=I.memo(()=>{const[i,t]=I.useState(null),{dataInitial:e}=Vs(l=>l),s=gs(),n=I.useRef(null),r=Ia(),o=jd(e==null?void 0:e.nodes.length),{selectionGraphData:a,setSelectionData:c}=pe(Pa(l=>l));return I.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]),I.useEffect(()=>{if(i||!a.nodes.length)return;const l=structuredClone(a.links),u=Zd([]).numDimensions(2).stop().nodes(a.nodes).force("link",Qd().links(l).id(h=>h.ref_id)).force("collide",Kd().radius(()=>150).strength(1).iterations(1)).alpha(1).restart();t(u)},[a,i]),I.useEffect(()=>()=>{c({nodes:[],links:[]})},[c]),I.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]),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.jsx(Dc,{hide:!0,ignoreDistance:!0,node:l},l.ref_id||l.id)},l.ref_id))}),L.jsx(Zf,{fog:!0,lineWidth:.9,children:(a==null?void 0:a.links).map((l,u)=>L.jsx(Zv,{animated:!0,link:l},u.toString()))},`selection-links-${a==null?void 0:a.links.length}`),i&&L.jsx(Qv,{links:a.links,simulation:i})]})});kd.displayName="SelectionDataNodes";const ix=200,Td=I.memo(()=>{const i=gs(),t=Jd(),e=Ia(),{selectionGraphData:s,showSelectionGraph:n,setHoveredNode:r,setIsHovering:o}=pe(f=>f),a=Vs(f=>f.dataInitial),c=Ji(f=>f.setTranscriptOpen),l=I.useCallback(f=>!!(n&&!s.nodes.find(m=>m.ref_id===f.ref_id)),[n,s]),u=I.useCallback(f=>{const m=f==null?void 0:f[0];m&&(c(!1),m.userData&&(l(m.userData)||pe.getState().setSelectedNode((m==null?void 0:m.userData)||null)))},[c,l]),h=I.useRef(null),d=I.useCallback(f=>{f.stopPropagation(),h.current&&(clearTimeout(h.current),h.current=null),t&&(o(!1),r(null))},[o,r,t]),p=I.useCallback(f=>{var w;const v=f.intersections.map(b=>b.object)[0];if(h.current&&(clearTimeout(h.current),h.current=null),(w=v==null?void 0:v.userData)!=null&&w.ref_id){const b=v.userData;l(b)||(f.stopPropagation(),h.current=setTimeout(()=>{o(!0),r(b)},ix))}},[r,l,o]),_=n&&!!i;return L.jsxs(zf,{filter:f=>f.filter(m=>{var v;return!!((v=m.userData)!=null&&v.ref_id)}),onChange:u,onPointerOut:d,onPointerOver:p,children:[L.jsx(gd,{}),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.scale||1,userData:f,children:[L.jsx("boxGeometry",{args:[40,40,40]}),L.jsx("meshStandardMaterial",{opacity:0,transparent:!0}),L.jsx(Dc,{hide:_||m,ignoreDistance:!1,node:f},f.ref_id||f.id)]},f.ref_id)})}),L.jsx("group",{name:"simulation-3d-group__node-points",children:L.jsx(Hv,{})}),_&&L.jsx(kd,{})]})});Td.displayName="Cubes";const rx={earthRef:null},ox=Hl(i=>({...rx,setEarthRef:t=>i({earthRef:t})})),ax=new it(0,0,0),cx=()=>{const i=I.useRef(null),t=I.useRef(null),{graphStyle:e,showSelectionGraph:s}=pe(a=>a),n=ox(a=>a.setEarthRef),r=Qs("textures/earth/galaxy.png"),o=Qs("textures/earth/clouds.png");return Pe(({camera:a})=>{t.current&&t.current.position.copy(a.getWorldPosition(ax))}),I.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(lx,{})]}),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:sa,transparent:!0})]}),L.jsx("directionalLight",{ref:t,intensity:.9,position:[0,0,Sr*3]})]})},lx=()=>{const i=Qs("textures/earth/earth.jpeg"),t=Qs("textures/earth/bump.jpeg"),e=Qs("textures/earth/water.png"),s=I.useMemo(()=>new po({map:i,bumpMap:t,aoMap:t,roughnessMap:t,metalnessMap:e,toneMapped:!0,roughness:35,metalness:0}),[i,t,e]);return L.jsx("meshStandardMaterial",{...s})},ux="C",hx=256,dx=256,fx={g:"LottieFiles AE 0.1.20"},px=[{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}],mx="5.5.7",_x=60,gx=104,yx=0,vx=[{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}]}],xx={nm:ux,h:hx,w:dx,meta:fx,layers:px,v:mx,fr:_x,op:gx,ip:yx,assets:vx},kx=({meshId:i})=>{const t=I.useRef(null);return I.useEffect(()=>{const e=document.getElementById(`lottie-animation-${i}`);return e&&(t.current=Od.loadAnimation({container:e,animationData:xx,loop:!0,autoplay:!0})),()=>{t.current&&t.current.destroy()}},[i]),L.jsx("div",{id:`lottie-animation-${i}`,style:{width:"2em",height:"2em"}})},ta=()=>Math.floor(Math.random()*2001)-1e3,Tx=()=>L.jsx(L.Fragment,{children:["a","b","c"].map(i=>{const t=ta(),e=ta(),s=ta();return L.jsx("mesh",{position:[t,e,s],children:L.jsx(tr,{center:!0,sprite:!0,children:L.jsx(wx,{children:L.jsx(kx,{meshId:i})})})},i)})}),wx=Ut.div` border: 2px solid white; border-radius: 50%; display: flex; @@ -591,7 +591,7 @@ ${a}`}const Mc=P.memo(({node:i,hide:t,ignoreDistance:e})=>{var w,g,y,T;const s=P justify-content: center; color: white; font-size: 20px; -`,yi=i=>({close:{backgroundColor:"rgba(48, 51, 66, 1)",borderColor:"#fff",fontColor:"rgba(255, 255, 255, 1)"},focus:{backgroundColor:i?"rgba(255, 255, 255, 0.90);":"rgba(255, 255, 255, 0.90)",borderColor:i?"#FFDB58bb":"#fff",fontColor:"rgba(48, 51, 66, 1)"},menu:{backgroundColor:"#00000066",borderColor:i?"#ffffff66":"#5078f2",fontColor:i?"#ffffff66":"#fff"}}),Cx=new rt,wd=P.memo(()=>{var x,C;const i=P.useRef(null),t=tr(O=>O.setSidebarOpen),[e,s]=Ad.useState(null),{open:n}=pr("editNodeName"),{open:r}=pr("addEdgeToNode"),{open:o}=pr("mergeToNode"),{open:a}=pr("createBounty"),[c]=Gl(O=>[O.isAdmin]),[l]=Vs(O=>[O.addNewNode]),u=gs(),{showSelectionGraph:h,selectionGraphData:d,setSelectedNode:p,setShowSelectionGraph:_}=pe(O=>O),f=Mf(),m=P.useCallback(async()=>{try{if(u!=null&&u.ref_id){const O=await Md(u==null?void 0:u.ref_id,d.nodes.length||0);O&&l(O)}}catch(O){console.error(O)}},[l,u==null?void 0:u.ref_id,d.nodes.length]);Pe(()=>{v()});const v=P.useCallback(()=>{const O=h?d:f;if(i.current){const I=O==null?void 0:O.nodes.find(M=>M.ref_id===(u==null?void 0:u.ref_id));if(I){const M=Cx.set(I==null?void 0:I.x,I==null?void 0:I.y,I==null?void 0:I.z);i.current.position.copy(M)}}},[u,h,d,f]),b=P.useMemo(()=>{const O=c?[{key:"control-key-1",colors:yi(h).focus,icon:L.jsx(of,{}),left:-80,className:"add",onClick:M=>{s(M.currentTarget)}},{key:"control-key-2",colors:yi(h).focus,icon:L.jsx(af,{}),left:-40,className:"edit",onClick:()=>{n()}}]:[],I=[{key:"control-key-4",colors:yi(h).focus,icon:L.jsx(Dd,{}),left:0,className:"expand",onClick:()=>{const M=!h;_(M),M&&t(!0)}},{key:"control-key-5",colors:yi(!0).close,icon:L.jsx(cf,{}),left:40,className:"exit",onClick:()=>{m()}},{key:"control-key-6",colors:yi(!0).close,icon:L.jsx(Pd,{}),left:40,className:"exit",onClick:()=>{_(!1),p(null)}}];return[...O,...I].map((M,V)=>({...M,left:-80+V*40}))},[c,h,n,_,t,m,p]);if(!u)return null;const w=()=>{s(null)},g=!!e,y=g?"simple-popover":void 0,T=((x=u==null?void 0:u.node_type)==null?void 0:x.toLowerCase())==="repository",k=!!(u&&((C=u==null?void 0:u.node_type)==null?void 0:C.toLowerCase())==="function");return L.jsx("group",{ref:i,children:L.jsxs(er,{center:!0,className:"control-panel",onClick:O=>O.stopPropagation(),onKeyDown:O=>O.stopPropagation(),onPointerDown:O=>O.stopPropagation(),onPointerOut:O=>O.stopPropagation(),onPointerOver:O=>O.stopPropagation(),onPointerUp:O=>O.stopPropagation(),sprite:!0,zIndexRange:[16777271,16777272],children:[b.map(O=>L.jsx(Sx,{backgroundColor:O.colors.backgroundColor,borderColor:O.colors.borderColor,className:O.className,fontColor:O.colors.fontColor,left:O.left,onClick:I=>{I.stopPropagation(),O.onClick(I)},children:O.icon},O.key)),k&&L.jsx(Ox,{left:2,onClick:()=>{a()},children:"Create Test"}),L.jsx(Ex,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:y,onClose:w,open:g,transformOrigin:{vertical:"top",horizontal:"right"},children:T?L.jsxs(L.Fragment,{children:[L.jsxs(Cn,{"data-testid":"generate_tests",onClick:()=>{w()},children:[L.jsx(Wl,{children:L.jsx(Nc,{"data-testid":"AddCircleIcon"})}),"Generate Tests"]}),L.jsxs(Cn,{"data-testid":"add_comments",onClick:()=>{w()},children:[L.jsxs(Wl,{children:[L.jsx(sf,{"data-testid":"DocumentIcon"})," "]}),"Add Comments"]}),L.jsxs(Cn,{"data-testid":"review_bugs",onClick:()=>{w()},children:[L.jsx(nf,{"data-testid":"ConstructionIcon"})," Review Bugs"]}),L.jsxs(Cn,{"data-testid":"find_vulnerabilities",onClick:()=>{w()},children:[L.jsx(rf,{"data-testid":"RobotIcon"})," Find Vulnerabilities"]})]}):L.jsxs(L.Fragment,{children:[L.jsxs(Cn,{"data-testid":"merge",onClick:()=>{o(),w()},children:[L.jsx(ef,{"data-testid":"MergeIcon"})," Merge"]}),L.jsxs(Cn,{"data-testid":"add_edge",onClick:()=>{r(),w()},children:[L.jsx(Nc,{"data-testid":"AddCircleIcon"}),"Add edge"]})]})})]})})});wd.displayName="NodeControls";const Sx=Ut.div` +`,yi=i=>({close:{backgroundColor:"rgba(48, 51, 66, 1)",borderColor:"#fff",fontColor:"rgba(255, 255, 255, 1)"},focus:{backgroundColor:i?"rgba(255, 255, 255, 0.90);":"rgba(255, 255, 255, 0.90)",borderColor:i?"#FFDB58bb":"#fff",fontColor:"rgba(48, 51, 66, 1)"},menu:{backgroundColor:"#00000066",borderColor:i?"#ffffff66":"#5078f2",fontColor:i?"#ffffff66":"#fff"}}),bx=new it,wd=I.memo(()=>{var x,C;const i=I.useRef(null),t=Ji(O=>O.setSidebarOpen),[e,s]=Ad.useState(null),{open:n}=fr("editNodeName"),{open:r}=fr("addEdgeToNode"),{open:o}=fr("mergeToNode"),{open:a}=fr("createBounty"),[c]=Gl(O=>[O.isAdmin]),[l]=Vs(O=>[O.addNewNode]),u=gs(),{showSelectionGraph:h,selectionGraphData:d,setSelectedNode:p,setShowSelectionGraph:_}=pe(O=>O),f=Af(),m=I.useCallback(async()=>{try{if(u!=null&&u.ref_id){const O=await Md(u==null?void 0:u.ref_id,d.nodes.length||0);O&&l(O)}}catch(O){console.error(O)}},[l,u==null?void 0:u.ref_id,d.nodes.length]);Pe(()=>{v()});const v=I.useCallback(()=>{const O=h?d:f;if(i.current){const D=O==null?void 0:O.nodes.find(M=>M.ref_id===(u==null?void 0:u.ref_id));if(D){const M=bx.set(D==null?void 0:D.x,D==null?void 0:D.y,D==null?void 0:D.z);i.current.position.copy(M)}}},[u,h,d,f]),w=I.useMemo(()=>{const O=c?[{key:"control-key-1",colors:yi(h).focus,icon:L.jsx(rf,{}),left:-80,className:"add",onClick:M=>{s(M.currentTarget)}},{key:"control-key-2",colors:yi(h).focus,icon:L.jsx(of,{}),left:-40,className:"edit",onClick:()=>{n()}}]:[],D=[{key:"control-key-4",colors:yi(h).focus,icon:L.jsx(Dd,{}),left:0,className:"expand",onClick:()=>{const M=!h;_(M),M&&t(!0)}},{key:"control-key-5",colors:yi(!0).close,icon:L.jsx(af,{}),left:40,className:"exit",onClick:()=>{m()}},{key:"control-key-6",colors:yi(!0).close,icon:L.jsx(Pd,{}),left:40,className:"exit",onClick:()=>{_(!1),p(null)}}];return[...O,...D].map((M,V)=>({...M,left:-80+V*40}))},[c,h,n,_,t,m,p]);if(!u)return null;const b=()=>{s(null)},g=!!e,y=g?"simple-popover":void 0,T=((x=u==null?void 0:u.node_type)==null?void 0:x.toLowerCase())==="repository",k=!!(u&&((C=u==null?void 0:u.node_type)==null?void 0:C.toLowerCase())==="function");return L.jsx("group",{ref:i,children:L.jsxs(tr,{center:!0,className:"control-panel",onClick:O=>O.stopPropagation(),onKeyDown:O=>O.stopPropagation(),onPointerDown:O=>O.stopPropagation(),onPointerOut:O=>O.stopPropagation(),onPointerOver:O=>O.stopPropagation(),onPointerUp:O=>O.stopPropagation(),sprite:!0,zIndexRange:[16777271,16777272],children:[w.map(O=>L.jsx(Cx,{backgroundColor:O.colors.backgroundColor,borderColor:O.colors.borderColor,className:O.className,fontColor:O.colors.fontColor,left:O.left,onClick:D=>{D.stopPropagation(),O.onClick(D)},children:O.icon},O.key)),k&&L.jsx(Ex,{left:2,onClick:()=>{a()},children:"Create Test"}),L.jsx(Sx,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:y,onClose:b,open:g,transformOrigin:{vertical:"top",horizontal:"right"},children:T?L.jsxs(L.Fragment,{children:[L.jsxs(Cn,{"data-testid":"generate_tests",onClick:()=>{b()},children:[L.jsx(Wl,{children:L.jsx(Rc,{"data-testid":"AddCircleIcon"})}),"Generate Tests"]}),L.jsxs(Cn,{"data-testid":"add_comments",onClick:()=>{b()},children:[L.jsxs(Wl,{children:[L.jsx(ef,{"data-testid":"DocumentIcon"})," "]}),"Add Comments"]}),L.jsxs(Cn,{"data-testid":"review_bugs",onClick:()=>{b()},children:[L.jsx(sf,{"data-testid":"ConstructionIcon"})," Review Bugs"]}),L.jsxs(Cn,{"data-testid":"find_vulnerabilities",onClick:()=>{b()},children:[L.jsx(nf,{"data-testid":"RobotIcon"})," Find Vulnerabilities"]})]}):L.jsxs(L.Fragment,{children:[L.jsxs(Cn,{"data-testid":"merge",onClick:()=>{o(),b()},children:[L.jsx(tf,{"data-testid":"MergeIcon"})," Merge"]}),L.jsxs(Cn,{"data-testid":"add_edge",onClick:()=>{r(),b()},children:[L.jsx(Rc,{"data-testid":"AddCircleIcon"}),"Add edge"]})]})})]})})});wd.displayName="NodeControls";const Cx=Ut.div` position: fixed; top: -60px; left: ${i=>-7+i.left}px; @@ -622,7 +622,7 @@ ${a}`}const Mc=P.memo(({node:i,hide:t,ignoreDistance:e})=>{var w,g,y,T;const s=P background: ${Tt.BUTTON1_HOVER}; color: ${Tt.GRAY3}; } -`,Ex=Ut(lf)` +`,Sx=Ut(cf)` && { z-index: 9999; } @@ -648,7 +648,7 @@ ${a}`}const Mc=P.memo(({node:i,hide:t,ignoreDistance:e})=>{var w,g,y,T;const s=P width: 12px; height: 12px; } -`,Ox=Ut.div` +`,Ex=Ut.div` position: fixed; top: 40px; left: ${i=>-53+i.left}px; @@ -667,7 +667,7 @@ ${a}`}const Mc=P.memo(({node:i,hide:t,ignoreDistance:e})=>{var w,g,y,T;const s=P &:hover { transform: scale(1.05); } -`,bd=P.memo(()=>L.jsx(L.Fragment,{children:L.jsx(wd,{})}));bd.displayName="NodeDetailsPanel";const Ax=()=>{const{dataInitial:i,isLoadingNew:t,isFetching:e,dataNew:s,resetDataNew:n}=Vs(f=>f),r=P.useRef(null),o=P.useRef(!1),{normalizedSchemasByType:a}=Ma(f=>f),c=P.useRef(new Map),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:p,setGraphRadius:_}=pe(f=>f);return P.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]),P.useEffect(()=>{u&&d.setForces()},[p,d,u]),P.useEffect(()=>{u&&(u.on("tick",()=>{if(!o.current&&u.alpha()<.1){const f=u.nodes().map(b=>new rt(b.x,b.y,b.z)),m=new Fc().setFromPoints(f),v=new Lc;m.getBoundingSphere(v),Math.min(5e3,v.radius)}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");if(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)}),u.alpha()>1)return;v&&(c.current.clear(),v.children.forEach((b,w)=>{var T;const g=i==null?void 0:i.links[w],y=b;if(g){const k=u.nodes().find(j=>j.ref_id===g.source),x=u.nodes().find(j=>j.ref_id===g.target),{x:C,y:O,z:I}=k,{x:M,y:V,z:B}=x;c.current.set(g.ref_id,{sx:C,sy:O,sz:I,tx:M,ty:V,tz:B});const G=((T=a[k.node_type])==null?void 0:T.primary_color)||"white";y.geometry.setPositions([C,O,I,M,V,B]);const{material:Y}=y;Y.color=new Na(G),Y.transparent=!0,Y.opacity=.3}}))}}),u.on("end",()=>{const f=u.nodes().map(w=>new rt(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,_,a]),u?L.jsxs("group",{ref:r,children:[L.jsx(Td,{}),p==="earth"&&L.jsx(lx,{}),(t||e)&&L.jsx(wx,{}),p!=="earth"&&L.jsx(_d,{linksPosition:c.current}),L.jsx(bd,{})]}):null},Mx=({fullSize:i=!0})=>{const t=tr(e=>e.sidebarIsOpen);return L.jsx(Dx,{align:"center",className:Zl({"sidebar-is-open":t&&!i}),justify:"center",children:L.jsx(Df,{color:Tt.SECONDARY_BLUE,size:64})})},Dx=Ut(_s)` +`,bd=I.memo(()=>L.jsx(L.Fragment,{children:L.jsx(wd,{})}));bd.displayName="NodeDetailsPanel";const Ox=()=>{const{dataInitial:i,isLoadingNew:t,isFetching:e,dataNew:s,resetDataNew:n}=Vs(f=>f),r=I.useRef(null),o=I.useRef(!1),{normalizedSchemasByType:a}=Ma(f=>f),c=I.useRef(new Map),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:p,setGraphRadius:_}=pe(f=>f);return I.useEffect(()=>{if(!s)return;const f=s.nodes||[],m=s.links||[],v=structuredClone(f),w=structuredClone(m);if(u){const b=Id.isEqual(s,i);d.addNodesAndLinks(v,w,b)}u||h(v,w),n()},[l,s,u,h,n,d,i]),I.useEffect(()=>{u&&d.setForces()},[p,d,u]),I.useEffect(()=>{u&&(u.on("tick",()=>{if(!o.current&&u.alpha()<.1){const f=u.nodes().map(w=>new it(w.x,w.y,w.z)),m=new Lc().setFromPoints(f),v=new Vc;m.getBoundingSphere(v),Math.min(5e3,v.radius)}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");if(f&&f.children.forEach((w,b)=>{const g=u.nodes()[b];g&&w.position.set(g.x,g.y,g.z)}),m&&m.children[0].children.forEach((w,b)=>{const g=u.nodes()[b];g&&w.position.set(g.x,g.y,g.z)}),u.alpha()>1)return;v&&(c.current.clear(),v.children.forEach((w,b)=>{var T;const g=w.children[0],y=w.children[1];if(g instanceof Zl){const k=g,x=i==null?void 0:i.links[b];if(x){const C=u.nodes().find(Z=>Z.ref_id===x.source),O=u.nodes().find(Z=>Z.ref_id===x.target);if(!C||!O){console.warn(`Missing source or target node for link: ${x==null?void 0:x.ref_id}`);return}const{x:D,y:M,z:V}=C,{x:B,y:G,z:Y}=O;c.current.set(x.ref_id,{sx:D,sy:M,sz:V,tx:B,ty:G,tz:Y});const j=new it((D+B)/2,(M+G)/2,(V+Y)/2);y.position.set(j.x,j.y,j.z);const z=((T=a[C.node_type])==null?void 0:T.primary_color)||"white";k.geometry.setPositions([D,M,V,B,G,Y]);const{material:X}=k;X.color=new Na(z),X.transparent=!0,X.opacity=.3}}}))}}),u.on("end",()=>{const f=u.nodes().map(b=>new it(b.x,b.y,b.z)),m=new Lc().setFromPoints(f),v=new Vc;m.getBoundingSphere(v);const w=v.radius;_(w*1.5),o.current=!1}))},[i,u,_,a]),u?L.jsxs("group",{ref:r,children:[L.jsx(Td,{}),p==="earth"&&L.jsx(cx,{}),(t||e)&&L.jsx(Tx,{}),p!=="earth"&&L.jsx(_d,{linksPosition:c.current}),L.jsx(bd,{})]}):null},Ax=({fullSize:i=!0})=>{const t=Ji(e=>e.sidebarIsOpen);return L.jsx(Mx,{align:"center",className:Xl({"sidebar-is-open":t&&!i}),justify:"center",children:L.jsx(Mf,{color:Tt.SECONDARY_BLUE,size:64})})},Mx=Ut(_s)` position: absolute; left: 0; right: 0; @@ -675,7 +675,7 @@ ${a}`}const Mc=P.memo(({node:i,hide:t,ignoreDistance:e})=>{var w,g,y,T;const s=P top: 0; background-color: ${Tt.black}; z-index: 1; -`,Px=()=>L.jsx(er,{children:L.jsx(Lf,{})}),Ix=()=>{const{universeColor:i}=hf("universe",{universeColor:Tt.black}),t=gs();return P.useMemo(()=>t!=null&&t.node_type?Xl(t.node_type):y1,[t]),L.jsxs(L.Fragment,{children:[L.jsx("color",{args:[i],attach:"background"}),L.jsx(Yd,{}),L.jsx(E1,{}),L.jsxs(i0,{children:[!1,L.jsx(Ax,{})]})]})};let ea=null;const Nx={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[Ti.x,Ti.y,Ti.z]},Rx=()=>{const[i,t,e]=[Es(a=>a.setIsUserScrollingOnHtmlPanel),Es(a=>a.setIsUserScrolling),Es(a=>a.setUserMovedCamera)],s=Vs(a=>a.isFetching),n=tr(a=>a.universeQuestionIsOpen),r=P.useCallback(a=>{var u;const{target:c}=a,{offsetParent:l}=c;ea&&clearTimeout(ea),(u=l==null?void 0:l.classList)!=null&&u.contains("html-panel")&&l.clientHeight{t(!1),i(!1)},200)},[t,i,e]),o=P.useCallback(a=>Nd(a,"threeState"),[]);return L.jsxs(Fx,{children:[L.jsx(P.Suspense,{fallback:null,children:L.jsxs(Wd,{camera:Nx,id:"universe-canvas",onCreated:o,onWheel:r,children:[Rd&&L.jsx(Hd,{position:"top-right",style:{top:"80px"}}),L.jsxs(P.Suspense,{fallback:L.jsx(Px,{}),children:[L.jsx(t0,{}),L.jsx(e0,{}),L.jsx(s0,{}),L.jsx(Ix,{})]})]})}),n&&L.jsx(o0,{}),s&&L.jsx(Mx,{fullSize:!1}),L.jsx(uf,{})]})},Fx=Ut(_s)` +`,Dx=()=>L.jsx(tr,{children:L.jsx(Ff,{})}),Px=()=>{const{universeColor:i}=uf("universe",{universeColor:Tt.black}),t=gs();return I.useMemo(()=>t!=null&&t.node_type?Kl(t.node_type):g1,[t]),L.jsxs(L.Fragment,{children:[L.jsx("color",{args:[i],attach:"background"}),L.jsx(Wd,{}),L.jsx(S1,{}),L.jsxs(n0,{children:[!1,L.jsx(Ox,{})]})]})};let ea=null;const Ix={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[Ti.x,Ti.y,Ti.z]},Nx=()=>{const[i,t,e]=[Es(a=>a.setIsUserScrollingOnHtmlPanel),Es(a=>a.setIsUserScrolling),Es(a=>a.setUserMovedCamera)],s=Vs(a=>a.isFetching),n=Ji(a=>a.universeQuestionIsOpen),r=I.useCallback(a=>{var u;const{target:c}=a,{offsetParent:l}=c;ea&&clearTimeout(ea),(u=l==null?void 0:l.classList)!=null&&u.contains("html-panel")&&l.clientHeight{t(!1),i(!1)},200)},[t,i,e]),o=I.useCallback(a=>Nd(a,"threeState"),[]);return L.jsxs(Rx,{children:[L.jsx(I.Suspense,{fallback:null,children:L.jsxs(Bd,{camera:Ix,id:"universe-canvas",onCreated:o,onWheel:r,children:[Rd&&L.jsx(qd,{position:"top-right",style:{top:"80px"}}),L.jsxs(I.Suspense,{fallback:L.jsx(Dx,{}),children:[L.jsx(Jf,{}),L.jsx(t0,{}),L.jsx(e0,{}),L.jsx(Px,{})]})]})}),n&&L.jsx(r0,{}),s&&L.jsx(Ax,{fullSize:!1}),L.jsx(lf,{})]})},Rx=Ut(_s)` flex: 1 1 100%; position: relative; -`,yk=P.memo(Rx);export{yk as Universe}; +`,gk=I.memo(Nx);export{gk as Universe}; diff --git a/build/assets/index-fd6ba406.js b/build/assets/index-fd6ba406.js deleted file mode 100644 index ece0ae647..000000000 --- a/build/assets/index-fd6ba406.js +++ /dev/null @@ -1,185 +0,0 @@ -import{s as a,a as r,F as i,j as e,E as B,T as S,r as b,B as v,t as I,k as $,b as C,aU as k,aV as A,N as y,w as z,aW as w,aX as M,aY as D,e as j,aZ as E}from"./index-f22e6e13.js";import{h as T,r as R,aB as L,aC as W,C as P,aD as V,aE as F}from"./index-8304ea06.js";import{C as G}from"./ClipLoader-1ce39797.js";import{T as U,a as N}from"./Tabs-a3278039.js";import"./createSvgIcon-9d40ff73.js";const Y={split:e.jsx(W,{}),force:e.jsx(P,{}),sphere:e.jsx(V,{}),earth:e.jsx(F,{})},O=()=>{const[n,c]=T(R(t=>[t.graphStyle,t.setGraphStyle])),l=t=>{c(t)};return e.jsx(_,{direction:"column",children:L.map(t=>e.jsx(i,{className:B("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}; - border-radius: 6px; - .icon { - color: ${r.GRAY6}; - font-size: 20px; - cursor: pointer; - padding: 12px 20px; - - &:hover { - color: ${r.GRAY3}; - } - - &:active { - color: ${r.white}; - } - - &.active { - color: ${r.white}; - background: ${r.primaryBlue}; - padding: 12px 20px; - border-radius: 6px; - } - } - - .icon + .icon { - margin-left: 20px; - } -`,H=({onClose:n})=>{const[c]=T(x=>[x.graphStyle]),[l,t]=b.useState(!1),p=()=>{t(!0),localStorage.setItem("graphStyle",c),t(!1),n()};return e.jsxs(q,{direction:"column",children:[e.jsx(K,{children:"Default graph view:"}),e.jsx(O,{}),e.jsx(i,{mt:308,py:8,children:e.jsx(v,{color:"secondary",disabled:l,id:"add-node-submit-cta",onClick:p,size:"large",startIcon:l&&e.jsx(X,{children:e.jsx(G,{color:r.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"})})]})},q=a(i)` - display: flex; - gap: 10px; - padding: 36px; -`,K=a(S)` - font-family: Barlow; - font-size: 13px; - font-weight: 400; - color: ${r.lightGray}; -`,X=a.span` - display: inline-flex; - align-items: center; - justify-content: center; - margin-top: 2px; - - svg { - width: 16px; - height: 16px; - } -`,Z=({initialValues:n,onClose:c})=>{const l=I({defaultValues:n,mode:"onSubmit"}),{isSubmitting:t}=l.formState,p=$(o=>o.setAppMetaData),{swarmUiUrl:x}=C(o=>o),[h,u]=b.useState(""),m=l.handleSubmit(async o=>{try{(await k(o)).status==="success"&&(A("Changes Saved"),p(o),c())}catch(d){let f=y;if((d==null?void 0:d.status)===400){const g=await d.json();f=g.errorCode||(g==null?void 0:g.status)||y}else d instanceof Error&&(f=d.message);u(String(f))}}),s=o=>{o.preventDefault(),m()};return e.jsx(z,{...l,children:e.jsx(J,{id:"add-node-form",onSubmit:s,children:e.jsxs(te,{children:[e.jsxs(i,{children:[x&&e.jsx(ee,{children:e.jsx(ae,{href:x,children:"View Swarm UI"})}),e.jsx(i,{pt:20,children:e.jsx(w,{id:"cy-about-title-id",label:"Graph Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...M}})}),e.jsx(i,{pt:20,children:e.jsx(w,{id:"cy-about-id",label:"Graph Description",maxLength:100,name:"description",placeholder:"Type graph description here..."})})]}),e.jsxs(i,{mt:210,py:h?0:24,children:[e.jsx(v,{color:"secondary",disabled:t,id:"add-node-submit-cta",size:"large",startIcon:t&&e.jsx(Q,{children:e.jsx(G,{color:r.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"}),h?e.jsx(ie,{children:e.jsxs(ne,{children:[e.jsx(D,{className:"errorIcon"}),e.jsx("span",{children:h})]})}):null]})]})})})},J=a.form` - padding: 36px; - height: 100%; -`,Q=a.span` - display: inline-flex; - align-items: center; - justify-content: center; - margin-top: 2px; - - svg { - width: 16px; - height: 16px; - } -`,ee=a(i)` - display: flex; - align-items: flex-end; -`,te=a(i)` - display: flex; - direction: column; - justify-content: space-between; - height: 100%; -`,ae=a.a` - font-family: 'Barlow'; - font-size: 16px; - color: ${r.PRIMARY_BLUE}; - text-decoration: underline; - font-weight: 500; -`,ie=a(i)` - display: flex; - align-items: center; - color: ${r.primaryRed}; - position: relative; - margin-top: 10px; -`,ne=a(i)` - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; - gap: 2px; - - .errorIcon { - display: block; - font-size: 13px; - min-height: 13px; - min-width: 13px; - } - - span { - display: -webkit-box; - -webkit-line-clamp: 1; - -webkit-box-orient: vertical; - overflow: hidden; - white-space: normal; - letter-spacing: 0.2px; - cursor: pointer; - padding-left: 4px; - font-size: 13px; - font-family: Barlow; - line-height: 18px; - } -`,se=n=>{const{children:c,value:l,index:t,...p}=n;return l===t?e.jsx(de,{"aria-labelledby":`simple-tab-${t}`,hidden:l!==t,id:`simple-tabpanel-${t}`,role:"tabpanel",...p,children:c}):null};function oe(n){return{id:`simple-tab-${n}`,"aria-controls":`simple-tabpanel-${n}`}}const re=({onClose:n})=>{const[c,l]=b.useState(0),[t]=C(s=>[s.isAdmin,s.setPubKey]),p=$(s=>s.appMetaData),x=()=>t?"Admin Settings":"Settings",h=({children:s})=>e.jsxs(ce,{children:[e.jsx(i,{direction:"row",pt:3,children:e.jsx(he,{"data-testid":"setting-label",children:x()})}),s]}),u=(s,o)=>{l(o)},m=[...t?[{label:"General",component:Z}]:[],{label:"Appearance",component:H}];return e.jsxs(xe,{"data-testid":"settings-modal",direction:"column",children:[e.jsx(h,{children:e.jsx(le,{"aria-label":"settings tabs",onChange:u,value:c,children:m.map((s,o)=>e.jsx(pe,{disableRipple:!0,label:s.label,...oe(o)},s.label))})}),m.map((s,o)=>e.jsx(se,{index:o,value:c,children:p&&e.jsx(s.component,{initialValues:p,onClose:n})},s.label))]})},le=a(U)` - && { - .MuiTabs-indicator { - background: ${r.primaryBlue}; - } - padding-left: 34px; - } -`,ce=a(i)` - border-radius: 9px 9px 0 0; - background: rgb(22, 24, 30); - padding: 40px 36px 0 0; -`,pe=a(N)` - && { - min-width: 0; - width: auto; - padding: 30px 0 19px; - color: ${r.GRAY6}; - margin-right: 87px; - font-family: Barlow; - font-size: 16px; - font-style: normal; - font-weight: 500; - text-align: left; - - &.Mui-selected { - color: ${r.white}; - } - } -`,de=a(i)` - display: flex; - flex: 1; - min-height: 495px; - max-height: 495px; - height: fit-content; - min-width: 480px; - overflow: hidden; - border-radius: 9px; - - @media (max-width: 1024px) { - min-height: auto; - overflow: auto; - max-height: 400px; - min-width: 480px; - } - - @media (max-width: 768px) { - min-height: auto; - overflow: auto; - max-height: 300px; - min-width: 380px; - } - - @media (max-width: 480px) { - min-height: auto; - overflow: auto; - max-height: 200px; - min-width: 280px; - } -`,xe=a(i)` - min-height: 0; - flex: 1; - overflow: hidden; -`,he=a(S)` - font-size: 22px; - font-weight: 600; - font-family: Barlow; - padding: 0 0 0 36px; - - @media (max-width: 1024px) { - font-size: 20px; - } - - @media (max-width: 768px) { - font-size: 18px; - } -`,ye=()=>{const{close:n}=j("settings"),{visible:c}=j("addItem");return c?null:e.jsx(E,{background:"BG1",id:"settings",noWrap:!0,onClose:n,preventOutsideClose:!0,children:e.jsx(re,{onClose:n})})};export{ye as SettingsModal}; diff --git a/build/assets/isPlainObject-212517ba.js b/build/assets/isPlainObject-886127ee.js similarity index 98% rename from build/assets/isPlainObject-212517ba.js rename to build/assets/isPlainObject-886127ee.js index 6c416742f..6ffb4dcc9 100644 --- a/build/assets/isPlainObject-212517ba.js +++ b/build/assets/isPlainObject-886127ee.js @@ -1 +1 @@ -import{P as de,S as pe,U as M,$ as Ne,y as S,ak as Ge,r as U,L as ge,j as E,Y as K,a0 as H,Z as be,X as Ue,aw as z,ax as B,aD as T,bO as he,aB as ve,J as X,bP as Ke,aH as He,bQ as ze,bR as ye,bS as Xe,bT as Ye,bU as Ze,aK as ke,aN as _e,aC as Je,aJ as Qe,bV as We,aI as me,bW as je}from"./index-f22e6e13.js";import{u as Ve,b as $e,f as er,S as rr}from"./Stack-e2486c11.js";import{T as W}from"./Typography-1355ab6c.js";function ar(e){return de("PrivateSwitchBase",e)}pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const nr=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],tr=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(Ne)(({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:Ge})({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:_,type:P,value:L}=r,A=ge(r,nr),[w,xe]=Ve({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=m=>{v&&v(m),C&&C.onFocus&&C.onFocus(m)},Be=m=>{b&&b(m),C&&C.onBlur&&C.onBlur(m)},qe=m=>{if(m.nativeEvent.defaultPrevented)return;const Q=m.target.checked;xe(Q),y&&y(m,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 E.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:[E.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:_,type:P},P==="checkbox"&&L===void 0?{}:{value:L},h)),w?t:f]}))}),ss=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=Ue({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 $=er({props:t,muiFormControl:b,states:["error"]}),_=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(_),L=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=E.jsx(W,S({component:"span"},L,{className:K(P.label,L==null?void 0:L.className),children:A}))),E.jsxs(dr,S({className:K(P.root,i),ownerState:_,ref:a},g,{children:[U.cloneElement(l,O),v?E.jsxs(rr,{display:"block",children:[A,E.jsxs(pr,{ownerState:_,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),is=gr;var br=z,hr=B,vr="[object Symbol]";function yr(e){return typeof e=="symbol"||hr(e)&&br(e)==vr}var Y=yr,_r=T,mr=Y,$r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pr=/^\w*$/;function Ar(e,r){if(_r(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||mr(e)?!0:Pr.test(e)||!$r.test(e)||r!=null&&e in Object(r)}var Z=Ar,Pe=he,Cr="Expected a function";function k(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Cr);var a=function(){var n=arguments,s=r?r.apply(this,n):n[0],t=a.cache;if(t.has(s))return t.get(s);var i=e.apply(this,n);return a.cache=t.set(s,i)||t,i};return a.cache=new(k.Cache||Pe),a}k.Cache=Pe;var Sr=k,Tr=Sr,Or=500;function wr(e){var r=Tr(e,function(n){return a.size===Or&&a.clear(),n}),a=r.cache;return r}var Lr=wr,Er=Lr,Ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/\\(\\)?/g,Rr=Er(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Ir,function(a,n,s,t){r.push(s?t.replace(Fr,"$1"):n||a)}),r}),xr=Rr;function Mr(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&Ta?new Pa: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(Ne)(({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:Ge})({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:_,type:P,value:L}=r,A=ge(r,nr),[w,xe]=Ve({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=m=>{v&&v(m),C&&C.onFocus&&C.onFocus(m)},Be=m=>{b&&b(m),C&&C.onBlur&&C.onBlur(m)},qe=m=>{if(m.nativeEvent.defaultPrevented)return;const Q=m.target.checked;xe(Q),y&&y(m,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 E.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:[E.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:_,type:P},P==="checkbox"&&L===void 0?{}:{value:L},h)),w?t:f]}))}),ss=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=Ue({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 $=er({props:t,muiFormControl:b,states:["error"]}),_=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(_),L=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=E.jsx(W,S({component:"span"},L,{className:K(P.label,L==null?void 0:L.className),children:A}))),E.jsxs(dr,S({className:K(P.root,i),ownerState:_,ref:a},g,{children:[U.cloneElement(l,O),v?E.jsxs(rr,{display:"block",children:[A,E.jsxs(pr,{ownerState:_,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),is=gr;var br=z,hr=B,vr="[object Symbol]";function yr(e){return typeof e=="symbol"||hr(e)&&br(e)==vr}var Y=yr,_r=T,mr=Y,$r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pr=/^\w*$/;function Ar(e,r){if(_r(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||mr(e)?!0:Pr.test(e)||!$r.test(e)||r!=null&&e in Object(r)}var Z=Ar,Pe=he,Cr="Expected a function";function k(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Cr);var a=function(){var n=arguments,s=r?r.apply(this,n):n[0],t=a.cache;if(t.has(s))return t.get(s);var i=e.apply(this,n);return a.cache=t.set(s,i)||t,i};return a.cache=new(k.Cache||Pe),a}k.Cache=Pe;var Sr=k,Tr=Sr,Or=500;function wr(e){var r=Tr(e,function(n){return a.size===Or&&a.clear(),n}),a=r.cache;return r}var Lr=wr,Er=Lr,Ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/\\(\\)?/g,Rr=Er(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Ir,function(a,n,s,t){r.push(s?t.replace(Fr,"$1"):n||a)}),r}),xr=Rr;function Mr(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&Ta?new Pa:void 0;for(t.set(e,r),t.set(r,e);++f Second Brain - + diff --git a/src/components/App/ActionsToolbar/GraphViewControl/index.tsx b/src/components/App/ActionsToolbar/GraphViewControl/index.tsx index 6b0a5fe70..78f7025c3 100644 --- a/src/components/App/ActionsToolbar/GraphViewControl/index.tsx +++ b/src/components/App/ActionsToolbar/GraphViewControl/index.tsx @@ -31,7 +31,7 @@ export const GraphViewControl = () => { setGraphStyle(val) } - return ( + return false ? ( {graphStyles.map((i) => ( changeGraphType(i)}> @@ -39,7 +39,7 @@ export const GraphViewControl = () => { ))} - ) + ) : null } const Wrapper = styled(Flex).attrs({ diff --git a/src/components/AppContainer/index.tsx b/src/components/AppContainer/index.tsx index c9f8ea3d9..d6004c2da 100644 --- a/src/components/AppContainer/index.tsx +++ b/src/components/AppContainer/index.tsx @@ -4,23 +4,43 @@ import { E2ETests } from '~/utils' import { AppProviders } from '../App/Providers' import { AuthGuard } from '../Auth' +// Lazy-loaded components const LazyApp = lazy(() => import('../App').then(({ App }) => ({ default: App }))) const LazyMindSet = lazy(() => import('../mindset').then(({ MindSet }) => ({ default: MindSet }))) export const AppContainer = () => { - const App = - const MindSet = - - const path = window.location?.hostname === 'graphmindset.sphinx.chat' ? '/' : '/mindset' + const isMindSetHost = + window.location?.hostname === 'graphmindset.sphinx.chat' || window.location.hostname === 'localhost' return ( Loading...}> - - {App}} path="/" /> - {App}} path="/search" /> - {App}} path="*" /> + {isMindSetHost && } path="/" />} + + + + } + path="/" + /> + + + + } + path="/search" + /> + + + + } + path="*" + /> diff --git a/src/components/Universe/Graph/Connections/LineComponent.tsx b/src/components/Universe/Graph/Connections/LineComponent.tsx index a26270268..25b0890ac 100644 --- a/src/components/Universe/Graph/Connections/LineComponent.tsx +++ b/src/components/Universe/Graph/Connections/LineComponent.tsx @@ -1,6 +1,6 @@ -import { Line } from '@react-three/drei' +import { Billboard, Line, Text } from '@react-three/drei' import gsap from 'gsap' -import { forwardRef, memo, useEffect } from 'react' +import { memo, useEffect, useRef } from 'react' import { Vector3 } from 'three' import { Line2 } from 'three-stdlib' import { LinkPosition } from '..' @@ -9,34 +9,48 @@ import { LINE_WIDTH } from '../../constants' type LineComponentProps = { isSelected: boolean position: LinkPosition + label: string } // eslint-disable-next-line no-underscore-dangle -const _LineComponent = forwardRef(({ isSelected, position }, ref) => { +const _LineComponent = ({ isSelected, position, label }: LineComponentProps) => { + const lineRef = useRef(null) + useEffect(() => { - if (ref && (ref as React.MutableRefObject).current) { - const line = (ref as React.MutableRefObject).current + if (lineRef.current) { + const line = lineRef.current gsap.fromTo( line.material, - { linewidth: LINE_WIDTH * 5 }, + { linewidth: LINE_WIDTH * 15 }, { linewidth: LINE_WIDTH, duration: 1, }, ) } - }, [isSelected, ref]) + }, [isSelected, lineRef]) return ( - + + + + + {label} + + + ) -}) +} _LineComponent.displayName = 'LineComponent' diff --git a/src/components/Universe/Graph/Connections/index.tsx b/src/components/Universe/Graph/Connections/index.tsx index a0553e3f6..4a04a3909 100644 --- a/src/components/Universe/Graph/Connections/index.tsx +++ b/src/components/Universe/Graph/Connections/index.tsx @@ -1,54 +1,18 @@ -import gsap from 'gsap' -import { memo, useEffect, useRef } from 'react' -import { Line2 } from 'three-stdlib' +import { memo } from 'react' import { useDataStore } from '~/stores/useDataStore' -import { useGraphStore, useHoveredNode, useSelectedNode } from '~/stores/useGraphStore' +import { useGraphStore, useSelectedNode } from '~/stores/useGraphStore' import { Link } from '~/types' import { LinkPosition } from '..' -import { LINE_WIDTH } from '../../constants' import { LineComponent } from './LineComponent' type Props = { linksPosition: Map } -const LINE_TRANSFORM_DURATION = 0.5 - export const Connections = memo(({ linksPosition }: Props) => { const data = useDataStore((s) => s.dataInitial) const { showSelectionGraph } = useGraphStore((s) => s) const selectedNode = useSelectedNode() - const hoveredNode = useHoveredNode() - const lineRefs = useRef(new Map()) - - useEffect(() => { - const activeNode = hoveredNode || selectedNode - - if (!activeNode) { - lineRefs.current.forEach((line) => { - if (line) { - gsap.to(line.material, { - linewidth: LINE_WIDTH, - duration: LINE_TRANSFORM_DURATION, - }) - } - }) - - return - } - - lineRefs.current.forEach((line, refId) => { - if (line) { - const link = data?.links.find((l) => l.ref_id === refId) - const isActive = link && (link.source === activeNode.ref_id || link.target === activeNode.ref_id) - - gsap.to(line.material, { - linewidth: isActive ? LINE_WIDTH * 2 : 0, - duration: LINE_TRANSFORM_DURATION, - }) - } - }) - }, [data?.links, hoveredNode, selectedNode]) return ( @@ -64,20 +28,7 @@ export const Connections = memo(({ linksPosition }: Props) => { tz: 0, } - return ( - { - if (el) { - lineRefs.current.set(l.ref_id, el as Line2) - } else { - lineRefs.current.delete(l.ref_id) - } - }} - isSelected={isSelected} - position={position} - /> - ) + return })} ) diff --git a/src/components/Universe/Graph/Cubes/Text/hooks/useTexture/index.ts b/src/components/Universe/Graph/Cubes/Text/hooks/useTexture/index.ts index 896732e3d..26dfffe87 100644 --- a/src/components/Universe/Graph/Cubes/Text/hooks/useTexture/index.ts +++ b/src/components/Universe/Graph/Cubes/Text/hooks/useTexture/index.ts @@ -1,16 +1,16 @@ import { useEffect, useState } from 'react' -import { Texture } from 'three' +import * as THREE from 'three' // Use * as THREE for consistency import { loader } from './constants' -type materialRecord = { +type MaterialRecord = { texture: THREE.Texture material: THREE.MeshStandardMaterial } -const cachedMaterials: Record = {} +const cachedMaterials: Record = {} export const useTexture = (url: string) => { - const [texture, setTexture] = useState(null) + const [texture, setTexture] = useState(null) useEffect(() => { if (!url) { @@ -19,33 +19,44 @@ export const useTexture = (url: string) => { return } - const cashPath = url + const cachePath = url - if (cachedMaterials[cashPath]) { - setTexture(cachedMaterials[cashPath].texture) + // Check if texture is already cached + if (cachedMaterials[cachePath]?.texture) { + setTexture(cachedMaterials[cachePath].texture) return } + // Load texture and cache it loader.load( url, (loadedTexture) => { + cachedMaterials[cachePath] = { + texture: loadedTexture, + material: new THREE.MeshStandardMaterial({ map: loadedTexture }), + } + setTexture(loadedTexture) }, undefined, () => { - setTexture(null) + setTexture(null) // Handle loading error }, ) }, [url]) useEffect( - () => - function cleanup() { - if (texture) { + () => () => { + if (texture) { + // Avoid disposing of cached textures + const isCached = Object.values(cachedMaterials).some((entry) => entry.texture === texture) + + if (!isCached) { texture.dispose() } - }, + } + }, [texture], ) diff --git a/src/components/Universe/Graph/Cubes/Text/index.tsx b/src/components/Universe/Graph/Cubes/Text/index.tsx index 31518e065..85b4faee1 100644 --- a/src/components/Universe/Graph/Cubes/Text/index.tsx +++ b/src/components/Universe/Graph/Cubes/Text/index.tsx @@ -166,7 +166,9 @@ export const TextNode = memo(({ node, hide, ignoreDistance }: Props) => { - {node.properties?.image_url && ['Person', 'Episode'].includes(node.node_type) && texture ? ( + {node.properties?.image_url && + ['Person', 'Episode', 'Guest', 'Host', 'Show'].includes(node.node_type) && + texture ? ( { if (grConnections) { linksPositionRef.current.clear() - grConnections.children.forEach((r, i) => { - const link = dataInitial?.links[i] - const Line = r as Line2 + grConnections.children.forEach((g, i) => { + const r = g.children[0] // Assuming Line is the first child + const text = g.children[1] // Assuming Text is the second child - if (link) { - const sourceNode = simulation.nodes().find((n: NodeExtended) => n.ref_id === link.source) - const targetNode = simulation.nodes().find((n: NodeExtended) => n.ref_id === link.target) + if (r instanceof Line2) { + // Ensure you have both Line and Text + const Line = r as Line2 + const link = dataInitial?.links[i] - const { x: sx, y: sy, z: sz } = sourceNode - const { x: tx, y: ty, z: tz } = targetNode + if (link) { + const sourceNode = simulation.nodes().find((n: NodeExtended) => n.ref_id === link.source) + const targetNode = simulation.nodes().find((n: NodeExtended) => n.ref_id === link.target) - linksPositionRef.current.set(link.ref_id, { - sx, - sy, - sz, - tx, - ty, - tz, - }) + if (!sourceNode || !targetNode) { + console.warn(`Missing source or target node for link: ${link?.ref_id}`) - const lineColor = normalizedSchemasByType[sourceNode.node_type]?.primary_color || 'white' + return + } - Line.geometry.setPositions([sx, sy, sz, tx, ty, tz]) + const { x: sx, y: sy, z: sz } = sourceNode + const { x: tx, y: ty, z: tz } = targetNode - const { material } = Line + // Set positions for the link + linksPositionRef.current.set(link.ref_id, { + sx, + sy, + sz, + tx, + ty, + tz, + }) - material.color = new Color(lineColor) - material.transparent = true - material.opacity = 0.3 + // Calculate midpoint for the text position + const midPoint = new Vector3((sx + tx) / 2, (sy + ty) / 2, (sz + tz) / 2) + + // Set text position and rotation + text.position.set(midPoint.x, midPoint.y, midPoint.z) + + // Set line color and properties + const lineColor = normalizedSchemasByType[sourceNode.node_type]?.primary_color || 'white' + + Line.geometry.setPositions([sx, sy, sz, tx, ty, tz]) + + const { material } = Line + + material.color = new Color(lineColor) + material.transparent = true + material.opacity = 0.3 + } } }) } @@ -166,7 +186,7 @@ export const Graph = () => { const sphereRadius = boundingSphere.radius - setGraphRadius(sphereRadius) + setGraphRadius(sphereRadius * 1.5) cameraSettled.current = false }) diff --git a/src/components/Universe/Overlay/index.tsx b/src/components/Universe/Overlay/index.tsx index 872d6b252..229740c02 100644 --- a/src/components/Universe/Overlay/index.tsx +++ b/src/components/Universe/Overlay/index.tsx @@ -59,6 +59,7 @@ const OverlayWrap = styled('div')(({ theme }) => ({ height: '100%', width: '100%', padding: '16px', + paddingRight: '0', overflow: 'hidden', [theme.breakpoints.down('sm')]: { top: 50, diff --git a/src/components/Universe/constants.ts b/src/components/Universe/constants.ts index 9ead991d8..a6b41bd2b 100644 --- a/src/components/Universe/constants.ts +++ b/src/components/Universe/constants.ts @@ -3,7 +3,7 @@ import { Guests, NodeExtended } from '~/types' export const variableVector3 = new Vector3(0, 0, 0) -export const LINE_WIDTH = 0.5 +export const LINE_WIDTH = 1 export const outlineEffectColor = 0xffffff diff --git a/src/components/common/Avatar/index.tsx b/src/components/common/Avatar/index.tsx index e3fca6f17..da1986c03 100644 --- a/src/components/common/Avatar/index.tsx +++ b/src/components/common/Avatar/index.tsx @@ -2,6 +2,8 @@ import styled from 'styled-components' type Props = { size?: number + height?: number + width?: number src: string type: string rounded?: boolean @@ -30,7 +32,7 @@ export const Avatar = styled.div` background-size: cover; background-position: center; background-repeat: no-repeat; - width: ${({ size = 45 }) => size}px; - height: ${({ size = 45 }) => size}px; + width: ${({ size = 45, width }) => width || size}px; + height: ${({ size = 45, height }) => height || size}px; border-radius: ${({ rounded }) => (rounded ? '50%' : '2px')}; ` diff --git a/src/components/common/GraphViewControl/index.tsx b/src/components/common/GraphViewControl/index.tsx index 16eacaf5a..28721f3d4 100644 --- a/src/components/common/GraphViewControl/index.tsx +++ b/src/components/common/GraphViewControl/index.tsx @@ -31,7 +31,7 @@ export const GraphViewControl = () => { setGraphStyle(val) } - return ( + return false ? ( {graphStyles.map((i) => ( changeGraphType(i)}> @@ -39,7 +39,7 @@ export const GraphViewControl = () => { ))} - ) + ) : null } const Wrapper = styled(Flex).attrs({ diff --git a/src/components/mindset/components/HoverCard/index.tsx b/src/components/mindset/components/HoverCard/index.tsx new file mode 100644 index 000000000..7ff33d355 --- /dev/null +++ b/src/components/mindset/components/HoverCard/index.tsx @@ -0,0 +1,70 @@ +import styled from 'styled-components' +import { Flex } from '~/components/common/Flex' +import { Text } from '~/components/common/Text' +import { colors } from '~/utils/colors' + +type Props = { + title?: string + description?: string +} + +export const HoverCard = ({ title, description }: Props) => ( + + + + {title} + {description && {description}} + + + +) + +const Portal = styled.div` + position: fixed; + width: 100%; + height: 100%; + pointer-events: none; + z-index: 1000; +` + +const TooltipContainer = styled(Flex)` + width: 390px; + min-height: 100px; + background: ${colors.HOVER_CARD_BG}; + border-radius: 8px; + padding: 15px; + padding-bottom: 3px !important; + position: fixed; + flex-direction: column; + gap: 4px; + top: calc(-230px); + left: 100%; + z-index: 1000; + margin-left: 450px; + pointer-events: auto; +` + +const ContentWrapper = styled(Flex)` + margin-top: 0; + flex-direction: column; + gap: 4px; +` + +const Title = styled(Text)` + font-family: Barlow; + font-size: 20px; + font-weight: 600; + line-height: 24px; + color: ${colors.white}; + margin: 0; +` + +const Description = styled(Text)` + font-family: Barlow; + font-size: 14px; + font-weight: 400; + line-height: 20px; + color: ${colors.white}; + margin: 0; + opacity: 0.8; +` diff --git a/src/components/mindset/components/Scene/Board/Node/index.tsx b/src/components/mindset/components/Scene/Board/Node/index.tsx index 7392d8bfe..7a674e423 100644 --- a/src/components/mindset/components/Scene/Board/Node/index.tsx +++ b/src/components/mindset/components/Scene/Board/Node/index.tsx @@ -1,7 +1,8 @@ import { Html } from '@react-three/drei' import { useThree } from '@react-three/fiber' -import { memo } from 'react' +import { memo, useState } from 'react' import { Flex } from '~/components/common/Flex' +import { HoverCard } from '../../../HoverCard' import { RoundedRectangle } from '../RoundedRectangle' import { Content } from './Content' import { Image } from './Image' @@ -15,10 +16,12 @@ type Props = { name: string type: string color: string + description?: string } -export const Node = memo(({ width, height, position, url, onButtonClick, name, type, color }: Props) => { +export const Node = memo(({ width, height, position, url, onButtonClick, name, type, color, description }: Props) => { const { camera } = useThree() + const [isHovered, setIsHovered] = useState(false) return ( @@ -27,27 +30,28 @@ export const Node = memo(({ width, height, position, url, onButtonClick, name, t {false && } {/* Html */} - {true && ( - - onButtonClick()} - style={{ - fontSize: '12px', - color: 'white', - fontWeight: 600, - width: `${width * camera.zoom}px`, - height: `${height * camera.zoom}px`, - display: 'flex', - justifyContent: 'center', - alignItems: 'center', - borderRadius: '8px', - pointerEvents: 'auto', // Allow interaction with the HTML element - }} - > - - - - )} + + onButtonClick()} + onMouseEnter={() => setIsHovered(true)} + onMouseLeave={() => setIsHovered(false)} + style={{ + fontSize: '12px', + color: 'white', + fontWeight: 600, + width: `${width * camera.zoom}px`, + height: `${height * camera.zoom}px`, + display: 'flex', + justifyContent: 'center', + alignItems: 'center', + borderRadius: '8px', + pointerEvents: 'auto', + }} + > + + {isHovered && } + + ) }) diff --git a/src/components/mindset/components/Scene/Board/index.tsx b/src/components/mindset/components/Scene/Board/index.tsx index 6bf72c1e8..ad101490c 100644 --- a/src/components/mindset/components/Scene/Board/index.tsx +++ b/src/components/mindset/components/Scene/Board/index.tsx @@ -122,6 +122,7 @@ export const Board = () => { { { return ( - {transcriptData.map((i) => { - const start = secondsToMediaTime(i.start) - - const isActive = i.start < currentTime && currentTime < i.end - - return ( - - ) - })} + {transcriptData[0].start > currentTime ? ( + + ) : ( + <> + {transcriptData.map((i) => { + const start = secondsToMediaTime(i.start) + + const isActive = i.start < currentTime && currentTime < i.end + + return i.start <= currentTime + 5 ? ( + + ) : null + })} + + )} ) } diff --git a/src/components/mindset/components/Sidebar/Transcript/index.tsx b/src/components/mindset/components/Sidebar/Transcript/index.tsx index c2245e2dd..86e8ccba8 100644 --- a/src/components/mindset/components/Sidebar/Transcript/index.tsx +++ b/src/components/mindset/components/Sidebar/Transcript/index.tsx @@ -8,7 +8,11 @@ import { NodeExtended } from '~/types' import { colors } from '~/utils' import { Viewer } from './Viewer' -export const Transcript = () => { +type Props = { + name: string +} + +export const Transcript = ({ name }: Props) => { const { selectedEpisodeId } = useMindsetStore((s) => s) const { playerRef } = usePlayerStore((s) => s) const [currentTime, setCurrentTime] = useState(0) @@ -45,9 +49,9 @@ export const Transcript = () => { return () => clearInterval(interval) }, [playerRef, setCurrentTime]) - return currentTime ? ( + return ( - Transcript + {name} {clips.map((clip) => { const timestamp: string | undefined = clip?.properties?.timestamp @@ -67,7 +71,7 @@ export const Transcript = () => { return null })} - ) : null + ) } const Wrapper = styled(Flex)` diff --git a/src/components/mindset/components/Sidebar/index.tsx b/src/components/mindset/components/Sidebar/index.tsx index 60af49b0b..22abdce2d 100644 --- a/src/components/mindset/components/Sidebar/index.tsx +++ b/src/components/mindset/components/Sidebar/index.tsx @@ -1,7 +1,6 @@ import styled from 'styled-components' import { MENU_WIDTH } from '~/components/App/SideBar' import { Flex } from '~/components/common/Flex' -import { Text } from '~/components/common/Text' import { MediaPlayer } from '~/components/mindset/components/MediaPlayer' import { useMindsetStore } from '~/stores/useMindsetStore' import { Transcript } from './Transcript' @@ -11,12 +10,8 @@ export const SideBar = () => { return ( - - {selectedEpisode?.name && {selectedEpisode?.name}} - {selectedEpisode?.properties?.text && {selectedEpisode?.properties?.text}} - {selectedEpisodeLink && } - - + {selectedEpisodeLink && } + ) } @@ -24,7 +19,7 @@ export const SideBar = () => { const Wrapper = styled(Flex)(({ theme }) => ({ position: 'relative', display: 'flex', - padding: '33px 20px 20px 20px', + padding: '0 20px 20px 20px', background: 'transparent', width: '100%', @@ -33,24 +28,6 @@ const Wrapper = styled(Flex)(({ theme }) => ({ }, })) -const Summary = styled(Text)` - font-size: 20px; - font-weight: Bold; - line-height: 24.2px; - overflow-wrap: break-word; - white-space: normal; - word-break: break-word; - margin-right: 10px; - font-weight: 500; -` - -const EpisodeTitle = styled(Text)` - font-size: 14px; - font-weight: 700; - line-height: 16.94px; - margin-bottom: 12px; -` - const MediaWrapper = styled(Flex)(({ theme }) => ({ width: '100%', margin: '0 auto 16px', diff --git a/src/components/mindset/components/VideoCard/index.tsx b/src/components/mindset/components/VideoCard/index.tsx index 69c4f4378..f9a359ee6 100644 --- a/src/components/mindset/components/VideoCard/index.tsx +++ b/src/components/mindset/components/VideoCard/index.tsx @@ -1,4 +1,5 @@ import styled from 'styled-components' +import { Avatar } from '~/components/common/Avatar' import { Flex } from '~/components/common/Flex' import { colors } from '~/utils/colors' @@ -16,7 +17,7 @@ export const VideoCard = ({ imageUrl, title, subtitle, onClick }: VideoCardProps return ( - + {truncatedTitle} @@ -56,12 +57,6 @@ const ImageWrapper = styled.div` align-items: center; ` -const CardImage = styled.img` - width: 100%; - height: 100%; - object-fit: cover; -` - const TextWrapper = styled(Flex)` flex-direction: column; justify-content: flex-start; diff --git a/src/components/mindset/index.tsx b/src/components/mindset/index.tsx index fb007818f..2c1b24000 100644 --- a/src/components/mindset/index.tsx +++ b/src/components/mindset/index.tsx @@ -80,7 +80,7 @@ export const MindSet = () => { const [episodesAndClips, remainingNodes] = (data?.nodes || []).reduce<[Node[], Node[]]>( ([matches, remaining], node) => { - if (['Episode', 'Show'].includes(node.node_type)) { + if (['Episode', 'Show', 'Host', 'Guest'].includes(node.node_type)) { matches.push(node) } else { remaining.push(node) diff --git a/src/stores/useDataStore/index.ts b/src/stores/useDataStore/index.ts index 9d23ee3fb..4445c801b 100644 --- a/src/stores/useDataStore/index.ts +++ b/src/stores/useDataStore/index.ts @@ -21,8 +21,6 @@ const deduplicateByRefId = (items: Array) => { export type GraphStyle = 'sphere' | 'force' | 'split' | 'earth' -export const graphStyles: GraphStyle[] = ['sphere', 'force', 'split', 'earth'] - export type FetchNodeParams = { word?: string skip_cache?: string diff --git a/src/stores/useGraphStore/index.ts b/src/stores/useGraphStore/index.ts index 67dae899e..8cb731d6b 100644 --- a/src/stores/useGraphStore/index.ts +++ b/src/stores/useGraphStore/index.ts @@ -123,7 +123,7 @@ const defaultData: Omit< disableCameraRotation: false, scrollEventsDisabled: false, graphRadius: 1500, // calculated from initial load - graphStyle: (localStorage.getItem('graphStyle') as GraphStyle) || 'sphere', + graphStyle: 'sphere', hoveredNode: null, selectedNode: null, activeEdge: null, @@ -144,7 +144,7 @@ export const useGraphStore = create()((set, get) => ({ setDisableCameraRotation: (rotation) => set({ disableCameraRotation: rotation }), setIsHovering: (isHovering) => set({ isHovering }), setGraphRadius: (graphRadius) => set({ graphRadius }), - setGraphStyle: (graphStyle) => set({ graphStyle }), + setGraphStyle: (graphStyle) => set({ graphStyle: 'sphere' || graphStyle }), setHoveredNode: (hoveredNode) => { set({ hoveredNode }) }, diff --git a/src/stores/useSchemaStore/index.ts b/src/stores/useSchemaStore/index.ts index 5bd29af73..62bea1aef 100644 --- a/src/stores/useSchemaStore/index.ts +++ b/src/stores/useSchemaStore/index.ts @@ -52,7 +52,7 @@ export const useSchemaStore = create()( getNodeKeysByType: (type: string) => { const schema = get().normalizedSchemasByType[type] - return schema ? schema.node_key : undefined + return schema ? schema.index || schema.node_key : undefined }, getSchemaByType: (type: string) => get().normalizedSchemasByType[type], })), diff --git a/src/utils/colors/index.tsx b/src/utils/colors/index.tsx index 38cbea411..a89298aa1 100644 --- a/src/utils/colors/index.tsx +++ b/src/utils/colors/index.tsx @@ -111,6 +111,7 @@ export const colors = { DIVIDER_4: 'rgba(46, 55, 67, 1)', INPUT_BG: 'rgba(255, 255, 255, 0.05)', INPUT_PLACEHOLDER: 'rgba(255, 255, 255, 0.5)', + HOVER_CARD_BG: 'rgba(41, 44, 54, 1)', } as const export type ColorName = keyof typeof colors