diff --git a/assets/DailyMotion-DS6ENbiz.js b/assets/DailyMotion-dtWJHABI.js similarity index 95% rename from assets/DailyMotion-DS6ENbiz.js rename to assets/DailyMotion-dtWJHABI.js index 095af451..f6965cbe 100644 --- a/assets/DailyMotion-DS6ENbiz.js +++ b/assets/DailyMotion-dtWJHABI.js @@ -1 +1 @@ -import{g as P,r as v}from"./index-B8t7bxZo.js";import{u as D,p as O}from"./index-D61p5nQ0.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; +import{g as P,r as v}from"./index-BTvwz0L3.js";import{u as D,p as O}from"./index-O1s2SJEC.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/assets/Facebook-Ddt1mA1e.js b/assets/Facebook-XyPBYRIO.js similarity index 96% rename from assets/Facebook-Ddt1mA1e.js rename to assets/Facebook-XyPBYRIO.js index 500f7e36..331b37b7 100644 --- a/assets/Facebook-Ddt1mA1e.js +++ b/assets/Facebook-XyPBYRIO.js @@ -1 +1 @@ -import{g as _,r as g}from"./index-B8t7bxZo.js";import{u as P,p as m}from"./index-D61p5nQ0.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; +import{g as _,r as g}from"./index-BTvwz0L3.js";import{u as P,p as m}from"./index-O1s2SJEC.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; diff --git a/assets/FilePlayer-Be6CJCFx.js b/assets/FilePlayer-B-7Nf9xf.js similarity index 98% rename from assets/FilePlayer-Be6CJCFx.js rename to assets/FilePlayer-B-7Nf9xf.js index 3e7c5114..ac591930 100644 --- a/assets/FilePlayer-Be6CJCFx.js +++ b/assets/FilePlayer-B-7Nf9xf.js @@ -1 +1 @@ -import{g as b,r as _}from"./index-B8t7bxZo.js";import{u as O,p as A}from"./index-D61p5nQ0.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; +import{g as b,r as _}from"./index-BTvwz0L3.js";import{u as O,p as A}from"./index-O1s2SJEC.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/assets/Kaltura-BvVnGm4r.js b/assets/Kaltura-De4_41Jp.js similarity index 95% rename from assets/Kaltura-BvVnGm4r.js rename to assets/Kaltura-De4_41Jp.js index 623b35e9..d3caa2d8 100644 --- a/assets/Kaltura-BvVnGm4r.js +++ b/assets/Kaltura-De4_41Jp.js @@ -1 +1 @@ -import{g as y,r as f}from"./index-B8t7bxZo.js";import{u as _,p as m}from"./index-D61p5nQ0.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; +import{g as y,r as f}from"./index-BTvwz0L3.js";import{u as _,p as m}from"./index-O1s2SJEC.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/assets/Mixcloud-DOJaWHJ3.js b/assets/Mixcloud-BsI6AU-V.js similarity index 95% rename from assets/Mixcloud-DOJaWHJ3.js rename to assets/Mixcloud-BsI6AU-V.js index 9cce3fc3..1ad7c63b 100644 --- a/assets/Mixcloud-DOJaWHJ3.js +++ b/assets/Mixcloud-BsI6AU-V.js @@ -1 +1 @@ -import{g as _,r as f}from"./index-B8t7bxZo.js";import{u as m,p as g}from"./index-D61p5nQ0.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; +import{g as _,r as f}from"./index-BTvwz0L3.js";import{u as m,p as g}from"./index-O1s2SJEC.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/assets/Preview-XB5UI1Py.js b/assets/Preview-DZxFUWlF.js similarity index 97% rename from assets/Preview-XB5UI1Py.js rename to assets/Preview-DZxFUWlF.js index d590f1d7..87930cdd 100644 --- a/assets/Preview-XB5UI1Py.js +++ b/assets/Preview-DZxFUWlF.js @@ -1 +1 @@ -import{g as y,r as b}from"./index-B8t7bxZo.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; +import{g as y,r as b}from"./index-BTvwz0L3.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/assets/PricingCard-C-MVvD2_.js b/assets/PricingCard-COmh7QJa.js similarity index 96% rename from assets/PricingCard-C-MVvD2_.js rename to assets/PricingCard-COmh7QJa.js index 3399860a..73eed427 100644 --- a/assets/PricingCard-C-MVvD2_.js +++ b/assets/PricingCard-COmh7QJa.js @@ -1,4 +1,4 @@ -import{d as i,E as P,F as w,G as C,j as D,g as M}from"./index-B8t7bxZo.js";var f={};(function(o){var d=i&&i.__makeTemplateObject||function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},c=i&&i.__assign||function(){return c=Object.assign||function(n){for(var e,r=1,a=arguments.length;r .escolalms-image, & > .escolalms-image img { @@ -18,4 +18,4 @@ import{d as a,E as h,cx as y,j as w,r as P,g as R}from"./index-B8t7bxZo.js";var transform: none !important; } } -`])));l.ResponsiveImage=(0,j.forwardRef)(function(e,t){var n;return(0,c.jsx)(O,u({className:"wellms-component ".concat((n=e.className)!==null&&n!==void 0?n:"")},{children:(0,c.jsx)(b.default,u({},e,{ref:t}))}))}),l.default=(0,s.withTheme)((0,s.default)(l.ResponsiveImage)(_||(_=o([""],[""]))));var f,_})(m);const D=R(m);export{m as R,D as a}; +`])));l.ResponsiveImage=(0,j.forwardRef)(function(e,t){var n;return(0,c.jsx)(O,u({className:"wellms-component ".concat((n=e.className)!==null&&n!==void 0?n:"")},{children:(0,c.jsx)(b.default,u({},e,{ref:t}))}))}),l.default=(0,s.withTheme)((0,s.default)(l.ResponsiveImage)(_||(_=o([""],[""]))));var f,_})(m);const I=R(m);export{m as R,I as a}; diff --git a/assets/Search-CTLKKOal.js b/assets/Search-CTLKKOal.js deleted file mode 100644 index 05b2cd23..00000000 --- a/assets/Search-CTLKKOal.js +++ /dev/null @@ -1 +0,0 @@ -import{aE as r,g as a}from"./index-B8t7bxZo.js";var e=r();const s=a(e);export{e as S,s as a}; diff --git a/assets/SoundCloud-D6sKQJZq.js b/assets/SoundCloud-DhlyoTf0.js similarity index 95% rename from assets/SoundCloud-D6sKQJZq.js rename to assets/SoundCloud-DhlyoTf0.js index bd429d60..6c930b03 100644 --- a/assets/SoundCloud-D6sKQJZq.js +++ b/assets/SoundCloud-DhlyoTf0.js @@ -1 +1 @@ -import{g as P,r as g}from"./index-B8t7bxZo.js";import{u as b,p as v}from"./index-D61p5nQ0.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; +import{g as P,r as g}from"./index-BTvwz0L3.js";import{u as b,p as v}from"./index-O1s2SJEC.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/assets/Streamable-CtjNT7Mp.js b/assets/Streamable-ZpImevuJ.js similarity index 95% rename from assets/Streamable-CtjNT7Mp.js rename to assets/Streamable-ZpImevuJ.js index ba26156b..008d91fa 100644 --- a/assets/Streamable-CtjNT7Mp.js +++ b/assets/Streamable-ZpImevuJ.js @@ -1 +1 @@ -import{g as m,r as f}from"./index-B8t7bxZo.js";import{u as _,p as b}from"./index-D61p5nQ0.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; +import{g as m,r as f}from"./index-BTvwz0L3.js";import{u as _,p as b}from"./index-O1s2SJEC.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/assets/Tabs-lM-qfhAO.js b/assets/Tabs-BG637HTY.js similarity index 95% rename from assets/Tabs-lM-qfhAO.js rename to assets/Tabs-BG637HTY.js index 59791e85..caeb3639 100644 --- a/assets/Tabs-lM-qfhAO.js +++ b/assets/Tabs-BG637HTY.js @@ -1,4 +1,4 @@ -import{d as o,r as M,E as B,az as F,G as j,j as z}from"./index-B8t7bxZo.js";var D={};(function(s){var f=o&&o.__makeTemplateObject||function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},l=o&&o.__assign||function(){return l=Object.assign||function(n){for(var e,t=1,a=arguments.length;te.forEach(n=>fa(n,t))}function ft(...e){return f.useCallback(hi(...e),e)}const gi=f.forwardRef((e,t)=>{const{children:n,...r}=e,o=f.Children.toArray(n),i=o.find(da);if(i){const s=i.props.children,a=o.map(c=>c===i?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:c);return f.createElement(Kn,Z({},r,{ref:t}),f.isValidElement(s)?f.cloneElement(s,void 0,a):null)}return f.createElement(Kn,Z({},r,{ref:t}),n)});gi.displayName="Slot";const Kn=f.forwardRef((e,t)=>{const{children:n,...r}=e;return f.isValidElement(n)?f.cloneElement(n,{...pa(r,n.props),ref:t?hi(t,n.ref):n.ref}):f.Children.count(n)>1?f.Children.only(null):null});Kn.displayName="SlotClone";const mi=({children:e})=>f.createElement(f.Fragment,null,e);function da(e){return f.isValidElement(e)&&e.type===mi}function pa(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 ha=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ze=ha.reduce((e,t)=>{const n=f.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?gi:t;return f.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),f.createElement(a,Z({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ga(e,t){e&&mr.flushSync(()=>e.dispatchEvent(t))}const ma=f.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?fi.createPortal(f.createElement(Ze.div,Z({},o,{ref:t})),r):null}),ba=ma;var Wr=Object.prototype.hasOwnProperty;function kt(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--&&kt(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Wr.call(e,n)&&++r&&!Wr.call(t,n)||!(n in t)||!kt(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function It(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),$e=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};$e.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 yn(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};$e.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new va(n,t.simple,t.async)),this};$e.prototype._clone=function(){return new $e(this.chain.slice(),this.nextRuleModifiers.slice())};$e.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};$e.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new br(r,t,o))}}),n};$e.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new br(n,t,r)}})};$e.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){yi(t,n.chain.slice(),r,o)})};function yi(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){yi(e,t,n,r)},function(i){r(new br(o,e,i))})}else n(e)}var Hr=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function ya(e,t){return t===void 0&&(t=!1),{simple:function(n){return Hr(n,t)||e.check(n)===void 0},async:function(n){return Hr(n,t)||e.testAsync(n)}}}function ae(){return typeof Proxy<"u"?wi(new $e):Gn(new $e)}var Tt={};ae.extend=function(e){Object.assign(Tt,e)};ae.clearCustomRules=function(){Tt={}};function wi(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=wi(e._clone());if(r in rn)return o._applyModifier(rn[r],r);if(r in Tt)return o._applyRule(Tt[r],r);if(r in Yn)return o._applyRule(Yn[r],r)}})}function Gn(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=Gn(i._clone()),u=l._applyRule(o[s],s).apply(void 0,a);return u}}),i},n=t(Yn,e),r=t(Tt,n);return Object.keys(rn).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=Gn(r._clone());return i._applyModifier(rn[o],o)}})}),r}var rn={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 Yt(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(Yt(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&&Yt(t).every(e)}},async:function(e){return function(t){return Promise.all(Yt(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return Vr(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 Vr(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function Vr(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function Yt(e){return typeof e=="string"?e.split(""):e}var Yn={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||wa;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return nt("string")},boolean:function(){return nt("boolean")},undefined:function(){return nt("undefined")},null:function(){return nt("null")},array:function(){return nt("array")},object:function(){return nt("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 $a(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:ya};function nt(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function wa(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function $a(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 W="colors",te="sizes",k="space",xa={gap:k,gridGap:k,columnGap:k,gridColumnGap:k,rowGap:k,gridRowGap:k,inset:k,insetBlock:k,insetBlockEnd:k,insetBlockStart:k,insetInline:k,insetInlineEnd:k,insetInlineStart:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,marginBlock:k,marginBlockEnd:k,marginBlockStart:k,marginInline:k,marginInlineEnd:k,marginInlineStart:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,paddingBlock:k,paddingBlockEnd:k,paddingBlockStart:k,paddingInline:k,paddingInlineEnd:k,paddingInlineStart:k,top:k,right:k,bottom:k,left:k,scrollMargin:k,scrollMarginTop:k,scrollMarginRight:k,scrollMarginBottom:k,scrollMarginLeft:k,scrollMarginX:k,scrollMarginY:k,scrollMarginBlock:k,scrollMarginBlockEnd:k,scrollMarginBlockStart:k,scrollMarginInline:k,scrollMarginInlineEnd:k,scrollMarginInlineStart:k,scrollPadding:k,scrollPaddingTop:k,scrollPaddingRight:k,scrollPaddingBottom:k,scrollPaddingLeft:k,scrollPaddingX:k,scrollPaddingY:k,scrollPaddingBlock:k,scrollPaddingBlockEnd:k,scrollPaddingBlockStart:k,scrollPaddingInline:k,scrollPaddingInlineEnd:k,scrollPaddingInlineStart:k,fontSize:"fontSizes",background:W,backgroundColor:W,backgroundImage:W,borderImage:W,border:W,borderBlock:W,borderBlockEnd:W,borderBlockStart:W,borderBottom:W,borderBottomColor:W,borderColor:W,borderInline:W,borderInlineEnd:W,borderInlineStart:W,borderLeft:W,borderLeftColor:W,borderRight:W,borderRightColor:W,borderTop:W,borderTopColor:W,caretColor:W,color:W,columnRuleColor:W,fill:W,outline:W,outlineColor:W,stroke:W,textDecorationColor:W,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:te,minBlockSize:te,maxBlockSize:te,inlineSize:te,minInlineSize:te,maxInlineSize:te,width:te,minWidth:te,maxWidth:te,height:te,minHeight:te,maxHeight:te,flexBasis:te,gridTemplateColumns:te,gridTemplateRows:te,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"},Ea=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,dt=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,Ea))(t);return o in e?e[o]:e[o]=n(t,...r)}},Ye=Symbol.for("sxs.internal"),vr=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Ur=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Ca}=Object.prototype,qn=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),_a=/\s+(?![^()]*\))/,rt=e=>t=>e(...typeof t=="string"?String(t).split(_a):[t]),Kr={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:rt((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:rt((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:rt((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:rt((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:rt((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:rt((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},jn=/([\d.]+)([^]*)/,Sa=(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,Oa=(e,t)=>e in Ra&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${qn(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${qn(e)}:${r}fit-content`)+i):String(t),Ra={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Re=e=>e?e+"-":"",$i=(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==="$"?Re(t)+(a.includes("$")?"":Re(n))+a.replace(/\$/g,"-"):a)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),ka=/\s*,\s*(?![^()]*\))/,Ta=Object.prototype.toString,it=(e,t,n,r,o)=>{let i,s,a;const c=(l,u,d)=>{let p,h;const m=b=>{for(p in b){const $=p.charCodeAt(0)===64,x=$&&Array.isArray(b[p])?b[p]:[b[p]];for(h of x){const w=/[A-Z]/.test(y=p)?y:y.replace(/-[^]/g,E=>E[1].toUpperCase()),C=typeof h=="object"&&h&&h.toString===Ta&&(!r.utils[w]||!u.length);if(w in r.utils&&!C){const E=r.utils[w];if(E!==s){s=E,m(E(h)),s=null;continue}}else if(w in Kr){const E=Kr[w];if(E!==a){a=E,m(E(h)),a=null;continue}}if($&&(v=p.slice(1)in r.media?"@media "+r.media[p.slice(1)]:p,p=v.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(E,_,S,M,T,P)=>{const R=jn.test(_),B=.0625*(R?-1:1),[j,I]=R?[M,_]:[_,M];return"("+(S[0]==="="?"":S[0]===">"===R?"max-":"min-")+j+":"+(S[0]!=="="&&S.length===1?I.replace(jn,(z,L,Y)=>Number(L)+B*(S===">"?1:-1)+Y):I)+(T?") and ("+(T[0]===">"?"min-":"max-")+j+":"+(T.length===1?P.replace(jn,(z,L,Y)=>Number(L)+B*(T===">"?-1:1)+Y):P):"")+")"})),C){const E=$?d.concat(p):[...d],_=$?[...u]:Sa(u,p.split(ka));i!==void 0&&o(Gr(...i)),i=void 0,c(h,_,E)}else i===void 0&&(i=[[],u,d]),p=$||p.charCodeAt(0)!==36?p:`--${Re(r.prefix)}${p.slice(1).replace(/\$/g,"-")}`,h=C?h:typeof h=="number"?h&&w in Pa?String(h)+"px":String(h):$i(Oa(w,h??""),r.prefix,r.themeMap[w]),i[0].push(`${$?`${p} `:`${qn(p)}:`}${h}`)}}var v,y};m(l),i!==void 0&&o(Gr(...i)),i=void 0};c(e,t,n)},Gr=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,Pa={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},Yr=e=>String.fromCharCode(e+(e>25?39:97)),qe=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Yr(n%52)+r;return Yr(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),_t=["themed","global","styled","onevar","resonevar","allvar","inline"],Aa=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},Da=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:a}=i;let c="";if(a.startsWith("--sxs"))return"";if(o[s-1]&&(c=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const l in t.rules)if(t.rules[l].group===i)return`--sxs{--sxs:${[...t.rules[l].cache].join(" ")}}${a}`;return i.cssRules.length?`${c}${a}`:""}return a}).join("")},r=()=>{if(t){const{rules:a,sheet:c}=t;if(!c.deleteRule){for(;Object(Object(c.cssRules)[0]).type===3;)c.cssRules.splice(0,1);c.cssRules=[]}for(const l in a)delete a[l]}const o=Object(e).styleSheets||[];for(const a of o)if(Aa(a)){for(let c=0,l=a.cssRules;l[c];++c){const u=Object(l[c]);if(u.type!==1)continue;const d=Object(l[c+1]);if(d.type!==4)continue;++c;const{cssText:p}=u;if(!p.startsWith("--sxs"))continue;const h=p.slice(14,-3).trim().split(/\s+/),m=_t[h[0]];m&&(t||(t={sheet:a,reset:r,rules:{},toString:n}),t.rules[m]={group:d,index:c,cache:new Set(h)})}if(t)break}if(!t){const a=(c,l)=>({type:l,cssRules:[],insertRule(u,d){this.cssRules.splice(d,0,a(u,{import:3,undefined:1}[(u.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return c==="@media{}"?`@media{${[].map.call(this.cssRules,u=>u.cssText).join("")}}`:c}});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=_t.length-1;a>=0;--a){const c=_t[a];if(!s[c]){const l=_t[a+1],u=s[l]?s[l].index:i.cssRules.length;i.insertRule("@media{}",u),i.insertRule(`--sxs{--sxs:${a}}`,u),s[c]={group:i.cssRules[u+1],index:u,cache:new Set([a])}}Ia(s[c])}};return r(),t},Ia=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},xt=Symbol(),Ma=dt(),qr=(e,t)=>Ma(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(ja(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),La(e,r,t)}),ja=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${Re(o.prefix)}c-${qe(r)}`,s=[],a=[],c=Object.create(null),l=[];for(const p in n)c[p]=String(n[p]);if(typeof e=="object"&&e)for(const p in e){u=c,d=p,Ca.call(u,d)||(c[p]="undefined");const h=e[p];for(const m in h){const b={[p]:String(m)};String(m)==="undefined"&&l.push(p);const v=h[m],y=[b,v,!Ur(v)];s.push(y)}}var u,d;if(typeof t=="object"&&t)for(const p of t){let{css:h,...m}=p;h=typeof h=="object"&&h||{};for(const v in m)m[v]=String(m[v]);const b=[m,h,!Ur(h)];a.push(b)}return[i,r,s,a,c,l]},La=(e,t,n)=>{const[r,o,i,s]=Na(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(d=>{function p(){for(let h=0;hp.rules[h]={apply:m=>p[xt].push([h,m])}),p})(n):null,c=(a||n).rules,l=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,u=d=>{d=typeof d=="object"&&d||Ba;const{css:p,...h}=d,m={};for(const y in i)if(delete h[y],y in d){let $=d[y];typeof $=="object"&&$?m[y]={"@initial":i[y],...$}:($=String($),m[y]=$!=="undefined"||s.has(y)?$:i[y])}else m[y]=i[y];const b=new Set([...o]);for(const[y,$,x,w]of t.composers){n.rules.styled.cache.has(y)||(n.rules.styled.cache.add(y),it($,[`.${y}`],[],e,_=>{c.styled.apply(_)}));const C=Xr(x,m,e.media),E=Xr(w,m,e.media,!0);for(const _ of C)if(_!==void 0)for(const[S,M,T]of _){const P=`${y}-${qe(M)}-${S}`;b.add(P);const R=(T?n.rules.resonevar:n.rules.onevar).cache,B=T?c.resonevar:c.onevar;R.has(P)||(R.add(P),it(M,[`.${P}`],[],e,j=>{B.apply(j)}))}for(const _ of E)if(_!==void 0)for(const[S,M]of _){const T=`${y}-${qe(M)}-${S}`;b.add(T),n.rules.allvar.cache.has(T)||(n.rules.allvar.cache.add(T),it(M,[`.${T}`],[],e,P=>{c.allvar.apply(P)}))}}if(typeof p=="object"&&p){const y=`${r}-i${qe(p)}-css`;b.add(y),n.rules.inline.cache.has(y)||(n.rules.inline.cache.add(y),it(p,[`.${y}`],[],e,$=>{c.inline.apply($)}))}for(const y of String(d.className||"").trim().split(/\s+/))y&&b.add(y);const v=h.className=[...b].join(" ");return{type:t.type,className:v,selector:l,props:h,toString:()=>v,deferredInjector:a}};return vr(u,{className:r,selector:l,[Ye]:t,toString:()=>(n.rules.styled.cache.has(r)||u(),r)})},Na=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 c in s){const l=s[c];(r[c]===void 0||l!=="undefined"||a.includes(l))&&(r[c]=l)}}return[t,n,r,new Set(o)]},Xr=(e,t,n,r)=>{const o=[];e:for(let[i,s,a]of e){if(a)continue;let c,l=0,u=!1;for(c in i){const d=i[c];let p=t[c];if(p!==d){if(typeof p!="object"||!p)continue e;{let h,m,b=0;for(const v in p){if(d===String(p[v])){if(v!=="@initial"){const y=v.slice(1);(m=m||[]).push(y in n?n[y]:v.replace(/^@media ?/,"")),u=!0}l+=b,h=!0}++b}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!h)continue e}}}(o[l]=o[l]||[]).push([r?"cv":`${c}-${i[c]}`,s,u])}return o},Ba={},za=dt(),Fa=(e,t)=>za(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=qe(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"]}it(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return vr(r,{toString:r})}),Wa=dt(),Ha=(e,t)=>Wa(e,()=>n=>{const r=`${Re(e.prefix)}k-${qe(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];it(n,[],[],e,a=>i.push(a));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return vr(o,{get name(){return o()},toString:o})}),Va=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"--"+Re(this.prefix)+Re(this.scale)+this.token}toString(){return this.computedValue}},Ua=dt(),Ka=(e,t)=>Ua(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${Re(e.prefix)}t-${qe(r)}`}`,i={},s=[];for(const c in r){i[c]={};for(const l in r[c]){const u=`--${Re(e.prefix)}${c}-${l}`,d=$i(String(r[c][l]),e.prefix,c);i[c][l]=new Va(l,d,c,e.prefix),s.push(`${u}:${d}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const c=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(c)}return n};return{...i,get className(){return a()},selector:o,toString:a}}),Ga=dt(),Ya=dt(),qa=e=>{const t=(n=>{let r=!1;const o=Ga(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",a=typeof i.media=="object"&&i.media||{},c=typeof i.root=="object"?i.root||null:globalThis.document||null,l=typeof i.theme=="object"&&i.theme||{},u={prefix:s,media:a,theme:l,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...xa},utils:typeof i.utils=="object"&&i.utils||{}},d=Da(c),p={css:qr(u,d),globalCss:Fa(u,d),keyframes:Ha(u,d),createTheme:Ka(u,d),reset(){d.reset(),p.theme.toString()},theme:{},sheet:d,config:u,prefix:s,getCssText:d.toString,toString:d.toString};return String(p.theme=p.createTheme(l)),p});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>Ya(n,()=>{const o=qr(n,r);return(...i)=>{const s=o(...i),a=s[Ye].type,c=g.forwardRef((l,u)=>{const d=l&&l.as||a,{props:p,deferredInjector:h}=s(l);return delete p.as,p.ref=u,h?g.createElement(g.Fragment,null,g.createElement(d,p),g.createElement(h,null)):g.createElement(d,p)});return c.className=s.className,c.displayName=`Styled.${a.displayName||a.name||a}`,c.selector=s.selector,c.toString=()=>s.selector,c[Ye]=s[Ye],c}}))(t),t};function Xa(e,t,n){return Math.max(t,Math.min(e,n))}const Q={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 Jr(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Zr(e,t,n,r=.15){return r===0?Xa(e,t,n):en?+Jr(e-n,n-t,r)+n:e}function Ja(e,[t,n],[r,o]){const[[i,s],[a,c]]=e;return[Zr(t,i,s,r),Zr(n,a,c,o)]}function Za(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 Qa(e){var t=Za(e,"string");return typeof t=="symbol"?t:String(t)}function se(e,t,n){return t=Qa(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qr(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 K(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 ac(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Ci(e){return wn(e)?ac(e)[0]:e}function cc(e){return sc(e).map(t=>t.identifier)}function Ln(e){const t=Ci(e);return wn(e)?t.identifier:t.pointerId}function to(e){const t=Ci(e);return[t.clientX,t.clientY]}function lc(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 on(e,...t){return typeof e=="function"?e(...t):e}function uc(){}function fc(...e){return e.length===0?uc:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function no(e,t){return Object.assign({},t,e||{})}const dc=32;class pc{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?on(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,lc(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 E=n._delta.map(Math.abs);Q.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[c,l]=r.threshold,{_step:u,values:d}=n;if(r.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=c&&d[0]),u[1]===!1&&(u[1]=Math.abs(a)>=l&&d[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=c&&Math.sign(s)*c),u[1]===!1&&(u[1]=Math.abs(a)>=l&&Math.sign(a)*l)),n.intentional=u[0]!==!1||u[1]!==!1,!n.intentional)return;const p=[0,0];if(r.hasCustomTransform){const[E,_]=d;p[0]=u[0]!==!1?E-u[0]:0,p[1]=u[1]!==!1?_-u[1]:0}else p[0]=u[0]!==!1?s-u[0]:0,p[1]=u[1]!==!1?a-u[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(p);const h=n.offset,m=n._active&&!n._blocked||n.active;m&&(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=on(r.bounds,n)),this.setup&&this.setup()),n.movement=p,this.computeOffset()));const[b,v]=n.offset,[[y,$],[x,w]]=n._bounds;n.overflow=[b$?1:0,vw?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 C=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=Ja(n._bounds,n.offset,C),n.delta=Q.sub(n.offset,h),this.computeMovement(),m&&(!n.last||i>dc)){n.delta=Q.sub(n.offset,h);const E=n.delta.map(Math.abs);Q.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[E[0]/i,E[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(K(K(K({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function hc([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 gc extends pc{constructor(...t){super(...t),se(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=Q.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Q.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[Ei(t)]:r.axisThreshold;n.axis=hc(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 mc=e=>e,ro=.15,_i={enabled(e=!0){return e},eventOptions(e,t,n){return K(K({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[ro,ro];case!1:return[0,0];default:return Q.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Q.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||mc},threshold(e){return Q.toVector(e,0)}},bc=0,Mt=K(K({},_i),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=bc){return e},bounds(e={}){if(typeof e=="function")return i=>Mt.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]]}}),oo={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 vc extends gc{constructor(...t){super(...t),se(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=Mt.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=Ln(t),r._pointerActive=!0,this.computeValues(to(t)),this.computeInitial(),n.preventScrollAxis&&Ei(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=Ln(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=to(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=Q.sub(i,n._values),this.computeValues(i)),Q.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=Ln(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,c]=n._delta,[l,u]=n._movement,[d,p]=r.swipe.velocity,[h,m]=r.swipe.distance,b=r.swipe.duration;if(n.elapsedTimed&&Math.abs(l)>h&&(n.swipe[0]=Math.sign(a)),y>p&&Math.abs(u)>m&&(n.swipe[1]=Math.sign(c))}}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,yc(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=oo[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,Q.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in oo&&(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 yc(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const jt=typeof window<"u"&&window.document&&window.document.createElement;function Si(){return jt&&"ontouchstart"in window}function wc(){return Si()||jt&&window.navigator.maxTouchPoints>1}function $c(){return jt&&"onpointerdown"in window}function xc(){return jt&&"exitPointerLock"in window.document}function Ec(){try{return"constructor"in GestureEvent}catch{return!1}}const fe={isBrowser:jt,gesture:Ec(),touch:Si(),touchscreen:wc(),pointer:$c(),pointerLock:xc()},Cc=250,_c=180,Sc=.5,Oc=50,Rc=250,kc=10,io={mouse:0,touch:0,pen:8},Tc=K(K({},Mt),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&fe.pointerLock,fe.touch&&n?"touch":this.pointerLock?"mouse":fe.pointer&&!o?"pointer":fe.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Cc:void 0,!(!fe.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=Q.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=Sc,distance:t=Oc,duration:n=Rc}={}){return{velocity:this.transform(Q.toVector(e)),distance:this.transform(Q.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return _c;case!1:return 0;default:return e}},axisThreshold(e){return e?K(K({},io),e):io},keyboardDisplacement(e=kc){return e}});K(K({},_i),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!fe.touch&&fe.gesture)return"gesture";if(fe.touch&&r)return"touch";if(fe.touchscreen){if(fe.pointer)return"pointer";if(fe.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=no(on(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=no(on(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",Q.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});K(K({},Mt),{},{mouseOnly:(e=!0)=>e});K(K({},Mt),{},{mouseOnly:(e=!0)=>e});const Oi=new Map,Xn=new Map;function Pc(e){Oi.set(e.key,e.engine),Xn.set(e.key,e.resolver)}const Ac={key:"drag",engine:vc,resolver:Tc};function Dc(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 Ic(e,t){if(e==null)return{};var n=Dc(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 Mc={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=fe.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},jc=["target","eventOptions","window","enabled","transform"];function tn(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]=tn(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function Lc(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:c}=r,l=Ic(r,jc);if(n.shared=tn({target:o,eventOptions:i,window:s,enabled:a,transform:c},Mc),t){const u=Xn.get(t);n[t]=tn(K({shared:n.shared},l),u)}else for(const u in l){const d=Xn.get(u);d&&(n[u]=tn(K({shared:n.shared},l[u]),d))}return n}class Ri{constructor(t,n){se(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=ic(n,r),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},l=K(K({},c),i);t.addEventListener(a,o,l);const u=()=>{t.removeEventListener(a,o,l),s.delete(u)};return s.add(u),u}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class Nc{constructor(){se(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 Bc{constructor(t){se(this,"gestures",new Set),se(this,"_targetEventStore",new Ri(this)),se(this,"gestureEventStores",{}),se(this,"gestureTimeoutStores",{}),se(this,"handlers",{}),se(this,"config",{}),se(this,"pointerIds",new Set),se(this,"touchIds",new Set),se(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),zc(this,t)}setEventIds(t){if(wn(t))return this.touchIds=new Set(cc(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=Lc(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],c=so(r,a.eventOptions,!!o);if(a.enabled){const l=Oi.get(s);new l(this,t,s).bind(c)}}const i=so(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](K(K({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=fc(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:c}=oc(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:c})}}}}function ot(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Ri(e,t),e.gestureTimeoutStores[t]=new Nc}function zc(e,t){t.drag&&ot(e,"drag"),t.wheel&&ot(e,"wheel"),t.scroll&&ot(e,"scroll"),t.move&&ot(e,"move"),t.pinch&&ot(e,"pinch"),t.hover&&ot(e,"hover")}const so=(e,t,n)=>(r,o,i,s={},a=!1)=>{var c,l;const u=(c=s.capture)!==null&&c!==void 0?c:t.capture,d=(l=s.passive)!==null&&l!==void 0?l:t.passive;let p=a?r:nc(r,o,u);n&&d&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function Fc(e,t={},n,r){const o=g.useMemo(()=>new Bc(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),g.useEffect(o.effect.bind(o)),g.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function Wc(e,t){return Pc(Ac),Fc({drag:e},t||{},"drag")}function _e(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 ki(e,t=[]){let n=[];function r(i,s){const a=f.createContext(s),c=n.length;n=[...n,s];function l(d){const{scope:p,children:h,...m}=d,b=(p==null?void 0:p[e][c])||a,v=f.useMemo(()=>m,Object.values(m));return f.createElement(b.Provider,{value:v},h)}function u(d,p){const h=(p==null?void 0:p[e][c])||a,m=f.useContext(h);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const o=()=>{const i=n.map(s=>f.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Hc(o,...t)]}function Hc(...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:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function pt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Vc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Jn="dismissableLayer.update",Uc="dismissableLayer.pointerDownOutside",Kc="dismissableLayer.focusOutside";let ao;const Gc=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yc=f.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=f.useContext(Gc),[d,p]=f.useState(null),h=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=f.useState({}),b=ft(t,S=>p(S)),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),$=v.indexOf(y),x=d?v.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=$,E=qc(S=>{const M=S.target,T=[...u.branches].some(P=>P.contains(M));!C||T||(i==null||i(S),a==null||a(S),S.defaultPrevented||c==null||c())},h),_=Xc(S=>{const M=S.target;[...u.branches].some(P=>P.contains(M))||(s==null||s(S),a==null||a(S),S.defaultPrevented||c==null||c())},h);return Vc(S=>{x===u.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&c&&(S.preventDefault(),c()))},h),f.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ao=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),co(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ao)}},[d,h,r,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),co())},[d,u]),f.useEffect(()=>{const S=()=>m({});return document.addEventListener(Jn,S),()=>document.removeEventListener(Jn,S)},[]),f.createElement(Ze.div,Z({},l,{ref:b,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:_e(e.onFocusCapture,_.onFocusCapture),onBlurCapture:_e(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:_e(e.onPointerDownCapture,E.onPointerDownCapture)}))});function qc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Ti(Uc,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}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 Xc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ti(Kc,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 co(){const e=new CustomEvent(Jn);document.dispatchEvent(e)}function Ti(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?ga(o,i):o.dispatchEvent(i)}const ct=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Jc=ia.useId||(()=>{});let Zc=0;function Qc(e){const[t,n]=f.useState(Jc());return ct(()=>{e||n(r=>r??String(Zc++))},[e]),e||(t?`radix-${t}`:"")}const el=["top","right","bottom","left"],Le=Math.min,le=Math.max,sn=Math.round,qt=Math.floor,Ne=e=>({x:e,y:e}),tl={left:"right",right:"left",bottom:"top",top:"bottom"},nl={start:"end",end:"start"};function Zn(e,t,n){return le(e,Le(t,n))}function ke(e,t){return typeof e=="function"?e(t):e}function Te(e){return e.split("-")[0]}function ht(e){return e.split("-")[1]}function yr(e){return e==="x"?"y":"x"}function wr(e){return e==="y"?"height":"width"}function gt(e){return["top","bottom"].includes(Te(e))?"y":"x"}function $r(e){return yr(gt(e))}function rl(e,t,n){n===void 0&&(n=!1);const r=ht(e),o=$r(e),i=wr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=an(s)),[s,an(s)]}function ol(e){const t=an(e);return[Qn(e),t,Qn(t)]}function Qn(e){return e.replace(/start|end/g,t=>nl[t])}function il(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 sl(e,t,n,r){const o=ht(e);let i=il(Te(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Qn)))),i}function an(e){return e.replace(/left|right|bottom|top/g,t=>tl[t])}function al(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pi(e){return typeof e!="number"?al(e):{top:e,right:e,bottom:e,left:e}}function cn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function lo(e,t,n){let{reference:r,floating:o}=e;const i=gt(t),s=$r(t),a=wr(s),c=Te(t),l=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let h;switch(c){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(ht(t)){case"start":h[s]-=p*(n&&l?-1:1);break;case"end":h[s]+=p*(n&&l?-1:1);break}return h}const cl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=lo(l,r,c),p=r,h={},m=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=ke(e,t)||{};if(l==null)return{};const d=Pi(u),p={x:n,y:r},h=$r(o),m=wr(h),b=await s.getDimensions(l),v=h==="y",y=v?"top":"left",$=v?"bottom":"right",x=v?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[h]-p[h]-i.floating[m],C=p[h]-i.reference[h],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let _=E?E[x]:0;(!_||!await(s.isElement==null?void 0:s.isElement(E)))&&(_=a.floating[x]||i.floating[m]);const S=w/2-C/2,M=_/2-b[m]/2-1,T=Le(d[y],M),P=Le(d[$],M),R=T,B=_-b[m]-P,j=_/2-b[m]/2+S,I=Zn(R,j,B),z=!c.arrow&&ht(o)!=null&&j!==I&&i.reference[m]/2-(jR<=0)){var M,T;const R=(((M=i.flip)==null?void 0:M.index)||0)+1,B=C[R];if(B)return{data:{index:R,overflows:S},reset:{placement:B}};let j=(T=S.filter(I=>I.overflows[0]<=0).sort((I,z)=>I.overflows[1]-z.overflows[1])[0])==null?void 0:T.placement;if(!j)switch(h){case"bestFit":{var P;const I=(P=S.map(z=>[z.placement,z.overflows.filter(L=>L>0).reduce((L,Y)=>L+Y,0)]).sort((z,L)=>z[1]-L[1])[0])==null?void 0:P[0];I&&(j=I);break}case"initialPlacement":j=a;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function uo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fo(e){return el.some(t=>e[t]>=0)}const fl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ke(e,t);switch(r){case"referenceHidden":{const i=await Pt(t,{...o,elementContext:"reference"}),s=uo(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fo(s)}}}case"escaped":{const i=await Pt(t,{...o,altBoundary:!0}),s=uo(i,n.floating);return{data:{escapedOffsets:s,escaped:fo(s)}}}default:return{}}}}};async function dl(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Te(n),a=ht(n),c=gt(n)==="y",l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=ke(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),c?{x:h*u,y:p*l}:{x:p*l,y:h*u}}const pl=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,c=await dl(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},hl=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:v=>{let{x:y,y:$}=v;return{x:y,y:$}}},...c}=ke(e,t),l={x:n,y:r},u=await Pt(t,c),d=gt(Te(o)),p=yr(d);let h=l[p],m=l[d];if(i){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",$=h+u[v],x=h-u[y];h=Zn($,h,x)}if(s){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",$=m+u[v],x=m-u[y];m=Zn($,m,x)}const b=a.fn({...t,[p]:h,[d]:m});return{...b,data:{x:b.x-n,y:b.y-r}}}}},gl=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:c=!0,crossAxis:l=!0}=ke(e,t),u={x:n,y:r},d=gt(o),p=yr(d);let h=u[p],m=u[d];const b=ke(a,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const x=p==="y"?"height":"width",w=i.reference[p]-i.floating[x]+v.mainAxis,C=i.reference[p]+i.reference[x]-v.mainAxis;hC&&(h=C)}if(l){var y,$;const x=p==="y"?"width":"height",w=["top","left"].includes(Te(o)),C=i.reference[d]-i.floating[x]+(w&&((y=s.offset)==null?void 0:y[d])||0)+(w?0:v.crossAxis),E=i.reference[d]+i.reference[x]+(w?0:(($=s.offset)==null?void 0:$[d])||0)-(w?v.crossAxis:0);mE&&(m=E)}return{[p]:h,[d]:m}}}},ml=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}=ke(e,t),c=await Pt(t,a),l=Te(n),u=ht(n),d=gt(n)==="y",{width:p,height:h}=r.floating;let m,b;l==="top"||l==="bottom"?(m=l,b=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(b=l,m=u==="end"?"top":"bottom");const v=h-c[m],y=p-c[b],$=!t.middlewareData.shift;let x=v,w=y;if(d){const E=p-c.left-c.right;w=u||$?Le(y,E):E}else{const E=h-c.top-c.bottom;x=u||$?Le(v,E):E}if($&&!u){const E=le(c.left,0),_=le(c.right,0),S=le(c.top,0),M=le(c.bottom,0);d?w=p-2*(E!==0||_!==0?E+_:le(c.left,c.right)):x=h-2*(S!==0||M!==0?S+M:le(c.top,c.bottom))}await s({...t,availableWidth:w,availableHeight:x});const C=await o.getDimensions(i.floating);return p!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}};function Be(e){return Ai(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ae(e){var t;return(t=(Ai(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ai(e){return e instanceof Node||e instanceof ue(e).Node}function Pe(e){return e instanceof Element||e instanceof ue(e).Element}function xe(e){return e instanceof HTMLElement||e instanceof ue(e).HTMLElement}function po(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function Lt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function bl(e){return["table","td","th"].includes(Be(e))}function xr(e){const t=Er(),n=pe(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 vl(e){let t=lt(e);for(;xe(t)&&!$n(t);){if(xr(t))return t;t=lt(t)}return null}function Er(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $n(e){return["html","body","#document"].includes(Be(e))}function pe(e){return ue(e).getComputedStyle(e)}function xn(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(e){if(Be(e)==="html")return e;const t=e.assignedSlot||e.parentNode||po(e)&&e.host||Ae(e);return po(t)?t.host:t}function Di(e){const t=lt(e);return $n(t)?e.ownerDocument?e.ownerDocument.body:e.body:xe(t)&&Lt(t)?t:Di(t)}function At(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Di(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ue(o);return i?t.concat(s,s.visualViewport||[],Lt(o)?o:[],s.frameElement&&n?At(s.frameElement):[]):t.concat(o,At(o,[],n))}function Ii(e){const t=pe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xe(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=sn(n)!==i||sn(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Cr(e){return Pe(e)?e:e.contextElement}function at(e){const t=Cr(e);if(!xe(t))return Ne(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ii(t);let s=(i?sn(n.width):n.width)/r,a=(i?sn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const yl=Ne(0);function Mi(e){const t=ue(e);return!Er()||!t.visualViewport?yl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function Xe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Cr(e);let s=Ne(1);t&&(r?Pe(r)&&(s=at(r)):s=at(e));const a=wl(i,n,r)?Mi(i):Ne(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const p=ue(i),h=r&&Pe(r)?ue(r):r;let m=p,b=m.frameElement;for(;b&&r&&h!==m;){const v=at(b),y=b.getBoundingClientRect(),$=pe(b),x=y.left+(b.clientLeft+parseFloat($.paddingLeft))*v.x,w=y.top+(b.clientTop+parseFloat($.paddingTop))*v.y;c*=v.x,l*=v.y,u*=v.x,d*=v.y,c+=x,l+=w,m=ue(b),b=m.frameElement}}return cn({width:u,height:d,x:c,y:l})}const $l=[":popover-open",":modal"];function ji(e){return $l.some(t=>{try{return e.matches(t)}catch{return!1}})}function xl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ae(r),a=t?ji(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Ne(1);const u=Ne(0),d=xe(r);if((d||!d&&!i)&&((Be(r)!=="body"||Lt(s))&&(c=xn(r)),xe(r))){const p=Xe(r);l=at(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function El(e){return Array.from(e.getClientRects())}function Li(e){return Xe(Ae(e)).left+xn(e).scrollLeft}function Cl(e){const t=Ae(e),n=xn(e),r=e.ownerDocument.body,o=le(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=le(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Li(e);const a=-n.scrollTop;return pe(r).direction==="rtl"&&(s+=le(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function _l(e,t){const n=ue(e),r=Ae(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const l=Er();(!l||l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}function Sl(e,t){const n=Xe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=xe(e)?at(e):Ne(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function ho(e,t,n){let r;if(t==="viewport")r=_l(e,n);else if(t==="document")r=Cl(Ae(e));else if(Pe(t))r=Sl(t,n);else{const o=Mi(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return cn(r)}function Ni(e,t){const n=lt(e);return n===t||!Pe(n)||$n(n)?!1:pe(n).position==="fixed"||Ni(n,t)}function Ol(e,t){const n=t.get(e);if(n)return n;let r=At(e,[],!1).filter(a=>Pe(a)&&Be(a)!=="body"),o=null;const i=pe(e).position==="fixed";let s=i?lt(e):e;for(;Pe(s)&&!$n(s);){const a=pe(s),c=xr(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Lt(s)&&!c&&Ni(e,s))?r=r.filter(u=>u!==s):o=a,s=lt(s)}return t.set(e,r),r}function Rl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ol(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,u)=>{const d=ho(t,u,o);return l.top=le(d.top,l.top),l.right=Le(d.right,l.right),l.bottom=Le(d.bottom,l.bottom),l.left=le(d.left,l.left),l},ho(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function kl(e){const{width:t,height:n}=Ii(e);return{width:t,height:n}}function Tl(e,t,n){const r=xe(t),o=Ae(t),i=n==="fixed",s=Xe(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Ne(0);if(r||!r&&!i)if((Be(t)!=="body"||Lt(o))&&(a=xn(t)),r){const d=Xe(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else o&&(c.x=Li(o));const l=s.left+a.scrollLeft-c.x,u=s.top+a.scrollTop-c.y;return{x:l,y:u,width:s.width,height:s.height}}function go(e,t){return!xe(e)||pe(e).position==="fixed"?null:t?t(e):e.offsetParent}function Bi(e,t){const n=ue(e);if(!xe(e)||ji(e))return n;let r=go(e,t);for(;r&&bl(r)&&pe(r).position==="static";)r=go(r,t);return r&&(Be(r)==="html"||Be(r)==="body"&&pe(r).position==="static"&&!xr(r))?n:r||vl(e)||n}const Pl=async function(e){const t=this.getOffsetParent||Bi,n=this.getDimensions;return{reference:Tl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function Al(e){return pe(e).direction==="rtl"}const Dl={convertOffsetParentRelativeRectToViewportRelativeRect:xl,getDocumentElement:Ae,getClippingRect:Rl,getOffsetParent:Bi,getElementRects:Pl,getClientRects:El,getDimensions:kl,getScale:at,isElement:Pe,isRTL:Al};function Il(e,t){let n=null,r;const o=Ae(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const h=qt(u),m=qt(o.clientWidth-(l+d)),b=qt(o.clientHeight-(u+p)),v=qt(l),$={rootMargin:-h+"px "+-m+"px "+-b+"px "+-v+"px",threshold:le(0,Le(1,c))||1};let x=!0;function w(C){const E=C[0].intersectionRatio;if(E!==c){if(!x)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(w,{...$,root:o.ownerDocument})}catch{n=new IntersectionObserver(w,$)}n.observe(e)}return s(!0),i}function Ml(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:c=!1}=r,l=Cr(e),u=o||i?[...l?At(l):[],...At(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=l&&a?Il(l,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(y=>{let[$]=y;$&&$.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let m,b=c?Xe(e):null;c&&v();function v(){const y=Xe(e);b&&(y.x!==b.x||y.y!==b.y||y.width!==b.width||y.height!==b.height)&&n(),b=y,m=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach($=>{o&&$.removeEventListener("scroll",n),i&&$.removeEventListener("resize",n)}),d==null||d(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const jl=hl,Ll=ul,Nl=ml,Bl=fl,mo=ll,zl=gl,Fl=(e,t,n)=>{const r=new Map,o={platform:Dl,...n},i={...o.platform,_c:r};return cl(e,t,{...o,platform:i})},Wl=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?mo({element:r.current,padding:o}).fn(n):{}:r?mo({element:r,padding:o}).fn(n):{}}}};var nn=typeof document<"u"?f.useLayoutEffect:f.useEffect;function ln(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(!ln(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)&&!ln(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function zi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bo(e,t){const n=zi(e);return Math.round(t*n)/n}function vo(e){const t=f.useRef(e);return nn(()=>{t.current=e}),t}function Hl(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:c,open:l}=e,[u,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=f.useState(r);ln(p,r)||h(r);const[m,b]=f.useState(null),[v,y]=f.useState(null),$=f.useCallback(L=>{L!==E.current&&(E.current=L,b(L))},[]),x=f.useCallback(L=>{L!==_.current&&(_.current=L,y(L))},[]),w=i||m,C=s||v,E=f.useRef(null),_=f.useRef(null),S=f.useRef(u),M=c!=null,T=vo(c),P=vo(o),R=f.useCallback(()=>{if(!E.current||!_.current)return;const L={placement:t,strategy:n,middleware:p};P.current&&(L.platform=P.current),Fl(E.current,_.current,L).then(Y=>{const q={...Y,isPositioned:!0};B.current&&!ln(S.current,q)&&(S.current=q,mr.flushSync(()=>{d(q)}))})},[p,t,n,P]);nn(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,d(L=>({...L,isPositioned:!1})))},[l]);const B=f.useRef(!1);nn(()=>(B.current=!0,()=>{B.current=!1}),[]),nn(()=>{if(w&&(E.current=w),C&&(_.current=C),w&&C){if(T.current)return T.current(w,C,R);R()}},[w,C,R,T,M]);const j=f.useMemo(()=>({reference:E,floating:_,setReference:$,setFloating:x}),[$,x]),I=f.useMemo(()=>({reference:w,floating:C}),[w,C]),z=f.useMemo(()=>{const L={position:n,left:0,top:0};if(!I.floating)return L;const Y=bo(I.floating,u.x),q=bo(I.floating,u.y);return a?{...L,transform:"translate("+Y+"px, "+q+"px)",...zi(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:q}},[n,a,I.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:R,refs:j,elements:I,floatingStyles:z}),[u,R,j,I,z])}const Vl=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return f.createElement(Ze.svg,Z({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:f.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Ul=Vl;function Kl(e){const[t,n]=f.useState(void 0);return ct(()=>{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 c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.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 Fi="Popper",[Wi,Hi]=ki(Fi),[Gl,Vi]=Wi(Fi),Yl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return f.createElement(Gl,{scope:t,anchor:r,onAnchorChange:o},n)},ql="PopperAnchor",Xl=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Vi(ql,n),s=f.useRef(null),a=ft(t,s);return f.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:f.createElement(Ze.div,Z({},o,{ref:a}))}),Ui="PopperContent",[Jl,Zl]=Wi(Ui),Ql=f.forwardRef((e,t)=>{var n,r,o,i,s,a,c,l;const{__scopePopper:u,side:d="bottom",sideOffset:p=0,align:h="center",alignOffset:m=0,arrowPadding:b=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:$=0,sticky:x="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:E,..._}=e,S=Vi(Ui,u),[M,T]=f.useState(null),P=ft(t,ye=>T(ye)),[R,B]=f.useState(null),j=Kl(R),I=(n=j==null?void 0:j.width)!==null&&n!==void 0?n:0,z=(r=j==null?void 0:j.height)!==null&&r!==void 0?r:0,L=d+(h!=="center"?"-"+h:""),Y=typeof $=="number"?$:{top:0,right:0,bottom:0,left:0,...$},q=Array.isArray(y)?y:[y],Ee=q.length>0,oe={padding:Y,boundary:q.filter(ru),altBoundary:Ee},{refs:Ft,floatingStyles:yt,placement:Wt,isPositioned:Fe,middlewareData:me}=Hl({strategy:"fixed",placement:L,whileElementsMounted:(...ye)=>Ml(...ye,{animationFrame:C==="always"}),elements:{reference:S.anchor},middleware:[pl({mainAxis:p+z,alignmentAxis:m}),v&&jl({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?zl():void 0,...oe}),v&&Ll({...oe}),Nl({...oe,apply:({elements:ye,rects:Ve,availableWidth:Sn,availableHeight:On})=>{const{width:Rn,height:Kt}=Ve.reference,Ue=ye.floating.style;Ue.setProperty("--radix-popper-available-width",`${Sn}px`),Ue.setProperty("--radix-popper-available-height",`${On}px`),Ue.setProperty("--radix-popper-anchor-width",`${Rn}px`),Ue.setProperty("--radix-popper-anchor-height",`${Kt}px`)}}),R&&Wl({element:R,padding:b}),ou({arrowWidth:I,arrowHeight:z}),w&&Bl({strategy:"referenceHidden",...oe})]}),[We,Ie]=Ki(Wt),He=pt(E);ct(()=>{Fe&&(He==null||He())},[Fe,He]);const Ht=(o=me.arrow)===null||o===void 0?void 0:o.x,Vt=(i=me.arrow)===null||i===void 0?void 0:i.y,Ut=((s=me.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Me,wt]=f.useState();return ct(()=>{M&&wt(window.getComputedStyle(M).zIndex)},[M]),f.createElement("div",{ref:Ft.setFloating,"data-radix-popper-content-wrapper":"",style:{...yt,transform:Fe?yt.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Me,"--radix-popper-transform-origin":[(a=me.transformOrigin)===null||a===void 0?void 0:a.x,(c=me.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},f.createElement(Jl,{scope:u,placedSide:We,onArrowChange:B,arrowX:Ht,arrowY:Vt,shouldHideArrow:Ut},f.createElement(Ze.div,Z({"data-side":We,"data-align":Ie},_,{ref:P,style:{..._.style,animation:Fe?void 0:"none",opacity:(l=me.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),eu="PopperArrow",tu={top:"bottom",right:"left",bottom:"top",left:"right"},nu=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Zl(eu,r),s=tu[i.placedSide];return f.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}},f.createElement(Ul,Z({},o,{ref:n,style:{...o.style,display:"block"}})))});function ru(e){return e!==null}const ou=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:c,middlewareData:l}=t,d=((n=l.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[m,b]=Ki(a),v={start:"0%",center:"50%",end:"100%"}[b],y=((r=(o=l.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,$=((i=(s=l.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+h/2;let x="",w="";return m==="bottom"?(x=d?v:`${y}px`,w=`${-h}px`):m==="top"?(x=d?v:`${y}px`,w=`${c.floating.height+h}px`):m==="right"?(x=`${-h}px`,w=d?v:`${$}px`):m==="left"&&(x=`${c.floating.width+h}px`,w=d?v:`${$}px`),{data:{x,y:w}}}});function Ki(e){const[t,n="center"]=e.split("-");return[t,n]}const iu=Yl,su=Xl,au=Ql,cu=nu;function lu(e,t){return f.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Gi=e=>{const{present:t,children:n}=e,r=uu(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=ft(r.ref,o.ref);return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};Gi.displayName="Presence";function uu(e){const[t,n]=f.useState(),r=f.useRef({}),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=lu(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Xt(r.current);i.current=a==="mounted"?l:"none"},[a]),ct(()=>{const l=r.current,u=o.current;if(u!==e){const p=i.current,h=Xt(l);e?c("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ct(()=>{if(t){const l=d=>{const h=Xt(r.current).includes(d.animationName);d.target===t&&h&&mr.flushSync(()=>c("ANIMATION_END"))},u=d=>{d.target===t&&(i.current=Xt(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Xt(e){return(e==null?void 0:e.animationName)||"none"}function fu({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=du({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=pt(n),c=f.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else o(l)},[i,e,o,a]);return[s,c]}function du({defaultProp:e,onChange:t}){const n=f.useState(e),[r]=n,o=f.useRef(r),i=pt(t);return f.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const pu=f.forwardRef((e,t)=>f.createElement(Ze.span,Z({},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}}))),hu=pu,[En,lm]=ki("Tooltip",[Hi]),Cn=Hi(),gu="TooltipProvider",er="tooltip.open",[um,_r]=En(gu),Sr="Tooltip",[mu,_n]=En(Sr),bu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=_r(Sr,e.__scopeTooltip),l=Cn(t),[u,d]=f.useState(null),p=Qc(),h=f.useRef(0),m=s??c.disableHoverableContent,b=a??c.delayDuration,v=f.useRef(!1),[y=!1,$]=fu({prop:r,defaultProp:o,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent(er))):c.onClose(),i==null||i(_)}}),x=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),w=f.useCallback(()=>{window.clearTimeout(h.current),v.current=!1,$(!0)},[$]),C=f.useCallback(()=>{window.clearTimeout(h.current),$(!1)},[$]),E=f.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,$(!0)},b)},[b,$]);return f.useEffect(()=>()=>window.clearTimeout(h.current),[]),f.createElement(iu,l,f.createElement(mu,{scope:t,contentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayed?E():w()},[c.isOpenDelayed,E,w]),onTriggerLeave:f.useCallback(()=>{m?C():window.clearTimeout(h.current)},[C,m]),onOpen:w,onClose:C,disableHoverableContent:m},n))},yo="TooltipTrigger",vu=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=_n(yo,n),i=_r(yo,n),s=Cn(n),a=f.useRef(null),c=ft(t,a,o.onTriggerChange),l=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.createElement(su,Z({asChild:!0},s),f.createElement(Ze.button,Z({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:c,onPointerMove:_e(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:_e(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:_e(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:_e(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:_e(e.onBlur,o.onClose),onClick:_e(e.onClick,o.onClose)})))}),yu="TooltipPortal",[fm,wu]=En(yu,{forceMount:void 0}),Dt="TooltipContent",$u=f.forwardRef((e,t)=>{const n=wu(Dt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=_n(Dt,e.__scopeTooltip);return f.createElement(Gi,{present:r||s.open},s.disableHoverableContent?f.createElement(Yi,Z({side:o},i,{ref:t})):f.createElement(xu,Z({side:o},i,{ref:t})))}),xu=f.forwardRef((e,t)=>{const n=_n(Dt,e.__scopeTooltip),r=_r(Dt,e.__scopeTooltip),o=f.useRef(null),i=ft(t,o),[s,a]=f.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:d}=r,p=f.useCallback(()=>{a(null),d(!1)},[d]),h=f.useCallback((m,b)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},$=Ou(y,v.getBoundingClientRect()),x=Ru(y,$),w=ku(b.getBoundingClientRect()),C=Pu([...x,...w]);a(C),d(!0)},[d]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(c&&u){const m=v=>h(v,u),b=v=>h(v,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",b)}}},[c,u,h,p]),f.useEffect(()=>{if(s){const m=b=>{const v=b.target,y={x:b.clientX,y:b.clientY},$=(c==null?void 0:c.contains(v))||(u==null?void 0:u.contains(v)),x=!Tu(y,s);$?p():x&&(p(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,s,l,p]),f.createElement(Yi,Z({},e,{ref:i}))}),[Eu,Cu]=En(Sr,{isInside:!1}),Yi=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=_n(Dt,n),l=Cn(n),{onClose:u}=c;return f.useEffect(()=>(document.addEventListener(er,u),()=>document.removeEventListener(er,u)),[u]),f.useEffect(()=>{if(c.trigger){const d=p=>{const h=p.target;h!=null&&h.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),f.createElement(Yc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},f.createElement(au,Z({"data-state":c.stateAttribute},l,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)"}}),f.createElement(mi,null,r),f.createElement(Eu,{scope:n,isInside:!0},f.createElement(hu,{id:c.contentId,role:"tooltip"},o||r))))}),_u="TooltipArrow",Su=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Cn(n);return Cu(_u,n).isInside?null:f.createElement(cu,Z({},o,r,{ref:t}))});function Ou(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 Ru(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 ku(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 Tu(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=u>r&&n<(l-a)*(r-c)/(u-c)+a&&(o=!o)}return o}function Pu(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),Au(t)}function Au(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 Du=bu,Iu=vu,Mu=$u,ju=Su;function Lu(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 F(e,t){if(e==null)return{};var n=Lu(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 U;(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"})(U||(U={}));const Nu={[U.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[U.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[U.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[U.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.`],[U.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[U.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[U.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[U.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[U.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[U.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[U.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function qi(e,t,...n){const[r,...o]=Nu[t](...n);console[e]("LEVA: "+r,...o)}const Se=qi.bind(null,"warn"),Bu=qi.bind(null,"log"),zu=["value"],Fu=["schema"],Wu=["value"],Xi=[],Je={};function wo(e){let{value:t}=e,n=F(e,zu);for(let r of Xi){const o=r(t,n);if(o)return o}}function De(e,t){let{schema:n}=t,r=F(t,Fu);if(e in Je){Se(U.ALREADY_REGISTERED_TYPE,e);return}Xi.push((o,i)=>n(o,i)&&e),Je[e]=r}function Nn(e,t,n,r){const{normalize:o}=Je[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=F(t,Wu);return{value:i,settings:s}}function Hu(e,t,n,r,o,i){const{sanitize:s}=Je[e];return s?s(t,n,r,o,i):t}function $o(e,t,n){const{format:r}=Je[e];return r?r(t,n):t}function Vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xo(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 A(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=je(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},Ku=Math.log(10);function Eo(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)/Ku)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const un=(e,t,n)=>n===t?0:(ze(e,t,n)-t)/(n-t),fn=(e,t,n)=>e*(n-t)+t,Gu=()=>"_"+Math.random().toString(36).substr(2,9),Co=/\(([0-9+\-*/^ .]+)\)/,_o=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,So=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Oo=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Ro=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,ko=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function je(e){if(isNaN(Number(e)))if(Co.test(e)){const t=e.replace(Co,(n,r)=>String(je(r)));return je(t)}else if(_o.test(e)){const t=e.replace(_o,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return je(t)}else if(So.test(e)){const t=e.replace(So,(n,r,o)=>String(Number(r)*Number(o)));return je(t)}else if(Oo.test(e)){const t=e.replace(Oo,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return je(t)}else if(Ro.test(e)){const t=e.replace(Ro,(n,r,o)=>String(Number(r)+Number(o)));return je(t)}else if(ko.test(e)){const t=e.replace(ko,(n,r,o)=>String(Number(r)-Number(o)));return je(t)}else return Number(e);return Number(e)}function Yu(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function qu(e,t){const n=A({},e);return t.forEach(r=>r in e&&delete n[r]),n}function Xu(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function Ji(e){return Object.prototype.toString.call(e)==="[object Object]"}const Ju=e=>Ji(e)&&Object.keys(e).length===0;let ce;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(ce||(ce={}));let he;(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"})(he||(he={}));const Zu=["type","__customInput"],Qu=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],ef=["type"];function Zi(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:A({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:C,__customInput:E}=e,_=F(e,Zu);return Zi(E,t,_,C)}const{render:s,label:a,optional:c,order:l=0,disabled:u,hint:d,onChange:p,onEditStart:h,onEditEnd:m,transient:b}=e,v=F(e,Qu),y=A({render:s,key:t,label:a??t,hint:d,transient:b??!!p,onEditStart:h,onEditEnd:m,disabled:u,optional:c,order:l},n);let{type:$}=v,x=F(v,ef);if($=r??$,$ in ce)return{type:$,input:x,options:y};let w;return r&&Ji(x)&&"value"in x?w=x.value:w=Ju(x)?void 0:x,{type:$,input:w,options:A(A({},y),{},{onChange:p,optional:(o=y.optional)!==null&&o!==void 0?o:!1,disabled:(i=y.disabled)!==null&&i!==void 0?i:!1})}}function tf(e,t,n,r){const o=Zi(e,t),{type:i,input:s,options:a}=o;if(i)return i in ce?o:{type:i,input:Nn(i,s,n,r),options:a};let c=wo(s);return c?{type:c,input:Nn(c,s,n,r),options:a}:(c=wo({value:s}),c?{type:c,input:Nn(c,{value:s},n,r),options:a}:!1)}function To(e,t,n,r,o){const{value:i,type:s,settings:a}=e;e.value=Qi({type:s,value:i,settings:a},t,n,r),e.fromPanel=o}const nf=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function Qi({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let a;try{a=Hu(e,s,n,t,o,i)}catch(c){throw new nf(`The value \`${r}\` did not result in a correct value.`,t,c)}return kt(a,t)?t:a}const es=(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()}},ts=e=>e.shiftKey?5:e.altKey?1/5:1;function rf(e,t){const n=console.error;console.error=()=>{},fi.render(e,t),console.error=n}const of=["value"],sf=["min","max"],af=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},ns=(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=ze(o,t,n);return r?i+r:i},cf=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},rs=e=>{let{value:t}=e,n=F(e,of);const{min:r=-1/0,max:o=1/0}=n,i=F(n,sf);let s=parseFloat(t);const a=typeof t=="string"?t.substring((""+s).length):void 0;s=ze(s,r,o);let c=n.step;c||(Number.isFinite(r)?Number.isFinite(o)?c=+(Math.abs(o-r)/100).toPrecision(1):c=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(c=+(Math.abs(o-s)/100).toPrecision(1)));const l=c?Eo(c)*10:Eo(s);c=c||l/10;const u=Math.round(ze(Math.log10(1/l),0,2));return{value:a?s+a:s,settings:A({initialValue:s,step:c,pad:u,min:r,max:o,suffix:a},i)}},os=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var is=Object.freeze({__proto__:null,schema:af,sanitize:ns,format:cf,normalize:rs,sanitizeStep:os});function G(){return G=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 Jt(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 Et={$inputStyle:()=>e=>Jt(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>Jt(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>Jt(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>Jt(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:D,css:dm,createTheme:ff,globalCss:df,keyframes:pm}=qa({prefix:"leva",theme:cs(),utils:A(A({},Et),{},{$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":Et.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":Et.$focusStyle()(e)}),$hover:e=>({"&:hover":Et.$hoverStyle()(e)}),$active:e=>({"&:active":Et.$activeStyle()(e)})})}),pf=df({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function hf(e){const t=cs();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=ff(t);return{theme:t,className:n.className}}function Oe(e,t){const{theme:n}=f.useContext(Or);if(!(e in n)||!(t in n[e]))return Se(U.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 ls=D("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),us=D("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${ls}`]:{paddingLeft:0}}),gf=D(us,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),mf=D("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),bf=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],vf=["onUpdate"];function kr(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:a,inputType:c="text",rows:l=0}=e,u=F(e,bf);const{id:d,emitOnEditStart:p,emitOnEditEnd:h,disabled:m}=ee(),b=a||d,v=f.useRef(null),y=l>0,$=y?"textarea":"input",x=f.useCallback(E=>_=>{const S=_.currentTarget.value;E(S)},[]);g.useEffect(()=>{const E=v.current,_=x(S=>{r(S),h()});return E==null||E.addEventListener("blur",_),()=>E==null?void 0:E.removeEventListener("blur",_)},[x,r,h]);const w=f.useCallback(E=>{E.key==="Enter"&&x(r)(E)},[x,r]),C=Object.assign({as:$},y?{rows:l}:{},u);return g.createElement(mf,{textArea:y},t&&typeof t=="string"?g.createElement(us,null,t):t,g.createElement(ls,G({levaType:s,ref:v,id:b,type:c,autoComplete:"off",spellCheck:"false",value:n,onChange:x(o),onFocus:()=>p(),onKeyPress:w,onKeyDown:i,disabled:m},C)))}function yf(e){let{onUpdate:t}=e,n=F(e,vf);const r=f.useCallback(i=>t(Uu(i)),[t]),o=f.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(c=>parseFloat(c)+s*a)}},[t]);return g.createElement(kr,G({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const dn=D("div",{}),tr=D("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"}}]}),wf=D("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 + ${tr}::after`]:{opacity:.6},[`${dn}:hover > & + ${tr}::after`]:{opacity:.6},[`${dn}:hover > & > svg`]:{opacity:1}}),fs=D("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"},[`> ${dn}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),ds=D("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${fs} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),ps=D(ds,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),$f=D("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"}}}}),xf=D("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"}}),nr=D("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),Ef=D("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${nr}`]:{pointerEvents:"auto"}}}}}),hs=D("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),Cf=D("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),_f=D(ju,{fill:"$toolTipBackground"});function Tr({children:e}){const{className:t}=f.useContext(Or);return g.createElement(ba,{className:t},e)}const Sf=["align"];function Of(){const{id:e,disable:t,disabled:n}=ee();return g.createElement(g.Fragment,null,g.createElement(xf,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),g.createElement("label",{htmlFor:e+"__disable"}))}function Rf(e){const{id:t,optional:n,hint:r}=ee(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return g.createElement(g.Fragment,null,n&&g.createElement(Of,null),r!==void 0?g.createElement(Du,null,g.createElement(Iu,{asChild:!0},g.createElement(nr,G({},o,e))),g.createElement(Mu,{side:"top",sideOffset:2},g.createElement(Cf,null,r,g.createElement(_f,null)))):g.createElement(nr,G({},o,i,e)))}function ve(e){let{align:t}=e,n=F(e,Sf);const{value:r,label:o,key:i,disabled:s}=ee(),{hideCopyButton:a}=lf(),c=!a&&i!==void 0,[l,u]=f.useState(!1),d=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),u(!0)}catch{Se(U.CLIPBOARD_ERROR,{[i]:r})}};return g.createElement($f,{align:t,onPointerLeave:()=>u(!1)},g.createElement(Rf,n),c&&!s&&g.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},l?g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},g.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),g.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"})):g.createElement("svg",{onClick:d,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},g.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),g.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 kf=["toggled"],Tf=D("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Pr(e){let{toggled:t}=e,n=F(e,kf);return g.createElement(Tf,G({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),g.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 Pf=["input"];function ge(e){let{input:t}=e,n=F(e,Pf);return t?g.createElement(ps,n):g.createElement(ds,n)}function gs({value:e,type:t,settings:n,setValue:r}){const[o,i]=f.useState($o(t,e,n)),s=f.useRef(e),a=f.useRef(n);a.current=n;const c=f.useCallback(u=>i($o(t,u,a.current)),[t]),l=f.useCallback(u=>{try{r(u)}catch(d){const{type:p,previousValue:h}=d;if(p!=="LEVA_ERROR")throw d;c(h)}},[c,r]);return f.useEffect(()=>{kt(e,s.current)||c(e),s.current=e},[e,c]),{displayValue:o,onChange:i,onUpdate:l}}function Nt(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=ee();return Wc(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 Af(e){const t=f.useRef(null),n=f.useRef(null),r=f.useRef(!1);return f.useEffect(()=>{const o=es(()=>{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]),f.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function ms(){const e=f.useRef(null),t=f.useRef({x:0,y:0}),n=f.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 Df=["__refCount"],Bn=(e,t)=>{if(!e[t])return null;const n=e[t];return F(n,Df)};function If(e){const t=Qe(),[n,r]=f.useState(Bn(t.getData(),e)),o=f.useCallback(l=>t.setValueAtPath(e,l,!0),[e,t]),i=f.useCallback(l=>t.setSettingsAtPath(e,l),[e,t]),s=f.useCallback(l=>t.disableInputAtPath(e,l),[e,t]),a=f.useCallback(()=>t.emitOnEditStart(e),[e,t]),c=f.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return f.useEffect(()=>{r(Bn(t.getData(),e));const l=t.useStore.subscribe(u=>Bn(u.data,e),r,{equalityFn:It});return()=>l()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const Mf=D("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),bs=D("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),rr=D("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)))"}}}}),vs=D("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),ys=D("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function jf({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=f.useRef(null),a=f.useRef(null),c=f.useRef(0),l=Oe("sizes","scrubberWidth"),u=Nt(({event:p,first:h,xy:[m],movement:[b],memo:v})=>{if(h){const{width:$,left:x}=s.current.getBoundingClientRect();c.current=$-parseFloat(l),v=(p==null?void 0:p.target)===a.current?e:fn((m-x)/$,t,n)}const y=v+fn(b/c.current,0,n-t);return r(os(y,{step:o,initialValue:i})),v}),d=un(e,t,n);return g.createElement(vs,G({ref:s},u()),g.createElement(bs,null,g.createElement(ys,{style:{left:0,right:`${(1-d)*100}%`}})),g.createElement(rr,{ref:a,style:{left:`calc(${d} * (100% - ${l}))`}}))}const Lf=g.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=f.useState(!1),s=Nt(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(t(d=>parseFloat(d)+Math.floor(u)*n*ts(l)),u=0),u));return g.createElement(gf,G({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function ws({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const a=s>0&&g.createElement(Lf,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return g.createElement(yf,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:a})}function Nf(){const e=ee(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:a}=o,c=a!==1/0&&s!==-1/0;return g.createElement(ge,{input:!0},g.createElement(ve,null,t),g.createElement(Mf,{hasRange:c},c&&g.createElement(jf,G({value:parseFloat(n),onDrag:r},o)),g.createElement(ws,G({},e,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:Bf}=is,zf=F(is,["sanitizeStep"]);var Ff=A({component:Nf},zf);const Wf=(e,t)=>ae().schema({options:ae().passesAnyOf(ae().object(),ae().array())}).test(t),Hf=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},Vf=(e,{values:t})=>t.indexOf(e),Uf=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 Kf=Object.freeze({__proto__:null,schema:Wf,sanitize:Hf,format:Vf,normalize:Uf});const Gf=D("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),or=D("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Yf=D("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${or}:focus + &`]:{$focusStyle:""},[`${or}:hover + &`]:{$hoverStyle:""}});function qf({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:a}=o,c=f.useRef();return t===a[e]&&(c.current=s[e]),g.createElement(Gf,null,g.createElement(or,{id:r,value:e,onChange:l=>n(a[Number(l.currentTarget.value)]),disabled:i},s.map((l,u)=>g.createElement("option",{key:l,value:u},l))),g.createElement(Yf,null,c.current),g.createElement(Pr,{toggled:!0}))}function Xf(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(qf,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var Jf=A({component:Xf},Kf);const Zf=e=>ae().string().test(e),Qf=e=>{if(typeof e!="string")throw Error("Invalid string");return e},ed=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var td=Object.freeze({__proto__:null,schema:Zf,sanitize:Qf,normalize:ed});const nd=["displayValue","onUpdate","onChange","editable"],rd=D("div",{whiteSpace:"pre-wrap"});function od(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=F(e,nd);return o?g.createElement(kr,G({value:t,onUpdate:n,onChange:r},i)):g.createElement(rd,null,t)}function id(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(od,G({displayValue:n,onUpdate:r,onChange:o},t)))}var sd=A({component:id},td);const ad=e=>ae().boolean().test(e),cd=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var ld=Object.freeze({__proto__:null,schema:ad,sanitize:cd});const ud=D("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 fd({value:e,onUpdate:t,id:n,disabled:r}){return g.createElement(ud,null,g.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),g.createElement("label",{htmlFor:n},g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function dd(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(fd,{value:t,onUpdate:n,id:o,disabled:r}))}var pd=A({component:dd},ld);const hd=["locked"];function gd({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=f.useRef(e[n]);s.current=e[n];const a=f.useCallback(l=>o({[n]:Qi({type:"NUMBER",value:s.current,settings:r},l)}),[o,r,n]),c=gs({type:"NUMBER",value:e[n],settings:r,setValue:a});return g.createElement(ws,{id:t,label:n,value:e[n],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:r,innerLabelTrim:i})}const md=D("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function bd(e){let{locked:t}=e,n=F(e,hd);return g.createElement("svg",G({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?g.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"}):g.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 Ar({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=ee(),{lock:s,locked:a}=n;return g.createElement(md,{withLock:s},s&&g.createElement(bd,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(e).map((c,l)=>g.createElement(gd,{id:l===0?o:`${o}.${c}`,key:c,valueKey:c,value:e,settings:n[c],onUpdate:t,innerLabelTrim:r})))}const $s=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=rs(A({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:c}=t[i]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(c))&&(n[i].step=r,n[i].pad=o)}return n},vd=["lock"],yd=["value"];function wd(e){const t=ae().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 $d(e){return Array.isArray(e)?"array":"object"}function St(e,t,n){return $d(e)===t?e:t==="array"?Object.values(e):Xu(e,n)}const xd=(e,t,n)=>{const r=St(e,"object",t.keys);for(let s in r)r[s]=ns(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=St(n,"object",t.keys);if(o.length===1&&t.locked){const a=o[0],c=r[a],l=s[a],u=l!==0?c/l:1;for(let d in s)d===a?i[a]=c:i[d]=s[d]*u}else i=A(A({},s),r)}return St(i,t.format,t.keys)},Ed=(e,t)=>St(e,"object",t.keys),Cd=e=>!!e&&("step"in e||"min"in e||"max"in e);function _d(e,t,n=[]){const{lock:r=!1}=t,o=F(t,vd),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,a=St(e,"object",s),c=Cd(o)?s.reduce((u,d)=>Object.assign(u,{[d]:o}),{}):o,l=$s(a,c);return{value:i==="array"?e:a,settings:A(A({},l),{},{format:i,keys:s,lock:r,locked:!1})}}function xs(e){return{schema:wd(e.length),normalize:t=>{let{value:n}=t,r=F(t,yd);return _d(n,r,e)},format:(t,n)=>Ed(t,n),sanitize:(t,n,r)=>xd(t,n,r)}}var Sd={grad:.9,turn:360,rad:360/(2*Math.PI)},Ce=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},X=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},de=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Es=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Po=function(e){return{r:de(e.r,0,255),g:de(e.g,0,255),b:de(e.b,0,255),a:de(e.a)}},zn=function(e){return{r:X(e.r),g:X(e.g),b:X(e.b),a:X(e.a,3)}},Od=/^#([0-9a-f]{3,8})$/i,Zt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Cs=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}},_s=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),c=r*(1-(1-t+i)*n),l=i%6;return{r:255*[r,a,s,s,c,r][l],g:255*[c,r,r,a,s,s][l],b:255*[s,s,c,r,r,a][l],a:o}},Ao=function(e){return{h:Es(e.h),s:de(e.s,0,100),l:de(e.l,0,100),a:de(e.a)}},Do=function(e){return{h:X(e.h),s:X(e.s),l:X(e.l),a:X(e.a,3)}},Io=function(e){return _s((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},Ot=function(e){return{h:(t=Cs(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},Rd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,kd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Td=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Pd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ir={string:[[function(e){var t=Od.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?X(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?X(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Td.exec(e)||Pd.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Po({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=Rd.exec(e)||kd.exec(e);if(!t)return null;var n,r,o=Ao({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(Sd[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Io(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 Ce(t)&&Ce(n)&&Ce(r)?Po({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(!Ce(t)||!Ce(n)||!Ce(r))return null;var s=Ao({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Io(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!Ce(t)||!Ce(n)||!Ce(r))return null;var s=function(a){return{h:Es(a.h),s:de(a.s,0,100),v:de(a.v,0,100),a:de(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return _s(s)},"hsv"]]},Mo=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=zn(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?Zt(X(255*i)):"","#"+Zt(n)+Zt(r)+Zt(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return zn(this.rgba)},e.prototype.toRgbString=function(){return t=zn(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 Do(Ot(this.rgba))},e.prototype.toHslString=function(){return t=Do(Ot(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=Cs(this.rgba),{h:X(t.h),s:X(t.s),v:X(t.v),a:X(t.a,3)};var t},e.prototype.invert=function(){return ne({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),ne(Fn(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),ne(Fn(this.rgba,-t))},e.prototype.grayscale=function(){return ne(Fn(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),ne(jo(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),ne(jo(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"?ne({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):X(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=Ot(this.rgba);return typeof t=="number"?ne({h:t,s:n.s,l:n.l,a:n.a}):X(n.h)},e.prototype.isEqual=function(t){return this.toHex()===ne(t).toHex()},e}(),ne=function(e){return e instanceof sr?e:new sr(e)},Lo=[],Dd=function(e){e.forEach(function(t){Lo.indexOf(t)<0&&(t(sr,ir),Lo.push(t))})};function Id(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,c,l=r[this.toHex()];if(l)return l;if(s!=null&&s.closest){var u=this.toRgb(),d=1/0,p="black";if(!i.length)for(var h in n)i[h]=new e(n[h]).toRgb();for(var m in n){var b=(a=u,c=i[m],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));b=0||(o[n]=e[n]);return o}function ar(e){var t=f.useRef(e),n=f.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var ut=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:v.buttons>0)&&o.current?i(No(o.current,v,a.current)):b(!1)},m=function(){return b(!1)};function b(v){var y=c.current,$=cr(o.current),x=v?$.addEventListener:$.removeEventListener;x(y?"touchmove":"mousemove",h),x(y?"touchend":"mouseup",m)}return[function(v){var y=v.nativeEvent,$=o.current;if($&&(Bo(y),!function(w,C){return C&&!Rt(w)}(y,c.current)&&$)){if(Rt(y)){c.current=!0;var x=y.changedTouches||[];x.length&&(a.current=x[0].identifier)}$.focus(),i(No($,y,a.current)),b(!0)}},function(v){var y=v.which||v.keyCode;y<37||y>40||(v.preventDefault(),s({left:y===39?.05:y===37?-.05:0,top:y===40?.05:y===38?-.05:0}))},b]},[s,i]),u=l[0],d=l[1],p=l[2];return f.useEffect(function(){return p},[p]),g.createElement("div",mt({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),Bt=function(e){return e.filter(Boolean).join(" ")},Mr=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Bt(["react-colorful__pointer",e.className]);return g.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},g.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},re=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Os=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:re(e.h),s:re(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:re(o/2),a:re(r,2)}},lr=function(e){var t=Os(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Hn=function(e){var t=Os(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Rs=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),c=r*(1-(1-t+i)*n),l=i%6;return{r:re(255*[r,a,s,s,c,r][l]),g:re(255*[c,r,r,a,s,s][l]),b:re(255*[s,s,c,r,r,a][l]),a:re(o,2)}},ks=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:re(60*(a<0?a+6:a)),s:re(i?s/i*100:0),v:re(i/255*100),a:o}},Ts=g.memo(function(e){var t=e.hue,n=e.onChange,r=Bt(["react-colorful__hue",e.className]);return g.createElement("div",{className:r},g.createElement(Ir,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:ut(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":re(t),"aria-valuemax":"360","aria-valuemin":"0"},g.createElement(Mr,{className:"react-colorful__hue-pointer",left:t/360,color:lr({h:t,s:100,v:100,a:1})})))}),Ps=g.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:lr({h:t.h,s:100,v:100,a:1})};return g.createElement("div",{className:"react-colorful__saturation",style:r},g.createElement(Ir,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:ut(t.s+100*o.left,0,100),v:ut(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+re(t.s)+"%, Brightness "+re(t.v)+"%"},g.createElement(Mr,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:lr(t)})))}),jr=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function As(e,t,n){var r=ar(n),o=f.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=f.useRef({color:t,hsva:i});f.useEffect(function(){if(!e.equal(t,a.current.color)){var l=e.toHsva(t);a.current={hsva:l,color:t},s(l)}},[t,e]),f.useEffect(function(){var l;jr(i,a.current.hsva)||e.equal(l=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},r(l))},[i,e,r]);var c=f.useCallback(function(l){s(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var Md=typeof window<"u"?f.useLayoutEffect:f.useEffect,jd=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},zo=new Map,Ds=function(e){Md(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!zo.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}`,zo.set(t,n);var r=jd();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Ld=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Dr(e,["className","colorModel","color","onChange"]),a=f.useRef(null);Ds(a);var c=As(n,o,i),l=c[0],u=c[1],d=Bt(["react-colorful",t]);return g.createElement("div",mt({},s,{ref:a,className:d}),g.createElement(Ps,{hsva:l,onChange:u}),g.createElement(Ts,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},Nd=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Hn(Object.assign({},n,{a:0}))+", "+Hn(Object.assign({},n,{a:1}))+")"},i=Bt(["react-colorful__alpha",t]),s=re(100*n.a);return g.createElement("div",{className:i},g.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),g.createElement(Ir,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:ut(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},g.createElement(Mr,{className:"react-colorful__alpha-pointer",left:n.a,color:Hn(n)})))},Bd=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Dr(e,["className","colorModel","color","onChange"]),a=f.useRef(null);Ds(a);var c=As(n,o,i),l=c[0],u=c[1],d=Bt(["react-colorful",t]);return g.createElement("div",mt({},s,{ref:a,className:d}),g.createElement(Ps,{hsva:l,onChange:u}),g.createElement(Ts,{hue:l.h,onChange:u}),g.createElement(Nd,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},zd={defaultColor:{r:0,g:0,b:0,a:1},toHsva:ks,fromHsva:Rs,equal:jr},Fd=function(e){return g.createElement(Bd,mt({},e,{colorModel:zd}))},Wd={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return ks({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=Rs(e)).r,g:t.g,b:t.b};var t},equal:jr},Hd=function(e){return g.createElement(Ld,mt({},e,{colorModel:Wd}))};function bt(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(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function vt(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(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[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 Ud(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Gd(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=Kd.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Yd=[".DS_Store","Thumbs.db"];function qd(e){return bt(this,void 0,void 0,function(){return vt(this,function(t){return pn(e)&&Xd(e)?[2,ep(e.dataTransfer,e.type)]:Jd(e)?[2,Zd(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Qd(e)]:[2,[]]})})}function Xd(e){return pn(e.dataTransfer)}function Jd(e){return pn(e)&&pn(e.target)}function pn(e){return typeof e=="object"&&e!==null}function Zd(e){return ur(e.target.files).map(function(t){return zt(t)})}function Qd(e){return bt(this,void 0,void 0,function(){var t;return vt(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 zt(r)})]}})})}function ep(e,t){return bt(this,void 0,void 0,function(){var n,r;return vt(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=ur(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(tp))]):[3,2];case 1:return r=o.sent(),[2,Fo(Is(r))];case 2:return[2,Fo(ur(e.files).map(function(i){return zt(i)}))]}})})}function Fo(e){return e.filter(function(t){return Yd.indexOf(t.name)===-1})}function ur(e){if(e===null)return[];for(var t=[],n=0;ne.forEach(n=>fa(n,t))}function ft(...e){return f.useCallback(hi(...e),e)}const gi=f.forwardRef((e,t)=>{const{children:n,...r}=e,o=f.Children.toArray(n),i=o.find(da);if(i){const s=i.props.children,a=o.map(c=>c===i?f.Children.count(s)>1?f.Children.only(null):f.isValidElement(s)?s.props.children:null:c);return f.createElement(Kn,Z({},r,{ref:t}),f.isValidElement(s)?f.cloneElement(s,void 0,a):null)}return f.createElement(Kn,Z({},r,{ref:t}),n)});gi.displayName="Slot";const Kn=f.forwardRef((e,t)=>{const{children:n,...r}=e;return f.isValidElement(n)?f.cloneElement(n,{...pa(r,n.props),ref:t?hi(t,n.ref):n.ref}):f.Children.count(n)>1?f.Children.only(null):null});Kn.displayName="SlotClone";const mi=({children:e})=>f.createElement(f.Fragment,null,e);function da(e){return f.isValidElement(e)&&e.type===mi}function pa(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 ha=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ze=ha.reduce((e,t)=>{const n=f.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?gi:t;return f.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),f.createElement(a,Z({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ga(e,t){e&&mr.flushSync(()=>e.dispatchEvent(t))}const ma=f.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?fi.createPortal(f.createElement(Ze.div,Z({},o,{ref:t})),r):null}),ba=ma;var Wr=Object.prototype.hasOwnProperty;function kt(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--&&kt(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Wr.call(e,n)&&++r&&!Wr.call(t,n)||!(n in t)||!kt(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function It(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),$e=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};$e.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 yn(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};$e.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new va(n,t.simple,t.async)),this};$e.prototype._clone=function(){return new $e(this.chain.slice(),this.nextRuleModifiers.slice())};$e.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};$e.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new br(r,t,o))}}),n};$e.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new br(n,t,r)}})};$e.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){yi(t,n.chain.slice(),r,o)})};function yi(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){yi(e,t,n,r)},function(i){r(new br(o,e,i))})}else n(e)}var Hr=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function ya(e,t){return t===void 0&&(t=!1),{simple:function(n){return Hr(n,t)||e.check(n)===void 0},async:function(n){return Hr(n,t)||e.testAsync(n)}}}function ae(){return typeof Proxy<"u"?wi(new $e):Gn(new $e)}var Tt={};ae.extend=function(e){Object.assign(Tt,e)};ae.clearCustomRules=function(){Tt={}};function wi(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=wi(e._clone());if(r in rn)return o._applyModifier(rn[r],r);if(r in Tt)return o._applyRule(Tt[r],r);if(r in Yn)return o._applyRule(Yn[r],r)}})}function Gn(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=Gn(i._clone()),u=l._applyRule(o[s],s).apply(void 0,a);return u}}),i},n=t(Yn,e),r=t(Tt,n);return Object.keys(rn).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=Gn(r._clone());return i._applyModifier(rn[o],o)}})}),r}var rn={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 Yt(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(Yt(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&&Yt(t).every(e)}},async:function(e){return function(t){return Promise.all(Yt(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return Vr(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 Vr(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function Vr(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function Yt(e){return typeof e=="string"?e.split(""):e}var Yn={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||wa;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return nt("string")},boolean:function(){return nt("boolean")},undefined:function(){return nt("undefined")},null:function(){return nt("null")},array:function(){return nt("array")},object:function(){return nt("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 $a(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:ya};function nt(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function wa(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function $a(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 W="colors",te="sizes",k="space",xa={gap:k,gridGap:k,columnGap:k,gridColumnGap:k,rowGap:k,gridRowGap:k,inset:k,insetBlock:k,insetBlockEnd:k,insetBlockStart:k,insetInline:k,insetInlineEnd:k,insetInlineStart:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,marginBlock:k,marginBlockEnd:k,marginBlockStart:k,marginInline:k,marginInlineEnd:k,marginInlineStart:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,paddingBlock:k,paddingBlockEnd:k,paddingBlockStart:k,paddingInline:k,paddingInlineEnd:k,paddingInlineStart:k,top:k,right:k,bottom:k,left:k,scrollMargin:k,scrollMarginTop:k,scrollMarginRight:k,scrollMarginBottom:k,scrollMarginLeft:k,scrollMarginX:k,scrollMarginY:k,scrollMarginBlock:k,scrollMarginBlockEnd:k,scrollMarginBlockStart:k,scrollMarginInline:k,scrollMarginInlineEnd:k,scrollMarginInlineStart:k,scrollPadding:k,scrollPaddingTop:k,scrollPaddingRight:k,scrollPaddingBottom:k,scrollPaddingLeft:k,scrollPaddingX:k,scrollPaddingY:k,scrollPaddingBlock:k,scrollPaddingBlockEnd:k,scrollPaddingBlockStart:k,scrollPaddingInline:k,scrollPaddingInlineEnd:k,scrollPaddingInlineStart:k,fontSize:"fontSizes",background:W,backgroundColor:W,backgroundImage:W,borderImage:W,border:W,borderBlock:W,borderBlockEnd:W,borderBlockStart:W,borderBottom:W,borderBottomColor:W,borderColor:W,borderInline:W,borderInlineEnd:W,borderInlineStart:W,borderLeft:W,borderLeftColor:W,borderRight:W,borderRightColor:W,borderTop:W,borderTopColor:W,caretColor:W,color:W,columnRuleColor:W,fill:W,outline:W,outlineColor:W,stroke:W,textDecorationColor:W,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:te,minBlockSize:te,maxBlockSize:te,inlineSize:te,minInlineSize:te,maxInlineSize:te,width:te,minWidth:te,maxWidth:te,height:te,minHeight:te,maxHeight:te,flexBasis:te,gridTemplateColumns:te,gridTemplateRows:te,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"},Ea=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,dt=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,Ea))(t);return o in e?e[o]:e[o]=n(t,...r)}},Ye=Symbol.for("sxs.internal"),vr=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Ur=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Ca}=Object.prototype,qn=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),_a=/\s+(?![^()]*\))/,rt=e=>t=>e(...typeof t=="string"?String(t).split(_a):[t]),Kr={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:rt((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:rt((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:rt((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:rt((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:rt((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:rt((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},jn=/([\d.]+)([^]*)/,Sa=(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,Oa=(e,t)=>e in Ra&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${qn(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${qn(e)}:${r}fit-content`)+i):String(t),Ra={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Re=e=>e?e+"-":"",$i=(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==="$"?Re(t)+(a.includes("$")?"":Re(n))+a.replace(/\$/g,"-"):a)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),ka=/\s*,\s*(?![^()]*\))/,Ta=Object.prototype.toString,it=(e,t,n,r,o)=>{let i,s,a;const c=(l,u,d)=>{let p,h;const m=b=>{for(p in b){const $=p.charCodeAt(0)===64,x=$&&Array.isArray(b[p])?b[p]:[b[p]];for(h of x){const w=/[A-Z]/.test(y=p)?y:y.replace(/-[^]/g,E=>E[1].toUpperCase()),C=typeof h=="object"&&h&&h.toString===Ta&&(!r.utils[w]||!u.length);if(w in r.utils&&!C){const E=r.utils[w];if(E!==s){s=E,m(E(h)),s=null;continue}}else if(w in Kr){const E=Kr[w];if(E!==a){a=E,m(E(h)),a=null;continue}}if($&&(v=p.slice(1)in r.media?"@media "+r.media[p.slice(1)]:p,p=v.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(E,_,S,M,T,P)=>{const R=jn.test(_),B=.0625*(R?-1:1),[j,I]=R?[M,_]:[_,M];return"("+(S[0]==="="?"":S[0]===">"===R?"max-":"min-")+j+":"+(S[0]!=="="&&S.length===1?I.replace(jn,(z,L,Y)=>Number(L)+B*(S===">"?1:-1)+Y):I)+(T?") and ("+(T[0]===">"?"min-":"max-")+j+":"+(T.length===1?P.replace(jn,(z,L,Y)=>Number(L)+B*(T===">"?-1:1)+Y):P):"")+")"})),C){const E=$?d.concat(p):[...d],_=$?[...u]:Sa(u,p.split(ka));i!==void 0&&o(Gr(...i)),i=void 0,c(h,_,E)}else i===void 0&&(i=[[],u,d]),p=$||p.charCodeAt(0)!==36?p:`--${Re(r.prefix)}${p.slice(1).replace(/\$/g,"-")}`,h=C?h:typeof h=="number"?h&&w in Pa?String(h)+"px":String(h):$i(Oa(w,h??""),r.prefix,r.themeMap[w]),i[0].push(`${$?`${p} `:`${qn(p)}:`}${h}`)}}var v,y};m(l),i!==void 0&&o(Gr(...i)),i=void 0};c(e,t,n)},Gr=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,Pa={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},Yr=e=>String.fromCharCode(e+(e>25?39:97)),qe=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Yr(n%52)+r;return Yr(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),_t=["themed","global","styled","onevar","resonevar","allvar","inline"],Aa=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},Da=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:a}=i;let c="";if(a.startsWith("--sxs"))return"";if(o[s-1]&&(c=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const l in t.rules)if(t.rules[l].group===i)return`--sxs{--sxs:${[...t.rules[l].cache].join(" ")}}${a}`;return i.cssRules.length?`${c}${a}`:""}return a}).join("")},r=()=>{if(t){const{rules:a,sheet:c}=t;if(!c.deleteRule){for(;Object(Object(c.cssRules)[0]).type===3;)c.cssRules.splice(0,1);c.cssRules=[]}for(const l in a)delete a[l]}const o=Object(e).styleSheets||[];for(const a of o)if(Aa(a)){for(let c=0,l=a.cssRules;l[c];++c){const u=Object(l[c]);if(u.type!==1)continue;const d=Object(l[c+1]);if(d.type!==4)continue;++c;const{cssText:p}=u;if(!p.startsWith("--sxs"))continue;const h=p.slice(14,-3).trim().split(/\s+/),m=_t[h[0]];m&&(t||(t={sheet:a,reset:r,rules:{},toString:n}),t.rules[m]={group:d,index:c,cache:new Set(h)})}if(t)break}if(!t){const a=(c,l)=>({type:l,cssRules:[],insertRule(u,d){this.cssRules.splice(d,0,a(u,{import:3,undefined:1}[(u.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return c==="@media{}"?`@media{${[].map.call(this.cssRules,u=>u.cssText).join("")}}`:c}});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=_t.length-1;a>=0;--a){const c=_t[a];if(!s[c]){const l=_t[a+1],u=s[l]?s[l].index:i.cssRules.length;i.insertRule("@media{}",u),i.insertRule(`--sxs{--sxs:${a}}`,u),s[c]={group:i.cssRules[u+1],index:u,cache:new Set([a])}}Ia(s[c])}};return r(),t},Ia=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},xt=Symbol(),Ma=dt(),qr=(e,t)=>Ma(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(ja(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),La(e,r,t)}),ja=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${Re(o.prefix)}c-${qe(r)}`,s=[],a=[],c=Object.create(null),l=[];for(const p in n)c[p]=String(n[p]);if(typeof e=="object"&&e)for(const p in e){u=c,d=p,Ca.call(u,d)||(c[p]="undefined");const h=e[p];for(const m in h){const b={[p]:String(m)};String(m)==="undefined"&&l.push(p);const v=h[m],y=[b,v,!Ur(v)];s.push(y)}}var u,d;if(typeof t=="object"&&t)for(const p of t){let{css:h,...m}=p;h=typeof h=="object"&&h||{};for(const v in m)m[v]=String(m[v]);const b=[m,h,!Ur(h)];a.push(b)}return[i,r,s,a,c,l]},La=(e,t,n)=>{const[r,o,i,s]=Na(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(d=>{function p(){for(let h=0;hp.rules[h]={apply:m=>p[xt].push([h,m])}),p})(n):null,c=(a||n).rules,l=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,u=d=>{d=typeof d=="object"&&d||Ba;const{css:p,...h}=d,m={};for(const y in i)if(delete h[y],y in d){let $=d[y];typeof $=="object"&&$?m[y]={"@initial":i[y],...$}:($=String($),m[y]=$!=="undefined"||s.has(y)?$:i[y])}else m[y]=i[y];const b=new Set([...o]);for(const[y,$,x,w]of t.composers){n.rules.styled.cache.has(y)||(n.rules.styled.cache.add(y),it($,[`.${y}`],[],e,_=>{c.styled.apply(_)}));const C=Xr(x,m,e.media),E=Xr(w,m,e.media,!0);for(const _ of C)if(_!==void 0)for(const[S,M,T]of _){const P=`${y}-${qe(M)}-${S}`;b.add(P);const R=(T?n.rules.resonevar:n.rules.onevar).cache,B=T?c.resonevar:c.onevar;R.has(P)||(R.add(P),it(M,[`.${P}`],[],e,j=>{B.apply(j)}))}for(const _ of E)if(_!==void 0)for(const[S,M]of _){const T=`${y}-${qe(M)}-${S}`;b.add(T),n.rules.allvar.cache.has(T)||(n.rules.allvar.cache.add(T),it(M,[`.${T}`],[],e,P=>{c.allvar.apply(P)}))}}if(typeof p=="object"&&p){const y=`${r}-i${qe(p)}-css`;b.add(y),n.rules.inline.cache.has(y)||(n.rules.inline.cache.add(y),it(p,[`.${y}`],[],e,$=>{c.inline.apply($)}))}for(const y of String(d.className||"").trim().split(/\s+/))y&&b.add(y);const v=h.className=[...b].join(" ");return{type:t.type,className:v,selector:l,props:h,toString:()=>v,deferredInjector:a}};return vr(u,{className:r,selector:l,[Ye]:t,toString:()=>(n.rules.styled.cache.has(r)||u(),r)})},Na=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 c in s){const l=s[c];(r[c]===void 0||l!=="undefined"||a.includes(l))&&(r[c]=l)}}return[t,n,r,new Set(o)]},Xr=(e,t,n,r)=>{const o=[];e:for(let[i,s,a]of e){if(a)continue;let c,l=0,u=!1;for(c in i){const d=i[c];let p=t[c];if(p!==d){if(typeof p!="object"||!p)continue e;{let h,m,b=0;for(const v in p){if(d===String(p[v])){if(v!=="@initial"){const y=v.slice(1);(m=m||[]).push(y in n?n[y]:v.replace(/^@media ?/,"")),u=!0}l+=b,h=!0}++b}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!h)continue e}}}(o[l]=o[l]||[]).push([r?"cv":`${c}-${i[c]}`,s,u])}return o},Ba={},za=dt(),Fa=(e,t)=>za(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=qe(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"]}it(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return vr(r,{toString:r})}),Wa=dt(),Ha=(e,t)=>Wa(e,()=>n=>{const r=`${Re(e.prefix)}k-${qe(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];it(n,[],[],e,a=>i.push(a));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return vr(o,{get name(){return o()},toString:o})}),Va=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"--"+Re(this.prefix)+Re(this.scale)+this.token}toString(){return this.computedValue}},Ua=dt(),Ka=(e,t)=>Ua(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${Re(e.prefix)}t-${qe(r)}`}`,i={},s=[];for(const c in r){i[c]={};for(const l in r[c]){const u=`--${Re(e.prefix)}${c}-${l}`,d=$i(String(r[c][l]),e.prefix,c);i[c][l]=new Va(l,d,c,e.prefix),s.push(`${u}:${d}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const c=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(c)}return n};return{...i,get className(){return a()},selector:o,toString:a}}),Ga=dt(),Ya=dt(),qa=e=>{const t=(n=>{let r=!1;const o=Ga(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",a=typeof i.media=="object"&&i.media||{},c=typeof i.root=="object"?i.root||null:globalThis.document||null,l=typeof i.theme=="object"&&i.theme||{},u={prefix:s,media:a,theme:l,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...xa},utils:typeof i.utils=="object"&&i.utils||{}},d=Da(c),p={css:qr(u,d),globalCss:Fa(u,d),keyframes:Ha(u,d),createTheme:Ka(u,d),reset(){d.reset(),p.theme.toString()},theme:{},sheet:d,config:u,prefix:s,getCssText:d.toString,toString:d.toString};return String(p.theme=p.createTheme(l)),p});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>Ya(n,()=>{const o=qr(n,r);return(...i)=>{const s=o(...i),a=s[Ye].type,c=g.forwardRef((l,u)=>{const d=l&&l.as||a,{props:p,deferredInjector:h}=s(l);return delete p.as,p.ref=u,h?g.createElement(g.Fragment,null,g.createElement(d,p),g.createElement(h,null)):g.createElement(d,p)});return c.className=s.className,c.displayName=`Styled.${a.displayName||a.name||a}`,c.selector=s.selector,c.toString=()=>s.selector,c[Ye]=s[Ye],c}}))(t),t};function Xa(e,t,n){return Math.max(t,Math.min(e,n))}const Q={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 Jr(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Zr(e,t,n,r=.15){return r===0?Xa(e,t,n):en?+Jr(e-n,n-t,r)+n:e}function Ja(e,[t,n],[r,o]){const[[i,s],[a,c]]=e;return[Zr(t,i,s,r),Zr(n,a,c,o)]}function Za(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 Qa(e){var t=Za(e,"string");return typeof t=="symbol"?t:String(t)}function se(e,t,n){return t=Qa(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qr(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 K(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 ac(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Ci(e){return wn(e)?ac(e)[0]:e}function cc(e){return sc(e).map(t=>t.identifier)}function Ln(e){const t=Ci(e);return wn(e)?t.identifier:t.pointerId}function to(e){const t=Ci(e);return[t.clientX,t.clientY]}function lc(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 on(e,...t){return typeof e=="function"?e(...t):e}function uc(){}function fc(...e){return e.length===0?uc:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function no(e,t){return Object.assign({},t,e||{})}const dc=32;class pc{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?on(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,lc(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 E=n._delta.map(Math.abs);Q.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[c,l]=r.threshold,{_step:u,values:d}=n;if(r.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=c&&d[0]),u[1]===!1&&(u[1]=Math.abs(a)>=l&&d[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=c&&Math.sign(s)*c),u[1]===!1&&(u[1]=Math.abs(a)>=l&&Math.sign(a)*l)),n.intentional=u[0]!==!1||u[1]!==!1,!n.intentional)return;const p=[0,0];if(r.hasCustomTransform){const[E,_]=d;p[0]=u[0]!==!1?E-u[0]:0,p[1]=u[1]!==!1?_-u[1]:0}else p[0]=u[0]!==!1?s-u[0]:0,p[1]=u[1]!==!1?a-u[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(p);const h=n.offset,m=n._active&&!n._blocked||n.active;m&&(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=on(r.bounds,n)),this.setup&&this.setup()),n.movement=p,this.computeOffset()));const[b,v]=n.offset,[[y,$],[x,w]]=n._bounds;n.overflow=[b$?1:0,vw?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 C=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=Ja(n._bounds,n.offset,C),n.delta=Q.sub(n.offset,h),this.computeMovement(),m&&(!n.last||i>dc)){n.delta=Q.sub(n.offset,h);const E=n.delta.map(Math.abs);Q.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[E[0]/i,E[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(K(K(K({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function hc([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 gc extends pc{constructor(...t){super(...t),se(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=Q.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Q.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[Ei(t)]:r.axisThreshold;n.axis=hc(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 mc=e=>e,ro=.15,_i={enabled(e=!0){return e},eventOptions(e,t,n){return K(K({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[ro,ro];case!1:return[0,0];default:return Q.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Q.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||mc},threshold(e){return Q.toVector(e,0)}},bc=0,Mt=K(K({},_i),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=bc){return e},bounds(e={}){if(typeof e=="function")return i=>Mt.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]]}}),oo={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 vc extends gc{constructor(...t){super(...t),se(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=Mt.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=Ln(t),r._pointerActive=!0,this.computeValues(to(t)),this.computeInitial(),n.preventScrollAxis&&Ei(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=Ln(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=to(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=Q.sub(i,n._values),this.computeValues(i)),Q.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=Ln(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,c]=n._delta,[l,u]=n._movement,[d,p]=r.swipe.velocity,[h,m]=r.swipe.distance,b=r.swipe.duration;if(n.elapsedTimed&&Math.abs(l)>h&&(n.swipe[0]=Math.sign(a)),y>p&&Math.abs(u)>m&&(n.swipe[1]=Math.sign(c))}}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,yc(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=oo[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,Q.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in oo&&(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 yc(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const jt=typeof window<"u"&&window.document&&window.document.createElement;function Si(){return jt&&"ontouchstart"in window}function wc(){return Si()||jt&&window.navigator.maxTouchPoints>1}function $c(){return jt&&"onpointerdown"in window}function xc(){return jt&&"exitPointerLock"in window.document}function Ec(){try{return"constructor"in GestureEvent}catch{return!1}}const fe={isBrowser:jt,gesture:Ec(),touch:Si(),touchscreen:wc(),pointer:$c(),pointerLock:xc()},Cc=250,_c=180,Sc=.5,Oc=50,Rc=250,kc=10,io={mouse:0,touch:0,pen:8},Tc=K(K({},Mt),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&fe.pointerLock,fe.touch&&n?"touch":this.pointerLock?"mouse":fe.pointer&&!o?"pointer":fe.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Cc:void 0,!(!fe.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=Q.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=Sc,distance:t=Oc,duration:n=Rc}={}){return{velocity:this.transform(Q.toVector(e)),distance:this.transform(Q.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return _c;case!1:return 0;default:return e}},axisThreshold(e){return e?K(K({},io),e):io},keyboardDisplacement(e=kc){return e}});K(K({},_i),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!fe.touch&&fe.gesture)return"gesture";if(fe.touch&&r)return"touch";if(fe.touchscreen){if(fe.pointer)return"pointer";if(fe.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=no(on(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=no(on(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",Q.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});K(K({},Mt),{},{mouseOnly:(e=!0)=>e});K(K({},Mt),{},{mouseOnly:(e=!0)=>e});const Oi=new Map,Xn=new Map;function Pc(e){Oi.set(e.key,e.engine),Xn.set(e.key,e.resolver)}const Ac={key:"drag",engine:vc,resolver:Tc};function Dc(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 Ic(e,t){if(e==null)return{};var n=Dc(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 Mc={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=fe.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},jc=["target","eventOptions","window","enabled","transform"];function tn(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]=tn(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function Lc(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:c}=r,l=Ic(r,jc);if(n.shared=tn({target:o,eventOptions:i,window:s,enabled:a,transform:c},Mc),t){const u=Xn.get(t);n[t]=tn(K({shared:n.shared},l),u)}else for(const u in l){const d=Xn.get(u);d&&(n[u]=tn(K({shared:n.shared},l[u]),d))}return n}class Ri{constructor(t,n){se(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=ic(n,r),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},l=K(K({},c),i);t.addEventListener(a,o,l);const u=()=>{t.removeEventListener(a,o,l),s.delete(u)};return s.add(u),u}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class Nc{constructor(){se(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 Bc{constructor(t){se(this,"gestures",new Set),se(this,"_targetEventStore",new Ri(this)),se(this,"gestureEventStores",{}),se(this,"gestureTimeoutStores",{}),se(this,"handlers",{}),se(this,"config",{}),se(this,"pointerIds",new Set),se(this,"touchIds",new Set),se(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),zc(this,t)}setEventIds(t){if(wn(t))return this.touchIds=new Set(cc(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=Lc(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],c=so(r,a.eventOptions,!!o);if(a.enabled){const l=Oi.get(s);new l(this,t,s).bind(c)}}const i=so(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](K(K({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=fc(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:c}=oc(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:c})}}}}function ot(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Ri(e,t),e.gestureTimeoutStores[t]=new Nc}function zc(e,t){t.drag&&ot(e,"drag"),t.wheel&&ot(e,"wheel"),t.scroll&&ot(e,"scroll"),t.move&&ot(e,"move"),t.pinch&&ot(e,"pinch"),t.hover&&ot(e,"hover")}const so=(e,t,n)=>(r,o,i,s={},a=!1)=>{var c,l;const u=(c=s.capture)!==null&&c!==void 0?c:t.capture,d=(l=s.passive)!==null&&l!==void 0?l:t.passive;let p=a?r:nc(r,o,u);n&&d&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function Fc(e,t={},n,r){const o=g.useMemo(()=>new Bc(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),g.useEffect(o.effect.bind(o)),g.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function Wc(e,t){return Pc(Ac),Fc({drag:e},t||{},"drag")}function _e(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 ki(e,t=[]){let n=[];function r(i,s){const a=f.createContext(s),c=n.length;n=[...n,s];function l(d){const{scope:p,children:h,...m}=d,b=(p==null?void 0:p[e][c])||a,v=f.useMemo(()=>m,Object.values(m));return f.createElement(b.Provider,{value:v},h)}function u(d,p){const h=(p==null?void 0:p[e][c])||a,m=f.useContext(h);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const o=()=>{const i=n.map(s=>f.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Hc(o,...t)]}function Hc(...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:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function pt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Vc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Jn="dismissableLayer.update",Uc="dismissableLayer.pointerDownOutside",Kc="dismissableLayer.focusOutside";let ao;const Gc=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yc=f.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=f.useContext(Gc),[d,p]=f.useState(null),h=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=f.useState({}),b=ft(t,S=>p(S)),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),$=v.indexOf(y),x=d?v.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=$,E=qc(S=>{const M=S.target,T=[...u.branches].some(P=>P.contains(M));!C||T||(i==null||i(S),a==null||a(S),S.defaultPrevented||c==null||c())},h),_=Xc(S=>{const M=S.target;[...u.branches].some(P=>P.contains(M))||(s==null||s(S),a==null||a(S),S.defaultPrevented||c==null||c())},h);return Vc(S=>{x===u.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&c&&(S.preventDefault(),c()))},h),f.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ao=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),co(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ao)}},[d,h,r,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),co())},[d,u]),f.useEffect(()=>{const S=()=>m({});return document.addEventListener(Jn,S),()=>document.removeEventListener(Jn,S)},[]),f.createElement(Ze.div,Z({},l,{ref:b,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:_e(e.onFocusCapture,_.onFocusCapture),onBlurCapture:_e(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:_e(e.onPointerDownCapture,E.onPointerDownCapture)}))});function qc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Ti(Uc,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}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 Xc(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ti(Kc,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 co(){const e=new CustomEvent(Jn);document.dispatchEvent(e)}function Ti(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?ga(o,i):o.dispatchEvent(i)}const ct=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Jc=ia.useId||(()=>{});let Zc=0;function Qc(e){const[t,n]=f.useState(Jc());return ct(()=>{e||n(r=>r??String(Zc++))},[e]),e||(t?`radix-${t}`:"")}const el=["top","right","bottom","left"],Le=Math.min,le=Math.max,sn=Math.round,qt=Math.floor,Ne=e=>({x:e,y:e}),tl={left:"right",right:"left",bottom:"top",top:"bottom"},nl={start:"end",end:"start"};function Zn(e,t,n){return le(e,Le(t,n))}function ke(e,t){return typeof e=="function"?e(t):e}function Te(e){return e.split("-")[0]}function ht(e){return e.split("-")[1]}function yr(e){return e==="x"?"y":"x"}function wr(e){return e==="y"?"height":"width"}function gt(e){return["top","bottom"].includes(Te(e))?"y":"x"}function $r(e){return yr(gt(e))}function rl(e,t,n){n===void 0&&(n=!1);const r=ht(e),o=$r(e),i=wr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=an(s)),[s,an(s)]}function ol(e){const t=an(e);return[Qn(e),t,Qn(t)]}function Qn(e){return e.replace(/start|end/g,t=>nl[t])}function il(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 sl(e,t,n,r){const o=ht(e);let i=il(Te(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Qn)))),i}function an(e){return e.replace(/left|right|bottom|top/g,t=>tl[t])}function al(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pi(e){return typeof e!="number"?al(e):{top:e,right:e,bottom:e,left:e}}function cn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function lo(e,t,n){let{reference:r,floating:o}=e;const i=gt(t),s=$r(t),a=wr(s),c=Te(t),l=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let h;switch(c){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(ht(t)){case"start":h[s]-=p*(n&&l?-1:1);break;case"end":h[s]+=p*(n&&l?-1:1);break}return h}const cl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=lo(l,r,c),p=r,h={},m=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=ke(e,t)||{};if(l==null)return{};const d=Pi(u),p={x:n,y:r},h=$r(o),m=wr(h),b=await s.getDimensions(l),v=h==="y",y=v?"top":"left",$=v?"bottom":"right",x=v?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[h]-p[h]-i.floating[m],C=p[h]-i.reference[h],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let _=E?E[x]:0;(!_||!await(s.isElement==null?void 0:s.isElement(E)))&&(_=a.floating[x]||i.floating[m]);const S=w/2-C/2,M=_/2-b[m]/2-1,T=Le(d[y],M),P=Le(d[$],M),R=T,B=_-b[m]-P,j=_/2-b[m]/2+S,I=Zn(R,j,B),z=!c.arrow&&ht(o)!=null&&j!==I&&i.reference[m]/2-(jR<=0)){var M,T;const R=(((M=i.flip)==null?void 0:M.index)||0)+1,B=C[R];if(B)return{data:{index:R,overflows:S},reset:{placement:B}};let j=(T=S.filter(I=>I.overflows[0]<=0).sort((I,z)=>I.overflows[1]-z.overflows[1])[0])==null?void 0:T.placement;if(!j)switch(h){case"bestFit":{var P;const I=(P=S.map(z=>[z.placement,z.overflows.filter(L=>L>0).reduce((L,Y)=>L+Y,0)]).sort((z,L)=>z[1]-L[1])[0])==null?void 0:P[0];I&&(j=I);break}case"initialPlacement":j=a;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function uo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fo(e){return el.some(t=>e[t]>=0)}const fl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ke(e,t);switch(r){case"referenceHidden":{const i=await Pt(t,{...o,elementContext:"reference"}),s=uo(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fo(s)}}}case"escaped":{const i=await Pt(t,{...o,altBoundary:!0}),s=uo(i,n.floating);return{data:{escapedOffsets:s,escaped:fo(s)}}}default:return{}}}}};async function dl(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Te(n),a=ht(n),c=gt(n)==="y",l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=ke(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),c?{x:h*u,y:p*l}:{x:p*l,y:h*u}}const pl=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,c=await dl(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},hl=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:v=>{let{x:y,y:$}=v;return{x:y,y:$}}},...c}=ke(e,t),l={x:n,y:r},u=await Pt(t,c),d=gt(Te(o)),p=yr(d);let h=l[p],m=l[d];if(i){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",$=h+u[v],x=h-u[y];h=Zn($,h,x)}if(s){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",$=m+u[v],x=m-u[y];m=Zn($,m,x)}const b=a.fn({...t,[p]:h,[d]:m});return{...b,data:{x:b.x-n,y:b.y-r}}}}},gl=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:c=!0,crossAxis:l=!0}=ke(e,t),u={x:n,y:r},d=gt(o),p=yr(d);let h=u[p],m=u[d];const b=ke(a,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const x=p==="y"?"height":"width",w=i.reference[p]-i.floating[x]+v.mainAxis,C=i.reference[p]+i.reference[x]-v.mainAxis;hC&&(h=C)}if(l){var y,$;const x=p==="y"?"width":"height",w=["top","left"].includes(Te(o)),C=i.reference[d]-i.floating[x]+(w&&((y=s.offset)==null?void 0:y[d])||0)+(w?0:v.crossAxis),E=i.reference[d]+i.reference[x]+(w?0:(($=s.offset)==null?void 0:$[d])||0)-(w?v.crossAxis:0);mE&&(m=E)}return{[p]:h,[d]:m}}}},ml=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}=ke(e,t),c=await Pt(t,a),l=Te(n),u=ht(n),d=gt(n)==="y",{width:p,height:h}=r.floating;let m,b;l==="top"||l==="bottom"?(m=l,b=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(b=l,m=u==="end"?"top":"bottom");const v=h-c[m],y=p-c[b],$=!t.middlewareData.shift;let x=v,w=y;if(d){const E=p-c.left-c.right;w=u||$?Le(y,E):E}else{const E=h-c.top-c.bottom;x=u||$?Le(v,E):E}if($&&!u){const E=le(c.left,0),_=le(c.right,0),S=le(c.top,0),M=le(c.bottom,0);d?w=p-2*(E!==0||_!==0?E+_:le(c.left,c.right)):x=h-2*(S!==0||M!==0?S+M:le(c.top,c.bottom))}await s({...t,availableWidth:w,availableHeight:x});const C=await o.getDimensions(i.floating);return p!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}};function Be(e){return Ai(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ae(e){var t;return(t=(Ai(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ai(e){return e instanceof Node||e instanceof ue(e).Node}function Pe(e){return e instanceof Element||e instanceof ue(e).Element}function xe(e){return e instanceof HTMLElement||e instanceof ue(e).HTMLElement}function po(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function Lt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function bl(e){return["table","td","th"].includes(Be(e))}function xr(e){const t=Er(),n=pe(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 vl(e){let t=lt(e);for(;xe(t)&&!$n(t);){if(xr(t))return t;t=lt(t)}return null}function Er(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $n(e){return["html","body","#document"].includes(Be(e))}function pe(e){return ue(e).getComputedStyle(e)}function xn(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(e){if(Be(e)==="html")return e;const t=e.assignedSlot||e.parentNode||po(e)&&e.host||Ae(e);return po(t)?t.host:t}function Di(e){const t=lt(e);return $n(t)?e.ownerDocument?e.ownerDocument.body:e.body:xe(t)&&Lt(t)?t:Di(t)}function At(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Di(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ue(o);return i?t.concat(s,s.visualViewport||[],Lt(o)?o:[],s.frameElement&&n?At(s.frameElement):[]):t.concat(o,At(o,[],n))}function Ii(e){const t=pe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xe(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=sn(n)!==i||sn(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Cr(e){return Pe(e)?e:e.contextElement}function at(e){const t=Cr(e);if(!xe(t))return Ne(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ii(t);let s=(i?sn(n.width):n.width)/r,a=(i?sn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const yl=Ne(0);function Mi(e){const t=ue(e);return!Er()||!t.visualViewport?yl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function Xe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Cr(e);let s=Ne(1);t&&(r?Pe(r)&&(s=at(r)):s=at(e));const a=wl(i,n,r)?Mi(i):Ne(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const p=ue(i),h=r&&Pe(r)?ue(r):r;let m=p,b=m.frameElement;for(;b&&r&&h!==m;){const v=at(b),y=b.getBoundingClientRect(),$=pe(b),x=y.left+(b.clientLeft+parseFloat($.paddingLeft))*v.x,w=y.top+(b.clientTop+parseFloat($.paddingTop))*v.y;c*=v.x,l*=v.y,u*=v.x,d*=v.y,c+=x,l+=w,m=ue(b),b=m.frameElement}}return cn({width:u,height:d,x:c,y:l})}const $l=[":popover-open",":modal"];function ji(e){return $l.some(t=>{try{return e.matches(t)}catch{return!1}})}function xl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ae(r),a=t?ji(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Ne(1);const u=Ne(0),d=xe(r);if((d||!d&&!i)&&((Be(r)!=="body"||Lt(s))&&(c=xn(r)),xe(r))){const p=Xe(r);l=at(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function El(e){return Array.from(e.getClientRects())}function Li(e){return Xe(Ae(e)).left+xn(e).scrollLeft}function Cl(e){const t=Ae(e),n=xn(e),r=e.ownerDocument.body,o=le(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=le(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Li(e);const a=-n.scrollTop;return pe(r).direction==="rtl"&&(s+=le(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function _l(e,t){const n=ue(e),r=Ae(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const l=Er();(!l||l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}function Sl(e,t){const n=Xe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=xe(e)?at(e):Ne(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function ho(e,t,n){let r;if(t==="viewport")r=_l(e,n);else if(t==="document")r=Cl(Ae(e));else if(Pe(t))r=Sl(t,n);else{const o=Mi(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return cn(r)}function Ni(e,t){const n=lt(e);return n===t||!Pe(n)||$n(n)?!1:pe(n).position==="fixed"||Ni(n,t)}function Ol(e,t){const n=t.get(e);if(n)return n;let r=At(e,[],!1).filter(a=>Pe(a)&&Be(a)!=="body"),o=null;const i=pe(e).position==="fixed";let s=i?lt(e):e;for(;Pe(s)&&!$n(s);){const a=pe(s),c=xr(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Lt(s)&&!c&&Ni(e,s))?r=r.filter(u=>u!==s):o=a,s=lt(s)}return t.set(e,r),r}function Rl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ol(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,u)=>{const d=ho(t,u,o);return l.top=le(d.top,l.top),l.right=Le(d.right,l.right),l.bottom=Le(d.bottom,l.bottom),l.left=le(d.left,l.left),l},ho(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function kl(e){const{width:t,height:n}=Ii(e);return{width:t,height:n}}function Tl(e,t,n){const r=xe(t),o=Ae(t),i=n==="fixed",s=Xe(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Ne(0);if(r||!r&&!i)if((Be(t)!=="body"||Lt(o))&&(a=xn(t)),r){const d=Xe(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else o&&(c.x=Li(o));const l=s.left+a.scrollLeft-c.x,u=s.top+a.scrollTop-c.y;return{x:l,y:u,width:s.width,height:s.height}}function go(e,t){return!xe(e)||pe(e).position==="fixed"?null:t?t(e):e.offsetParent}function Bi(e,t){const n=ue(e);if(!xe(e)||ji(e))return n;let r=go(e,t);for(;r&&bl(r)&&pe(r).position==="static";)r=go(r,t);return r&&(Be(r)==="html"||Be(r)==="body"&&pe(r).position==="static"&&!xr(r))?n:r||vl(e)||n}const Pl=async function(e){const t=this.getOffsetParent||Bi,n=this.getDimensions;return{reference:Tl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function Al(e){return pe(e).direction==="rtl"}const Dl={convertOffsetParentRelativeRectToViewportRelativeRect:xl,getDocumentElement:Ae,getClippingRect:Rl,getOffsetParent:Bi,getElementRects:Pl,getClientRects:El,getDimensions:kl,getScale:at,isElement:Pe,isRTL:Al};function Il(e,t){let n=null,r;const o=Ae(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const h=qt(u),m=qt(o.clientWidth-(l+d)),b=qt(o.clientHeight-(u+p)),v=qt(l),$={rootMargin:-h+"px "+-m+"px "+-b+"px "+-v+"px",threshold:le(0,Le(1,c))||1};let x=!0;function w(C){const E=C[0].intersectionRatio;if(E!==c){if(!x)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(w,{...$,root:o.ownerDocument})}catch{n=new IntersectionObserver(w,$)}n.observe(e)}return s(!0),i}function Ml(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:c=!1}=r,l=Cr(e),u=o||i?[...l?At(l):[],...At(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=l&&a?Il(l,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(y=>{let[$]=y;$&&$.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let m,b=c?Xe(e):null;c&&v();function v(){const y=Xe(e);b&&(y.x!==b.x||y.y!==b.y||y.width!==b.width||y.height!==b.height)&&n(),b=y,m=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach($=>{o&&$.removeEventListener("scroll",n),i&&$.removeEventListener("resize",n)}),d==null||d(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const jl=hl,Ll=ul,Nl=ml,Bl=fl,mo=ll,zl=gl,Fl=(e,t,n)=>{const r=new Map,o={platform:Dl,...n},i={...o.platform,_c:r};return cl(e,t,{...o,platform:i})},Wl=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?mo({element:r.current,padding:o}).fn(n):{}:r?mo({element:r,padding:o}).fn(n):{}}}};var nn=typeof document<"u"?f.useLayoutEffect:f.useEffect;function ln(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(!ln(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)&&!ln(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function zi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bo(e,t){const n=zi(e);return Math.round(t*n)/n}function vo(e){const t=f.useRef(e);return nn(()=>{t.current=e}),t}function Hl(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:c,open:l}=e,[u,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=f.useState(r);ln(p,r)||h(r);const[m,b]=f.useState(null),[v,y]=f.useState(null),$=f.useCallback(L=>{L!==E.current&&(E.current=L,b(L))},[]),x=f.useCallback(L=>{L!==_.current&&(_.current=L,y(L))},[]),w=i||m,C=s||v,E=f.useRef(null),_=f.useRef(null),S=f.useRef(u),M=c!=null,T=vo(c),P=vo(o),R=f.useCallback(()=>{if(!E.current||!_.current)return;const L={placement:t,strategy:n,middleware:p};P.current&&(L.platform=P.current),Fl(E.current,_.current,L).then(Y=>{const q={...Y,isPositioned:!0};B.current&&!ln(S.current,q)&&(S.current=q,mr.flushSync(()=>{d(q)}))})},[p,t,n,P]);nn(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,d(L=>({...L,isPositioned:!1})))},[l]);const B=f.useRef(!1);nn(()=>(B.current=!0,()=>{B.current=!1}),[]),nn(()=>{if(w&&(E.current=w),C&&(_.current=C),w&&C){if(T.current)return T.current(w,C,R);R()}},[w,C,R,T,M]);const j=f.useMemo(()=>({reference:E,floating:_,setReference:$,setFloating:x}),[$,x]),I=f.useMemo(()=>({reference:w,floating:C}),[w,C]),z=f.useMemo(()=>{const L={position:n,left:0,top:0};if(!I.floating)return L;const Y=bo(I.floating,u.x),q=bo(I.floating,u.y);return a?{...L,transform:"translate("+Y+"px, "+q+"px)",...zi(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:q}},[n,a,I.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:R,refs:j,elements:I,floatingStyles:z}),[u,R,j,I,z])}const Vl=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return f.createElement(Ze.svg,Z({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:f.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Ul=Vl;function Kl(e){const[t,n]=f.useState(void 0);return ct(()=>{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 c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.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 Fi="Popper",[Wi,Hi]=ki(Fi),[Gl,Vi]=Wi(Fi),Yl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return f.createElement(Gl,{scope:t,anchor:r,onAnchorChange:o},n)},ql="PopperAnchor",Xl=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Vi(ql,n),s=f.useRef(null),a=ft(t,s);return f.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:f.createElement(Ze.div,Z({},o,{ref:a}))}),Ui="PopperContent",[Jl,Zl]=Wi(Ui),Ql=f.forwardRef((e,t)=>{var n,r,o,i,s,a,c,l;const{__scopePopper:u,side:d="bottom",sideOffset:p=0,align:h="center",alignOffset:m=0,arrowPadding:b=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:$=0,sticky:x="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:E,..._}=e,S=Vi(Ui,u),[M,T]=f.useState(null),P=ft(t,ye=>T(ye)),[R,B]=f.useState(null),j=Kl(R),I=(n=j==null?void 0:j.width)!==null&&n!==void 0?n:0,z=(r=j==null?void 0:j.height)!==null&&r!==void 0?r:0,L=d+(h!=="center"?"-"+h:""),Y=typeof $=="number"?$:{top:0,right:0,bottom:0,left:0,...$},q=Array.isArray(y)?y:[y],Ee=q.length>0,oe={padding:Y,boundary:q.filter(ru),altBoundary:Ee},{refs:Ft,floatingStyles:yt,placement:Wt,isPositioned:Fe,middlewareData:me}=Hl({strategy:"fixed",placement:L,whileElementsMounted:(...ye)=>Ml(...ye,{animationFrame:C==="always"}),elements:{reference:S.anchor},middleware:[pl({mainAxis:p+z,alignmentAxis:m}),v&&jl({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?zl():void 0,...oe}),v&&Ll({...oe}),Nl({...oe,apply:({elements:ye,rects:Ve,availableWidth:Sn,availableHeight:On})=>{const{width:Rn,height:Kt}=Ve.reference,Ue=ye.floating.style;Ue.setProperty("--radix-popper-available-width",`${Sn}px`),Ue.setProperty("--radix-popper-available-height",`${On}px`),Ue.setProperty("--radix-popper-anchor-width",`${Rn}px`),Ue.setProperty("--radix-popper-anchor-height",`${Kt}px`)}}),R&&Wl({element:R,padding:b}),ou({arrowWidth:I,arrowHeight:z}),w&&Bl({strategy:"referenceHidden",...oe})]}),[We,Ie]=Ki(Wt),He=pt(E);ct(()=>{Fe&&(He==null||He())},[Fe,He]);const Ht=(o=me.arrow)===null||o===void 0?void 0:o.x,Vt=(i=me.arrow)===null||i===void 0?void 0:i.y,Ut=((s=me.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Me,wt]=f.useState();return ct(()=>{M&&wt(window.getComputedStyle(M).zIndex)},[M]),f.createElement("div",{ref:Ft.setFloating,"data-radix-popper-content-wrapper":"",style:{...yt,transform:Fe?yt.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Me,"--radix-popper-transform-origin":[(a=me.transformOrigin)===null||a===void 0?void 0:a.x,(c=me.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},f.createElement(Jl,{scope:u,placedSide:We,onArrowChange:B,arrowX:Ht,arrowY:Vt,shouldHideArrow:Ut},f.createElement(Ze.div,Z({"data-side":We,"data-align":Ie},_,{ref:P,style:{..._.style,animation:Fe?void 0:"none",opacity:(l=me.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),eu="PopperArrow",tu={top:"bottom",right:"left",bottom:"top",left:"right"},nu=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Zl(eu,r),s=tu[i.placedSide];return f.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}},f.createElement(Ul,Z({},o,{ref:n,style:{...o.style,display:"block"}})))});function ru(e){return e!==null}const ou=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:c,middlewareData:l}=t,d=((n=l.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[m,b]=Ki(a),v={start:"0%",center:"50%",end:"100%"}[b],y=((r=(o=l.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,$=((i=(s=l.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+h/2;let x="",w="";return m==="bottom"?(x=d?v:`${y}px`,w=`${-h}px`):m==="top"?(x=d?v:`${y}px`,w=`${c.floating.height+h}px`):m==="right"?(x=`${-h}px`,w=d?v:`${$}px`):m==="left"&&(x=`${c.floating.width+h}px`,w=d?v:`${$}px`),{data:{x,y:w}}}});function Ki(e){const[t,n="center"]=e.split("-");return[t,n]}const iu=Yl,su=Xl,au=Ql,cu=nu;function lu(e,t){return f.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Gi=e=>{const{present:t,children:n}=e,r=uu(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=ft(r.ref,o.ref);return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};Gi.displayName="Presence";function uu(e){const[t,n]=f.useState(),r=f.useRef({}),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=lu(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Xt(r.current);i.current=a==="mounted"?l:"none"},[a]),ct(()=>{const l=r.current,u=o.current;if(u!==e){const p=i.current,h=Xt(l);e?c("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ct(()=>{if(t){const l=d=>{const h=Xt(r.current).includes(d.animationName);d.target===t&&h&&mr.flushSync(()=>c("ANIMATION_END"))},u=d=>{d.target===t&&(i.current=Xt(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Xt(e){return(e==null?void 0:e.animationName)||"none"}function fu({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=du({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=pt(n),c=f.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else o(l)},[i,e,o,a]);return[s,c]}function du({defaultProp:e,onChange:t}){const n=f.useState(e),[r]=n,o=f.useRef(r),i=pt(t);return f.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const pu=f.forwardRef((e,t)=>f.createElement(Ze.span,Z({},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}}))),hu=pu,[En,lm]=ki("Tooltip",[Hi]),Cn=Hi(),gu="TooltipProvider",er="tooltip.open",[um,_r]=En(gu),Sr="Tooltip",[mu,_n]=En(Sr),bu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=_r(Sr,e.__scopeTooltip),l=Cn(t),[u,d]=f.useState(null),p=Qc(),h=f.useRef(0),m=s??c.disableHoverableContent,b=a??c.delayDuration,v=f.useRef(!1),[y=!1,$]=fu({prop:r,defaultProp:o,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent(er))):c.onClose(),i==null||i(_)}}),x=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),w=f.useCallback(()=>{window.clearTimeout(h.current),v.current=!1,$(!0)},[$]),C=f.useCallback(()=>{window.clearTimeout(h.current),$(!1)},[$]),E=f.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,$(!0)},b)},[b,$]);return f.useEffect(()=>()=>window.clearTimeout(h.current),[]),f.createElement(iu,l,f.createElement(mu,{scope:t,contentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{c.isOpenDelayed?E():w()},[c.isOpenDelayed,E,w]),onTriggerLeave:f.useCallback(()=>{m?C():window.clearTimeout(h.current)},[C,m]),onOpen:w,onClose:C,disableHoverableContent:m},n))},yo="TooltipTrigger",vu=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=_n(yo,n),i=_r(yo,n),s=Cn(n),a=f.useRef(null),c=ft(t,a,o.onTriggerChange),l=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.createElement(su,Z({asChild:!0},s),f.createElement(Ze.button,Z({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:c,onPointerMove:_e(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:_e(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:_e(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:_e(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:_e(e.onBlur,o.onClose),onClick:_e(e.onClick,o.onClose)})))}),yu="TooltipPortal",[fm,wu]=En(yu,{forceMount:void 0}),Dt="TooltipContent",$u=f.forwardRef((e,t)=>{const n=wu(Dt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=_n(Dt,e.__scopeTooltip);return f.createElement(Gi,{present:r||s.open},s.disableHoverableContent?f.createElement(Yi,Z({side:o},i,{ref:t})):f.createElement(xu,Z({side:o},i,{ref:t})))}),xu=f.forwardRef((e,t)=>{const n=_n(Dt,e.__scopeTooltip),r=_r(Dt,e.__scopeTooltip),o=f.useRef(null),i=ft(t,o),[s,a]=f.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:d}=r,p=f.useCallback(()=>{a(null),d(!1)},[d]),h=f.useCallback((m,b)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},$=Ou(y,v.getBoundingClientRect()),x=Ru(y,$),w=ku(b.getBoundingClientRect()),C=Pu([...x,...w]);a(C),d(!0)},[d]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(c&&u){const m=v=>h(v,u),b=v=>h(v,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",b)}}},[c,u,h,p]),f.useEffect(()=>{if(s){const m=b=>{const v=b.target,y={x:b.clientX,y:b.clientY},$=(c==null?void 0:c.contains(v))||(u==null?void 0:u.contains(v)),x=!Tu(y,s);$?p():x&&(p(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,s,l,p]),f.createElement(Yi,Z({},e,{ref:i}))}),[Eu,Cu]=En(Sr,{isInside:!1}),Yi=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=_n(Dt,n),l=Cn(n),{onClose:u}=c;return f.useEffect(()=>(document.addEventListener(er,u),()=>document.removeEventListener(er,u)),[u]),f.useEffect(()=>{if(c.trigger){const d=p=>{const h=p.target;h!=null&&h.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),f.createElement(Yc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},f.createElement(au,Z({"data-state":c.stateAttribute},l,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)"}}),f.createElement(mi,null,r),f.createElement(Eu,{scope:n,isInside:!0},f.createElement(hu,{id:c.contentId,role:"tooltip"},o||r))))}),_u="TooltipArrow",Su=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Cn(n);return Cu(_u,n).isInside?null:f.createElement(cu,Z({},o,r,{ref:t}))});function Ou(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 Ru(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 ku(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 Tu(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=u>r&&n<(l-a)*(r-c)/(u-c)+a&&(o=!o)}return o}function Pu(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),Au(t)}function Au(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 Du=bu,Iu=vu,Mu=$u,ju=Su;function Lu(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 F(e,t){if(e==null)return{};var n=Lu(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 U;(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"})(U||(U={}));const Nu={[U.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[U.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[U.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[U.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.`],[U.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[U.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[U.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[U.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[U.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[U.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[U.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function qi(e,t,...n){const[r,...o]=Nu[t](...n);console[e]("LEVA: "+r,...o)}const Se=qi.bind(null,"warn"),Bu=qi.bind(null,"log"),zu=["value"],Fu=["schema"],Wu=["value"],Xi=[],Je={};function wo(e){let{value:t}=e,n=F(e,zu);for(let r of Xi){const o=r(t,n);if(o)return o}}function De(e,t){let{schema:n}=t,r=F(t,Fu);if(e in Je){Se(U.ALREADY_REGISTERED_TYPE,e);return}Xi.push((o,i)=>n(o,i)&&e),Je[e]=r}function Nn(e,t,n,r){const{normalize:o}=Je[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=F(t,Wu);return{value:i,settings:s}}function Hu(e,t,n,r,o,i){const{sanitize:s}=Je[e];return s?s(t,n,r,o,i):t}function $o(e,t,n){const{format:r}=Je[e];return r?r(t,n):t}function Vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xo(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 A(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=je(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},Ku=Math.log(10);function Eo(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)/Ku)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const un=(e,t,n)=>n===t?0:(ze(e,t,n)-t)/(n-t),fn=(e,t,n)=>e*(n-t)+t,Gu=()=>"_"+Math.random().toString(36).substr(2,9),Co=/\(([0-9+\-*/^ .]+)\)/,_o=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,So=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Oo=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Ro=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,ko=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function je(e){if(isNaN(Number(e)))if(Co.test(e)){const t=e.replace(Co,(n,r)=>String(je(r)));return je(t)}else if(_o.test(e)){const t=e.replace(_o,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return je(t)}else if(So.test(e)){const t=e.replace(So,(n,r,o)=>String(Number(r)*Number(o)));return je(t)}else if(Oo.test(e)){const t=e.replace(Oo,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return je(t)}else if(Ro.test(e)){const t=e.replace(Ro,(n,r,o)=>String(Number(r)+Number(o)));return je(t)}else if(ko.test(e)){const t=e.replace(ko,(n,r,o)=>String(Number(r)-Number(o)));return je(t)}else return Number(e);return Number(e)}function Yu(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function qu(e,t){const n=A({},e);return t.forEach(r=>r in e&&delete n[r]),n}function Xu(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function Ji(e){return Object.prototype.toString.call(e)==="[object Object]"}const Ju=e=>Ji(e)&&Object.keys(e).length===0;let ce;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(ce||(ce={}));let he;(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"})(he||(he={}));const Zu=["type","__customInput"],Qu=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],ef=["type"];function Zi(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:A({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:C,__customInput:E}=e,_=F(e,Zu);return Zi(E,t,_,C)}const{render:s,label:a,optional:c,order:l=0,disabled:u,hint:d,onChange:p,onEditStart:h,onEditEnd:m,transient:b}=e,v=F(e,Qu),y=A({render:s,key:t,label:a??t,hint:d,transient:b??!!p,onEditStart:h,onEditEnd:m,disabled:u,optional:c,order:l},n);let{type:$}=v,x=F(v,ef);if($=r??$,$ in ce)return{type:$,input:x,options:y};let w;return r&&Ji(x)&&"value"in x?w=x.value:w=Ju(x)?void 0:x,{type:$,input:w,options:A(A({},y),{},{onChange:p,optional:(o=y.optional)!==null&&o!==void 0?o:!1,disabled:(i=y.disabled)!==null&&i!==void 0?i:!1})}}function tf(e,t,n,r){const o=Zi(e,t),{type:i,input:s,options:a}=o;if(i)return i in ce?o:{type:i,input:Nn(i,s,n,r),options:a};let c=wo(s);return c?{type:c,input:Nn(c,s,n,r),options:a}:(c=wo({value:s}),c?{type:c,input:Nn(c,{value:s},n,r),options:a}:!1)}function To(e,t,n,r,o){const{value:i,type:s,settings:a}=e;e.value=Qi({type:s,value:i,settings:a},t,n,r),e.fromPanel=o}const nf=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function Qi({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let a;try{a=Hu(e,s,n,t,o,i)}catch(c){throw new nf(`The value \`${r}\` did not result in a correct value.`,t,c)}return kt(a,t)?t:a}const es=(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()}},ts=e=>e.shiftKey?5:e.altKey?1/5:1;function rf(e,t){const n=console.error;console.error=()=>{},fi.render(e,t),console.error=n}const of=["value"],sf=["min","max"],af=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},ns=(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=ze(o,t,n);return r?i+r:i},cf=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},rs=e=>{let{value:t}=e,n=F(e,of);const{min:r=-1/0,max:o=1/0}=n,i=F(n,sf);let s=parseFloat(t);const a=typeof t=="string"?t.substring((""+s).length):void 0;s=ze(s,r,o);let c=n.step;c||(Number.isFinite(r)?Number.isFinite(o)?c=+(Math.abs(o-r)/100).toPrecision(1):c=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(c=+(Math.abs(o-s)/100).toPrecision(1)));const l=c?Eo(c)*10:Eo(s);c=c||l/10;const u=Math.round(ze(Math.log10(1/l),0,2));return{value:a?s+a:s,settings:A({initialValue:s,step:c,pad:u,min:r,max:o,suffix:a},i)}},os=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var is=Object.freeze({__proto__:null,schema:af,sanitize:ns,format:cf,normalize:rs,sanitizeStep:os});function G(){return G=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 Jt(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 Et={$inputStyle:()=>e=>Jt(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>Jt(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>Jt(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>Jt(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:D,css:dm,createTheme:ff,globalCss:df,keyframes:pm}=qa({prefix:"leva",theme:cs(),utils:A(A({},Et),{},{$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":Et.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":Et.$focusStyle()(e)}),$hover:e=>({"&:hover":Et.$hoverStyle()(e)}),$active:e=>({"&:active":Et.$activeStyle()(e)})})}),pf=df({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function hf(e){const t=cs();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=ff(t);return{theme:t,className:n.className}}function Oe(e,t){const{theme:n}=f.useContext(Or);if(!(e in n)||!(t in n[e]))return Se(U.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 ls=D("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),us=D("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${ls}`]:{paddingLeft:0}}),gf=D(us,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),mf=D("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),bf=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],vf=["onUpdate"];function kr(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:a,inputType:c="text",rows:l=0}=e,u=F(e,bf);const{id:d,emitOnEditStart:p,emitOnEditEnd:h,disabled:m}=ee(),b=a||d,v=f.useRef(null),y=l>0,$=y?"textarea":"input",x=f.useCallback(E=>_=>{const S=_.currentTarget.value;E(S)},[]);g.useEffect(()=>{const E=v.current,_=x(S=>{r(S),h()});return E==null||E.addEventListener("blur",_),()=>E==null?void 0:E.removeEventListener("blur",_)},[x,r,h]);const w=f.useCallback(E=>{E.key==="Enter"&&x(r)(E)},[x,r]),C=Object.assign({as:$},y?{rows:l}:{},u);return g.createElement(mf,{textArea:y},t&&typeof t=="string"?g.createElement(us,null,t):t,g.createElement(ls,G({levaType:s,ref:v,id:b,type:c,autoComplete:"off",spellCheck:"false",value:n,onChange:x(o),onFocus:()=>p(),onKeyPress:w,onKeyDown:i,disabled:m},C)))}function yf(e){let{onUpdate:t}=e,n=F(e,vf);const r=f.useCallback(i=>t(Uu(i)),[t]),o=f.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(c=>parseFloat(c)+s*a)}},[t]);return g.createElement(kr,G({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const dn=D("div",{}),tr=D("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"}}]}),wf=D("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 + ${tr}::after`]:{opacity:.6},[`${dn}:hover > & + ${tr}::after`]:{opacity:.6},[`${dn}:hover > & > svg`]:{opacity:1}}),fs=D("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"},[`> ${dn}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),ds=D("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${fs} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),ps=D(ds,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),$f=D("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"}}}}),xf=D("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"}}),nr=D("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),Ef=D("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${nr}`]:{pointerEvents:"auto"}}}}}),hs=D("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),Cf=D("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),_f=D(ju,{fill:"$toolTipBackground"});function Tr({children:e}){const{className:t}=f.useContext(Or);return g.createElement(ba,{className:t},e)}const Sf=["align"];function Of(){const{id:e,disable:t,disabled:n}=ee();return g.createElement(g.Fragment,null,g.createElement(xf,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),g.createElement("label",{htmlFor:e+"__disable"}))}function Rf(e){const{id:t,optional:n,hint:r}=ee(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return g.createElement(g.Fragment,null,n&&g.createElement(Of,null),r!==void 0?g.createElement(Du,null,g.createElement(Iu,{asChild:!0},g.createElement(nr,G({},o,e))),g.createElement(Mu,{side:"top",sideOffset:2},g.createElement(Cf,null,r,g.createElement(_f,null)))):g.createElement(nr,G({},o,i,e)))}function ve(e){let{align:t}=e,n=F(e,Sf);const{value:r,label:o,key:i,disabled:s}=ee(),{hideCopyButton:a}=lf(),c=!a&&i!==void 0,[l,u]=f.useState(!1),d=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),u(!0)}catch{Se(U.CLIPBOARD_ERROR,{[i]:r})}};return g.createElement($f,{align:t,onPointerLeave:()=>u(!1)},g.createElement(Rf,n),c&&!s&&g.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},l?g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},g.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),g.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"})):g.createElement("svg",{onClick:d,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},g.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),g.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 kf=["toggled"],Tf=D("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Pr(e){let{toggled:t}=e,n=F(e,kf);return g.createElement(Tf,G({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),g.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 Pf=["input"];function ge(e){let{input:t}=e,n=F(e,Pf);return t?g.createElement(ps,n):g.createElement(ds,n)}function gs({value:e,type:t,settings:n,setValue:r}){const[o,i]=f.useState($o(t,e,n)),s=f.useRef(e),a=f.useRef(n);a.current=n;const c=f.useCallback(u=>i($o(t,u,a.current)),[t]),l=f.useCallback(u=>{try{r(u)}catch(d){const{type:p,previousValue:h}=d;if(p!=="LEVA_ERROR")throw d;c(h)}},[c,r]);return f.useEffect(()=>{kt(e,s.current)||c(e),s.current=e},[e,c]),{displayValue:o,onChange:i,onUpdate:l}}function Nt(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=ee();return Wc(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 Af(e){const t=f.useRef(null),n=f.useRef(null),r=f.useRef(!1);return f.useEffect(()=>{const o=es(()=>{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]),f.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function ms(){const e=f.useRef(null),t=f.useRef({x:0,y:0}),n=f.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 Df=["__refCount"],Bn=(e,t)=>{if(!e[t])return null;const n=e[t];return F(n,Df)};function If(e){const t=Qe(),[n,r]=f.useState(Bn(t.getData(),e)),o=f.useCallback(l=>t.setValueAtPath(e,l,!0),[e,t]),i=f.useCallback(l=>t.setSettingsAtPath(e,l),[e,t]),s=f.useCallback(l=>t.disableInputAtPath(e,l),[e,t]),a=f.useCallback(()=>t.emitOnEditStart(e),[e,t]),c=f.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return f.useEffect(()=>{r(Bn(t.getData(),e));const l=t.useStore.subscribe(u=>Bn(u.data,e),r,{equalityFn:It});return()=>l()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const Mf=D("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),bs=D("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),rr=D("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)))"}}}}),vs=D("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),ys=D("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function jf({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=f.useRef(null),a=f.useRef(null),c=f.useRef(0),l=Oe("sizes","scrubberWidth"),u=Nt(({event:p,first:h,xy:[m],movement:[b],memo:v})=>{if(h){const{width:$,left:x}=s.current.getBoundingClientRect();c.current=$-parseFloat(l),v=(p==null?void 0:p.target)===a.current?e:fn((m-x)/$,t,n)}const y=v+fn(b/c.current,0,n-t);return r(os(y,{step:o,initialValue:i})),v}),d=un(e,t,n);return g.createElement(vs,G({ref:s},u()),g.createElement(bs,null,g.createElement(ys,{style:{left:0,right:`${(1-d)*100}%`}})),g.createElement(rr,{ref:a,style:{left:`calc(${d} * (100% - ${l}))`}}))}const Lf=g.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=f.useState(!1),s=Nt(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(t(d=>parseFloat(d)+Math.floor(u)*n*ts(l)),u=0),u));return g.createElement(gf,G({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function ws({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const a=s>0&&g.createElement(Lf,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return g.createElement(yf,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:a})}function Nf(){const e=ee(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:a}=o,c=a!==1/0&&s!==-1/0;return g.createElement(ge,{input:!0},g.createElement(ve,null,t),g.createElement(Mf,{hasRange:c},c&&g.createElement(jf,G({value:parseFloat(n),onDrag:r},o)),g.createElement(ws,G({},e,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:Bf}=is,zf=F(is,["sanitizeStep"]);var Ff=A({component:Nf},zf);const Wf=(e,t)=>ae().schema({options:ae().passesAnyOf(ae().object(),ae().array())}).test(t),Hf=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},Vf=(e,{values:t})=>t.indexOf(e),Uf=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 Kf=Object.freeze({__proto__:null,schema:Wf,sanitize:Hf,format:Vf,normalize:Uf});const Gf=D("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),or=D("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Yf=D("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${or}:focus + &`]:{$focusStyle:""},[`${or}:hover + &`]:{$hoverStyle:""}});function qf({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:a}=o,c=f.useRef();return t===a[e]&&(c.current=s[e]),g.createElement(Gf,null,g.createElement(or,{id:r,value:e,onChange:l=>n(a[Number(l.currentTarget.value)]),disabled:i},s.map((l,u)=>g.createElement("option",{key:l,value:u},l))),g.createElement(Yf,null,c.current),g.createElement(Pr,{toggled:!0}))}function Xf(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(qf,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var Jf=A({component:Xf},Kf);const Zf=e=>ae().string().test(e),Qf=e=>{if(typeof e!="string")throw Error("Invalid string");return e},ed=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var td=Object.freeze({__proto__:null,schema:Zf,sanitize:Qf,normalize:ed});const nd=["displayValue","onUpdate","onChange","editable"],rd=D("div",{whiteSpace:"pre-wrap"});function od(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=F(e,nd);return o?g.createElement(kr,G({value:t,onUpdate:n,onChange:r},i)):g.createElement(rd,null,t)}function id(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(od,G({displayValue:n,onUpdate:r,onChange:o},t)))}var sd=A({component:id},td);const ad=e=>ae().boolean().test(e),cd=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var ld=Object.freeze({__proto__:null,schema:ad,sanitize:cd});const ud=D("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 fd({value:e,onUpdate:t,id:n,disabled:r}){return g.createElement(ud,null,g.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),g.createElement("label",{htmlFor:n},g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function dd(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=ee();return g.createElement(ge,{input:!0},g.createElement(ve,null,e),g.createElement(fd,{value:t,onUpdate:n,id:o,disabled:r}))}var pd=A({component:dd},ld);const hd=["locked"];function gd({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=f.useRef(e[n]);s.current=e[n];const a=f.useCallback(l=>o({[n]:Qi({type:"NUMBER",value:s.current,settings:r},l)}),[o,r,n]),c=gs({type:"NUMBER",value:e[n],settings:r,setValue:a});return g.createElement(ws,{id:t,label:n,value:e[n],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:r,innerLabelTrim:i})}const md=D("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function bd(e){let{locked:t}=e,n=F(e,hd);return g.createElement("svg",G({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?g.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"}):g.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 Ar({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=ee(),{lock:s,locked:a}=n;return g.createElement(md,{withLock:s},s&&g.createElement(bd,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(e).map((c,l)=>g.createElement(gd,{id:l===0?o:`${o}.${c}`,key:c,valueKey:c,value:e,settings:n[c],onUpdate:t,innerLabelTrim:r})))}const $s=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=rs(A({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:c}=t[i]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(c))&&(n[i].step=r,n[i].pad=o)}return n},vd=["lock"],yd=["value"];function wd(e){const t=ae().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 $d(e){return Array.isArray(e)?"array":"object"}function St(e,t,n){return $d(e)===t?e:t==="array"?Object.values(e):Xu(e,n)}const xd=(e,t,n)=>{const r=St(e,"object",t.keys);for(let s in r)r[s]=ns(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=St(n,"object",t.keys);if(o.length===1&&t.locked){const a=o[0],c=r[a],l=s[a],u=l!==0?c/l:1;for(let d in s)d===a?i[a]=c:i[d]=s[d]*u}else i=A(A({},s),r)}return St(i,t.format,t.keys)},Ed=(e,t)=>St(e,"object",t.keys),Cd=e=>!!e&&("step"in e||"min"in e||"max"in e);function _d(e,t,n=[]){const{lock:r=!1}=t,o=F(t,vd),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,a=St(e,"object",s),c=Cd(o)?s.reduce((u,d)=>Object.assign(u,{[d]:o}),{}):o,l=$s(a,c);return{value:i==="array"?e:a,settings:A(A({},l),{},{format:i,keys:s,lock:r,locked:!1})}}function xs(e){return{schema:wd(e.length),normalize:t=>{let{value:n}=t,r=F(t,yd);return _d(n,r,e)},format:(t,n)=>Ed(t,n),sanitize:(t,n,r)=>xd(t,n,r)}}var Sd={grad:.9,turn:360,rad:360/(2*Math.PI)},Ce=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},X=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},de=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Es=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Po=function(e){return{r:de(e.r,0,255),g:de(e.g,0,255),b:de(e.b,0,255),a:de(e.a)}},zn=function(e){return{r:X(e.r),g:X(e.g),b:X(e.b),a:X(e.a,3)}},Od=/^#([0-9a-f]{3,8})$/i,Zt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Cs=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}},_s=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),c=r*(1-(1-t+i)*n),l=i%6;return{r:255*[r,a,s,s,c,r][l],g:255*[c,r,r,a,s,s][l],b:255*[s,s,c,r,r,a][l],a:o}},Ao=function(e){return{h:Es(e.h),s:de(e.s,0,100),l:de(e.l,0,100),a:de(e.a)}},Do=function(e){return{h:X(e.h),s:X(e.s),l:X(e.l),a:X(e.a,3)}},Io=function(e){return _s((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},Ot=function(e){return{h:(t=Cs(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},Rd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,kd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Td=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Pd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ir={string:[[function(e){var t=Od.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?X(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?X(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Td.exec(e)||Pd.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Po({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=Rd.exec(e)||kd.exec(e);if(!t)return null;var n,r,o=Ao({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(Sd[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Io(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 Ce(t)&&Ce(n)&&Ce(r)?Po({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(!Ce(t)||!Ce(n)||!Ce(r))return null;var s=Ao({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Io(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!Ce(t)||!Ce(n)||!Ce(r))return null;var s=function(a){return{h:Es(a.h),s:de(a.s,0,100),v:de(a.v,0,100),a:de(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return _s(s)},"hsv"]]},Mo=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=zn(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?Zt(X(255*i)):"","#"+Zt(n)+Zt(r)+Zt(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return zn(this.rgba)},e.prototype.toRgbString=function(){return t=zn(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 Do(Ot(this.rgba))},e.prototype.toHslString=function(){return t=Do(Ot(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=Cs(this.rgba),{h:X(t.h),s:X(t.s),v:X(t.v),a:X(t.a,3)};var t},e.prototype.invert=function(){return ne({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),ne(Fn(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),ne(Fn(this.rgba,-t))},e.prototype.grayscale=function(){return ne(Fn(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),ne(jo(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),ne(jo(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"?ne({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):X(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=Ot(this.rgba);return typeof t=="number"?ne({h:t,s:n.s,l:n.l,a:n.a}):X(n.h)},e.prototype.isEqual=function(t){return this.toHex()===ne(t).toHex()},e}(),ne=function(e){return e instanceof sr?e:new sr(e)},Lo=[],Dd=function(e){e.forEach(function(t){Lo.indexOf(t)<0&&(t(sr,ir),Lo.push(t))})};function Id(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,c,l=r[this.toHex()];if(l)return l;if(s!=null&&s.closest){var u=this.toRgb(),d=1/0,p="black";if(!i.length)for(var h in n)i[h]=new e(n[h]).toRgb();for(var m in n){var b=(a=u,c=i[m],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));b=0||(o[n]=e[n]);return o}function ar(e){var t=f.useRef(e),n=f.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var ut=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:v.buttons>0)&&o.current?i(No(o.current,v,a.current)):b(!1)},m=function(){return b(!1)};function b(v){var y=c.current,$=cr(o.current),x=v?$.addEventListener:$.removeEventListener;x(y?"touchmove":"mousemove",h),x(y?"touchend":"mouseup",m)}return[function(v){var y=v.nativeEvent,$=o.current;if($&&(Bo(y),!function(w,C){return C&&!Rt(w)}(y,c.current)&&$)){if(Rt(y)){c.current=!0;var x=y.changedTouches||[];x.length&&(a.current=x[0].identifier)}$.focus(),i(No($,y,a.current)),b(!0)}},function(v){var y=v.which||v.keyCode;y<37||y>40||(v.preventDefault(),s({left:y===39?.05:y===37?-.05:0,top:y===40?.05:y===38?-.05:0}))},b]},[s,i]),u=l[0],d=l[1],p=l[2];return f.useEffect(function(){return p},[p]),g.createElement("div",mt({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),Bt=function(e){return e.filter(Boolean).join(" ")},Mr=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Bt(["react-colorful__pointer",e.className]);return g.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},g.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},re=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Os=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:re(e.h),s:re(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:re(o/2),a:re(r,2)}},lr=function(e){var t=Os(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Hn=function(e){var t=Os(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Rs=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),c=r*(1-(1-t+i)*n),l=i%6;return{r:re(255*[r,a,s,s,c,r][l]),g:re(255*[c,r,r,a,s,s][l]),b:re(255*[s,s,c,r,r,a][l]),a:re(o,2)}},ks=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:re(60*(a<0?a+6:a)),s:re(i?s/i*100:0),v:re(i/255*100),a:o}},Ts=g.memo(function(e){var t=e.hue,n=e.onChange,r=Bt(["react-colorful__hue",e.className]);return g.createElement("div",{className:r},g.createElement(Ir,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:ut(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":re(t),"aria-valuemax":"360","aria-valuemin":"0"},g.createElement(Mr,{className:"react-colorful__hue-pointer",left:t/360,color:lr({h:t,s:100,v:100,a:1})})))}),Ps=g.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:lr({h:t.h,s:100,v:100,a:1})};return g.createElement("div",{className:"react-colorful__saturation",style:r},g.createElement(Ir,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:ut(t.s+100*o.left,0,100),v:ut(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+re(t.s)+"%, Brightness "+re(t.v)+"%"},g.createElement(Mr,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:lr(t)})))}),jr=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function As(e,t,n){var r=ar(n),o=f.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=f.useRef({color:t,hsva:i});f.useEffect(function(){if(!e.equal(t,a.current.color)){var l=e.toHsva(t);a.current={hsva:l,color:t},s(l)}},[t,e]),f.useEffect(function(){var l;jr(i,a.current.hsva)||e.equal(l=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},r(l))},[i,e,r]);var c=f.useCallback(function(l){s(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var Md=typeof window<"u"?f.useLayoutEffect:f.useEffect,jd=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},zo=new Map,Ds=function(e){Md(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!zo.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}`,zo.set(t,n);var r=jd();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Ld=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Dr(e,["className","colorModel","color","onChange"]),a=f.useRef(null);Ds(a);var c=As(n,o,i),l=c[0],u=c[1],d=Bt(["react-colorful",t]);return g.createElement("div",mt({},s,{ref:a,className:d}),g.createElement(Ps,{hsva:l,onChange:u}),g.createElement(Ts,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},Nd=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Hn(Object.assign({},n,{a:0}))+", "+Hn(Object.assign({},n,{a:1}))+")"},i=Bt(["react-colorful__alpha",t]),s=re(100*n.a);return g.createElement("div",{className:i},g.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),g.createElement(Ir,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:ut(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},g.createElement(Mr,{className:"react-colorful__alpha-pointer",left:n.a,color:Hn(n)})))},Bd=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Dr(e,["className","colorModel","color","onChange"]),a=f.useRef(null);Ds(a);var c=As(n,o,i),l=c[0],u=c[1],d=Bt(["react-colorful",t]);return g.createElement("div",mt({},s,{ref:a,className:d}),g.createElement(Ps,{hsva:l,onChange:u}),g.createElement(Ts,{hue:l.h,onChange:u}),g.createElement(Nd,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},zd={defaultColor:{r:0,g:0,b:0,a:1},toHsva:ks,fromHsva:Rs,equal:jr},Fd=function(e){return g.createElement(Bd,mt({},e,{colorModel:zd}))},Wd={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return ks({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=Rs(e)).r,g:t.g,b:t.b};var t},equal:jr},Hd=function(e){return g.createElement(Ld,mt({},e,{colorModel:Wd}))};function bt(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(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function vt(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(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[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 Ud(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Gd(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=Kd.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Yd=[".DS_Store","Thumbs.db"];function qd(e){return bt(this,void 0,void 0,function(){return vt(this,function(t){return pn(e)&&Xd(e)?[2,ep(e.dataTransfer,e.type)]:Jd(e)?[2,Zd(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Qd(e)]:[2,[]]})})}function Xd(e){return pn(e.dataTransfer)}function Jd(e){return pn(e)&&pn(e.target)}function pn(e){return typeof e=="object"&&e!==null}function Zd(e){return ur(e.target.files).map(function(t){return zt(t)})}function Qd(e){return bt(this,void 0,void 0,function(){var t;return vt(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 zt(r)})]}})})}function ep(e,t){return bt(this,void 0,void 0,function(){var n,r;return vt(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=ur(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(tp))]):[3,2];case 1:return r=o.sent(),[2,Fo(Is(r))];case 2:return[2,Fo(ur(e.files).map(function(i){return zt(i)}))]}})})}function Fo(e){return e.filter(function(t){return Yd.indexOf(t.name)===-1})}function ur(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,Go(n)];if(e.sizen)return[!1,Go(n)]}return[!0,null]}function Ct(e){return e!=null}function gp(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 c=Ls(a,n),l=Uo(c,1),u=l[0],d=Ns(a,r,o),p=Uo(d,1),h=p[0];return u&&h})}function hn(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Qt(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 qo(e){e.preventDefault()}function mp(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function bp(e){return e.indexOf("Edge/")!==-1}function vp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return mp(e)||bp(e)}function we(){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 Ip(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 Lr=f.forwardRef(function(e,t){var n=e.children,r=gn(e,Ep),o=Fs(r),i=o.open,s=gn(o,Cp);return f.useImperativeHandle(t,function(){return{open:i}},[i]),g.createElement(f.Fragment,null,n(V(V({},s),{},{open:i})))});Lr.displayName="Dropzone";var zs={disabled:!1,getFilesFromEvent:qd,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Lr.defaultProps=zs;Lr.propTypes={children:H.func,accept:H.oneOfType([H.string,H.arrayOf(H.string)]),multiple:H.bool,preventDropOnDocument:H.bool,noClick:H.bool,noKeyboard:H.bool,noDrag:H.bool,noDragEventsBubbling:H.bool,minSize:H.number,maxSize:H.number,maxFiles:H.number,disabled:H.bool,getFilesFromEvent:H.func,onFileDialogCancel:H.func,onFileDialogOpen:H.func,useFsAccessApi:H.bool,onDragEnter:H.func,onDragLeave:H.func,onDragOver:H.func,onDrop:H.func,onDropAccepted:H.func,onDropRejected:H.func,validator:H.func};var pr={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Fs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=V(V({},zs),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,c=t.maxFiles,l=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,b=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,$=t.preventDropOnDocument,x=t.noClick,w=t.noKeyboard,C=t.noDrag,E=t.noDragEventsBubbling,_=t.validator,S=f.useMemo(function(){return typeof v=="function"?v:Jo},[v]),M=f.useMemo(function(){return typeof b=="function"?b:Jo},[b]),T=f.useRef(null),P=f.useRef(null),R=f.useReducer(Mp,pr),B=Vn(R,2),j=B[0],I=B[1],z=j.isFocused,L=j.isFileDialogActive,Y=j.draggedFiles,q=f.useRef(typeof window<"u"&&window.isSecureContext&&y&&yp()),Ee=function(){!q.current&&L&&setTimeout(function(){if(P.current){var N=P.current.files;N.length||(I({type:"closeDialog"}),M())}},300)};f.useEffect(function(){return window.addEventListener("focus",Ee,!1),function(){window.removeEventListener("focus",Ee,!1)}},[P,L,M,q]);var oe=f.useRef([]),Ft=function(N){T.current&&T.current.contains(N.target)||(N.preventDefault(),oe.current=[])};f.useEffect(function(){return $&&(document.addEventListener("dragover",qo,!1),document.addEventListener("drop",Ft,!1)),function(){$&&(document.removeEventListener("dragover",qo),document.removeEventListener("drop",Ft))}},[T,$]);var yt=f.useCallback(function(O){O.preventDefault(),O.persist(),Ve(O),oe.current=[].concat(Op(oe.current),[O.target]),Qt(O)&&Promise.resolve(o(O)).then(function(N){hn(O)&&!E||(I({draggedFiles:N,isDragActive:!0,type:"setDraggedFiles"}),l&&l(O))})},[o,l,E]),Wt=f.useCallback(function(O){O.preventDefault(),O.persist(),Ve(O);var N=Qt(O);if(N&&O.dataTransfer)try{O.dataTransfer.dropEffect="copy"}catch{}return N&&d&&d(O),!1},[d,E]),Fe=f.useCallback(function(O){O.preventDefault(),O.persist(),Ve(O);var N=oe.current.filter(function(ie){return T.current&&T.current.contains(ie)}),J=N.indexOf(O.target);J!==-1&&N.splice(J,1),oe.current=N,!(N.length>0)&&(I({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Qt(O)&&u&&u(O))},[T,u,E]),me=f.useCallback(function(O,N){var J=[],ie=[];O.forEach(function(be){var $t=Ls(be,n),et=Vn($t,2),kn=et[0],Tn=et[1],Pn=Ns(be,s,i),Gt=Vn(Pn,2),An=Gt[0],Dn=Gt[1],In=_?_(be):null;if(kn&&An&&!In)J.push(be);else{var Mn=[Tn,Dn];In&&(Mn=Mn.concat(In)),ie.push({file:be,errors:Mn.filter(function(oa){return oa})})}}),(!a&&J.length>1||a&&c>=1&&J.length>c)&&(J.forEach(function(be){ie.push({file:be,errors:[hp]})}),J.splice(0)),I({acceptedFiles:J,fileRejections:ie,type:"setFiles"}),p&&p(J,ie,N),ie.length>0&&m&&m(ie,N),J.length>0&&h&&h(J,N)},[I,a,n,s,i,c,p,h,m,_]),We=f.useCallback(function(O){O.preventDefault(),O.persist(),Ve(O),oe.current=[],Qt(O)&&Promise.resolve(o(O)).then(function(N){hn(O)&&!E||me(N,O)}),I({type:"reset"})},[o,me,E]),Ie=f.useCallback(function(){if(q.current){I({type:"openDialog"}),S();var O={multiple:a,types:wp(n)};window.showOpenFilePicker(O).then(function(N){return o(N)}).then(function(N){me(N,null),I({type:"closeDialog"})}).catch(function(N){$p(N)?(M(N),I({type:"closeDialog"})):xp(N)&&(q.current=!1,P.current&&(P.current.value=null,P.current.click()))});return}P.current&&(I({type:"openDialog"}),S(),P.current.value=null,P.current.click())},[I,S,M,y,me,n,a]),He=f.useCallback(function(O){!T.current||!T.current.isEqualNode(O.target)||(O.key===" "||O.key==="Enter"||O.keyCode===32||O.keyCode===13)&&(O.preventDefault(),Ie())},[T,Ie]),Ht=f.useCallback(function(){I({type:"focus"})},[]),Vt=f.useCallback(function(){I({type:"blur"})},[]),Ut=f.useCallback(function(){x||(vp()?setTimeout(Ie,0):Ie())},[x,Ie]),Me=function(N){return r?null:N},wt=function(N){return w?null:Me(N)},ye=function(N){return C?null:Me(N)},Ve=function(N){E&&N.stopPropagation()},Sn=f.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=O.refKey,J=N===void 0?"ref":N,ie=O.role,be=O.onKeyDown,$t=O.onFocus,et=O.onBlur,kn=O.onClick,Tn=O.onDragEnter,Pn=O.onDragOver,Gt=O.onDragLeave,An=O.onDrop,Dn=gn(O,_p);return V(V(dr({onKeyDown:wt(we(be,He)),onFocus:wt(we($t,Ht)),onBlur:wt(we(et,Vt)),onClick:Me(we(kn,Ut)),onDragEnter:ye(we(Tn,yt)),onDragOver:ye(we(Pn,Wt)),onDragLeave:ye(we(Gt,Fe)),onDrop:ye(we(An,We)),role:typeof ie=="string"&&ie!==""?ie:"button"},J,T),!r&&!w?{tabIndex:0}:{}),Dn)}},[T,He,Ht,Vt,Ut,yt,Wt,Fe,We,w,C,r]),On=f.useCallback(function(O){O.stopPropagation()},[]),Rn=f.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=O.refKey,J=N===void 0?"ref":N,ie=O.onChange,be=O.onClick,$t=gn(O,Sp),et=dr({accept:n,multiple:a,type:"file",style:{display:"none"},onChange:Me(we(ie,We)),onClick:Me(we(be,On)),tabIndex:-1},J,P);return V(V({},et),$t)}},[P,n,a,We,r]),Kt=Y.length,Ue=Kt>0&&gp({files:Y,accept:n,minSize:s,maxSize:i,multiple:a,maxFiles:c}),ra=Kt>0&&!Ue;return V(V({},j),{},{isDragAccept:Ue,isDragReject:ra,isFocused:z&&!r,getRootProps:Sn,getInputProps:Rn,rootRef:T,inputRef:P,open:Me(Ie)})}function Mp(e,t){switch(t.type){case"focus":return V(V({},e),{},{isFocused:!0});case"blur":return V(V({},e),{},{isFocused:!1});case"openDialog":return V(V({},pr),{},{isFileDialogActive:!0});case"closeDialog":return V(V({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return V(V({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return V(V({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return V({},pr);default:return e}}function Jo(){}function jp(e){let t;const n=new Set,r=(l,u)=>{const d=typeof l=="function"?l(t):l;if(d!==t){const p=t;t=u?d:Object.assign({},t,d),n.forEach(h=>h(t,p))}},o=()=>t,i=(l,u=o,d=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let p=u(t);function h(){const m=u(t);if(!d(p,m)){const b=p;l(p=m,b)}}return n.add(h),()=>n.delete(h)},c={setState:r,getState:o,subscribe:(l,u,d)=>u||d?i(l,u,d):(n.add(l),()=>n.delete(l)),destroy:()=>n.clear()};return t=e(r,o,c),c}const Lp=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Zo=Lp?f.useEffect:f.useLayoutEffect;function Np(e){const t=typeof e=="function"?jp(e):e,n=(r=t.getState,o=Object.is)=>{const[,i]=f.useReducer(v=>v+1,0),s=t.getState(),a=f.useRef(s),c=f.useRef(r),l=f.useRef(o),u=f.useRef(!1),d=f.useRef();d.current===void 0&&(d.current=r(s));let p,h=!1;(a.current!==s||c.current!==r||l.current!==o||u.current)&&(p=r(s),h=!o(d.current,p)),Zo(()=>{h&&(d.current=p),a.current=s,c.current=r,l.current=o,u.current=!1});const m=f.useRef(s);Zo(()=>{const v=()=>{try{const $=t.getState(),x=c.current($);l.current(d.current,x)||(a.current=$,d.current=x,i())}catch{u.current=!0,i()}},y=t.subscribe(v);return t.getState()!==m.current&&v(),y},[]);const b=h?p:d.current;return f.useDebugValue(b),b};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 Bp=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(s,a,c)=>{let l=s;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let d=s(r.getState());l=p=>{const h=s(p);if(!u(d,h)){const m=d;a(d=h,m)}},c!=null&&c.fireImmediately&&a(d,d)}return o(l)},e(t,n,r)};/*! diff --git a/assets/Twitch-BNcUYS-9.js b/assets/Twitch-BTLqRHNE.js similarity index 95% rename from assets/Twitch-BNcUYS-9.js rename to assets/Twitch-BTLqRHNE.js index f2baa7c7..0cbe8c65 100644 --- a/assets/Twitch-BNcUYS-9.js +++ b/assets/Twitch-BTLqRHNE.js @@ -1 +1 @@ -import{g as w,r as D}from"./index-B8t7bxZo.js";import{u as C,p as N}from"./index-D61p5nQ0.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{g as w,r as D}from"./index-BTvwz0L3.js";import{u as C,p as N}from"./index-O1s2SJEC.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/assets/Upload-DHki5zSE.js b/assets/Upload-CzmffQvE.js similarity index 98% rename from assets/Upload-DHki5zSE.js rename to assets/Upload-CzmffQvE.js index 70e5dc1b..ced2ef52 100644 --- a/assets/Upload-DHki5zSE.js +++ b/assets/Upload-CzmffQvE.js @@ -1,4 +1,4 @@ -import{d as i,E as R,a4 as $,G as U,j as L,r as G,a5 as X}from"./index-B8t7bxZo.js";var Z={};(function(s){var m=i&&i.__makeTemplateObject||function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},l=i&&i.__assign||function(){return l=Object.assign||function(n){for(var e,r=1,t=arguments.length;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; +import{g,r as v}from"./index-BTvwz0L3.js";import{u as b,p as O}from"./index-O1s2SJEC.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/assets/Vimeo-QlHHZUHP.js b/assets/Vimeo-DIm2cYqx.js similarity index 96% rename from assets/Vimeo-QlHHZUHP.js rename to assets/Vimeo-DIm2cYqx.js index 70a18937..3d54b5c7 100644 --- a/assets/Vimeo-QlHHZUHP.js +++ b/assets/Vimeo-DIm2cYqx.js @@ -1 +1 @@ -import{g as d,r as f}from"./index-B8t7bxZo.js";import{u as m,p as _}from"./index-D61p5nQ0.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; +import{g as d,r as f}from"./index-BTvwz0L3.js";import{u as m,p as _}from"./index-O1s2SJEC.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/assets/Wistia-CfYE_R7X.js b/assets/Wistia-EVkCiDqV.js similarity index 96% rename from assets/Wistia-CfYE_R7X.js rename to assets/Wistia-EVkCiDqV.js index 93466b81..73e19dfb 100644 --- a/assets/Wistia-CfYE_R7X.js +++ b/assets/Wistia-EVkCiDqV.js @@ -1 +1 @@ -import{g as m,r as g}from"./index-B8t7bxZo.js";import{u as v,p as w}from"./index-D61p5nQ0.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; +import{g as m,r as g}from"./index-BTvwz0L3.js";import{u as v,p as w}from"./index-O1s2SJEC.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/assets/YouTube-D_DvjaSm.js b/assets/YouTube-DoTB8L4_.js similarity index 97% rename from assets/YouTube-D_DvjaSm.js rename to assets/YouTube-DoTB8L4_.js index d9d8165d..0d3f2457 100644 --- a/assets/YouTube-D_DvjaSm.js +++ b/assets/YouTube-DoTB8L4_.js @@ -1 +1 @@ -import{g as U,r as I}from"./index-B8t7bxZo.js";import{u as L,p as Y}from"./index-D61p5nQ0.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; +import{g as U,r as I}from"./index-BTvwz0L3.js";import{u as L,p as Y}from"./index-O1s2SJEC.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; diff --git a/assets/date-DjWK0l4x.js b/assets/date-msTaMnuE.js similarity index 86% rename from assets/date-DjWK0l4x.js rename to assets/date-msTaMnuE.js index 26e983a9..e59e8791 100644 --- a/assets/date-DjWK0l4x.js +++ b/assets/date-msTaMnuE.js @@ -1 +1 @@ -import{A as m}from"./app-B2E7767C.js";import{bs as u,cz as f,aX as h}from"./index-B8t7bxZo.js";const d=(t,e=m.defaultDateFormat)=>t?u(new Date(t),e):"",w=(t,e,s)=>!t||!e?!1:d(t,s)===d(e,s),D=t=>{const e=[];return t.forEach(s=>{const a=u(new Date(s),"MM/dd/yyyy"),n=e.find(r=>u(new Date(r.date),"MM/dd/yyyy")===a);n?n.times.push(new Date(s)):e.push({date:a,times:[new Date(s)]})}),e},A=t=>t.filter(e=>h(e,new Date)),T=t=>t.sort((e,s)=>e.getTime()-s.getTime()),g=t=>{const e=/(\d+)\s+(day|hour|minute|second|week|year)s?/g,s=Array.from(t.matchAll(e)),a={};let n=!1;if(s.forEach(r=>{n=!0;const c=parseInt(r[1]),o=r[2];a[o]?a[o]+=c:a[o]=c}),!n){const r=/\d+/g;Array.from(t.matchAll(r)).forEach(o=>{const i=parseInt(o[0]);a.hour=i})}return a},M=(t,e)=>f(new Date(t),{years:e.year||0,months:e.month||0,weeks:e.week||0,days:e.day||0,hours:e.hour||0,minutes:e.minute||0,seconds:e.second||0});export{M as a,D as c,g as e,d as f,w as i,A as r,T as s}; +import{A as m}from"./app-B2E7767C.js";import{bu as u,cB as f,aZ as h}from"./index-BTvwz0L3.js";const d=(t,e=m.defaultDateFormat)=>t?u(new Date(t),e):"",w=(t,e,s)=>!t||!e?!1:d(t,s)===d(e,s),D=t=>{const e=[];return t.forEach(s=>{const a=u(new Date(s),"MM/dd/yyyy"),n=e.find(r=>u(new Date(r.date),"MM/dd/yyyy")===a);n?n.times.push(new Date(s)):e.push({date:a,times:[new Date(s)]})}),e},A=t=>t.filter(e=>h(e,new Date)),T=t=>t.sort((e,s)=>e.getTime()-s.getTime()),g=t=>{const e=/(\d+)\s+(day|hour|minute|second|week|year)s?/g,s=Array.from(t.matchAll(e)),a={};let n=!1;if(s.forEach(r=>{n=!0;const c=parseInt(r[1]),o=r[2];a[o]?a[o]+=c:a[o]=c}),!n){const r=/\d+/g;Array.from(t.matchAll(r)).forEach(o=>{const i=parseInt(o[0]);a.hour=i})}return a},M=(t,e)=>f(new Date(t),{years:e.year||0,months:e.month||0,weeks:e.week||0,days:e.day||0,hours:e.hour||0,minutes:e.minute||0,seconds:e.second||0});export{M as a,D as c,g as e,d as f,w as i,A as r,T as s}; diff --git a/assets/index-CFfzesQy.js b/assets/index-0es6Voib.js similarity index 95% rename from assets/index-CFfzesQy.js rename to assets/index-0es6Voib.js index c27472da..0f49886c 100644 --- a/assets/index-CFfzesQy.js +++ b/assets/index-0es6Voib.js @@ -1,3 +1,3 @@ -import{q as d,r as i,l as x,f as m,X as h,j as s,L as j,m as p,w as r,k as u,v as l,T as f,h as o,S as T,J as g,K as v}from"./index-B8t7bxZo.js";import{B as _}from"./index-TCOD3AvE.js";import{A as C}from"./app-B2E7767C.js";const y=d.div` +import{q as d,r as i,l as x,f as m,X as h,j as s,L as j,m as p,w as r,k as u,v as l,T as f,h as o,S as T,J as g,K as v}from"./index-BTvwz0L3.js";import{B as _}from"./index-hgCH-7gi.js";import{A as C}from"./app-B2E7767C.js";const y=d.div` margin-bottom: 10px; `,N=()=>{const{tutors:a,fetchTutors:n}=i.useContext(x.EscolaLMSContext),{t}=m(),c=h();return i.useEffect(()=>{n()},[]),s.jsx(j,{children:s.jsx("div",{className:"advisor-area",children:s.jsxs(p,{children:[s.jsx(_,{items:[s.jsx(r,{to:u.home,children:t("Home")}),s.jsx(l.Text,{size:"12",children:t("Tutors")})]}),s.jsx(y,{children:s.jsxs(f.Title,{level:1,children:[" ",t("Tutors")]})}),s.jsxs(o.Row,{children:[a.loading&&s.jsx("div",{style:{display:"flex",justifyContent:"center",width:"100%",minHeight:"500px",flexDirection:"column",alignItems:"center"},className:"loader-wrapper",children:s.jsx(T.Spin,{color:c.primaryColor})}),!a.loading&&(a.list||[]).map(e=>s.jsx(o.Col,{sm:6,md:6,lg:4,children:s.jsx(g,{id:Number(e.id),title:e.name,image:s.jsx(r,{to:`/tutors/${e.id}`,children:e.path_avatar?s.jsx(v,{path:e.path_avatar,srcSizes:[380,380*2]}):s.jsx("img",{className:"tutor-card__avatar",src:C.tutorPlaceholderPath,alt:"tutor_avatar"})}),subtitle:s.jsx(r,{to:`/tutors/${e.id}`,children:s.jsx(l.Text,{size:"16",children:s.jsxs("strong",{children:[e.first_name," ",e.last_name]})})})})},e.id))]})]})})})};export{N as default}; diff --git a/assets/index-B3TTgJzd.js b/assets/index-1V4e0nUl.js similarity index 87% rename from assets/index-B3TTgJzd.js rename to assets/index-1V4e0nUl.js index 67d754d4..fa4e93c8 100644 --- a/assets/index-B3TTgJzd.js +++ b/assets/index-1V4e0nUl.js @@ -1 +1 @@ -import{c1 as a,cu as i,cv as ee,cw as te}from"./index-B8t7bxZo.js";import{A as Y}from"./app-B2E7767C.js";import{f as s}from"./date-DjWK0l4x.js";const u=e=>{var r;return e?(r=e.items)==null?void 0:r.map(t=>t.name).join(", "):""},se=e=>{var n,c,d,m,o,T,p,l,y,v,b,E,j,g,h,D,C,P,A,F,I,x,_,S,w,R,M,O,N,f,U,$,H,W,B,G,L,V,k,q,z,J,K,Q,X;const t=`Notifications.${e.event}`;switch(e.event){case a.EventTypes.StationaryEventAuthorAssigned:return{translation:t,object:{name:((n=e.data.stationaryEvent)==null?void 0:n.name)||""}};case a.EventTypes.StationaryEventAuthorUnassigned:return{translation:t,object:{name:((c=e.data.stationaryEvent)==null?void 0:c.name)||""}};case a.EventTypes.StationaryEventAssigned:return{translation:t,object:{name:((d=e.data.stationaryEvent)==null?void 0:d.name)||""}};case a.EventTypes.StationaryEventUnassigned:return{translation:t,object:{name:((m=e.data.stationaryEvent)==null?void 0:m.name)||""}};case a.EventTypes.AbandonedCartEvent:return{translation:t};case a.EventTypes.OrderCancelled:return{translation:t};case a.EventTypes.OrderCreated:return{translation:t};case a.EventTypes.OrderPaid:return{translation:t,object:{name:u(e.data.order)||""}};case a.EventTypes.ProductableAttached:return{translation:t,object:{name:((o=e.data.productable)==null?void 0:o.name)||""}};case a.EventTypes.ProductableDetached:return{translation:t,object:{name:((T=e.data.productable)==null?void 0:T.name)||""}};case a.EventTypes.ProductAddedToCart:return{translation:t,object:{name:((p=e.data.product)==null?void 0:p.name)||""}};case a.EventTypes.ProductAttached:return{translation:t,object:{name:((l=e.data.product)==null?void 0:l.name)||""}};case a.EventTypes.ProductBought:return{translation:t,object:{name:((y=e.data.product)==null?void 0:y.name)||""}};case a.EventTypes.ProductDetached:return{translation:t,object:{name:((v=e.data.product)==null?void 0:v.name)||""}};case a.EventTypes.ProductRemovedFromCart:return{translation:t,object:{name:((b=e.data.product)==null?void 0:b.name)||""}};case a.EventTypes.PaymentCancelled:return{translation:t,object:{amount:((E=e.data.payment)==null?void 0:E.amount)||0,name:u((j=e.data.payment)==null?void 0:j.payable)}};case a.EventTypes.PaymentFailed:return{translation:t,object:{amount:((g=e.data.payment)==null?void 0:g.amount)||0,name:u((h=e.data.payment)==null?void 0:h.payable)}};case a.EventTypes.PaymentRegistered:return{translation:t,object:{amount:((D=e.data.payment)==null?void 0:D.amount)||0}};case a.EventTypes.PaymentSuccess:return{translation:t,object:{amount:((C=e.data.payment)==null?void 0:C.amount)||0,name:u((P=e.data.payment)==null?void 0:P.payable)}};case a.EventTypes.CourseAccessFinished:return{translation:t,object:{name:((A=e.data.course)==null?void 0:A.title)||""}};case a.EventTypes.CourseAccessStarted:return{translation:t,object:{name:((F=e.data.course)==null?void 0:F.title)||""}};case a.EventTypes.CourseAssigned:return{translation:t,object:{name:((I=e.data.course)==null?void 0:I.title)||""}};case a.EventTypes.CourseDeadlineSoon:return{translation:t,object:{name:((x=e.data.course)==null?void 0:x.title)||"",date:s((_=e.data.course)==null?void 0:_.active_to,Y.defaultDateTimeFormat)}};case a.EventTypes.CoursedPublished:return{translation:t,object:{name:((S=e.data.course)==null?void 0:S.title)||""}};case a.EventTypes.CourseFinished:return{translation:t,object:{name:((w=e.data.course)==null?void 0:w.title)||""}};case a.EventTypes.CourseStarted:return{translation:t,object:{name:((R=e.data.course)==null?void 0:R.title)||""}};case a.EventTypes.CourseStatusChanged:return{translation:t,object:{name:((M=e.data.course)==null?void 0:M.title)||""}};case a.EventTypes.CourseTutorAssigned:return{translation:t,object:{name:((O=e.data.course)==null?void 0:O.title)||""}};case a.EventTypes.CourseTutorUnassigned:return{translation:t,object:{name:((N=e.data.course)==null?void 0:N.title)||""}};case a.EventTypes.CourseUnassigned:return{translation:t,object:{name:((f=e.data.course)==null?void 0:f.title)||""}};case a.EventTypes.TopicFinished:return{translation:t,object:{name:((U=e.data.course)==null?void 0:U.title)||""}};case a.EventTypes.TopicTypeChanged:return{translation:t,object:{name:(($=e.data.topicContent)==null?void 0:$.value)||""}};case a.EventTypes.ReportTerm:return{translation:t,object:{name:((H=e.data.consultationTerm)==null?void 0:H.consultation.name)||"",date:s((W=e.data.consultationTerm)==null?void 0:W.executed_at,Y.defaultDateTimeFormat),user:`${(G=(B=e.data.consultationTerm)==null?void 0:B.user)==null?void 0:G.first_name} ${(V=(L=e.data.consultationTerm)==null?void 0:L.user)==null?void 0:V.last_name}`}};case a.EventTypes.ApprovedTerm:return{translation:t,object:{date:s((k=e.data.consultationTerm)==null?void 0:k.executed_at)||""}};case a.EventTypes.ApprovedTermWithTrainer:return{translation:t,object:{date:s((q=e.data.consultationTerm)==null?void 0:q.executed_at)||""}};case a.EventTypes.ChangeTerm:return{translation:t,object:{date:s((z=e.data.consultationTerm)==null?void 0:z.executed_at)||""}};case a.EventTypes.RejectTerm:return{translation:t,object:{date:s((J=e.data.consultationTerm)==null?void 0:J.executed_at)||""}};case a.EventTypes.RejectTermWithTrainer:return{translation:t,object:{date:s((K=e.data.consultationTerm)==null?void 0:K.executed_at)||""}};case a.EventTypes.ReminderAboutTerm:return{translation:t,object:{date:s((Q=e.data.consultationTerm)==null?void 0:Q.executed_at)||""}};case a.EventTypes.ReminderTrainerAboutTerm:return{translation:t,object:{date:s((X=e.data.consultationTerm)==null?void 0:X.executed_at)||""}};default:return{translation:t}}},Z=(e,r=2,t)=>{if(!e||typeof e!="number")return 0;const n=Math.round(e*Math.pow(10,r))/Math.pow(10,r);return t?n/t:n},ue=(e,r)=>e?(r?Z(e,2,100)*(1+r/100):Z(e,2,100)).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}):0,ce=(e,r)=>r.authors.findIndex(t=>t.id===e)!==-1,de=e=>{const r=e?i(e.getTime(),new Date().getTime()):null,t=e?ee(e.getTime(),new Date().getTime()):null,n=e?te(e.getTime(),new Date().getTime()):null;return(r!==null&&r!==0?[r,"day"]:null)??(t!==null&&t!==0?[t,"hour"]:null)??(n!==null&&n!==0?[n,"minute"]:null)},me=new Intl.RelativeTimeFormat("pl",{style:"short"});export{se as a,ue as f,de as g,me as r,ce as u}; +import{c3 as a,cw as i,cx as ee,cy as te}from"./index-BTvwz0L3.js";import{A as Y}from"./app-B2E7767C.js";import{f as s}from"./date-msTaMnuE.js";const u=e=>{var r;return e?(r=e.items)==null?void 0:r.map(t=>t.name).join(", "):""},se=e=>{var n,c,d,m,o,T,p,y,l,v,b,E,j,g,h,D,C,P,A,x,F,I,_,S,w,R,M,O,N,f,U,$,H,W,B,G,L,V,k,q,z,J,K,Q,X;const t=`Notifications.${e.event}`;switch(e.event){case a.EventTypes.StationaryEventAuthorAssigned:return{translation:t,object:{name:((n=e.data.stationaryEvent)==null?void 0:n.name)||""}};case a.EventTypes.StationaryEventAuthorUnassigned:return{translation:t,object:{name:((c=e.data.stationaryEvent)==null?void 0:c.name)||""}};case a.EventTypes.StationaryEventAssigned:return{translation:t,object:{name:((d=e.data.stationaryEvent)==null?void 0:d.name)||""}};case a.EventTypes.StationaryEventUnassigned:return{translation:t,object:{name:((m=e.data.stationaryEvent)==null?void 0:m.name)||""}};case a.EventTypes.AbandonedCartEvent:return{translation:t};case a.EventTypes.OrderCancelled:return{translation:t};case a.EventTypes.OrderCreated:return{translation:t};case a.EventTypes.OrderPaid:return{translation:t,object:{name:u(e.data.order)||""}};case a.EventTypes.ProductableAttached:return{translation:t,object:{name:((o=e.data.productable)==null?void 0:o.name)||""}};case a.EventTypes.ProductableDetached:return{translation:t,object:{name:((T=e.data.productable)==null?void 0:T.name)||""}};case a.EventTypes.ProductAddedToCart:return{translation:t,object:{name:((p=e.data.product)==null?void 0:p.name)||""}};case a.EventTypes.ProductAttached:return{translation:t,object:{name:((y=e.data.product)==null?void 0:y.name)||""}};case a.EventTypes.ProductBought:return{translation:t,object:{name:((l=e.data.product)==null?void 0:l.name)||""}};case a.EventTypes.ProductDetached:return{translation:t,object:{name:((v=e.data.product)==null?void 0:v.name)||""}};case a.EventTypes.ProductRemovedFromCart:return{translation:t,object:{name:((b=e.data.product)==null?void 0:b.name)||""}};case a.EventTypes.PaymentCancelled:return{translation:t,object:{amount:((E=e.data.payment)==null?void 0:E.amount)||0,name:u((j=e.data.payment)==null?void 0:j.payable)}};case a.EventTypes.PaymentFailed:return{translation:t,object:{amount:((g=e.data.payment)==null?void 0:g.amount)||0,name:u((h=e.data.payment)==null?void 0:h.payable)}};case a.EventTypes.PaymentRegistered:return{translation:t,object:{amount:((D=e.data.payment)==null?void 0:D.amount)||0}};case a.EventTypes.PaymentSuccess:return{translation:t,object:{amount:((C=e.data.payment)==null?void 0:C.amount)||0,name:u((P=e.data.payment)==null?void 0:P.payable)}};case a.EventTypes.CourseAccessFinished:return{translation:t,object:{name:((A=e.data.course)==null?void 0:A.title)||""}};case a.EventTypes.CourseAccessStarted:return{translation:t,object:{name:((x=e.data.course)==null?void 0:x.title)||""}};case a.EventTypes.CourseAssigned:return{translation:t,object:{name:((F=e.data.course)==null?void 0:F.title)||""}};case a.EventTypes.CourseDeadlineSoon:return{translation:t,object:{name:((I=e.data.course)==null?void 0:I.title)||"",date:s((_=e.data.course)==null?void 0:_.active_to,Y.defaultDateTimeFormat)}};case a.EventTypes.CoursedPublished:return{translation:t,object:{name:((S=e.data.course)==null?void 0:S.title)||""}};case a.EventTypes.CourseFinished:return{translation:t,object:{name:((w=e.data.course)==null?void 0:w.title)||""}};case a.EventTypes.CourseStarted:return{translation:t,object:{name:((R=e.data.course)==null?void 0:R.title)||""}};case a.EventTypes.CourseStatusChanged:return{translation:t,object:{name:((M=e.data.course)==null?void 0:M.title)||""}};case a.EventTypes.CourseTutorAssigned:return{translation:t,object:{name:((O=e.data.course)==null?void 0:O.title)||""}};case a.EventTypes.CourseTutorUnassigned:return{translation:t,object:{name:((N=e.data.course)==null?void 0:N.title)||""}};case a.EventTypes.CourseUnassigned:return{translation:t,object:{name:((f=e.data.course)==null?void 0:f.title)||""}};case a.EventTypes.TopicFinished:return{translation:t,object:{name:((U=e.data.course)==null?void 0:U.title)||""}};case a.EventTypes.TopicTypeChanged:return{translation:t,object:{name:(($=e.data.topicContent)==null?void 0:$.value)||""}};case a.EventTypes.ReportTerm:return{translation:t,object:{name:((H=e.data.consultationTerm)==null?void 0:H.consultation.name)||"",date:s((W=e.data.consultationTerm)==null?void 0:W.executed_at,Y.defaultDateTimeFormat),user:`${(G=(B=e.data.consultationTerm)==null?void 0:B.user)==null?void 0:G.first_name} ${(V=(L=e.data.consultationTerm)==null?void 0:L.user)==null?void 0:V.last_name}`}};case a.EventTypes.ApprovedTerm:return{translation:t,object:{date:s((k=e.data.consultationTerm)==null?void 0:k.executed_at)||""}};case a.EventTypes.ApprovedTermWithTrainer:return{translation:t,object:{date:s((q=e.data.consultationTerm)==null?void 0:q.executed_at)||""}};case a.EventTypes.ChangeTerm:return{translation:t,object:{date:s((z=e.data.consultationTerm)==null?void 0:z.executed_at)||""}};case a.EventTypes.RejectTerm:return{translation:t,object:{date:s((J=e.data.consultationTerm)==null?void 0:J.executed_at)||""}};case a.EventTypes.RejectTermWithTrainer:return{translation:t,object:{date:s((K=e.data.consultationTerm)==null?void 0:K.executed_at)||""}};case a.EventTypes.ReminderAboutTerm:return{translation:t,object:{date:s((Q=e.data.consultationTerm)==null?void 0:Q.executed_at)||""}};case a.EventTypes.ReminderTrainerAboutTerm:return{translation:t,object:{date:s((X=e.data.consultationTerm)==null?void 0:X.executed_at)||""}};default:return{translation:t}}},Z=(e,r=2,t)=>{if(!e||typeof e!="number")return 0;const n=Math.round(e*Math.pow(10,r))/Math.pow(10,r);return t?n/t:n},ue=(e,r)=>e?(r?Z(e,2,100)*(1+r/100):Z(e,2,100)).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}):0,ce=(e,r)=>r.authors.findIndex(t=>t.id===e)!==-1,de=e=>{const r=e?i(e.getTime(),new Date().getTime()):null,t=e?ee(e.getTime(),new Date().getTime()):null,n=e?te(e.getTime(),new Date().getTime()):null;return(r!==null&&r!==0?[r,"day"]:null)??(t!==null&&t!==0?[t,"hour"]:null)??(n!==null&&n!==0?[n,"minute"]:null)},me=new Intl.RelativeTimeFormat("pl",{style:"short"});export{se as a,ue as f,de as g,me as r,ce as u}; diff --git a/assets/index-Cks0KJwc.js b/assets/index-B2HKkCHC.js similarity index 80% rename from assets/index-Cks0KJwc.js rename to assets/index-B2HKkCHC.js index b1fcfa4c..e1bee4b1 100644 --- a/assets/index-Cks0KJwc.js +++ b/assets/index-B2HKkCHC.js @@ -1,4 +1,4 @@ -import{q as i,X as s,j as e,S as o}from"./index-B8t7bxZo.js";const a=i.div` +import{q as i,X as s,j as e,S as o}from"./index-BTvwz0L3.js";const a=i.div` display: flex; justify-content: center; align-items: center; diff --git a/assets/index-OPkEnP5r.js b/assets/index-B7fiVJFz.js similarity index 91% rename from assets/index-OPkEnP5r.js rename to assets/index-B7fiVJFz.js index 821a89c9..16ac850c 100644 --- a/assets/index-OPkEnP5r.js +++ b/assets/index-B7fiVJFz.js @@ -1 +1 @@ -import{f as N,r as n,j as r,b as u,h as d,M as m,H as C,l as w,m as P,w as b,k as E,L as v}from"./index-B8t7bxZo.js";import{P as f}from"./index-fXyhVg0R.js";import{u as R,C as k,a as L}from"./index-oRVwOl84.js";import"./index-D61p5nQ0.js";import"./ResponsiveImage-B7bcvD5e.js";import"./Upload-DHki5zSE.js";import"./index-B3TTgJzd.js";import"./app-B2E7767C.js";import"./date-DjWK0l4x.js";const M=({program:a})=>{var i;const{topic:e,lesson:s,onNextTopicPreview:o,getNextPrevTopic:t}=R(a,"/courses/preview/"),{t:c}=N();return n.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[e==null?void 0:e.id,s==null?void 0:s.id]),r.jsx(u.Fragment,{children:r.jsx("div",{className:"course-program course-program-page",children:r.jsx("div",{className:"course-program-container",children:r.jsxs("div",{className:"course-program-wrapper course-program-wrapper-preview",children:[r.jsxs("div",{className:"course-program-player",children:[r.jsxs("div",{className:"course-program-player-content",children:[r.jsx("h2",{children:e==null?void 0:e.title}),e&&e.introduction&&r.jsx(d.Col,{sm:12,md:12,lg:12,children:r.jsx("div",{className:"container-md",children:r.jsx(m.MarkdownRenderer,{children:e.introduction})})}),r.jsx("div",{className:"course-program-player-content__wrapper",style:{...((i=e==null?void 0:e.json)==null?void 0:i.wrapperStyle)||{}},children:r.jsx(k,{preview:!0,topic:e,isThereAnotherTopic:!!t(Number(e==null?void 0:e.id))})})]}),r.jsxs(d.Row,{children:[s&&s.summary&&r.jsx(d.Col,{sm:12,md:12,lg:12,children:r.jsx("div",{className:"course-program-summary",children:r.jsx(m.MarkdownRenderer,{children:s.summary})})}),e&&e.summary&&r.jsx(d.Col,{sm:12,md:12,lg:12,children:r.jsx("div",{className:"course-program-summary",children:r.jsx(m.MarkdownRenderer,{children:e.summary})})})]}),r.jsx("div",{className:"course-program-player-next",children:r.jsxs("button",{className:"default-btn default-btn-equal",onClick:()=>o(),children:[r.jsxs("div",{className:"course-program-player-next-button__wrapper",children:[c("Next Topic")," >"]}),r.jsx("span",{})]})})]}),r.jsx(L,{course:a,topicId:Number(e==null?void 0:e.id)})]})})})})},S=({program:a})=>{var x,h;const e=(h=(x=a==null?void 0:a.scorm)==null?void 0:x.scos)==null?void 0:h.find(l=>l.entry_url!==void 0),s=e==null?void 0:e.uuid,o=n.useRef(null),[t,c]=n.useState(0),i=610,{apiUrl:y}=n.useContext(w.EscolaLMSContext);return n.useEffect(()=>{var l,p,j,g;o.current&&c(((g=(j=(p=(l=o.current)==null?void 0:l.contentWindow)==null?void 0:p.document)==null?void 0:j.body)==null?void 0:g.scrollHeight)||0)},[o]),!e&&!s?r.jsx(u.Fragment,{}):r.jsx(u.Fragment,{children:r.jsx("div",{className:"container-fluid course-program",children:r.jsx("div",{className:"course-program-player scorm",style:{height:`${i+t}px`},children:r.jsx("iframe",{title:"scorm-player",ref:o,src:`${y}/api/scorm/play/${s}`,scrolling:"no"})})})})},U=()=>{var t,c;const{t:a}=N(),{id:e}=C(),{program:s,fetchProgram:o}=n.useContext(w.EscolaLMSContext);return n.useEffect(()=>{e&&o(Number(e))},[e,o]),s.loading?r.jsx(f,{}):s.error?r.jsx(P,{children:r.jsxs("div",{className:"alert alert-danger",role:"alert",children:[r.jsx("h4",{className:"alert-heading",children:a("Error")}),r.jsxs("p",{children:[" ",s.error.message||s.error.error]}),r.jsx("hr",{}),r.jsxs("p",{className:"mb-0",children:[a("CoursePage.Preview.SeeOther"),r.jsx(b,{to:E.courses,children:a("Courses")}),"."]})]})}):s.value&&((c=(t=s==null?void 0:s.value)==null?void 0:t.scorm)!=null&&c.id)?r.jsx(v,{children:r.jsx(S,{program:s.value})}):s.value&&s.value.lessons&&s.value.lessons.length?r.jsxs(v,{children:[r.jsx(M,{program:s.value}),";"]}):r.jsx(f,{})};export{U as default}; +import{f as N,r as n,j as r,b as u,h as d,M as m,H as C,l as w,m as P,w as b,k as E,L as v}from"./index-BTvwz0L3.js";import{P as f}from"./index-Dr14e7t8.js";import{u as R,C as k,a as L}from"./index-jr0GT9Mh.js";import"./index-O1s2SJEC.js";import"./ResponsiveImage-G_l4wTjD.js";import"./Upload-CzmffQvE.js";import"./index-1V4e0nUl.js";import"./app-B2E7767C.js";import"./date-msTaMnuE.js";const M=({program:a})=>{var i;const{topic:e,lesson:s,onNextTopicPreview:o,getNextPrevTopic:t}=R(a,"/courses/preview/"),{t:c}=N();return n.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[e==null?void 0:e.id,s==null?void 0:s.id]),r.jsx(u.Fragment,{children:r.jsx("div",{className:"course-program course-program-page",children:r.jsx("div",{className:"course-program-container",children:r.jsxs("div",{className:"course-program-wrapper course-program-wrapper-preview",children:[r.jsxs("div",{className:"course-program-player",children:[r.jsxs("div",{className:"course-program-player-content",children:[r.jsx("h2",{children:e==null?void 0:e.title}),e&&e.introduction&&r.jsx(d.Col,{sm:12,md:12,lg:12,children:r.jsx("div",{className:"container-md",children:r.jsx(m.MarkdownRenderer,{children:e.introduction})})}),r.jsx("div",{className:"course-program-player-content__wrapper",style:{...((i=e==null?void 0:e.json)==null?void 0:i.wrapperStyle)||{}},children:r.jsx(k,{preview:!0,topic:e,isThereAnotherTopic:!!t(Number(e==null?void 0:e.id))})})]}),r.jsxs(d.Row,{children:[s&&s.summary&&r.jsx(d.Col,{sm:12,md:12,lg:12,children:r.jsx("div",{className:"course-program-summary",children:r.jsx(m.MarkdownRenderer,{children:s.summary})})}),e&&e.summary&&r.jsx(d.Col,{sm:12,md:12,lg:12,children:r.jsx("div",{className:"course-program-summary",children:r.jsx(m.MarkdownRenderer,{children:e.summary})})})]}),r.jsx("div",{className:"course-program-player-next",children:r.jsxs("button",{className:"default-btn default-btn-equal",onClick:()=>o(),children:[r.jsxs("div",{className:"course-program-player-next-button__wrapper",children:[c("Next Topic")," >"]}),r.jsx("span",{})]})})]}),r.jsx(L,{course:a,topicId:Number(e==null?void 0:e.id)})]})})})})},S=({program:a})=>{var x,h;const e=(h=(x=a==null?void 0:a.scorm)==null?void 0:x.scos)==null?void 0:h.find(l=>l.entry_url!==void 0),s=e==null?void 0:e.uuid,o=n.useRef(null),[t,c]=n.useState(0),i=610,{apiUrl:y}=n.useContext(w.EscolaLMSContext);return n.useEffect(()=>{var l,p,j,g;o.current&&c(((g=(j=(p=(l=o.current)==null?void 0:l.contentWindow)==null?void 0:p.document)==null?void 0:j.body)==null?void 0:g.scrollHeight)||0)},[o]),!e&&!s?r.jsx(u.Fragment,{}):r.jsx(u.Fragment,{children:r.jsx("div",{className:"container-fluid course-program",children:r.jsx("div",{className:"course-program-player scorm",style:{height:`${i+t}px`},children:r.jsx("iframe",{title:"scorm-player",ref:o,src:`${y}/api/scorm/play/${s}`,scrolling:"no"})})})})},U=()=>{var t,c;const{t:a}=N(),{id:e}=C(),{program:s,fetchProgram:o}=n.useContext(w.EscolaLMSContext);return n.useEffect(()=>{e&&o(Number(e))},[e,o]),s.loading?r.jsx(f,{}):s.error?r.jsx(P,{children:r.jsxs("div",{className:"alert alert-danger",role:"alert",children:[r.jsx("h4",{className:"alert-heading",children:a("Error")}),r.jsxs("p",{children:[" ",s.error.message||s.error.error]}),r.jsx("hr",{}),r.jsxs("p",{className:"mb-0",children:[a("CoursePage.Preview.SeeOther"),r.jsx(b,{to:E.courses,children:a("Courses")}),"."]})]})}):s.value&&((c=(t=s==null?void 0:s.value)==null?void 0:t.scorm)!=null&&c.id)?r.jsx(v,{children:r.jsx(S,{program:s.value})}):s.value&&s.value.lessons&&s.value.lessons.length?r.jsxs(v,{children:[r.jsx(M,{program:s.value}),";"]}):r.jsx(f,{})};export{U as default}; diff --git a/assets/index-BAzXgDWl.js b/assets/index-BAzXgDWl.js deleted file mode 100644 index df958538..00000000 --- a/assets/index-BAzXgDWl.js +++ /dev/null @@ -1,34 +0,0 @@ -import{q as g,r as o,j as e,ct as p}from"./index-B8t7bxZo.js";const x=g("div")` - .more-icon { - border: 1px solid; - border-radius: 50%; - padding: 4px; - margin-left: 12px; - font-size: 0.75em; - } - - .category-name { - cursor: pointer; - - &:hover { - text-decoration: underline; - } - } - - .categories-menu-container { - position: relative; - - .categories-menu { - position: absolute; - top: 0; - right: 0; - list-style: none; - background-color: #f2f2f2; - margin: 4px 0; - - li { - margin: 4px 0; - } - } - } -`,j=h=>{var m;const{categories:r,onCategoryClick:t}=h,[c,i]=o.useState(!1),l=o.useRef(null),a=r?[...r].splice(0,2):[],s=r?[...r].splice(2):[],d=o.useCallback(n=>{t&&t(n)},[t]);return e.jsxs(x,{ref:l,isOpen:c,children:[e.jsx(p.BreadCrumbs,{hyphen:"",items:a==null?void 0:a.map((n,u)=>e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"category-name",onClick:()=>d(n.id),"aria-hidden":!0,children:n.name},n.name+u),u===a.length-1&&s.length>0&&e.jsx("span",{className:"more-icon",onMouseOver:()=>i(!0),onFocus:()=>i(!0),"aria-hidden":!0,children:`+${s.length}`})]}))}),s.length>0&&e.jsx("div",{className:"categories-menu-container",onMouseLeave:()=>i(!1),children:c&&e.jsx("ul",{className:"categories-menu",style:{width:((m=l.current)==null?void 0:m.getBoundingClientRect().width)||"auto"},children:e.jsx(p.BreadCrumbs,{hyphen:"",items:s==null?void 0:s.map(n=>e.jsx("li",{className:"category-name",onClick:()=>d(n.id),"aria-hidden":!0,children:n.name}))})})})]})};export{j as C}; diff --git a/assets/index-ClUiBIQr.js b/assets/index-BCstk8RY.js similarity index 91% rename from assets/index-ClUiBIQr.js rename to assets/index-BCstk8RY.js index 152079a9..20d84dde 100644 --- a/assets/index-ClUiBIQr.js +++ b/assets/index-BCstk8RY.js @@ -1,4 +1,4 @@ -import{q as c,f as l,i as x,j as e,m as g,T as p,o as m,aF as o,N as r,a1 as n}from"./index-B8t7bxZo.js";import{S as u,a as h}from"./swiper-react-CojPz2DI.js";const j=c.section` +import{q as c,f as l,i as x,j as e,m as g,T as p,o as m,aH as o,N as r,Y as n}from"./index-BTvwz0L3.js";import{S as u,a as h}from"./swiper-react-BSSPoOCY.js";const j=c.section` overflow: hidden; @media (max-width: 768px) { diff --git a/assets/index-Cbz4Y5bC.js b/assets/index-BGmrR0IX.js similarity index 84% rename from assets/index-Cbz4Y5bC.js rename to assets/index-BGmrR0IX.js index fa5e926d..46d3e4f6 100644 --- a/assets/index-Cbz4Y5bC.js +++ b/assets/index-BGmrR0IX.js @@ -1,4 +1,4 @@ -import{q as j,r as m,j as e,o as f,f as C,T as b,b as N,X as P,S as v,h,D as w,l as S,L as F,m as T}from"./index-B8t7bxZo.js";import{C as E}from"./index-ClUiBIQr.js";import{C as M}from"./index-CSYaQT3R.js";import{F as Q,S as _}from"./index-BBf4ZTLG.js";import{u}from"./useSearchParams-8UhInns8.js";import{C as $}from"./index-BHz8FjBP.js";import{P as k}from"./index-CrC3Z2ZD.js";import"./swiper-react-CojPz2DI.js";import"./Categories-OUhMrw_M.js";import"./Search-CTLKKOal.js";import"./base-CumTa13P.js";import"./date-DjWK0l4x.js";import"./app-B2E7767C.js";import"./index-Cks0KJwc.js";import"./index-AujWqiiR.js";import"./ResponsiveImage-B7bcvD5e.js";import"./index-Dp8bV9hL.js";const B=j("div")` +import{q as j,r as m,j as e,o as f,f as C,T as b,b as N,X as P,S as v,h,D as w,l as S,L as F,m as T}from"./index-BTvwz0L3.js";import{C as E}from"./index-BCstk8RY.js";import{C as M}from"./index-C6jTeD2y.js";import{F as Q,S as _}from"./index-BTth33E-.js";import{u}from"./useSearchParams-Dcu5KpUk.js";import{C as $}from"./index-D95a-Goj.js";import{P as k}from"./index-DzsaDRiK.js";import"./swiper-react-BSSPoOCY.js";import"./base-CumTa13P.js";import"./date-msTaMnuE.js";import"./app-B2E7767C.js";import"./index-B2HKkCHC.js";import"./index-BMX1PR5H.js";import"./ResponsiveImage-G_l4wTjD.js";import"./index-ClhuH08r.js";const B=j("div")` display: flex; row-gap: 30px; flex-wrap: wrap; @@ -67,4 +67,4 @@ import{q as j,r as m,j as e,o as f,f as C,T as b,b as N,X as P,S as v,h,D as w,l width: 100%; margin-top: 35px; } - `,{paramsToObject:o}=u();return e.jsx(r,{filters:o,children:t})},R=()=>{const{t}=C();return e.jsxs(H,{children:[e.jsxs(b.Title,{level:1,children:[" ",t("Menu.Consultations")]}),e.jsx(L,{})]})},y=N.createContext({}),V=({consultation:t})=>e.jsx($,{consultation:t}),q=()=>{var c,n,a,x,g,i;const{consultations:t}=m.useContext(y),{setQueryParam:r}=u(),o=t==null?void 0:t.loading,s=(c=t==null?void 0:t.list)==null?void 0:c.meta,p=P();return o?e.jsx("div",{style:{display:"flex",justifyContent:"center"},children:e.jsx(v.Spin,{color:p.primaryColor})}):e.jsxs(e.Fragment,{children:[e.jsx(h.Row,{style:{gap:"30px 0",marginBottom:"30px"},children:(n=t==null?void 0:t.list)==null?void 0:n.data.map(l=>e.jsx(h.Col,{md:6,lg:4,xl:3,children:e.jsx(V,{consultation:l})},l.id))}),s&&(Number((x=(a=t==null?void 0:t.list)==null?void 0:a.meta)==null?void 0:x.total)||0)>(Number((i=(g=t==null?void 0:t.list)==null?void 0:g.meta)==null?void 0:i.per_page)||0)&&e.jsx(k,{total:s.total,perPage:Number(s.per_page),currentPage:s.current_page,onPage:l=>r("page",`${l}`)})]})},A=()=>{var r;const{categoryTree:t}=m.useContext(w.EscolaLMSContext);return e.jsxs(e.Fragment,{children:[e.jsx(R,{}),e.jsx(q,{}),t&&e.jsx(e.Fragment,{children:e.jsx(E,{categories:((r=t.list)==null?void 0:r.filter(o=>!!o.icon))||[]})})]})},O=t=>{const{fetchConsultations:r,consultations:o,fetchCategories:s}=m.useContext(S.EscolaLMSContext),{children:p}=t,{query:c,getQueryValueByName:n,getAllQueryValueByName:a,setPathname:x}=u();m.useEffect(()=>{s()},[]);const g=m.useCallback(()=>{const i={page:Number(n("page"))||1,per_page:Number(n("per_page"))||8},l=a("categories[]"),d=n("name");return d&&(i.name=d),l&&l.length&&(i["categories[]"]=l),i},[a,n]);return m.useEffect(()=>{const i=g();x(i),c.has("page")&&r(i)},[c]),e.jsx(y.Provider,{value:{consultations:o},children:p})},oe=()=>{const{t}=C();return e.jsx(F,{metaTitle:t("ConsultationsPageMeta"),children:e.jsx(O,{children:e.jsx("section",{className:"consultations-page",children:e.jsx(T,{children:e.jsx(A,{})})})})})};export{oe as default}; + `,{paramsToObject:o}=u();return e.jsx(r,{filters:o,children:t})},R=()=>{const{t}=C();return e.jsxs(H,{children:[e.jsxs(b.Title,{level:1,children:[" ",t("Menu.Consultations")]}),e.jsx(L,{})]})},y=N.createContext({}),V=({consultation:t})=>e.jsx($,{consultation:t}),q=()=>{var c,n,a,x,g,i;const{consultations:t}=m.useContext(y),{setQueryParam:r}=u(),o=t==null?void 0:t.loading,s=(c=t==null?void 0:t.list)==null?void 0:c.meta,p=P();return o?e.jsx("div",{style:{display:"flex",justifyContent:"center"},children:e.jsx(v.Spin,{color:p.primaryColor})}):e.jsxs(e.Fragment,{children:[e.jsx(h.Row,{style:{gap:"30px 0",marginBottom:"30px"},children:(n=t==null?void 0:t.list)==null?void 0:n.data.map(l=>e.jsx(h.Col,{md:6,lg:4,xl:3,children:e.jsx(V,{consultation:l})},l.id))}),s&&(Number((x=(a=t==null?void 0:t.list)==null?void 0:a.meta)==null?void 0:x.total)||0)>(Number((i=(g=t==null?void 0:t.list)==null?void 0:g.meta)==null?void 0:i.per_page)||0)&&e.jsx(k,{total:s.total,perPage:Number(s.per_page),currentPage:s.current_page,onPage:l=>r("page",`${l}`)})]})},A=()=>{var r;const{categoryTree:t}=m.useContext(w.EscolaLMSContext);return e.jsxs(e.Fragment,{children:[e.jsx(R,{}),e.jsx(q,{}),t&&e.jsx(e.Fragment,{children:e.jsx(E,{categories:((r=t.list)==null?void 0:r.filter(o=>!!o.icon))||[]})})]})},O=t=>{const{fetchConsultations:r,consultations:o,fetchCategories:s}=m.useContext(S.EscolaLMSContext),{children:p}=t,{query:c,getQueryValueByName:n,getAllQueryValueByName:a,setPathname:x}=u();m.useEffect(()=>{s()},[]);const g=m.useCallback(()=>{const i={page:Number(n("page"))||1,per_page:Number(n("per_page"))||8},l=a("categories[]"),d=n("name");return d&&(i.name=d),l&&l.length&&(i["categories[]"]=l),i},[a,n]);return m.useEffect(()=>{const i=g();x(i),c.has("page")&&r(i)},[c]),e.jsx(y.Provider,{value:{consultations:o},children:p})},re=()=>{const{t}=C();return e.jsx(F,{metaTitle:t("ConsultationsPageMeta"),children:e.jsx(O,{children:e.jsx("section",{className:"consultations-page",children:e.jsx(T,{children:e.jsx(A,{})})})})})};export{re as default}; diff --git a/assets/index-BHYkv3Er.js b/assets/index-BHYkv3Er.js new file mode 100644 index 00000000..790f079e --- /dev/null +++ b/assets/index-BHYkv3Er.js @@ -0,0 +1,34 @@ +import{q as m,r as a,j as r,cv as d}from"./index-BTvwz0L3.js";const p=m("div")` + .more-icon { + border: 1px solid; + border-radius: 50%; + padding: 4px; + margin-left: 12px; + font-size: 0.75em; + } + + .category-name { + cursor: pointer; + + &:hover { + text-decoration: underline; + } + } + + .categories-menu-container { + position: relative; + + .categories-menu { + position: absolute; + top: 0; + right: 0; + list-style: none; + background-color: #f2f2f2; + margin: 4px 0; + + li { + margin: 4px 0; + } + } + } +`,x=s=>{const{categories:i,onCategoryClick:n}=s,t=a.useRef(null),o=i||[],c=a.useCallback(e=>{n&&n(e)},[n]);return r.jsx(p,{ref:t,children:r.jsx(d.BreadCrumbs,{hyphen:"",items:o==null?void 0:o.map((e,l)=>r.jsx(r.Fragment,{children:r.jsx("span",{className:"category-name",onClick:()=>c(e.id),"aria-hidden":"true",children:e.name},e.name+l)}))})})};export{x as C}; diff --git a/assets/index-AujWqiiR.js b/assets/index-BMX1PR5H.js similarity index 90% rename from assets/index-AujWqiiR.js rename to assets/index-BMX1PR5H.js index cf6ef0e0..7b9e221e 100644 --- a/assets/index-AujWqiiR.js +++ b/assets/index-BMX1PR5H.js @@ -1,4 +1,4 @@ -import{q as s,X as l,r as n,j as e,cA as d,v as c}from"./index-B8t7bxZo.js";import{f as m}from"./date-DjWK0l4x.js";import{A as x}from"./app-B2E7767C.js";const f=s.div` +import{q as s,X as l,r as n,j as e,cC as d,v as c}from"./index-BTvwz0L3.js";import{f as m}from"./date-msTaMnuE.js";import{A as x}from"./app-B2E7767C.js";const f=s.div` display: flex; flex-direction: column; diff --git a/assets/index-DHtj9BUK.js b/assets/index-BO3Gt6dk.js similarity index 69% rename from assets/index-DHtj9BUK.js rename to assets/index-BO3Gt6dk.js index 878feaee..0806877f 100644 --- a/assets/index-DHtj9BUK.js +++ b/assets/index-BO3Gt6dk.js @@ -1,15 +1,16 @@ -import{q as g,h as T,i as j,f as w,j as e,T as B,B as b,k as C,C as S,r as v,l as y,L as H,m as _,n as N,o as u,M as R}from"./index-B8t7bxZo.js";import{R as k}from"./ResponsiveImage-B7bcvD5e.js";import{C as E}from"./index-ClUiBIQr.js";import{C as I}from"./index-Dam1NB4i.js";import{u as M}from"./useFetchCourses-Da9gZeoE.js";import{S as P,a as A}from"./swiper-react-CojPz2DI.js";import"./index-Dp8bV9hL.js";import"./index-BAzXgDWl.js";const V=g(T.Container)` +import{q as g,h as T,i as j,f as w,j as e,T as B,B as b,k as C,C as S,r as v,l as y,L as H,m as _,n as N,o as u,M as R}from"./index-BTvwz0L3.js";import{R as k}from"./ResponsiveImage-G_l4wTjD.js";import{C as E}from"./index-BCstk8RY.js";import{C as I}from"./index-MGoobGEV.js";import{u as M}from"./useFetchCourses-B9Pdn2Rg.js";import{S as P,a as A}from"./swiper-react-BSSPoOCY.js";import"./index-ClhuH08r.js";import"./index-BHYkv3Er.js";const V=g(T.Container)` .header-wrapper { display: flex; justify-content: space-between; align-items: center; - margin-bottom: 14p button { + margin-bottom: 14px; + button { @media (max-width: 1200px) { display: none; } } } -`,d=({titleText:a,params:s,isSlider:m=!0,ctaButton:r})=>{const{courses:o,loading:t}=M(s),i=j(),{t:n}=w();return e.jsxs(V,{children:[e.jsxs("div",{className:"header-wrapper",children:[e.jsx(B.Title,{className:"slider-title",level:1,as:"h2",children:e.jsx("strong",{children:a})}),r&&e.jsx(b.Button,{mode:"outline",onClick:()=>i.push(C.courses),children:n("Homepage.AwardedCoursesBtnText")})]}),t&&e.jsx(P,{spaceBetween:18,slidesOffsetAfter:18,breakpoints:{0:{slidesPerView:1.3},576:{slidesPerView:2},768:{slidesPerView:3},1201:{slidesPerView:4}},children:Array.from({length:6}).map((l,p)=>e.jsx(A,{children:e.jsx(S,{})},p))}),!t&&o&&e.jsx(I,{courses:o,isSlider:m})]})},L=g.div` +`,d=({titleText:t,params:s,isSlider:m=!0,ctaButton:r})=>{const{courses:o,loading:a}=M(s),i=j(),{t:n}=w();return e.jsxs(V,{children:[e.jsxs("div",{className:"header-wrapper",children:[e.jsx(B.Title,{className:"slider-title",level:1,as:"h2",children:e.jsx("strong",{children:t})}),r&&e.jsx(b.Button,{mode:"outline",onClick:()=>i.push(C.courses),children:n("Homepage.AwardedCoursesBtnText")})]}),a&&e.jsx(P,{spaceBetween:18,slidesOffsetAfter:18,breakpoints:{0:{slidesPerView:1.3},576:{slidesPerView:2},768:{slidesPerView:3},1201:{slidesPerView:4}},children:Array.from({length:6}).map((l,p)=>e.jsx(A,{children:e.jsx(S,{})},p))}),!a&&o&&e.jsx(I,{courses:o.data,isSlider:m})]})},L=g.div` @media (max-width: 1200px) { margin-top: 0; } @@ -51,4 +52,4 @@ import{q as g,h as T,i as j,f as w,j as e,T as B,B as b,k as C,C as S,r as v,l a .categories-section-wrapper { } -`,J=()=>{var t,i,n,l,p,c,x,h;const{categoryTree:a,settings:s}=v.useContext(y.EscolaLMSContext),m=j(),{t:r,i18n:o}=w();return e.jsx(H,{metaTitle:r("Home"),children:e.jsxs(L,{children:[e.jsx("section",{className:"home-hero",children:((t=s.value)==null?void 0:t.homepage)&&((i=s.value.homepage)==null?void 0:i.heroBannerText)&&((n=s.value.homepage)==null?void 0:n.heroBannerImg)&&((l=s.value.homepage)==null?void 0:l.heroBannerImg)!==""&&e.jsx(_,{children:e.jsx(N.Banner,{mobile:u,title:e.jsx(R.MarkdownRenderer,{children:`

${((p=s.value.homepage)==null?void 0:p.heroBannerText[o.language])||""}

`}),btnText:r("Homepage.HeroBtnText"),asset:e.jsx(k.ResponsiveImage,{path:((x=(c=s==null?void 0:s.value)==null?void 0:c.homepage)==null?void 0:x.heroBannerImg)||"",srcSizes:[500,750,1e3]}),handleBtn:()=>m.push(C.courses)})})}),e.jsx("section",{className:"home-newest-courses",children:e.jsx(d,{titleText:r("Homepage.CoursesSlider2Title"),params:{per_page:8,order_by:"created_at",order:"DESC"}})}),e.jsx("section",{className:"home-best-courses",children:e.jsx(d,{titleText:r("Homepage.CoursesSlider1Title"),params:{per_page:8}})}),e.jsx("div",{className:"promoted-courses-wrapper",children:e.jsx(d,{titleText:r("Homepage.AwardedCoursesTitle"),params:{per_page:8},isSlider:!!u,ctaButton:!0})}),a&&e.jsx("div",{className:"categories-section-wrapper",children:e.jsx(E,{categories:((h=a.list)==null?void 0:h.filter(f=>!!f.icon))||[]})})]})})};export{J as default}; +`,J=()=>{var a,i,n,l,p,c,x,h;const{categoryTree:t,settings:s}=v.useContext(y.EscolaLMSContext),m=j(),{t:r,i18n:o}=w();return e.jsx(H,{metaTitle:r("Home"),children:e.jsxs(L,{children:[e.jsx("section",{className:"home-hero",children:((a=s.value)==null?void 0:a.homepage)&&((i=s.value.homepage)==null?void 0:i.heroBannerText)&&((n=s.value.homepage)==null?void 0:n.heroBannerImg)&&((l=s.value.homepage)==null?void 0:l.heroBannerImg)!==""&&e.jsx(_,{children:e.jsx(N.Banner,{mobile:u,title:e.jsx(R.MarkdownRenderer,{children:`

${((p=s.value.homepage)==null?void 0:p.heroBannerText[o.language])||""}

`}),btnText:r("Homepage.HeroBtnText"),asset:e.jsx(k.ResponsiveImage,{path:((x=(c=s==null?void 0:s.value)==null?void 0:c.homepage)==null?void 0:x.heroBannerImg)||"",srcSizes:[500,750,1e3]}),handleBtn:()=>m.push(C.courses)})})}),e.jsx("section",{className:"home-newest-courses",children:e.jsx(d,{titleText:r("Homepage.CoursesSlider2Title"),params:{per_page:8,order_by:"created_at",order:"DESC"}})}),e.jsx("section",{className:"home-best-courses",children:e.jsx(d,{titleText:r("Homepage.CoursesSlider1Title"),params:{per_page:8}})}),e.jsx("div",{className:"promoted-courses-wrapper",children:e.jsx(d,{titleText:r("Homepage.AwardedCoursesTitle"),params:{per_page:8},isSlider:!!u,ctaButton:!0})}),t&&e.jsx("div",{className:"categories-section-wrapper",children:e.jsx(E,{categories:((h=t.list)==null?void 0:h.filter(f=>!!f.icon))||[]})})]})})};export{J as default}; diff --git a/assets/index-BBf4ZTLG.js b/assets/index-BTth33E-.js similarity index 63% rename from assets/index-BBf4ZTLG.js rename to assets/index-BTth33E-.js index 402aeb91..d926c2e0 100644 --- a/assets/index-BBf4ZTLG.js +++ b/assets/index-BTth33E-.js @@ -1,4 +1,4 @@ -import{f as b,j as n,q as l,o as e,V as m,r as x,D as h,v as u,W as y}from"./index-B8t7bxZo.js";import{a as k}from"./Search-CTLKKOal.js";const T=({onSubmit:a})=>{const{t}=b();return n.jsx(k,{placeholder:t("Filters.Search"),onSubmit:a})},j=l("div")` +import{aF as b,g as l,f as h,j as e,q as m,o as n,aG as u,r as x,D as y,v as k,a0 as j}from"./index-BTvwz0L3.js";var w=b();const C=l(w),T=({onSubmit:a})=>{const{t}=h();return e.jsx(C,{placeholder:t("Filters.Search"),onSubmit:a})},S=m("div")` display: flex; .tags-list { @@ -38,8 +38,8 @@ import{f as b,j as n,q as l,o as e,V as m,r as x,D as h,v as u,W as y}from"./ind align-items: center; box-sizing: border-box; justify-content: center; - border-color: ${({theme:a})=>e?a.primaryColor:a.white}; - color: ${({theme:a})=>e?a.primaryColor:a.white}; + border-color: ${({theme:a})=>n?a.primaryColor:a.white}; + color: ${({theme:a})=>n?a.primaryColor:a.white}; } } .clear-btn { @@ -50,9 +50,9 @@ import{f as b,j as n,q as l,o as e,V as m,r as x,D as h,v as u,W as y}from"./ind margin-left: 15px; cursor: pointer; &--desktop { - display: ${e?"none":"block"}; + display: ${n?"none":"block"}; } - ${e&&m` + ${n&&u` svg { path { fill: ${({theme:a})=>a.primaryColor}; @@ -60,4 +60,4 @@ import{f as b,j as n,q as l,o as e,V as m,r as x,D as h,v as u,W as y}from"./ind } `} } -`,v=({filters:a,onReset:t})=>{var c,s,d;const{categoryTree:g}=x.useContext(h.EscolaLMSContext),i=!!((c=a==null?void 0:a.categories)!=null&&c.length)||!!(a!=null&&a.name)||!!((s=a==null?void 0:a.tags)!=null&&s.length),r=x.useCallback(o=>n.jsx(u.Text,{className:"tag",children:o}),[]);return n.jsxs(j,{children:[n.jsxs("div",{className:"tags-list",children:[!!(a!=null&&a.categories)&&((d=g.list)==null?void 0:d.filter(o=>{var p;return((p=a.categories)==null?void 0:p.indexOf(o.id))>-1}).map(o=>r(o.name))),!!(a!=null&&a.tags)&&(a==null?void 0:a.tags.map(o=>r(o))),!!(a!=null&&a.name)&&r(a.name)]}),i&&n.jsx("button",{type:"button",onClick:()=>{t()},className:"clear-btn clear-btn--desktop",children:n.jsx(y,{})})]})};export{v as F,T as S}; +`,F=({filters:a,onReset:t})=>{var c,s,d;const{categoryTree:g}=x.useContext(y.EscolaLMSContext),i=!!((c=a==null?void 0:a.categories)!=null&&c.length)||!!(a!=null&&a.name)||!!((s=a==null?void 0:a.tags)!=null&&s.length),r=x.useCallback(o=>e.jsx(k.Text,{className:"tag",children:o}),[]);return e.jsxs(S,{children:[e.jsxs("div",{className:"tags-list",children:[!!(a!=null&&a.categories)&&((d=g.list)==null?void 0:d.filter(o=>{var p;return((p=a.categories)==null?void 0:p.indexOf(o.id))>-1}).map(o=>r(o.name))),!!(a!=null&&a.tags)&&(a==null?void 0:a.tags.map(o=>r(o))),!!(a!=null&&a.name)&&r(a.name)]}),i&&e.jsx("button",{type:"button",onClick:()=>{t()},className:"clear-btn clear-btn--desktop",children:e.jsx(j,{})})]})};export{F,T as S}; diff --git a/assets/index-B8t7bxZo.js b/assets/index-BTvwz0L3.js similarity index 90% rename from assets/index-B8t7bxZo.js rename to assets/index-BTvwz0L3.js index 7009dba5..05bb6ce9 100644 --- a/assets/index-B8t7bxZo.js +++ b/assets/index-BTvwz0L3.js @@ -1,4 +1,4 @@ -function Oe1(t,e){for(var n=0;na[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();var C=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ne(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function le(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function a(){return this instanceof a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(a){var r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return t[a]}})}),n}var zU={exports:{}},Hp={},MU={exports:{}},W2={};/** +function Oe1(t,e){for(var n=0;na[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();var C=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ne(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function le(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function a(){return this instanceof a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(a){var r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return t[a]}})}),n}var zU={exports:{}},Cp={},MU={exports:{}},W2={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function Oe1(t,e){for(var n=0;n>>1,J=I[i1];if(0>>1;i1r(u1,R))e1r(C1,u1)?(I[i1]=C1,I[e1]=R,i1=e1):(I[i1]=u1,I[c1]=R,i1=c1);else if(e1r(C1,R))I[i1]=C1,I[e1]=R,i1=e1;else break t}}return n1}function r(I,n1){var R=I.sortIndex-n1.sortIndex;return R!==0?R:I.id-n1.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var s=[],h=[],u=1,v=null,d=3,f=!1,M=!1,p=!1,H=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(I){for(var n1=n(h);n1!==null;){if(n1.callback===null)a(h);else if(n1.startTime<=I)a(h),n1.sortIndex=n1.expirationTime,e(s,n1);else break;n1=n(h)}}function w(I){if(p=!1,g(I),!M)if(n(s)!==null)M=!0,$(V);else{var n1=n(h);n1!==null&&Q(w,n1.startTime-I)}}function V(I,n1){M=!1,p&&(p=!1,m(b),b=-1),f=!0;var R=d;try{for(g(n1),v=n(s);v!==null&&(!(v.expirationTime>n1)||I&&!S());){var i1=v.callback;if(typeof i1=="function"){v.callback=null,d=v.priorityLevel;var J=i1(v.expirationTime<=n1);n1=t.unstable_now(),typeof J=="function"?v.callback=J:v===n(s)&&a(s),g(n1)}else a(s);v=n(s)}if(v!==null)var A=!0;else{var c1=n(h);c1!==null&&Q(w,c1.startTime-n1),A=!1}return A}finally{v=null,d=R,f=!1}}var y=!1,x=null,b=-1,L=5,B=-1;function S(){return!(t.unstable_now()-BI||125i1?(I.sortIndex=R,e(h,I),n(s)===null&&I===n(h)&&(p?(m(b),b=-1):p=!0,Q(w,R-i1))):(I.sortIndex=J,e(s,I),M||f||(M=!0,$(V))),I},t.unstable_shouldYield=S,t.unstable_wrapCallback=function(I){var n1=d;return function(){var R=d;d=n1;try{return I.apply(this,arguments)}finally{d=R}}}})(SU);_U.exports=SU;var e41=_U.exports;/** + */(function(t){function e(I,n1){var R=I.length;I.push(n1);t:for(;0>>1,J=I[i1];if(0>>1;i1r(u1,R))e1r(C1,u1)?(I[i1]=C1,I[e1]=R,i1=e1):(I[i1]=u1,I[c1]=R,i1=c1);else if(e1r(C1,R))I[i1]=C1,I[e1]=R,i1=e1;else break t}}return n1}function r(I,n1){var R=I.sortIndex-n1.sortIndex;return R!==0?R:I.id-n1.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var s=[],h=[],u=1,v=null,d=3,f=!1,M=!1,p=!1,H=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(I){for(var n1=n(h);n1!==null;){if(n1.callback===null)a(h);else if(n1.startTime<=I)a(h),n1.sortIndex=n1.expirationTime,e(s,n1);else break;n1=n(h)}}function w(I){if(p=!1,g(I),!M)if(n(s)!==null)M=!0,$(V);else{var n1=n(h);n1!==null&&Z(w,n1.startTime-I)}}function V(I,n1){M=!1,p&&(p=!1,m(b),b=-1),f=!0;var R=d;try{for(g(n1),v=n(s);v!==null&&(!(v.expirationTime>n1)||I&&!S());){var i1=v.callback;if(typeof i1=="function"){v.callback=null,d=v.priorityLevel;var J=i1(v.expirationTime<=n1);n1=t.unstable_now(),typeof J=="function"?v.callback=J:v===n(s)&&a(s),g(n1)}else a(s);v=n(s)}if(v!==null)var A=!0;else{var c1=n(h);c1!==null&&Z(w,c1.startTime-n1),A=!1}return A}finally{v=null,d=R,f=!1}}var y=!1,x=null,b=-1,L=5,B=-1;function S(){return!(t.unstable_now()-BI||125i1?(I.sortIndex=R,e(h,I),n(s)===null&&I===n(h)&&(p?(m(b),b=-1):p=!0,Z(w,R-i1))):(I.sortIndex=J,e(s,I),M||f||(M=!0,$(V))),I},t.unstable_shouldYield=S,t.unstable_wrapCallback=function(I){var n1=d;return function(){var R=d;d=n1;try{return I.apply(this,arguments)}finally{d=R}}}})(SU);_U.exports=SU;var e41=_U.exports;/** * @license React * react-dom.production.min.js * @@ -30,44 +30,44 @@ function Oe1(t,e){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jV=Object.prototype.hasOwnProperty,n41=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,eA={},nA={};function a41(t){return jV.call(nA,t)?!0:jV.call(eA,t)?!1:n41.test(t)?nA[t]=!0:(eA[t]=!0,!1)}function r41(t,e,n,a){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return a?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function i41(t,e,n,a){if(e===null||typeof e>"u"||r41(t,e,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Mn(t,e,n,a,r,o,l){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=l}var _4={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){_4[t]=new Mn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];_4[e]=new Mn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){_4[t]=new Mn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){_4[t]=new Mn(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){_4[t]=new Mn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){_4[t]=new Mn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){_4[t]=new Mn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){_4[t]=new Mn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){_4[t]=new Mn(t,5,!1,t.toLowerCase(),null,!1,!1)});var eB=/[\-:]([a-z])/g;function nB(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(eB,nB);_4[e]=new Mn(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(eB,nB);_4[e]=new Mn(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(eB,nB);_4[e]=new Mn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){_4[t]=new Mn(t,1,!1,t.toLowerCase(),null,!1,!1)});_4.xlinkHref=new Mn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){_4[t]=new Mn(t,1,!1,t.toLowerCase(),null,!0,!0)});function aB(t,e,n,a){var r=_4.hasOwnProperty(e)?_4[e]:null;(r!==null?r.type!==0:a||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jV=Object.prototype.hasOwnProperty,n41=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,eA={},nA={};function a41(t){return jV.call(nA,t)?!0:jV.call(eA,t)?!1:n41.test(t)?nA[t]=!0:(eA[t]=!0,!1)}function r41(t,e,n,a){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return a?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function i41(t,e,n,a){if(e===null||typeof e>"u"||r41(t,e,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Mn(t,e,n,a,r,o,l){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=l}var _4={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){_4[t]=new Mn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];_4[e]=new Mn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){_4[t]=new Mn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){_4[t]=new Mn(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){_4[t]=new Mn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){_4[t]=new Mn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){_4[t]=new Mn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){_4[t]=new Mn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){_4[t]=new Mn(t,5,!1,t.toLowerCase(),null,!1,!1)});var eB=/[\-:]([a-z])/g;function nB(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(eB,nB);_4[e]=new Mn(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(eB,nB);_4[e]=new Mn(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(eB,nB);_4[e]=new Mn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){_4[t]=new Mn(t,1,!1,t.toLowerCase(),null,!1,!1)});_4.xlinkHref=new Mn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){_4[t]=new Mn(t,1,!1,t.toLowerCase(),null,!0,!0)});function aB(t,e,n,a){var r=_4.hasOwnProperty(e)?_4[e]:null;(r!==null?r.type!==0:a||!(2c||r[l]!==o[c]){var s=` -`+r[l].replace(" at new "," at ");return t.displayName&&s.includes("")&&(s=s.replace("",t.displayName)),s}while(1<=l&&0<=c);break}}}finally{vw=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?m7(t):""}function o41(t){switch(t.tag){case 5:return m7(t.type);case 16:return m7("Lazy");case 13:return m7("Suspense");case 19:return m7("SuspenseList");case 0:case 2:case 15:return t=dw(t.type,!1),t;case 11:return t=dw(t.type.render,!1),t;case 1:return t=dw(t.type,!0),t;default:return""}}function UV(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case cl:return"Fragment";case ll:return"Portal";case IV:return"Profiler";case rB:return"StrictMode";case FV:return"Suspense";case $V:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case kU:return(t.displayName||"Context")+".Consumer";case AU:return(t._context.displayName||"Context")+".Provider";case iB:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case oB:return e=t.displayName||null,e!==null?e:UV(t.type)||"Memo";case p3:e=t._payload,t=t._init;try{return UV(t(e))}catch{}}return null}function l41(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return UV(e);case 8:return e===rB?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function X3(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function PU(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function c41(t){var e=PU(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),a=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(l){a=""+l,o.call(this,l)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(l){a=""+l},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function vv(t){t._valueTracker||(t._valueTracker=c41(t))}function NU(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=PU(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function _f(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function WV(t,e){var n=e.checked;return me({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function rA(t,e){var n=e.defaultValue==null?"":e.defaultValue,a=e.checked!=null?e.checked:e.defaultChecked;n=X3(e.value!=null?e.value:n),t._wrapperState={initialChecked:a,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function DU(t,e){e=e.checked,e!=null&&aB(t,"checked",e,!1)}function qV(t,e){DU(t,e);var n=X3(e.value),a=e.type;if(n!=null)a==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?GV(t,e.type,n):e.hasOwnProperty("defaultValue")&&GV(t,e.type,X3(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function iA(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var a=e.type;if(!(a!=="submit"&&a!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function GV(t,e,n){(e!=="number"||_f(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var z7=Array.isArray;function Ll(t,e,n,a){if(t=t.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=dv.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function fh(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var B7={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},h41=["Webkit","ms","Moz","O"];Object.keys(B7).forEach(function(t){h41.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),B7[e]=B7[t]})});function FU(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||B7.hasOwnProperty(t)&&B7[t]?(""+e).trim():e+"px"}function $U(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var a=n.indexOf("--")===0,r=FU(n,e[n],a);n==="float"&&(n="cssFloat"),a?t.setProperty(n,r):t[n]=r}}var s41=me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ZV(t,e){if(e){if(s41[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(pt(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(pt(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(pt(61))}if(e.style!=null&&typeof e.style!="object")throw Error(pt(62))}}function QV(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var XV=null;function lB(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var JV=null,Bl=null,_l=null;function cA(t){if(t=cs(t)){if(typeof JV!="function")throw Error(pt(280));var e=t.stateNode;e&&(e=Cp(e),JV(t.stateNode,t.type,e))}}function UU(t){Bl?_l?_l.push(t):_l=[t]:Bl=t}function WU(){if(Bl){var t=Bl,e=_l;if(_l=Bl=null,cA(t),e)for(t=0;t>>=0,t===0?32:31-(w41(t)/y41|0)|0}var fv=64,gv=4194304;function M7(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Af(t,e){var n=t.pendingLanes;if(n===0)return 0;var a=0,r=t.suspendedLanes,o=t.pingedLanes,l=n&268435455;if(l!==0){var c=l&~r;c!==0?a=M7(c):(o&=l,o!==0&&(a=M7(o)))}else l=n&~r,l!==0?a=M7(l):o!==0&&(a=M7(o));if(a===0)return 0;if(e!==0&&e!==a&&!(e&r)&&(r=a&-a,o=e&-e,r>=o||r===16&&(o&4194240)!==0))return e;if(a&4&&(a|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=a;0n;n++)e.push(t);return e}function os(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-_r(e),t[e]=n}function b41(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0=S7),mA=" ",zA=!1;function uW(t,e){switch(t){case"keyup":return tn1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vW(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var hl=!1;function nn1(t,e){switch(t){case"compositionend":return vW(e);case"keypress":return e.which!==32?null:(zA=!0,mA);case"textInput":return t=e.data,t===mA&&zA?null:t;default:return null}}function an1(t,e){if(hl)return t==="compositionend"||!gB&&uW(t,e)?(t=hW(),$d=vB=B3=null,hl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=yA(n)}}function pW(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?pW(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function mW(){for(var t=window,e=_f();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=_f(t.document)}return e}function pB(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function vn1(t){var e=mW(),n=t.focusedElem,a=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&pW(n.ownerDocument.documentElement,n)){if(a!==null&&pB(n)){if(e=a.start,t=a.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=n.textContent.length,o=Math.min(a.start,r);a=a.end===void 0?o:Math.min(a.end,r),!t.extend&&o>a&&(r=a,a=o,o=r),r=xA(n,o);var l=xA(n,a);r&&l&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==l.node||t.focusOffset!==l.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),o>a?(t.addRange(e),t.extend(l.node,l.offset)):(e.setEnd(l.node,l.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,sl=null,iC=null,O7=null,oC=!1;function VA(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;oC||sl==null||sl!==_f(a)||(a=sl,"selectionStart"in a&&pB(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),O7&&Hh(O7,a)||(O7=a,a=Pf(iC,"onSelect"),0dl||(t.current=vC[dl],vC[dl]=null,dl--)}function $0(t,e){dl++,vC[dl]=t.current,t.current=e}var J3={},W4=go(J3),Nn=go(!1),A8=J3;function Ul(t,e){var n=t.type.contextTypes;if(!n)return J3;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===e)return a.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=e[o];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function Dn(t){return t=t.childContextTypes,t!=null}function Df(){ee(Nn),ee(W4)}function TA(t,e,n){if(W4.current!==J3)throw Error(pt(168));$0(W4,e),$0(Nn,n)}function bW(t,e,n){var a=t.stateNode;if(e=e.childContextTypes,typeof a.getChildContext!="function")return n;a=a.getChildContext();for(var r in a)if(!(r in e))throw Error(pt(108,l41(t)||"Unknown",r));return me({},n,a)}function Rf(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||J3,A8=W4.current,$0(W4,t),$0(Nn,Nn.current),!0}function OA(t,e,n){var a=t.stateNode;if(!a)throw Error(pt(169));n?(t=bW(t,e,A8),a.__reactInternalMemoizedMergedChildContext=t,ee(Nn),ee(W4),$0(W4,t)):ee(Nn),$0(Nn,n)}var ii=null,bp=!1,Lw=!1;function LW(t){ii===null?ii=[t]:ii.push(t)}function Vn1(t){bp=!0,LW(t)}function po(){if(!Lw&&ii!==null){Lw=!0;var t=0,e=M0;try{var n=ii;for(M0=1;t>=l,r-=l,ci=1<<32-_r(e)+r|n<b?(L=x,x=null):L=x.sibling;var B=d(m,x,g[b],w);if(B===null){x===null&&(x=L);break}t&&x&&B.alternate===null&&e(m,x),z=o(B,z,b),y===null?V=B:y.sibling=B,y=B,x=L}if(b===g.length)return n(m,x),ie&&a8(m,b),V;if(x===null){for(;bb?(L=x,x=null):L=x.sibling;var S=d(m,x,B.value,w);if(S===null){x===null&&(x=L);break}t&&x&&S.alternate===null&&e(m,x),z=o(S,z,b),y===null?V=S:y.sibling=S,y=S,x=L}if(B.done)return n(m,x),ie&&a8(m,b),V;if(x===null){for(;!B.done;b++,B=g.next())B=v(m,B.value,w),B!==null&&(z=o(B,z,b),y===null?V=B:y.sibling=B,y=B);return ie&&a8(m,b),V}for(x=a(m,x);!B.done;b++,B=g.next())B=f(x,m,b,B.value,w),B!==null&&(t&&B.alternate!==null&&x.delete(B.key===null?b:B.key),z=o(B,z,b),y===null?V=B:y.sibling=B,y=B);return t&&x.forEach(function(T){return e(m,T)}),ie&&a8(m,b),V}function H(m,z,g,w){if(typeof g=="object"&&g!==null&&g.type===cl&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case uv:t:{for(var V=g.key,y=z;y!==null;){if(y.key===V){if(V=g.type,V===cl){if(y.tag===7){n(m,y.sibling),z=r(y,g.props.children),z.return=m,m=z;break t}}else if(y.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===p3&&RA(V)===y.type){n(m,y.sibling),z=r(y,g.props),z.ref=k9(m,y,g),z.return=m,m=z;break t}n(m,y);break}else e(m,y);y=y.sibling}g.type===cl?(z=C8(g.props.children,m.mode,w,g.key),z.return=m,m=z):(w=Qd(g.type,g.key,g.props,null,m.mode,w),w.ref=k9(m,z,g),w.return=m,m=w)}return l(m);case ll:t:{for(y=g.key;z!==null;){if(z.key===y)if(z.tag===4&&z.stateNode.containerInfo===g.containerInfo&&z.stateNode.implementation===g.implementation){n(m,z.sibling),z=r(z,g.children||[]),z.return=m,m=z;break t}else{n(m,z);break}else e(m,z);z=z.sibling}z=Ew(g,m.mode,w),z.return=m,m=z}return l(m);case p3:return y=g._init,H(m,z,y(g._payload),w)}if(z7(g))return M(m,z,g,w);if(_9(g))return p(m,z,g,w);yv(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,z!==null&&z.tag===6?(n(m,z.sibling),z=r(z,g),z.return=m,m=z):(n(m,z),z=kw(g,m.mode,w),z.return=m,m=z),l(m)):n(m,z)}return H}var ql=EW(!0),PW=EW(!1),hs={},M5=go(hs),Vh=go(hs),Ch=go(hs);function z8(t){if(t===hs)throw Error(pt(174));return t}function CB(t,e){switch($0(Ch,e),$0(Vh,t),$0(M5,hs),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:YV(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=YV(e,t)}ee(M5),$0(M5,e)}function Gl(){ee(M5),ee(Vh),ee(Ch)}function NW(t){z8(Ch.current);var e=z8(M5.current),n=YV(e,t.type);e!==n&&($0(Vh,t),$0(M5,n))}function bB(t){Vh.current===t&&(ee(M5),ee(Vh))}var de=go(0);function Wf(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Bw=[];function LB(){for(var t=0;tn?n:4,t(!0);var a=_w.transition;_w.transition={};try{t(!1),e()}finally{M0=n,_w.transition=a}}function JW(){return Ra().memoizedState}function Bn1(t,e,n){var a=I3(t);if(n={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null},tq(t))eq(e,n);else if(n=TW(t,e,n,a),n!==null){var r=fn();Sr(n,t,a,r),nq(n,e,a)}}function _n1(t,e,n){var a=I3(t),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(tq(t))eq(e,r);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var l=e.lastRenderedState,c=o(l,n);if(r.hasEagerState=!0,r.eagerState=c,Er(c,l)){var s=e.interleaved;s===null?(r.next=r,xB(e)):(r.next=s.next,s.next=r),e.interleaved=r;return}}catch{}finally{}n=TW(t,e,r,a),n!==null&&(r=fn(),Sr(n,t,a,r),nq(n,e,a))}}function tq(t){var e=t.alternate;return t===pe||e!==null&&e===pe}function eq(t,e){A7=qf=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function nq(t,e,n){if(n&4194240){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,hB(t,n)}}var Gf={readContext:Da,useCallback:k4,useContext:k4,useEffect:k4,useImperativeHandle:k4,useInsertionEffect:k4,useLayoutEffect:k4,useMemo:k4,useReducer:k4,useRef:k4,useState:k4,useDebugValue:k4,useDeferredValue:k4,useTransition:k4,useMutableSource:k4,useSyncExternalStore:k4,useId:k4,unstable_isNewReconciler:!1},Sn1={readContext:Da,useCallback:function(t,e){return Jr().memoizedState=[t,e===void 0?null:e],t},useContext:Da,useEffect:IA,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Gd(4194308,4,KW.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Gd(4194308,4,t,e)},useInsertionEffect:function(t,e){return Gd(4,2,t,e)},useMemo:function(t,e){var n=Jr();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var a=Jr();return e=n!==void 0?n(e):e,a.memoizedState=a.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},a.queue=t,t=t.dispatch=Bn1.bind(null,pe,t),[a.memoizedState,t]},useRef:function(t){var e=Jr();return t={current:t},e.memoizedState=t},useState:jA,useDebugValue:OB,useDeferredValue:function(t){return Jr().memoizedState=t},useTransition:function(){var t=jA(!1),e=t[0];return t=Ln1.bind(null,t[1]),Jr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var a=pe,r=Jr();if(ie){if(n===void 0)throw Error(pt(407));n=n()}else{if(n=e(),z4===null)throw Error(pt(349));E8&30||jW(a,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,IA(FW.bind(null,a,o,t),[t]),a.flags|=2048,Bh(9,IW.bind(null,a,o,n,e),void 0,null),n},useId:function(){var t=Jr(),e=z4.identifierPrefix;if(ie){var n=hi,a=ci;n=(a&~(1<<32-_r(a)-1)).toString(32)+n,e=":"+e+"R"+n,n=bh++,0")&&(s=s.replace("",t.displayName)),s}while(1<=l&&0<=c);break}}}finally{vw=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?d7(t):""}function o41(t){switch(t.tag){case 5:return d7(t.type);case 16:return d7("Lazy");case 13:return d7("Suspense");case 19:return d7("SuspenseList");case 0:case 2:case 15:return t=dw(t.type,!1),t;case 11:return t=dw(t.type.render,!1),t;case 1:return t=dw(t.type,!0),t;default:return""}}function UV(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case hl:return"Fragment";case cl:return"Portal";case IV:return"Profiler";case rB:return"StrictMode";case FV:return"Suspense";case $V:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case kU:return(t.displayName||"Context")+".Consumer";case AU:return(t._context.displayName||"Context")+".Provider";case iB:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case oB:return e=t.displayName||null,e!==null?e:UV(t.type)||"Memo";case H3:e=t._payload,t=t._init;try{return UV(t(e))}catch{}}return null}function l41(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return UV(e);case 8:return e===rB?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function no(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function PU(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function c41(t){var e=PU(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),a=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(l){a=""+l,o.call(this,l)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(l){a=""+l},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function mv(t){t._valueTracker||(t._valueTracker=c41(t))}function NU(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=PU(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function kf(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function WV(t,e){var n=e.checked;return me({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function rA(t,e){var n=e.defaultValue==null?"":e.defaultValue,a=e.checked!=null?e.checked:e.defaultChecked;n=no(e.value!=null?e.value:n),t._wrapperState={initialChecked:a,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function DU(t,e){e=e.checked,e!=null&&aB(t,"checked",e,!1)}function qV(t,e){DU(t,e);var n=no(e.value),a=e.type;if(n!=null)a==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?GV(t,e.type,n):e.hasOwnProperty("defaultValue")&&GV(t,e.type,no(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function iA(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var a=e.type;if(!(a!=="submit"&&a!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function GV(t,e,n){(e!=="number"||kf(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var f7=Array.isArray;function Bl(t,e,n,a){if(t=t.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=zv.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function sh(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var V7={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},h41=["Webkit","ms","Moz","O"];Object.keys(V7).forEach(function(t){h41.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),V7[e]=V7[t]})});function FU(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||V7.hasOwnProperty(t)&&V7[t]?(""+e).trim():e+"px"}function $U(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var a=n.indexOf("--")===0,r=FU(n,e[n],a);n==="float"&&(n="cssFloat"),a?t.setProperty(n,r):t[n]=r}}var s41=me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ZV(t,e){if(e){if(s41[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(pt(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(pt(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(pt(61))}if(e.style!=null&&typeof e.style!="object")throw Error(pt(62))}}function QV(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var XV=null;function lB(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var JV=null,_l=null,Sl=null;function cA(t){if(t=rs(t)){if(typeof JV!="function")throw Error(pt(280));var e=t.stateNode;e&&(e=Sp(e),JV(t.stateNode,t.type,e))}}function UU(t){_l?Sl?Sl.push(t):Sl=[t]:_l=t}function WU(){if(_l){var t=_l,e=Sl;if(Sl=_l=null,cA(t),e)for(t=0;t>>=0,t===0?32:31-(w41(t)/y41|0)|0}var Mv=64,Hv=4194304;function g7(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Df(t,e){var n=t.pendingLanes;if(n===0)return 0;var a=0,r=t.suspendedLanes,o=t.pingedLanes,l=n&268435455;if(l!==0){var c=l&~r;c!==0?a=g7(c):(o&=l,o!==0&&(a=g7(o)))}else l=n&~r,l!==0?a=g7(l):o!==0&&(a=g7(o));if(a===0)return 0;if(e!==0&&e!==a&&!(e&r)&&(r=a&-a,o=e&-e,r>=o||r===16&&(o&4194240)!==0))return e;if(a&4&&(a|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=a;0n;n++)e.push(t);return e}function ns(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Br(e),t[e]=n}function b41(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0=b7),mA=" ",zA=!1;function uW(t,e){switch(t){case"keyup":return tn1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vW(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var sl=!1;function nn1(t,e){switch(t){case"compositionend":return vW(e);case"keypress":return e.which!==32?null:(zA=!0,mA);case"textInput":return t=e.data,t===mA&&zA?null:t;default:return null}}function an1(t,e){if(sl)return t==="compositionend"||!gB&&uW(t,e)?(t=hW(),Kd=vB=O3=null,sl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=yA(n)}}function pW(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?pW(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function mW(){for(var t=window,e=kf();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=kf(t.document)}return e}function pB(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function vn1(t){var e=mW(),n=t.focusedElem,a=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&pW(n.ownerDocument.documentElement,n)){if(a!==null&&pB(n)){if(e=a.start,t=a.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=n.textContent.length,o=Math.min(a.start,r);a=a.end===void 0?o:Math.min(a.end,r),!t.extend&&o>a&&(r=a,a=o,o=r),r=xA(n,o);var l=xA(n,a);r&&l&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==l.node||t.focusOffset!==l.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),o>a?(t.addRange(e),t.extend(l.node,l.offset)):(e.setEnd(l.node,l.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ul=null,iC=null,B7=null,oC=!1;function VA(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;oC||ul==null||ul!==kf(a)||(a=ul,"selectionStart"in a&&pB(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),B7&&ph(B7,a)||(B7=a,a=If(iC,"onSelect"),0fl||(t.current=vC[fl],vC[fl]=null,fl--)}function $0(t,e){fl++,vC[fl]=t.current,t.current=e}var ao={},q4=Mo(ao),Nn=Mo(!1),E8=ao;function Wl(t,e){var n=t.type.contextTypes;if(!n)return ao;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===e)return a.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=e[o];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function Dn(t){return t=t.childContextTypes,t!=null}function $f(){ee(Nn),ee(q4)}function TA(t,e,n){if(q4.current!==ao)throw Error(pt(168));$0(q4,e),$0(Nn,n)}function bW(t,e,n){var a=t.stateNode;if(e=e.childContextTypes,typeof a.getChildContext!="function")return n;a=a.getChildContext();for(var r in a)if(!(r in e))throw Error(pt(108,l41(t)||"Unknown",r));return me({},n,a)}function Uf(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ao,E8=q4.current,$0(q4,t),$0(Nn,Nn.current),!0}function OA(t,e,n){var a=t.stateNode;if(!a)throw Error(pt(169));n?(t=bW(t,e,E8),a.__reactInternalMemoizedMergedChildContext=t,ee(Nn),ee(q4),$0(q4,t)):ee(Nn),$0(Nn,n)}var oi=null,Tp=!1,Lw=!1;function LW(t){oi===null?oi=[t]:oi.push(t)}function Vn1(t){Tp=!0,LW(t)}function Ho(){if(!Lw&&oi!==null){Lw=!0;var t=0,e=M0;try{var n=oi;for(M0=1;t>=l,r-=l,hi=1<<32-Br(e)+r|n<b?(L=x,x=null):L=x.sibling;var B=d(m,x,g[b],w);if(B===null){x===null&&(x=L);break}t&&x&&B.alternate===null&&e(m,x),z=o(B,z,b),y===null?V=B:y.sibling=B,y=B,x=L}if(b===g.length)return n(m,x),ie&&i8(m,b),V;if(x===null){for(;bb?(L=x,x=null):L=x.sibling;var S=d(m,x,B.value,w);if(S===null){x===null&&(x=L);break}t&&x&&S.alternate===null&&e(m,x),z=o(S,z,b),y===null?V=S:y.sibling=S,y=S,x=L}if(B.done)return n(m,x),ie&&i8(m,b),V;if(x===null){for(;!B.done;b++,B=g.next())B=v(m,B.value,w),B!==null&&(z=o(B,z,b),y===null?V=B:y.sibling=B,y=B);return ie&&i8(m,b),V}for(x=a(m,x);!B.done;b++,B=g.next())B=f(x,m,b,B.value,w),B!==null&&(t&&B.alternate!==null&&x.delete(B.key===null?b:B.key),z=o(B,z,b),y===null?V=B:y.sibling=B,y=B);return t&&x.forEach(function(T){return e(m,T)}),ie&&i8(m,b),V}function H(m,z,g,w){if(typeof g=="object"&&g!==null&&g.type===hl&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case pv:t:{for(var V=g.key,y=z;y!==null;){if(y.key===V){if(V=g.type,V===hl){if(y.tag===7){n(m,y.sibling),z=r(y,g.props.children),z.return=m,m=z;break t}}else if(y.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===H3&&RA(V)===y.type){n(m,y.sibling),z=r(y,g.props),z.ref=S9(m,y,g),z.return=m,m=z;break t}n(m,y);break}else e(m,y);y=y.sibling}g.type===hl?(z=L8(g.props.children,m.mode,w,g.key),z.return=m,m=z):(w=nf(g.type,g.key,g.props,null,m.mode,w),w.ref=S9(m,z,g),w.return=m,m=w)}return l(m);case cl:t:{for(y=g.key;z!==null;){if(z.key===y)if(z.tag===4&&z.stateNode.containerInfo===g.containerInfo&&z.stateNode.implementation===g.implementation){n(m,z.sibling),z=r(z,g.children||[]),z.return=m,m=z;break t}else{n(m,z);break}else e(m,z);z=z.sibling}z=Ew(g,m.mode,w),z.return=m,m=z}return l(m);case H3:return y=g._init,H(m,z,y(g._payload),w)}if(f7(g))return M(m,z,g,w);if(C9(g))return p(m,z,g,w);Lv(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,z!==null&&z.tag===6?(n(m,z.sibling),z=r(z,g),z.return=m,m=z):(n(m,z),z=kw(g,m.mode,w),z.return=m,m=z),l(m)):n(m,z)}return H}var Gl=EW(!0),PW=EW(!1),is={},z5=Mo(is),Hh=Mo(is),wh=Mo(is);function H8(t){if(t===is)throw Error(pt(174));return t}function CB(t,e){switch($0(wh,e),$0(Hh,t),$0(z5,is),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:YV(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=YV(e,t)}ee(z5),$0(z5,e)}function Kl(){ee(z5),ee(Hh),ee(wh)}function NW(t){H8(wh.current);var e=H8(z5.current),n=YV(e,t.type);e!==n&&($0(Hh,t),$0(z5,n))}function bB(t){Hh.current===t&&(ee(z5),ee(Hh))}var de=Mo(0);function Zf(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Bw=[];function LB(){for(var t=0;tn?n:4,t(!0);var a=_w.transition;_w.transition={};try{t(!1),e()}finally{M0=n,_w.transition=a}}function JW(){return Ra().memoizedState}function Bn1(t,e,n){var a=W3(t);if(n={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null},tq(t))eq(e,n);else if(n=TW(t,e,n,a),n!==null){var r=fn();_r(n,t,a,r),nq(n,e,a)}}function _n1(t,e,n){var a=W3(t),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(tq(t))eq(e,r);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var l=e.lastRenderedState,c=o(l,n);if(r.hasEagerState=!0,r.eagerState=c,kr(c,l)){var s=e.interleaved;s===null?(r.next=r,xB(e)):(r.next=s.next,s.next=r),e.interleaved=r;return}}catch{}finally{}n=TW(t,e,r,a),n!==null&&(r=fn(),_r(n,t,a,r),nq(n,e,a))}}function tq(t){var e=t.alternate;return t===pe||e!==null&&e===pe}function eq(t,e){_7=Qf=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function nq(t,e,n){if(n&4194240){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,hB(t,n)}}var Xf={readContext:Da,useCallback:E4,useContext:E4,useEffect:E4,useImperativeHandle:E4,useInsertionEffect:E4,useLayoutEffect:E4,useMemo:E4,useReducer:E4,useRef:E4,useState:E4,useDebugValue:E4,useDeferredValue:E4,useTransition:E4,useMutableSource:E4,useSyncExternalStore:E4,useId:E4,unstable_isNewReconciler:!1},Sn1={readContext:Da,useCallback:function(t,e){return Xr().memoizedState=[t,e===void 0?null:e],t},useContext:Da,useEffect:IA,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Xd(4194308,4,KW.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Xd(4194308,4,t,e)},useInsertionEffect:function(t,e){return Xd(4,2,t,e)},useMemo:function(t,e){var n=Xr();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var a=Xr();return e=n!==void 0?n(e):e,a.memoizedState=a.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},a.queue=t,t=t.dispatch=Bn1.bind(null,pe,t),[a.memoizedState,t]},useRef:function(t){var e=Xr();return t={current:t},e.memoizedState=t},useState:jA,useDebugValue:OB,useDeferredValue:function(t){return Xr().memoizedState=t},useTransition:function(){var t=jA(!1),e=t[0];return t=Ln1.bind(null,t[1]),Xr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var a=pe,r=Xr();if(ie){if(n===void 0)throw Error(pt(407));n=n()}else{if(n=e(),z4===null)throw Error(pt(349));N8&30||jW(a,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,IA(FW.bind(null,a,o,t),[t]),a.flags|=2048,Vh(9,IW.bind(null,a,o,n,e),void 0,null),n},useId:function(){var t=Xr(),e=z4.identifierPrefix;if(ie){var n=si,a=hi;n=(a&~(1<<32-Br(a)-1)).toString(32)+n,e=":"+e+"R"+n,n=yh++,0<\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=l.createElement(n,{is:a.is}):(t=l.createElement(n),n==="select"&&(l=t,a.multiple?l.multiple=!0:a.size&&(l.size=a.size))):t=l.createElementNS(t,n),t[r5]=e,t[xh]=a,uq(t,e,!1,!1),e.stateNode=t;t:{switch(l=QV(n,a),n){case"dialog":Z0("cancel",t),Z0("close",t),r=a;break;case"iframe":case"object":case"embed":Z0("load",t),r=a;break;case"video":case"audio":for(r=0;rYl&&(e.flags|=128,a=!0,E9(o,!1),e.lanes=4194304)}else{if(!a)if(t=Wf(l),t!==null){if(e.flags|=128,a=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),E9(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!ie)return E4(e),null}else 2*Te()-o.renderingStartTime>Yl&&n!==1073741824&&(e.flags|=128,a=!0,E9(o,!1),e.lanes=4194304);o.isBackwards?(l.sibling=e.child,e.child=l):(n=o.last,n!==null?n.sibling=l:e.child=l,o.last=l)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Te(),e.sibling=null,n=de.current,$0(de,a?n&1|2:n&1),e):(E4(e),null);case 22:case 23:return DB(),a=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(e.flags|=8192),a&&e.mode&1?Zn&1073741824&&(E4(e),e.subtreeFlags&6&&(e.flags|=8192)):E4(e),null;case 24:return null;case 25:return null}throw Error(pt(156,e.tag))}function Dn1(t,e){switch(zB(e),e.tag){case 1:return Dn(e.type)&&Df(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Gl(),ee(Nn),ee(W4),LB(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return bB(e),null;case 13:if(ee(de),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(pt(340));Wl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ee(de),null;case 4:return Gl(),null;case 10:return yB(e.type._context),null;case 22:case 23:return DB(),null;case 24:return null;default:return null}}var Vv=!1,R4=!1,Rn1=typeof WeakSet=="function"?WeakSet:Set,$t=null;function ml(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(a){xe(t,e,a)}else n.current=null}function VC(t,e,n){try{n()}catch(a){xe(t,e,a)}}var ZA=!1;function jn1(t,e){if(lC=kf,t=mW(),pB(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var l=0,c=-1,s=-1,h=0,u=0,v=t,d=null;e:for(;;){for(var f;v!==n||r!==0&&v.nodeType!==3||(c=l+r),v!==o||a!==0&&v.nodeType!==3||(s=l+a),v.nodeType===3&&(l+=v.nodeValue.length),(f=v.firstChild)!==null;)d=v,v=f;for(;;){if(v===t)break e;if(d===n&&++h===r&&(c=l),d===o&&++u===a&&(s=l),(f=v.nextSibling)!==null)break;v=d,d=v.parentNode}v=f}n=c===-1||s===-1?null:{start:c,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(cC={focusedElem:t,selectionRange:n},kf=!1,$t=e;$t!==null;)if(e=$t,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$t=t;else for(;$t!==null;){e=$t;try{var M=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(M!==null){var p=M.memoizedProps,H=M.memoizedState,m=e.stateNode,z=m.getSnapshotBeforeUpdate(e.elementType===e.type?p:zr(e.type,p),H);m.__reactInternalSnapshotBeforeUpdate=z}break;case 3:var g=e.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(pt(163))}}catch(w){xe(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,$t=t;break}$t=e.return}return M=ZA,ZA=!1,M}function k7(t,e,n){var a=e.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var r=a=a.next;do{if((r.tag&t)===t){var o=r.destroy;r.destroy=void 0,o!==void 0&&VC(e,n,o)}r=r.next}while(r!==a)}}function _p(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var a=n.create;n.destroy=a()}n=n.next}while(n!==e)}}function CC(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function fq(t){var e=t.alternate;e!==null&&(t.alternate=null,fq(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[r5],delete e[xh],delete e[uC],delete e[yn1],delete e[xn1])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function gq(t){return t.tag===5||t.tag===3||t.tag===4}function QA(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||gq(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function bC(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Nf));else if(a!==4&&(t=t.child,t!==null))for(bC(t,e,n),t=t.sibling;t!==null;)bC(t,e,n),t=t.sibling}function LC(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(LC(t,e,n),t=t.sibling;t!==null;)LC(t,e,n),t=t.sibling}var x4=null,wr=!1;function Ji(t,e,n){for(n=n.child;n!==null;)pq(t,e,n),n=n.sibling}function pq(t,e,n){if(z5&&typeof z5.onCommitFiberUnmount=="function")try{z5.onCommitFiberUnmount(wp,n)}catch{}switch(n.tag){case 5:R4||ml(n,e);case 6:var a=x4,r=wr;x4=null,Ji(t,e,n),x4=a,wr=r,x4!==null&&(wr?(t=x4,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):x4.removeChild(n.stateNode));break;case 18:x4!==null&&(wr?(t=x4,n=n.stateNode,t.nodeType===8?bw(t.parentNode,n):t.nodeType===1&&bw(t,n),zh(t)):bw(x4,n.stateNode));break;case 4:a=x4,r=wr,x4=n.stateNode.containerInfo,wr=!0,Ji(t,e,n),x4=a,wr=r;break;case 0:case 11:case 14:case 15:if(!R4&&(a=n.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){r=a=a.next;do{var o=r,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&VC(n,e,l),r=r.next}while(r!==a)}Ji(t,e,n);break;case 1:if(!R4&&(ml(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=n.memoizedProps,a.state=n.memoizedState,a.componentWillUnmount()}catch(c){xe(n,e,c)}Ji(t,e,n);break;case 21:Ji(t,e,n);break;case 22:n.mode&1?(R4=(a=R4)||n.memoizedState!==null,Ji(t,e,n),R4=a):Ji(t,e,n);break;default:Ji(t,e,n)}}function XA(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new Rn1),e.forEach(function(a){var r=Yn1.bind(null,t,a);n.has(a)||(n.add(a),a.then(r,r))})}}function cr(t,e){var n=e.deletions;if(n!==null)for(var a=0;ar&&(r=l),a&=~o}if(a=r,a=Te()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Fn1(a/1960))-a,10t?16:t,_3===null)var a=!1;else{if(t=_3,_3=null,Zf=0,X2&6)throw Error(pt(331));var r=X2;for(X2|=4,$t=t.current;$t!==null;){var o=$t,l=o.child;if($t.flags&16){var c=o.deletions;if(c!==null){for(var s=0;sTe()-PB?V8(t,0):EB|=n),Rn(t,e)}function Vq(t,e){e===0&&(t.mode&1?(e=gv,gv<<=1,!(gv&130023424)&&(gv=4194304)):e=1);var n=fn();t=mi(t,e),t!==null&&(os(t,e,n),Rn(t,n))}function Kn1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Vq(t,n)}function Yn1(t,e){var n=0;switch(t.tag){case 13:var a=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(pt(314))}a!==null&&a.delete(e),Vq(t,n)}var Cq;Cq=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Nn.current)En=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return En=!1,Pn1(t,e,n);En=!!(t.flags&131072)}else En=!1,ie&&e.flags&1048576&&BW(e,If,e.index);switch(e.lanes=0,e.tag){case 2:var a=e.type;Kd(t,e),t=e.pendingProps;var r=Ul(e,W4.current);Tl(e,n),r=_B(null,e,a,t,r,n);var o=SB();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Dn(a)?(o=!0,Rf(e)):o=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,VB(e),r.updater=Lp,e.stateNode=r,r._reactInternals=e,mC(e,a,t,n),e=HC(null,e,a,!0,o,n)):(e.tag=0,ie&&o&&mB(e),hn(null,e,r,n),e=e.child),e;case 16:a=e.elementType;t:{switch(Kd(t,e),t=e.pendingProps,r=a._init,a=r(a._payload),e.type=a,r=e.tag=Qn1(a),t=zr(a,t),r){case 0:e=MC(null,e,a,t,n);break t;case 1:e=GA(null,e,a,t,n);break t;case 11:e=WA(null,e,a,t,n);break t;case 14:e=qA(null,e,a,zr(a.type,t),n);break t}throw Error(pt(306,a,""))}return e;case 0:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:zr(a,r),MC(t,e,a,r,n);case 1:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:zr(a,r),GA(t,e,a,r,n);case 3:t:{if(cq(e),t===null)throw Error(pt(387));a=e.pendingProps,o=e.memoizedState,r=o.element,OW(t,e),Uf(e,a,null,n);var l=e.memoizedState;if(a=l.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){r=Kl(Error(pt(423)),e),e=KA(t,e,a,n,r);break t}else if(a!==r){r=Kl(Error(pt(424)),e),e=KA(t,e,a,n,r);break t}else for(ta=D3(e.stateNode.containerInfo.firstChild),ra=e,ie=!0,Vr=null,n=PW(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wl(),a===r){e=zi(t,e,n);break t}hn(t,e,a,n)}e=e.child}return e;case 5:return NW(e),t===null&&fC(e),a=e.type,r=e.pendingProps,o=t!==null?t.memoizedProps:null,l=r.children,hC(a,r)?l=null:o!==null&&hC(a,o)&&(e.flags|=32),lq(t,e),hn(t,e,l,n),e.child;case 6:return t===null&&fC(e),null;case 13:return hq(t,e,n);case 4:return CB(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ql(e,null,a,n):hn(t,e,a,n),e.child;case 11:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:zr(a,r),WA(t,e,a,r,n);case 7:return hn(t,e,e.pendingProps,n),e.child;case 8:return hn(t,e,e.pendingProps.children,n),e.child;case 12:return hn(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(a=e.type._context,r=e.pendingProps,o=e.memoizedProps,l=r.value,$0(Ff,a._currentValue),a._currentValue=l,o!==null)if(Er(o.value,l)){if(o.children===r.children&&!Nn.current){e=zi(t,e,n);break t}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){l=o.child;for(var s=c.firstContext;s!==null;){if(s.context===a){if(o.tag===1){s=si(-1,n&-n),s.tag=2;var h=o.updateQueue;if(h!==null){h=h.shared;var u=h.pending;u===null?s.next=s:(s.next=u.next,u.next=s),h.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),gC(o.return,n,e),c.lanes|=n;break}s=s.next}}else if(o.tag===10)l=o.type===e.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(pt(341));l.lanes|=n,c=l.alternate,c!==null&&(c.lanes|=n),gC(l,n,e),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===e){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}hn(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,a=e.pendingProps.children,Tl(e,n),r=Da(r),a=a(r),e.flags|=1,hn(t,e,a,n),e.child;case 14:return a=e.type,r=zr(a,e.pendingProps),r=zr(a.type,r),qA(t,e,a,r,n);case 15:return iq(t,e,e.type,e.pendingProps,n);case 17:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:zr(a,r),Kd(t,e),e.tag=1,Dn(a)?(t=!0,Rf(e)):t=!1,Tl(e,n),kW(e,a,r),mC(e,a,r,n),HC(null,e,a,!0,t,n);case 19:return sq(t,e,n);case 22:return oq(t,e,n)}throw Error(pt(156,e.tag))};function bq(t,e){return XU(t,e)}function Zn1(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oa(t,e,n,a){return new Zn1(t,e,n,a)}function jB(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Qn1(t){if(typeof t=="function")return jB(t)?1:0;if(t!=null){if(t=t.$$typeof,t===iB)return 11;if(t===oB)return 14}return 2}function F3(t,e){var n=t.alternate;return n===null?(n=Oa(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Qd(t,e,n,a,r,o){var l=2;if(a=t,typeof t=="function")jB(t)&&(l=1);else if(typeof t=="string")l=5;else t:switch(t){case cl:return C8(n.children,r,o,e);case rB:l=8,r|=8;break;case IV:return t=Oa(12,n,e,r|2),t.elementType=IV,t.lanes=o,t;case FV:return t=Oa(13,n,e,r),t.elementType=FV,t.lanes=o,t;case $V:return t=Oa(19,n,e,r),t.elementType=$V,t.lanes=o,t;case EU:return Tp(n,r,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case AU:l=10;break t;case kU:l=9;break t;case iB:l=11;break t;case oB:l=14;break t;case p3:l=16,a=null;break t}throw Error(pt(130,t==null?t:typeof t,""))}return e=Oa(l,n,e,r),e.elementType=t,e.type=a,e.lanes=o,e}function C8(t,e,n,a){return t=Oa(7,t,a,e),t.lanes=n,t}function Tp(t,e,n,a){return t=Oa(22,t,a,e),t.elementType=EU,t.lanes=n,t.stateNode={isHidden:!1},t}function kw(t,e,n){return t=Oa(6,t,null,e),t.lanes=n,t}function Ew(t,e,n){return e=Oa(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Xn1(t,e,n,a,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gw(0),this.expirationTimes=gw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gw(0),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function IB(t,e,n,a,r,o,l,c,s){return t=new Xn1(t,e,n,c,s),e===1?(e=1,o===!0&&(e|=8)):e=0,o=Oa(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},VB(o),t}function Jn1(t,e,n){var a=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sq)}catch(t){console.error(t)}}Sq(),BU.exports=la;var D8=BU.exports;const M8=ne(D8);var ok=D8;RV.createRoot=ok.createRoot,RV.hydrateRoot=ok.hydrateRoot;var Pw={},Nw={},H0={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultConfig=t.defaultApiConfig=t.defaultReadConfig=t.questionSet=t.guessTheAnswer=t.attempted=t.completed=t.blackList=void 0,t.blackList=["http://adlnet.gov/expapi/verbs/attended","http://adlnet.gov/expapi/verbs/attempted","http://adlnet.gov/expapi/verbs/interacted","http://adlnet.gov/expapi/verbs/imported","http://adlnet.gov/expapi/verbs/created"],t.completed=["http://adlnet.gov/expapi/verbs/completed","http://adlnet.gov/expapi/verbs/answered","http://activitystrea.ms/schema/1.0/consume","http://adlnet.gov/expapi/verbs/passed","http://adlnet.gov/expapi/verbs/mastered"],t.attempted="http://adlnet.gov/expapi/verbs/attempted",t.guessTheAnswer="GuessTheAnswer",t.questionSet="QuestionSet",t.defaultReadConfig={apiUrl:"",getImagePrefix:function(){return""},getImageSvgPrefix:function(){return""},courses:{loading:!1},fetchCourses:function(){return Promise.reject()},userGroup:{loading:!1},fetchChallenges:function(){return Promise.reject()},challenges:{loading:!1},fetchUserGroup:function(){return Promise.reject()},userGroups:{loading:!1},fetchUserGroups:function(){return Promise.reject()},registerableGroups:{loading:!1},fetchRegisterableGroups:function(){return Promise.reject()},course:{loading:!1},fetchCourse:function(e){return Promise.reject()},program:{loading:!1},fetchProgram:function(e){return Promise.reject()},login:function(e){return Promise.reject()},logout:function(){return Promise.reject()},settings:{loading:!1,value:{}},fetchSettings:function(){return Promise.reject()},config:{loading:!1,value:{}},fetchConfig:function(){return Promise.reject()},uniqueTags:{loading:!1,list:[]},fetchTags:function(){return Promise.reject()},categoryTree:{loading:!1,list:[]},fetchCategories:function(){return Promise.reject()},user:{loading:!1},register:function(){return Promise.reject({success:!1,message:"register method not implemented"})},forgot:function(e){return Promise.reject()},reset:function(e){return Promise.reject()},emailVerify:function(e,n){return Promise.reject()},initAccountDelete:function(){return Promise.reject()},confirmAccountDelete:function(){return Promise.reject()},addToCart:function(e,n){return Promise.reject()},addMissingProducts:function(e){return Promise.reject()},removeFromCart:function(e){return Promise.reject(e)},fetchCart:function(){return Promise.reject()},resetCart:function(){return Promise.reject()},cart:{loading:!1,value:{total:0,subtotal:0,tax:0,items:[],coupon:null,total_with_tax:0}},payWithStripe:function(e,n){return Promise.reject(e)},payWithP24:function(e,n,a){return Promise.reject()},fetchProgress:function(){return Promise.reject()},fetchPaginatedProgress:function(){return Promise.reject()},paginatedProgress:{loading:!1},fetchMyAuthoredCourses:function(){return Promise.reject()},fetchCourseProgress:function(e){return Promise.reject()},courseProgressDetails:{loading:!1,byId:{}},progress:{loading:!1,value:[]},myAuthoredCourses:{loading:!1},sendProgress:function(e,n){return Promise.reject()},h5pProgress:function(e,n,a){return Promise.reject()},tutors:{loading:!1,list:[]},fetchTutors:function(){return Promise.reject()},tutor:{loading:!1},fetchTutor:function(e){return Promise.reject(e)},orders:{loading:!1},fetchOrders:function(e){return Promise.reject()},payments:{loading:!1},certificates:{loading:!1},fetchCertificates:function(e){return Promise.reject()},fetchCertificate:function(e){return Promise.reject(e)},generateCertificate:function(e){return Promise.reject(e)},getProductInfo:function(e){return Promise.reject(e)},pages:{loading:!1},mattermostChannels:{loading:!1,value:{server:"",teams:[]}},fetchMattermostChannels:function(){return Promise.reject()},fetchPages:function(){return Promise.reject()},page:{loading:!1},fetchPage:function(e){return Promise.reject()},fetchPayments:function(){return Promise.reject()},fetchProfile:function(){return Promise.reject()},updateProfile:function(e){return Promise.reject(e)},updateAvatar:function(e){return Promise.reject(e)},topicPing:function(e){return Promise.reject(e)},topicIsFinished:function(e){return!1},courseProgress:function(e){return 0},getNextPrevTopic:function(e,n){return null},socialAuthorize:function(e){return Promise.reject()},notifications:{loading:!1},fetchNotifications:function(e){return Promise.reject()},readAllNotifications:function(){return Promise.reject()},readNotify:function(e){return Promise.reject()},h5p:{loading:!1},fetchH5P:function(e){return Promise.reject()},getRefreshedToken:function(){return Promise.reject()},fetchConsultations:function(){return Promise.reject()},fetchConsultation:function(e){return Promise.reject()},fetchUserConsultations:function(){return Promise.reject()},consultation:{loading:!1},consultations:{loading:!1},userConsultations:{loading:!1},userWebinars:{loading:!1},fetchUserWebinars:function(){return Promise.reject()},fetchWebinar:function(e){return Promise.reject()},fetchProducts:function(e){return Promise.reject()},fetchProduct:function(e){return Promise.reject()},fields:{loading:!1,list:[]},fetchFields:function(e){return Promise.reject()},stationaryEvents:{loading:!1},stationaryEvent:{loading:!1},tutorConsultations:{loading:!1},fetchStationaryEvents:function(e){return Promise.reject()},fetchStationaryEvent:function(e){return Promise.reject()},bookConsultationTerm:function(e,n){return Promise.reject()},fetchWebinars:function(e){return Promise.reject()},fetchTutorConsultations:function(){return Promise.reject()},approveConsultationTerm:function(e){return Promise.reject()},rejectConsultationTerm:function(e){return Promise.reject()},generateConsultationJitsy:function(e){return Promise.reject(e)},generateWebinarJitsy:function(e){return Promise.reject(e)},webinars:{loading:!1},webinar:{loading:!1},events:{loading:!1},fetchEvents:function(e){return Promise.reject()},changePassword:function(){return Promise.reject()},realizeVoucher:function(){return Promise.reject()},removeVoucher:function(){return Promise.reject()},createTeamsChat:function(){return Promise.reject()},products:{loading:!1},product:{loading:!1},fetchQuestionnaires:function(e,n){return Promise.reject()},fetchQuestionnaire:function(e,n,a){return Promise.reject()},fetchQuestionnairesAnswers:function(e,n,a,r){return Promise.reject()},fetchQuestionnaireStars:function(e,n,a){return Promise.reject()},sendQuestionnaireAnswer:function(e,n,a,r){return Promise.reject()},fetchUserStationaryEvents:function(){return Promise.reject()},userStationaryEvents:{loading:!1},fetchOrderInvoice:function(e){return Promise.reject(e)},changeConsultationTerm:function(e,n){return Promise.reject()},tasks:{loading:!1},fetchTasks:function(e){return Promise.reject()},courseAccess:{loading:!1},myCourses:{loading:!1,value:[]},fetchMyCourses:function(){return Promise.reject()},fetchCourseAccess:function(e){return Promise.reject()},addCourseAccess:function(e){return Promise.reject()},deleteCourseAccess:function(e){return Promise.reject()},task:{loading:!1},challenge:{loading:!1},attendances:{loading:!1},consultationAccessEnquiry:{loading:!1},fetchConsultationAccessEnquiry:function(e){return Promise.reject()},consultationAccess:{loading:!1},fetchConsultationAccess:function(e){return Promise.reject()},addConsultationAccess:function(e){return Promise.reject()},deleteConsultationAccess:function(e){return Promise.reject()},updateConsultationAccess:function(e,n){return Promise.reject()},fetchTask:function(e){return Promise.reject()},fetchChallenge:function(e){return Promise.reject()},fetchAttendances:function(e){return Promise.reject()},deleteTask:function(e){return Promise.reject()},addTask:function(e){return Promise.reject()},updateTask:function(e,n){return Promise.reject()},updateTaskStatus:function(e,n){return Promise.reject(e)},createTaskNote:function(e,n){return Promise.reject(e)},updateTaskNote:function(e,n,a){return Promise.reject(e)},deleteTaskNote:function(e){return Promise.reject(e)},schedule:{loading:!1,list:[]},scheduleTutors:{loading:!1,list:[]},fetchSchedule:function(){return Promise.reject()},fetchScheduleTutors:function(){return Promise.reject()},bookmarkNotes:{loading:!1},fetchBookmarkNotes:function(e){return Promise.reject()},createBookmarkNote:function(e){return Promise.reject()},updateBookmarkNote:function(e,n){return Promise.reject(e)},deleteBookmarkNote:function(e){return Promise.reject(e)},subjects:{loading:!1},fetchExams:function(e){return Promise.reject()},exams:{loading:!1},fetchSubjects:function(e){return Promise.reject()},fetchSemesters:function(e){return Promise.reject()},semesters:{loading:!1,list:[]},academicYears:{loading:!1,list:[]},fetchAcademicYears:function(e){return Promise.reject()}},t.defaultApiConfig={apiUrl:"",myCourses:{loading:!1,value:[]},fetchMyCourses:function(){return Promise.reject()},getImagePrefix:function(){return""},getImageSvgPrefix:function(){return""},courses:{loading:!1},fetchCourses:function(){return Promise.reject()},userGroup:{loading:!1},fetchChallenges:function(){return Promise.reject()},challenges:{loading:!1},fetchUserGroup:function(){return Promise.reject()},userGroups:{loading:!1},fetchUserGroups:function(){return Promise.reject()},registerableGroups:{loading:!1},fetchRegisterableGroups:function(){return Promise.reject()},course:{loading:!1},fetchCourse:function(e){return Promise.reject()},program:{loading:!1},fetchProgram:function(e){return Promise.reject()},login:function(e){return Promise.reject()},logout:function(){return Promise.reject()},settings:{loading:!1,value:[]},fetchSettings:function(){return Promise.reject()},config:{loading:!1,value:{escola_auth:{additional_fields:[],additional_fields_required:[]}}},fetchConfig:function(){return Promise.reject()},uniqueTags:{loading:!1,list:[]},fetchTags:function(){return Promise.reject()},categoryTree:{loading:!1,list:[]},fetchCategories:function(){return Promise.reject()},user:{loading:!1},register:function(){return Promise.reject({success:!1,message:"register method not implemented"})},forgot:function(e){return Promise.reject()},reset:function(e){return Promise.reject()},emailVerify:function(e,n){return Promise.reject()},initAccountDelete:function(){return Promise.reject()},confirmAccountDelete:function(){return Promise.reject()},addToCart:function(e,n){return Promise.reject()},addMissingProducts:function(e){return Promise.reject()},removeFromCart:function(e){return Promise.reject(e)},fetchCart:function(){return Promise.reject()},resetCart:function(){return Promise.reject()},cart:{loading:!1,value:{total:0,subtotal:0,tax:0,items:[],coupon:null,total_with_tax:0}},payWithStripe:function(e,n){return Promise.reject(e)},payWithP24:function(e,n,a){return Promise.reject()},fetchProgress:function(){return Promise.reject()},fetchPaginatedProgress:function(){return Promise.reject()},paginatedProgress:{loading:!1},fetchMyAuthoredCourses:function(){return Promise.reject()},fetchCourseProgress:function(e){return Promise.reject()},courseProgressDetails:{loading:!1,byId:{}},progress:{loading:!1,value:[]},myAuthoredCourses:{loading:!1},sendProgress:function(e,n){return Promise.reject()},h5pProgress:function(e,n,a){return Promise.reject()},tutors:{loading:!1,list:[]},fetchTutors:function(){return Promise.reject()},tutor:{loading:!1},fetchTutor:function(e){return Promise.reject(e)},orders:{loading:!1},fetchOrders:function(e){return Promise.reject()},payments:{loading:!1},certificates:{loading:!1},fetchCertificates:function(e){return Promise.reject()},fetchCertificate:function(e){return Promise.reject(e)},generateCertificate:function(e){return Promise.reject(e)},getProductInfo:function(e){return Promise.reject(e)},pages:{loading:!1},mattermostChannels:{loading:!1,value:{server:"",teams:[]}},fetchMattermostChannels:function(){return Promise.reject()},fetchPages:function(){return Promise.reject()},page:{loading:!1},fetchPage:function(e){return Promise.reject()},fetchPayments:function(){return Promise.reject()},fetchProfile:function(){return Promise.reject()},updateProfile:function(e){return Promise.reject(e)},updateAvatar:function(e){return Promise.reject(e)},topicPing:function(e){return Promise.reject(e)},topicIsFinished:function(e){return!1},courseProgress:function(e){return 0},getNextPrevTopic:function(e,n){return null},getRefreshedToken:function(){return Promise.reject()},socialAuthorize:function(e){return Promise.reject()},notifications:{loading:!1},fetchNotifications:function(e){return Promise.reject()},readNotify:function(e){return Promise.reject()},readAllNotifications:function(){return Promise.reject()},h5p:{loading:!1},fetchH5P:function(e){return Promise.reject()},fetchConsultations:function(){return Promise.reject()},fetchConsultation:function(e){return Promise.reject()},fetchUserConsultations:function(){return Promise.reject()},consultation:{loading:!1},consultations:{loading:!1},fields:{loading:!1,list:[]},userConsultations:{loading:!1},tutorConsultations:{loading:!1},userWebinars:{loading:!1},fetchUserWebinars:function(){return Promise.reject()},fetchWebinar:function(e){return Promise.reject()},fetchProducts:function(e){return Promise.reject()},fetchProduct:function(e){return Promise.reject()},fetchFields:function(e){return Promise.reject()},stationaryEvents:{loading:!1},stationaryEvent:{loading:!1},fetchStationaryEvents:function(e){return Promise.reject()},fetchStationaryEvent:function(e){return Promise.reject()},bookConsultationTerm:function(e,n){return Promise.reject()},fetchWebinars:function(e){return Promise.reject()},webinars:{loading:!1},webinar:{loading:!1},fetchTutorConsultations:function(){return Promise.reject()},approveConsultationTerm:function(e){return Promise.reject()},rejectConsultationTerm:function(e){return Promise.reject()},generateConsultationJitsy:function(e){return Promise.reject(e)},generateWebinarJitsy:function(e){return Promise.reject(e)},events:{loading:!1},fetchEvents:function(e){return Promise.reject()},changePassword:function(){return Promise.reject()},realizeVoucher:function(){return Promise.reject()},removeVoucher:function(){return Promise.reject()},createTeamsChat:function(){return Promise.reject()},products:{loading:!1},product:{loading:!1},fetchQuestionnaires:function(e,n){return Promise.reject()},fetchQuestionnaire:function(e,n,a){return Promise.reject()},fetchQuestionnairesAnswers:function(e,n,a,r){return Promise.reject()},sendQuestionnaireAnswer:function(e,n,a,r){return Promise.reject()},fetchQuestionnaireStars:function(e,n,a){return Promise.reject()},fetchUserStationaryEvents:function(){return Promise.reject()},userStationaryEvents:{loading:!1},fetchOrderInvoice:function(e){return Promise.reject(e)},changeConsultationTerm:function(e,n){return Promise.reject()},tasks:{loading:!1},fetchTasks:function(e){return Promise.reject()},courseAccess:{loading:!1},fetchCourseAccess:function(e){return Promise.reject()},deleteCourseAccess:function(e){return Promise.reject()},addCourseAccess:function(e){return Promise.reject()},consultationAccessEnquiry:{loading:!1},fetchConsultationAccessEnquiry:function(e){return Promise.reject()},consultationAccess:{loading:!1},fetchConsultationAccess:function(e){return Promise.reject()},deleteConsultationAccess:function(e){return Promise.reject()},addConsultationAccess:function(e){return Promise.reject()},updateConsultationAccess:function(e,n){return Promise.reject()},task:{loading:!1},challenge:{loading:!1},attendances:{loading:!1},fetchTask:function(e){return Promise.reject(e)},fetchChallenge:function(e){return Promise.reject(e)},fetchAttendances:function(e){return Promise.reject(e)},deleteTask:function(e){return Promise.reject()},addTask:function(e){return Promise.reject()},updateTask:function(e,n){return Promise.reject(e)},updateTaskStatus:function(e,n){return Promise.reject(e)},createTaskNote:function(e,n){return Promise.reject(e)},updateTaskNote:function(e,n,a){return Promise.reject(e)},deleteTaskNote:function(e){return Promise.reject(e)},schedule:{loading:!1,list:[]},scheduleTutors:{loading:!1,list:[]},fetchSchedule:function(){return Promise.reject()},fetchScheduleTutors:function(){return Promise.reject()},bookmarkNotes:{loading:!1},fetchBookmarkNotes:function(e){return Promise.reject()},createBookmarkNote:function(e){return Promise.reject()},updateBookmarkNote:function(e,n){return Promise.reject(e)},deleteBookmarkNote:function(e){return Promise.reject(e)},subjects:{loading:!1},fetchSubjects:function(){return Promise.reject()},fetchExams:function(){return Promise.reject()},exams:{loading:!1},fetchSemesters:function(){return Promise.reject()},semesters:{loading:!1,list:[]},fetchAcademicYears:function(){return Promise.reject()},academicYears:{loading:!1,list:[]}},t.defaultConfig=Object.assign({},t.defaultReadConfig,t.defaultApiConfig)})(H0);var f0={},v0=C&&C.__assign||function(){return v0=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]"u"||!d4?$2:d4(Uint8Array),L8={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?$2:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?$2:ArrayBuffer,"%ArrayIteratorPrototype%":N6&&d4?d4([][Symbol.iterator]()):$2,"%AsyncFromSyncIteratorPrototype%":$2,"%AsyncFunction%":el,"%AsyncGenerator%":el,"%AsyncGeneratorFunction%":el,"%AsyncIteratorPrototype%":el,"%Atomics%":typeof Atomics>"u"?$2:Atomics,"%BigInt%":typeof BigInt>"u"?$2:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?$2:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?$2:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?$2:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Sa1,"%eval%":eval,"%EvalError%":Ta1,"%Float32Array%":typeof Float32Array>"u"?$2:Float32Array,"%Float64Array%":typeof Float64Array>"u"?$2:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?$2:FinalizationRegistry,"%Function%":Oq,"%GeneratorFunction%":el,"%Int8Array%":typeof Int8Array>"u"?$2:Int8Array,"%Int16Array%":typeof Int16Array>"u"?$2:Int16Array,"%Int32Array%":typeof Int32Array>"u"?$2:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N6&&d4?d4(d4([][Symbol.iterator]())):$2,"%JSON%":typeof JSON=="object"?JSON:$2,"%Map%":typeof Map>"u"?$2:Map,"%MapIteratorPrototype%":typeof Map>"u"||!N6||!d4?$2:d4(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?$2:Promise,"%Proxy%":typeof Proxy>"u"?$2:Proxy,"%RangeError%":Oa1,"%ReferenceError%":Aa1,"%Reflect%":typeof Reflect>"u"?$2:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?$2:Set,"%SetIteratorPrototype%":typeof Set>"u"||!N6||!d4?$2:d4(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?$2:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N6&&d4?d4(""[Symbol.iterator]()):$2,"%Symbol%":N6?Symbol:$2,"%SyntaxError%":Zl,"%ThrowTypeError%":Ea1,"%TypedArray%":Na1,"%TypeError%":Al,"%Uint8Array%":typeof Uint8Array>"u"?$2:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?$2:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?$2:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?$2:Uint32Array,"%URIError%":ka1,"%WeakMap%":typeof WeakMap>"u"?$2:WeakMap,"%WeakRef%":typeof WeakRef>"u"?$2:WeakRef,"%WeakSet%":typeof WeakSet>"u"?$2:WeakSet};if(d4)try{null.error}catch(t){var Da1=d4(d4(t));L8["%Error.prototype%"]=Da1}var Ra1=function t(e){var n;if(e==="%AsyncFunction%")n=Rw("async function () {}");else if(e==="%GeneratorFunction%")n=Rw("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=Rw("async function* () {}");else if(e==="%AsyncGenerator%"){var a=t("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if(e==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");r&&d4&&(n=d4(r.prototype))}return L8[e]=n,n},uk={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},us=WB,Jf=_a1,ja1=us.call(Function.call,Array.prototype.concat),Ia1=us.call(Function.apply,Array.prototype.splice),vk=us.call(Function.call,String.prototype.replace),tg=us.call(Function.call,String.prototype.slice),Fa1=us.call(Function.call,RegExp.prototype.exec),$a1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ua1=/\\(\\)?/g,Wa1=function(e){var n=tg(e,0,1),a=tg(e,-1);if(n==="%"&&a!=="%")throw new Zl("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&n!=="%")throw new Zl("invalid intrinsic syntax, expected opening `%`");var r=[];return vk(e,$a1,function(o,l,c,s){r[r.length]=c?vk(s,Ua1,"$1"):l||o}),r},qa1=function(e,n){var a=e,r;if(Jf(uk,a)&&(r=uk[a],a="%"+r[0]+"%"),Jf(L8,a)){var o=L8[a];if(o===el&&(o=Ra1(a)),typeof o>"u"&&!n)throw new Al("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:a,value:o}}throw new Zl("intrinsic "+e+" does not exist!")},Sc=function(e,n){if(typeof e!="string"||e.length===0)throw new Al("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Al('"allowMissing" argument must be a boolean');if(Fa1(/^%?[^%]*%?$/,e)===null)throw new Zl("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Wa1(e),r=a.length>0?a[0]:"",o=qa1("%"+r+"%",n),l=o.name,c=o.value,s=!1,h=o.alias;h&&(r=h[0],Ia1(a,ja1([0,1],h)));for(var u=1,v=!0;u=a.length){var p=b8(c,d);v=!!p,v&&"get"in p&&!("originalValue"in p.get)?c=p.get:c=c[d]}else v=Jf(c,d),c=c[d];v&&!s&&(L8[l]=c)}}return c},Aq={exports:{}},Iw,dk;function qB(){if(dk)return Iw;dk=1;var t=Sc,e=t("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Iw=e,Iw}var Ga1=Sc,Xd=Ga1("%Object.getOwnPropertyDescriptor%",!0);if(Xd)try{Xd([],"length")}catch{Xd=null}var kq=Xd,fk=qB(),Ka1=Tq,D6=ss,gk=kq,Ya1=function(e,n,a){if(!e||typeof e!="object"&&typeof e!="function")throw new D6("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new D6("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new D6("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new D6("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new D6("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new D6("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,s=!!gk&&gk(e,n);if(fk)fk(e,n,{configurable:l===null&&s?s.configurable:!l,enumerable:r===null&&s?s.enumerable:!r,value:a,writable:o===null&&s?s.writable:!o});else if(c||!r&&!o&&!l)e[n]=a;else throw new Ka1("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},OC=qB(),Eq=function(){return!!OC};Eq.hasArrayLengthDefineBug=function(){if(!OC)return null;try{return OC([],"length",{value:1}).length!==1}catch{return!0}};var Za1=Eq,Qa1=Sc,pk=Ya1,Xa1=Za1(),mk=kq,zk=ss,Ja1=Qa1("%Math.floor%"),tr1=function(e,n){if(typeof e!="function")throw new zk("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||Ja1(n)!==n)throw new zk("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],r=!0,o=!0;if("length"in e&&mk){var l=mk(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(o=!1)}return(r||o||!a)&&(Xa1?pk(e,"length",n,!0,!0):pk(e,"length",n)),e};(function(t){var e=WB,n=Sc,a=tr1,r=ss,o=n("%Function.prototype.apply%"),l=n("%Function.prototype.call%"),c=n("%Reflect.apply%",!0)||e.call(l,o),s=qB(),h=n("%Math.max%");t.exports=function(d){if(typeof d!="function")throw new r("a function is required");var f=c(e,l,arguments);return a(f,1+h(0,d.length-(arguments.length-1)),!0)};var u=function(){return c(e,o,arguments)};s?s(t.exports,"apply",{value:u}):t.exports.apply=u})(Aq);var er1=Aq.exports,Pq=Sc,Nq=er1,nr1=Nq(Pq("String.prototype.indexOf")),ar1=function(e,n){var a=Pq(e,!!n);return typeof a=="function"&&nr1(e,".prototype.")>-1?Nq(a):a};const rr1={},ir1=Object.freeze(Object.defineProperty({__proto__:null,default:rr1},Symbol.toStringTag,{value:"Module"})),or1=le(ir1);var GB=typeof Map=="function"&&Map.prototype,Fw=Object.getOwnPropertyDescriptor&&GB?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,eg=GB&&Fw&&typeof Fw.get=="function"?Fw.get:null,Mk=GB&&Map.prototype.forEach,KB=typeof Set=="function"&&Set.prototype,$w=Object.getOwnPropertyDescriptor&&KB?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ng=KB&&$w&&typeof $w.get=="function"?$w.get:null,Hk=KB&&Set.prototype.forEach,lr1=typeof WeakMap=="function"&&WeakMap.prototype,N7=lr1?WeakMap.prototype.has:null,cr1=typeof WeakSet=="function"&&WeakSet.prototype,D7=cr1?WeakSet.prototype.has:null,hr1=typeof WeakRef=="function"&&WeakRef.prototype,wk=hr1?WeakRef.prototype.deref:null,sr1=Boolean.prototype.valueOf,ur1=Object.prototype.toString,vr1=Function.prototype.toString,dr1=String.prototype.match,YB=String.prototype.slice,S3=String.prototype.replace,fr1=String.prototype.toUpperCase,yk=String.prototype.toLowerCase,Dq=RegExp.prototype.test,xk=Array.prototype.concat,e5=Array.prototype.join,gr1=Array.prototype.slice,Vk=Math.floor,AC=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Uw=Object.getOwnPropertySymbols,kC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ql=typeof Symbol=="function"&&typeof Symbol.iterator=="object",q4=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ql||!0)?Symbol.toStringTag:null,Rq=Object.prototype.propertyIsEnumerable,Ck=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function bk(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Dq.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var a=t<0?-Vk(-t):Vk(t);if(a!==t){var r=String(a),o=YB.call(e,r.length+1);return S3.call(r,n,"$&_")+"."+S3.call(S3.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S3.call(e,n,"$&_")}var EC=or1,Lk=EC.custom,Bk=Iq(Lk)?Lk:null,pr1=function t(e,n,a,r){var o=n||{};if(z3(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z3(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=z3(o,"customInspect")?o.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z3(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z3(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return $q(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var s=String(e);return c?bk(e,s):s}if(typeof e=="bigint"){var h=String(e)+"n";return c?bk(e,h):h}var u=typeof o.depth>"u"?5:o.depth;if(typeof a>"u"&&(a=0),a>=u&&u>0&&typeof e=="object")return PC(e)?"[Array]":"[Object]";var v=kr1(o,a);if(typeof r>"u")r=[];else if(Fq(r,e)>=0)return"[Circular]";function d(P,F,q){if(F&&(r=gr1.call(r),r.push(F)),q){var $={depth:o.depth};return z3(o,"quoteStyle")&&($.quoteStyle=o.quoteStyle),t(P,$,a+1,r)}return t(P,o,a+1,r)}if(typeof e=="function"&&!_k(e)){var f=Cr1(e),M=Lv(e,d);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(M.length>0?" { "+e5.call(M,", ")+" }":"")}if(Iq(e)){var p=Ql?S3.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):kC.call(e);return typeof e=="object"&&!Ql?N9(p):p}if(Tr1(e)){for(var H="<"+yk.call(String(e.nodeName)),m=e.attributes||[],z=0;z",H}if(PC(e)){if(e.length===0)return"[]";var g=Lv(e,d);return v&&!Ar1(g)?"["+NC(g,v)+"]":"[ "+e5.call(g,", ")+" ]"}if(Mr1(e)){var w=Lv(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!Rq.call(e,"cause")?"{ ["+String(e)+"] "+e5.call(xk.call("[cause]: "+d(e.cause),w),", ")+" }":w.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+e5.call(w,", ")+" }"}if(typeof e=="object"&&l){if(Bk&&typeof e[Bk]=="function"&&EC)return EC(e,{depth:u-a});if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(br1(e)){var V=[];return Mk&&Mk.call(e,function(P,F){V.push(d(F,e,!0)+" => "+d(P,e))}),Sk("Map",eg.call(e),V,v)}if(_r1(e)){var y=[];return Hk&&Hk.call(e,function(P){y.push(d(P,e))}),Sk("Set",ng.call(e),y,v)}if(Lr1(e))return Ww("WeakMap");if(Sr1(e))return Ww("WeakSet");if(Br1(e))return Ww("WeakRef");if(wr1(e))return N9(d(Number(e)));if(xr1(e))return N9(d(AC.call(e)));if(yr1(e))return N9(sr1.call(e));if(Hr1(e))return N9(d(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===C)return"{ [object globalThis] }";if(!zr1(e)&&!_k(e)){var x=Lv(e,d),b=Ck?Ck(e)===Object.prototype:e instanceof Object||e.constructor===Object,L=e instanceof Object?"":"null prototype",B=!b&&q4&&Object(e)===e&&q4 in e?YB.call(mo(e),8,-1):L?"Object":"",S=b||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",T=S+(B||L?"["+e5.call(xk.call([],B||[],L||[]),": ")+"] ":"");return x.length===0?T+"{}":v?T+"{"+NC(x,v)+"}":T+"{ "+e5.call(x,", ")+" }"}return String(e)};function jq(t,e,n){var a=(n.quoteStyle||e)==="double"?'"':"'";return a+t+a}function mr1(t){return S3.call(String(t),/"/g,""")}function PC(t){return mo(t)==="[object Array]"&&(!q4||!(typeof t=="object"&&q4 in t))}function zr1(t){return mo(t)==="[object Date]"&&(!q4||!(typeof t=="object"&&q4 in t))}function _k(t){return mo(t)==="[object RegExp]"&&(!q4||!(typeof t=="object"&&q4 in t))}function Mr1(t){return mo(t)==="[object Error]"&&(!q4||!(typeof t=="object"&&q4 in t))}function Hr1(t){return mo(t)==="[object String]"&&(!q4||!(typeof t=="object"&&q4 in t))}function wr1(t){return mo(t)==="[object Number]"&&(!q4||!(typeof t=="object"&&q4 in t))}function yr1(t){return mo(t)==="[object Boolean]"&&(!q4||!(typeof t=="object"&&q4 in t))}function Iq(t){if(Ql)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!kC)return!1;try{return kC.call(t),!0}catch{}return!1}function xr1(t){if(!t||typeof t!="object"||!AC)return!1;try{return AC.call(t),!0}catch{}return!1}var Vr1=Object.prototype.hasOwnProperty||function(t){return t in this};function z3(t,e){return Vr1.call(t,e)}function mo(t){return ur1.call(t)}function Cr1(t){if(t.name)return t.name;var e=dr1.call(vr1.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Fq(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,a=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,a="... "+n+" more character"+(n>1?"s":"");return $q(YB.call(t,0,e.maxStringLength),e)+a}var r=S3.call(S3.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Or1);return jq(r,"single",e)}function Or1(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+fr1.call(e.toString(16))}function N9(t){return"Object("+t+")"}function Ww(t){return t+" { ? }"}function Sk(t,e,n,a){var r=a?NC(n,a):e5.call(n,", ");return t+" ("+e+") {"+r+"}"}function Ar1(t){for(var e=0;e=0)return!1;return!0}function kr1(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=e5.call(Array(t.indent+1)," ");else return null;return{base:n,prev:e5.call(Array(e+1),n)}}function NC(t,e){if(t.length===0)return"";var n=` -`+e.prev+e.base;return n+e5.call(t,","+n)+` -`+e.prev}function Lv(t,e){var n=PC(t),a=[];if(n){a.length=t.length;for(var r=0;r1;){var n=e.pop(),a=n.obj[n.prop];if(u8(a)){for(var r=[],o=0;o=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===Yr1.RFC1738&&(h===40||h===41)){c+=l.charAt(s);continue}if(h<128){c=c+Zr[h];continue}if(h<2048){c=c+(Zr[192|h>>6]+Zr[128|h&63]);continue}if(h<55296||h>=57344){c=c+(Zr[224|h>>12]+Zr[128|h>>6&63]+Zr[128|h&63]);continue}s+=1,h=65536+((h&1023)<<10|l.charCodeAt(s)&1023),c+=Zr[240|h>>18]+Zr[128|h>>12&63]+Zr[128|h>>6&63]+Zr[128|h&63]}return c},e51=function(e){for(var n=[{obj:{o:e},prop:"o"}],a=[],r=0;r"u"&&(g=0)}if(typeof s=="function"?m=s(n,m):m instanceof Date?m=v(m):a==="comma"&&oi(m)&&(m=Jd.maybeMap(m,function($){return $ instanceof Date?v($):$})),m===null){if(o)return c&&!M?c(n,N4.encoder,p,"key",d):n;m=""}if(h51(m)||Jd.isBuffer(m)){if(c){var y=M?n:c(n,N4.encoder,p,"key",d);return[f(y)+"="+f(c(m,N4.encoder,p,"value",d))]}return[f(n)+"="+f(String(m))]}var x=[];if(typeof m>"u")return x;var b;if(a==="comma"&&oi(m))M&&c&&(m=Jd.maybeMap(m,c)),b=[{value:m.length>0?m.join(",")||null:void 0}];else if(oi(s))b=s;else{var L=Object.keys(m);b=h?L.sort(h):L}for(var B=r&&oi(m)&&m.length===1?n+"[]":n,S=0;S"u"?N4.allowDots:!!e.allowDots,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:N4.charsetSentinel,delimiter:typeof e.delimiter>"u"?N4.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:N4.encode,encoder:typeof e.encoder=="function"?e.encoder:N4.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:N4.encodeValuesOnly,filter:o,format:a,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:N4.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:N4.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:N4.strictNullHandling}},v51=function(t,e){var n=t,a=u51(e),r,o;typeof a.filter=="function"?(o=a.filter,n=o("",n)):oi(a.filter)&&(o=a.filter,r=o);var l=[];if(typeof n!="object"||n===null)return"";var c;e&&e.arrayFormat in Tk?c=e.arrayFormat:e&&"indices"in e?c=e.indices?"indices":"repeat":c="indices";var s=Tk[c];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=s==="comma"&&e&&e.commaRoundTrip;r||(r=Object.keys(n)),a.sort&&r.sort(a.sort);for(var u=Gq(),v=0;v0?M+f:""},Xl=qq,DC=Object.prototype.hasOwnProperty,d51=Array.isArray,u4={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Xl.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},f51=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},Yq=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},g51="utf8=%26%2310003%3B",p51="utf8=%E2%9C%93",m51=function(e,n){var a={__proto__:null},r=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=n.parameterLimit===1/0?void 0:n.parameterLimit,l=r.split(n.delimiter,o),c=-1,s,h=n.charset;if(n.charsetSentinel)for(s=0;s-1&&(M=d51(M)?[M]:M),DC.call(a,f)?a[f]=Xl.combine(a[f],M):a[f]=M}return a},z51=function(t,e,n,a){for(var r=a?e:Yq(e,n),o=t.length-1;o>=0;--o){var l,c=t[o];if(c==="[]"&&n.parseArrays)l=[].concat(r);else{l=n.plainObjects?Object.create(null):{};var s=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,h=parseInt(s,10);!n.parseArrays&&s===""?l={0:r}:!isNaN(h)&&c!==s&&String(h)===s&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(l=[],l[h]=r):s!=="__proto__"&&(l[s]=r)}r=l}return r},M51=function(e,n,a,r){if(e){var o=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,s=a.depth>0&&l.exec(o),h=s?o.slice(0,s.index):o,u=[];if(h){if(!a.plainObjects&&DC.call(Object.prototype,h)&&!a.allowPrototypes)return;u.push(h)}for(var v=0;a.depth>0&&(s=c.exec(o))!==null&&v"u"?u4.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?u4.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:u4.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:u4.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:u4.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:u4.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:u4.comma,decoder:typeof e.decoder=="function"?e.decoder:u4.decoder,delimiter:typeof e.delimiter=="string"||Xl.isRegExp(e.delimiter)?e.delimiter:u4.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:u4.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:u4.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:u4.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:u4.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:u4.strictNullHandling}},w51=function(t,e){var n=H51(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var a=typeof t=="string"?m51(t,n):t,r=n.plainObjects?Object.create(null):{},o=Object.keys(a),l=0;l-1};function Oc(t){if(typeof t!="string"&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||t==="")throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function XB(t){return typeof t!="string"&&(t=String(t)),t}function JB(t){var e={next:function(){var n=t.shift();return{done:n===void 0,value:n}}};return cn.iterable&&(e[Symbol.iterator]=function(){return e}),e}function o4(t){this.map={},t instanceof o4?t.forEach(function(e,n){this.append(n,e)},this):Array.isArray(t)?t.forEach(function(e){if(e.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}o4.prototype.append=function(t,e){t=Oc(t),e=XB(e);var n=this.map[t];this.map[t]=n?n+", "+e:e};o4.prototype.delete=function(t){delete this.map[Oc(t)]};o4.prototype.get=function(t){return t=Oc(t),this.has(t)?this.map[t]:null};o4.prototype.has=function(t){return this.map.hasOwnProperty(Oc(t))};o4.prototype.set=function(t,e){this.map[Oc(t)]=XB(e)};o4.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)};o4.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),JB(t)};o4.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),JB(t)};o4.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),JB(t)};cn.iterable&&(o4.prototype[Symbol.iterator]=o4.prototype.entries);function Yw(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}}function Qq(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function B51(t){var e=new FileReader,n=Qq(e);return e.readAsArrayBuffer(t),n}function _51(t){var e=new FileReader,n=Qq(e),a=/charset=([A-Za-z0-9_-]+)/.exec(t.type),r=a?a[1]:"utf-8";return e.readAsText(t,r),n}function S51(t){for(var e=new Uint8Array(t),n=new Array(e.length),a=0;a-1?e:t}function R8(t,e){if(!(this instanceof R8))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var n=e.body;if(t instanceof R8){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new o4(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!n&&t._bodyInit!=null&&(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new o4(e.headers)),this.method=O51(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in b4){var o=new AbortController;return o.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+new Date().getTime());else{var r=/\?/;this.url+=(r.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}R8.prototype.clone=function(){return new R8(this,{body:this._bodyInit})};function A51(t){var e=new FormData;return t.trim().split("&").forEach(function(n){if(n){var a=n.split("="),r=a.shift().replace(/\+/g," "),o=a.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function k51(t){var e=new o4,n=t.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(a){return a.indexOf(` -`)===0?a.substr(1,a.length):a}).forEach(function(a){var r=a.split(":"),o=r.shift().trim();if(o){var l=r.join(":").trim();try{e.append(o,l)}catch(c){console.warn("Response "+c.message)}}}),e}Xq.call(R8.prototype);function x5(t,e){if(!(this instanceof x5))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=e.status===void 0?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText===void 0?"":""+e.statusText,this.headers=new o4(e.headers),this.url=e.url||"",this._initBody(t)}Xq.call(x5.prototype);x5.prototype.clone=function(){return new x5(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o4(this.headers),url:this.url})};x5.error=function(){var t=new x5(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var E51=[301,302,303,307,308];x5.redirect=function(t,e){if(E51.indexOf(e)===-1)throw new RangeError("Invalid status code");return new x5(null,{status:e,headers:{location:t}})};var v8=b4.DOMException;try{new v8}catch{v8=function(e,n){this.message=e,this.name=n;var a=Error(e);this.stack=a.stack},v8.prototype=Object.create(Error.prototype),v8.prototype.constructor=v8}function Jq(t,e){return new Promise(function(n,a){var r=new R8(t,e);if(r.signal&&r.signal.aborted)return a(new v8("Aborted","AbortError"));var o=new XMLHttpRequest;function l(){o.abort()}o.onload=function(){var h={statusText:o.statusText,headers:k51(o.getAllResponseHeaders()||"")};r.url.indexOf("file://")===0&&(o.status<200||o.status>599)?h.status=200:h.status=o.status,h.url="responseURL"in o?o.responseURL:h.headers.get("X-Request-URL");var u="response"in o?o.response:o.responseText;setTimeout(function(){n(new x5(u,h))},0)},o.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){a(new v8("Aborted","AbortError"))},0)};function c(h){try{return h===""&&b4.location.href?b4.location.href:h}catch{return h}}if(o.open(r.method,c(r.url),!0),r.credentials==="include"?o.withCredentials=!0:r.credentials==="omit"&&(o.withCredentials=!1),"responseType"in o&&(cn.blob?o.responseType="blob":cn.arrayBuffer&&(o.responseType="arraybuffer")),e&&typeof e.headers=="object"&&!(e.headers instanceof o4||b4.Headers&&e.headers instanceof b4.Headers)){var s=[];Object.getOwnPropertyNames(e.headers).forEach(function(h){s.push(Oc(h)),o.setRequestHeader(h,XB(e.headers[h]))}),r.headers.forEach(function(h,u){s.indexOf(u)===-1&&o.setRequestHeader(u,h)})}else r.headers.forEach(function(h,u){o.setRequestHeader(u,h)});r.signal&&(r.signal.addEventListener("abort",l),o.onreadystatechange=function(){o.readyState===4&&r.signal.removeEventListener("abort",l)}),o.send(typeof r._bodyInit>"u"?null:r._bodyInit)})}Jq.polyfill=!0;b4.fetch||(b4.fetch=Jq,b4.Headers=o4,b4.Request=R8,b4.Response=x5);self.fetch.bind(self);var tG={};function kk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function On(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(t,e,n){return nG()?tf=Reflect.construct:tf=function(r,o,l){var c=[null];c.push.apply(c,o);var s=Function.bind.apply(r,c),h=new s;return l&&Th(h,l.prototype),h},tf.apply(null,arguments)}function N51(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function ag(t){var e=typeof Map=="function"?new Map:void 0;return ag=function(a){if(a===null||!N51(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(a))return e.get(a);e.set(a,r)}function r(){return tf(a,arguments,Sh(this).constructor)}return r.prototype=Object.create(a.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Th(r,a)},ag(t)}function D51(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function R51(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D51(t)}function aG(t){var e=nG();return function(){var a=Sh(t),r;if(e){var o=Sh(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return R51(this,r)}}function i5(t){return j51(t)||I51(t)||F51(t)||$51()}function j51(t){if(Array.isArray(t))return RC(t)}function I51(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function F51(t,e){if(t){if(typeof t=="string")return RC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RC(t,e)}}function RC(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},r=!1,o=!1,l=!1;if(typeof a=="number"?(process,r=!0,o=!1):$3(a)==="object"&&a&&(o=a.global||!1,r=a.core||!1,l=a.defaultInstance||!1),o){t.globalMiddlewares.splice(t.globalMiddlewares.length-t.defaultGlobalMiddlewaresLength,0,n);return}if(r){t.coreMiddlewares.splice(t.coreMiddlewares.length-t.defaultCoreMiddlewaresLength,0,n);return}if(l){this.defaultMiddlewares.push(n);return}this.middlewares.push(n)}},{key:"execute",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,a=U51([].concat(i5(this.middlewares),i5(this.defaultMiddlewares),i5(t.globalMiddlewares),i5(t.coreMiddlewares)));return a(n)}}]),t}();ja.globalMiddlewares=[];ja.defaultGlobalMiddlewaresLength=0;ja.coreMiddlewares=[];ja.defaultCoreMiddlewaresLength=0;var W51=function(){function t(e){vs(this,t),this.cache=new Map,this.timer={},this.extendOptions(e)}return t_(t,[{key:"extendOptions",value:function(n){this.maxCache=n.maxCache||0}},{key:"get",value:function(n){return this.cache.get(JSON.stringify(n))}},{key:"set",value:function(n,a){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var l=i5(this.cache.keys())[0];this.cache.delete(l),this.timer[l]&&clearTimeout(this.timer[l])}var c=JSON.stringify(n);this.cache.set(c,a),o>0&&(this.timer[c]=setTimeout(function(){r.cache.delete(c),delete r.timer[c]},o))}},{key:"delete",value:function(n){var a=JSON.stringify(n);return delete this.timer[a],this.cache.delete(a)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),t}(),e_=function(t){eG(n,t);var e=aG(n);function n(a,r){var o,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return vs(this,n),o=e.call(this,a),o.name="RequestError",o.request=r,o.type=l,o}return n}(ag(Error)),Ml=function(t){eG(n,t);var e=aG(n);function n(a,r,o,l){var c,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return vs(this,n),c=e.call(this,r||a.statusText),c.name="ResponseError",c.data=o,c.response=a,c.request=l,c.type=s,c}return n}(ag(Error));function q51(t){return new Promise(function(e,n){var a=new FileReader;a.onload=function(){e(a.result)},a.onerror=n,a.readAsText(t,"GBK")})}function Pk(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(t)}catch{if(e)throw new Ml(n,"JSON.parse fail",t,a,"ParseError")}return t}function G51(t,e,n){return new Promise(function(a,r){setTimeout(function(){r(new e_(e||"timeout of ".concat(t,"ms exceeded"),n,"Timeout"))},t)})}function Nk(t){return new Promise(function(e,n){t.cancelToken&&t.cancelToken.promise.then(function(a){n(a)})})}var K51=Object.prototype.toString;function rG(){var t;return typeof process<"u"&&K51.call(process)==="[object process]"&&(t="NODE"),typeof XMLHttpRequest<"u"&&(t="BROWSER"),t}function jC(t){return $3(t)==="object"&&Object.prototype.toString.call(t)==="[object Array]"}function iG(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function Y51(t){return $3(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Dk(t){return t!==null&&$3(t)==="object"}function Rk(t,e){if(t)if($3(t)!=="object"&&(t=[t]),jC(t))for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},a=n.prefix,r=n.suffix;return a&&(e="".concat(a).concat(e)),r&&(e="".concat(e).concat(r)),{url:e,options:n}};function Q51(t,e){var n=e.method,a=n===void 0?"get":n;return a.toLowerCase()==="get"}function X51(t,e){if(!t)return e();var n=t.req;n=n===void 0?{}:n;var a=n.options,r=a===void 0?{}:a,o=n.url,l=o===void 0?"":o,c=t.cache,s=t.responseInterceptors,h=r.timeout,u=h===void 0?0:h,v=r.timeoutMessage,d=r.__umiRequestCoreType__,f=d===void 0?"normal":d,M=r.useCache,p=M===void 0?!1:M,H=r.method,m=H===void 0?"get":H,z=r.params,g=r.ttl,w=r.validateCache,V=w===void 0?Q51:w;if(f!=="normal")return process,e();var y=fetch;if(!y)throw new Error("Global fetch not exist!");var x=rG()==="BROWSER",b=V(l,r)&&p&&x;if(b){var L=c.get({url:l,params:z,method:m});if(L)return L=L.clone(),L.useCache=!0,t.res=L,e()}var B;return u>0?B=Promise.race([Nk(r),y(l,r),G51(u,v,t.req)]):B=Promise.race([Nk(r),y(l,r)]),s.forEach(function(S){B=B.then(function(T){var P=typeof T.clone=="function"?T.clone():T;return S(P,r)})}),B.then(function(S){if(b&&S.status===200){var T=S.clone();T.useCache=!0,c.set({url:l,params:z,method:m},T,g)}return t.res=S,e()})}function J51(t,e){var n;return e().then(function(){if(t){var a=t.res,r=a===void 0?{}:a,o=t.req,l=o===void 0?{}:o,c=l||{},s=c.options;s=s===void 0?{}:s;var h=s.responseType,u=h===void 0?"json":h,v=s.charset,d=v===void 0?"utf8":v;s.getResponse;var f=s.throwErrIfParseFail,M=f===void 0?!1:f,p=s.parseResponse,H=p===void 0?!0:p;if(H&&!(!r||!r.clone)){if(n=rG()==="BROWSER"?r.clone():r,n.useCache=r.useCache||!1,d==="gbk")try{return r.blob().then(q51).then(function(m){return Pk(m,!1,n,l)})}catch(m){throw new Ml(n,m.message,null,l,"ParseError")}else if(u==="json")return r.text().then(function(m){return Pk(m,M,n,l)});try{return r[u]()}catch{throw new Ml(n,"responseType not support",null,l,"ParseError")}}}}).then(function(a){if(t){t.res;var r=t.req,o=r===void 0?{}:r,l=o||{},c=l.options;c=c===void 0?{}:c;var s=c.getResponse,h=s===void 0?!1:s;if(n){if(n.status>=200&&n.status<300){if(h){t.res={data:a,response:n};return}t.res=a;return}throw new Ml(n,"http error",a,o,"HttpError")}}}).catch(function(a){if(a instanceof e_||a instanceof Ml)throw a;var r=t.req,o=t.res;throw a.request=a.request||r,a.response=a.response||o,a.type=a.type||a.name,a.data=a.data||void 0,a})}function ti1(t,e){if(!t)return e();var n=t.req;n=n===void 0?{}:n;var a=n.options,r=a===void 0?{}:a,o=r.method,l=o===void 0?"get":o;if(["post","put","patch","delete"].indexOf(l.toLowerCase())===-1)return e();var c=r.requestType,s=c===void 0?"json":c,h=r.data;if(h){var u=Object.prototype.toString.call(h);u==="[object Object]"||u==="[object Array]"?s==="json"?(r.headers=On({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},r.headers),r.body=JSON.stringify(h)):s==="form"&&(r.headers=On({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},r.headers),r.body=IC(h)):(r.headers=On({Accept:"application/json"},r.headers),r.body=h)}return t.req.options=r,e()}function ei1(t,e){var n,a;if(t)if(e)n=e(t);else if(iG(t))n=t.toString();else if(jC(t))a=[],Rk(t,function(o){o===null||typeof o>"u"?a.push(o):a.push(Dk(o)?JSON.stringify(o):o)}),n=IC(a);else{a={},Rk(t,function(o,l){var c=o;o===null||typeof o>"u"?a[l]=o:Y51(o)?c=o.toISOString():jC(o)?c=o:Dk(o)&&(c=JSON.stringify(o)),a[l]=c});var r=IC(a);n=r}return n}function ni1(t,e){if(!t)return e();var n=t.req;n=n===void 0?{}:n;var a=n.options,r=a===void 0?{}:a,o=r.paramsSerializer,l=r.params,c=t.req;c=c===void 0?{}:c;var s=c.url,h=s===void 0?"":s;r.method=r.method?r.method.toUpperCase():"GET",r.credentials=r.credentials||"same-origin";var u=ei1(l,o);if(t.req.originUrl=h,u){var v=h.indexOf("?")!==-1?"&":"?";t.req.url="".concat(h).concat(v).concat(u)}return t.req.options=r,e()}var lG=[ti1,ni1,J51],cG=[X51];ja.globalMiddlewares=lG;ja.defaultGlobalMiddlewaresLength=lG.length;ja.coreMiddlewares=cG;ja.defaultCoreMiddlewaresLength=cG.length;var j7=function(){function t(e){vs(this,t),this.onion=new ja([]),this.fetchIndex=0,this.mapCache=new W51(e),this.initOptions=e,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return t_(t,[{key:"use",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(n,a),this}},{key:"extendOptions",value:function(n){this.initOptions=oG(this.initOptions,n),this.mapCache.extendOptions(n)}},{key:"dealRequestInterceptors",value:function(n){var a=function(l,c){return l.then(function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n.req.url=s.url||n.req.url,n.req.options=s.options||n.req.options,c(n.req.url,n.req.options)})},r=[].concat(i5(t.requestInterceptors),i5(this.instanceRequestInterceptors));return r.reduce(a,Promise.resolve()).then(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n.req.url=o.url||n.req.url,n.req.options=o.options||n.req.options,Promise.resolve()})}},{key:"request",value:function(n,a){var r=this,o=this.onion,l={req:{url:n,options:On(On({},a),{},{url:n})},res:null,cache:this.mapCache,responseInterceptors:[].concat(i5(t.responseInterceptors),i5(this.instanceResponseInterceptors))};if(typeof n!="string")throw new Error("url MUST be a string");return new Promise(function(c,s){r.dealRequestInterceptors(l).then(function(){return o.execute(l)}).then(function(){c(l.res)}).catch(function(h){var u=l.req.options.errorHandler;if(u)try{var v=u(h);c(v)}catch(d){s(d)}else s(h)})})}}],[{key:"requestUse",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof n!="function")throw new TypeError("Interceptor must be function!");a.global?t.requestInterceptors.push(n):this.instanceRequestInterceptors.push(n)}},{key:"responseUse",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof n!="function")throw new TypeError("Interceptor must be function!");a.global?t.responseInterceptors.push(n):this.instanceResponseInterceptors.push(n)}}]),t}();j7.requestInterceptors=[Z51];j7.responseInterceptors=[];function Np(t){this.message=t}Np.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"};Np.prototype.__CANCEL__=!0;function rg(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(r){e=r});var n=this;t(function(r){n.reason||(n.reason=new Np(r),e(n.reason))})}rg.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};rg.source=function(){var e,n=new rg(function(r){e=r});return{token:n,cancel:e}};function ai1(t){return!!(t&&t.__CANCEL__)}var n_=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=new j7(e),a=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=oG(n.initOptions,c);return n.request(l,s)};a.use=n.use.bind(n),a.fetchIndex=n.fetchIndex,a.interceptors={request:{use:j7.requestUse.bind(n)},response:{use:j7.responseUse.bind(n)}};var r=["get","post","delete","put","patch","head","options","rpc"];return r.forEach(function(o){a[o]=function(l,c){return a(l,On(On({},c),{},{method:o}))}}),a.Cancel=Np,a.CancelToken=rg,a.isCancel=ai1,a.extendOptions=n.extendOptions.bind(n),a.middlewares={instance:n.onion.middlewares,defaultInstance:n.onion.defaultMiddlewares,global:ja.globalMiddlewares,core:ja.coreMiddlewares},a},ri1=function(e){return n_(e)},ii1=n_({parseResponse:!1}),oi1=n_({});const li1=Object.freeze(Object.defineProperty({__proto__:null,Onion:ja,RequestError:e_,ResponseError:Ml,default:oi1,extend:ri1,fetch:ii1},Symbol.toStringTag,{value:"Module"})),t0=le(li1);var Ee={};Object.defineProperty(Ee,"__esModule",{value:!0});Ee.currentTimezone=void 0;var ci1=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone};Ee.currentTimezone=ci1;var FC=C&&C.__assign||function(){return FC=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]60*60)return;var J=setTimeout(function(){return P()},i1);return function(){clearTimeout(J)}}},[$]);var n1=(0,a.useCallback)(function(){w(null),x(r.defaultConfig.user)},[]),R=(0,a.useCallback)(function(i1){return s.register.bind(null,p)(i1)},[]);return(0,n.jsx)(t.UserContext.Provider,e({value:{tokenExpireDate:$,token:g,user:y,socialAuthorize:q,changePassword:F,login:L,logout:b,forgot:s.forgot.bind(null,p),reset:s.reset.bind(null,p),fetchProfile:B,updateProfile:S,updateAvatar:T,getRefreshedToken:P,emailVerify:s.emailVerify.bind(null,p),register:R,initAccountDelete:Q,confirmAccountDelete:I}},{children:f}))};t.UserContextProvider=u}(Zw)),Zw}var Fk;function ki1(){return Fk||(Fk=1,function(t){var e=C&&C.__assign||function(){return e=Object.assign||function(v){for(var d,f=1,M=arguments.length;f0&&b[b.length-1])&&(T[0]===6||T[0]===2)){V=0;continue}if(T[0]===3&&(!b||T[1]>b[0]&&T[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&f[f.length-1])&&(m[0]===6||m[0]===2)){u=0;continue}if(m[0]===3&&(!f||m[1]>f[0]&&m[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0;if(b.attempted===A6&&Zi&&Zi[0].id.includes(b.guessTheAnswer)){var D5=(0,t.getCalcCourseProgress)(Number(A1),or,_6);Fo(Number(A1),(D5==null?void 0:D5.map(function(b9){return b9.topic_id===E1?e(e({},b9),{status:x.CourseProgressItemElementStatus.COMPLETE}):b9}))||[{topic_id:E1,status:x.CourseProgressItemElementStatus.COMPLETE}])}if(b.blackList.includes(A6))return null;if(b.completed.includes(A6)&&(!rw&&Zi&&!(!((fa=Zi[0])===null||fa===void 0)&&fa.id.includes(b.questionSet))||Zi&&(!((ga=Zi[0])===null||ga===void 0)&&ga.id.includes(b.questionSet))&&N5&&((V9=N5==null?void 0:N5.score)===null||V9===void 0?void 0:V9.max)===((C9=N5==null?void 0:N5.score)===null||C9===void 0?void 0:C9.raw))){var D5=(0,t.getCalcCourseProgress)(Number(A1),or,_6);Fo(Number(A1),(D5==null?void 0:D5.map(function(L9){return L9.topic_id===E1?e(e({},L9),{status:x.CourseProgressItemElementStatus.COMPLETE}):L9}))||[{topic_id:E1,status:x.CourseProgressItemElementStatus.COMPLETE}])}return V1?d.h5pProgress.bind(null,X)(E1,A6,ot,V1):null},[V1,or,_6]),y9=(0,s.useCallback)(function(A1){return V1?d.topicPing.bind(null,X)(A1,V1).catch(function(E1){return E1}):Promise.reject("noToken")},[V1]),Kr=(0,s.useMemo)(function(){var A1={coursesProcProgress:{},finishedTopics:[]};return or.value&&or.value.reduce(function(E1,ot){return E1.coursesProcProgress[typeof ot.course.id=="number"?ot.course.id:0]=ot.progress.reduce(function(Kt,V2){return Kt+V2.status},0)/ot.progress.length,E1.finishedTopics=E1.finishedTopics.concat(ot.progress.filter(function(Kt){return Kt.status===x.CourseProgressItemElementStatus.COMPLETE}).map(function(Kt){return Kt.topic_id})),E1},A1),A1},[or]),lv=(0,s.useCallback)(function(A1){return!!(Kr&&Kr.finishedTopics.includes(A1))},[Kr]),ew=(0,s.useCallback)(function(A1){return Kr&&Kr.coursesProcProgress[A1]?Kr.coursesProcProgress[A1]:0},[Kr]),nw=(0,s.useCallback)(function(A1,E1){if(E1===void 0&&(E1=!0),L6.value===void 0)return null;var ot=(0,at.getFlatTopics)(L6.value.lessons),Kt=ot==null?void 0:ot.findIndex(function(V2){return V2.id===A1});if(Kt===void 0||Kt===-1)return null;if(E1){if(Array.isArray(ot)&&ot[Kt+1])return ot[Kt+1]||null}else if(Array.isArray(ot)&&ot[Kt-1])return ot[Kt-1]||null;return null},[L6]),aw=(0,s.useCallback)(function(A1){return V1?w.addVoucher.bind(null,X)(A1,V1).finally(function(){return e0()}):Promise.reject("noToken")},[V1]),qn=(0,s.useCallback)(function(){return V1?w.removeVoucher.bind(null,X)(V1).finally(function(){return e0()}):Promise.reject("noToken")},[V1]);return(0,c.jsx)(t.EscolaLMSContext.Provider,e({value:{confirmAccountDelete:c0,initAccountDelete:l0,token:V1,apiUrl:X,courses:K2,course:Lu,program:L6,fetchCourses:z2,fetchCourse:FH,fetchProgram:KH,fetchSettings:T6,settings:vH,config:fH,fetchConfig:Zu,fetchTags:T4,uniqueTags:se,fetchCategories:S0,categoryTree:x2,login:vt,logout:UH,forgot:yt,reset:Qt,user:Ct,register:H2,fetchCart:e0,addToCart:Ye,removeFromCart:Ht,resetCart:Tt,cart:q2,payWithStripe:WH,fetchProgress:YH,fetchPaginatedProgress:ZH,paginatedProgress:g9,fetchCourseProgress:XH,progress:or,courseProgressDetails:_6,sendProgress:Fo,fetchTutors:Z4,tutors:Be,fetchTutor:JH,tutor:wH,fetchOrders:H9,orders:mH,fetchPayments:tw,payments:zH,pages:Me,fetchPages:C0,page:Pe,fetchPage:O4,fetchProfile:Rt,updateProfile:xt,updateAvatar:At,topicPing:y9,topicIsFinished:lv,courseProgress:ew,getNextPrevTopic:nw,h5pProgress:w9,userGroups:sH,fetchUserGroups:IH,userGroup:hH,fetchUserGroup:ov,registerableGroups:v9,fetchRegisterableGroups:jH,socialAuthorize:Z1,notifications:IM,fetchNotifications:FM,readNotify:uu,readAllNotifications:$M,certificates:Nu,fetchCertificates:kH,fetchCertificate:PH,generateCertificate:M9,mattermostChannels:HH,fetchMattermostChannels:Gi,h5p:Un,fetchH5P:J4,emailVerify:Xt,getRefreshedToken:Vt,tokenExpireDate:f2,fetchConsultations:s2,consultations:p2,consultation:iH,fetchConsultation:iv,fields:xH,fetchFields:Xu,stationaryEvents:CH,fetchStationaryEvents:O6,fetchStationaryEvent:Ju,fetchUserConsultations:rv,userConsultations:Ro,bookConsultationTerm:DH,fetchWebinars:Q4,fetchWebinar:X4,webinars:h0,payWithP24:qH,getProductInfo:Ki,fetchTutorConsultations:ev,approveConsultationTerm:z9,generateConsultationJitsy:nv,rejectConsultationTerm:AH,tutorConsultations:lH,fetchEvents:RH,events:cH,changePassword:bt,stationaryEvent:bH,webinar:va,userWebinars:BH,fetchUserWebinars:tv,generateWebinarJitsy:av,realizeVoucher:aw,removeVoucher:qn,products:_H,product:SH,fetchQuestionnaires:UM,fetchQuestionnaire:WM,fetchQuestionnairesAnswers:qM,fetchQuestionnaireStars:GM,sendQuestionnaireAnswer:KM,fetchUserStationaryEvents:OH,userStationaryEvents:LH,fetchOrderInvoice:GH,addMissingProducts:zt,getImagePrefix:$1,getImageSvgPrefix:Y1,changeConsultationTerm:NH,fetchProducts:en,fetchProduct:Qu,courseAccess:L0,fetchCourseAccess:Gr,addCourseAccess:Eo,deleteCourseAccess:Po,myCourses:Wn,fetchMyCourses:AM,fetchMyAuthoredCourses:QH,myAuthoredCourses:pH,challenges:i9,fetchChallenges:kM,challenge:o9,fetchChallenge:cu,consultationAccessEnquiry:PM,fetchConsultationAccessEnquiry:EM,consultationAccess:su,fetchConsultationAccess:NM,addConsultationAccess:DM,deleteConsultationAccess:RM,updateConsultationAccess:jM,tasks:tn,fetchTasks:A4,addTask:_e,deleteTask:Ii,task:ir,fetchTask:Ur,updateTask:Wr,updateTaskStatus:A5,createTaskNote:k5,updateTaskNote:Fi,deleteTaskNote:$i,bookmarkNotes:ko,createBookmarkNote:qr,updateBookmarkNote:Dt,deleteBookmarkNote:c2,fetchBookmarkNotes:O0,fetchSubjects:YM,subjects:ZM,fetchSchedule:QM,schedule:XM,fetchScheduleTutors:JM,scheduleTutors:fu,fetchAttendances:tH,attendances:eH,fetchExams:nH,exams:aH,createTeamsChat:EH,fetchSemesters:C6,semesters:c9,fetchAcademicYears:mu,academicYears:rH}},{children:L1}))},_1=function(H1){var L1=H1.children,X=o(H1,["children"]),f1={defaults:X.defaults,apiUrl:X.apiUrl,ssrHydration:X.ssrHydration},t1=[i1.UserContextProvider,S.CoursesContextProvider,T.CategoriesContextProvider,P.TagsContextProvider,F.TutorsContextProvider,q.WebinarsContextProvider,$.WebinarContextProvider,Q.H5pContextProvider,R.ConsultationsContextProvider,I.PagesContextProvider,n1.PageContextProvider,u1.ConsultationAccessContextProvider,h.ConsultationAccessEnquiryContextProvider,e1.NotificationsContextProvider,c1.CourseAccessContextProvider,J.TasksContextProvider,A.TaskContextProvider,C1.BookmarkNotesContextProvider,h1.CartContextProvider,m1.QuestionnairesContextProvider,w1.SubjectsContextProvider,S1.ScheduleContextProvider,R1.ScheduleTutorsContextProvider,q1.AttendancesContextProvider,D1.ExamsContextProvider,rt.StudentDetailsContextProvider,Q1.ChallengesContextProvider].reverse(),W=t1.reduce(function(r1,E,U){return s.default.createElement(E,f1,r1)},s.default.createElement(F1,X,L1));return W};t.EscolaLMSContextProvider=_1}(Pw)),Pw}var xs=w0();const Q81="modulepreload",X81=function(t){return"/"+t},pE={},a0=function(e,n,a){let r=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");r=Promise.all(n.map(l=>{if(l=X81(l),l in pE)return;pE[l]=!0;const c=l.endsWith(".css"),s=c?'[rel="stylesheet"]':"";if(!!a)for(let v=o.length-1;v>=0;v--){const d=o[v];if(d.href===l&&(!c||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${s}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":Q81,c||(u.as="script",u.crossOrigin=""),u.href=l,document.head.appendChild(u),c)return new Promise((v,d)=>{u.addEventListener("load",v),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>e()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})};function vg(t,e){return vg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,r){return a.__proto__=r,a},vg(t,e)}function pn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,vg(t,e)}var BG={exports:{}},J81="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",t61=J81,e61=t61;function _G(){}function SG(){}SG.resetWarningCache=_G;var n61=function(){function t(a,r,o,l,c,s){if(s!==e61){var h=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 h.name="Invariant Violation",h}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:SG,resetWarningCache:_G};return n.PropTypes=n,n};BG.exports=n61();var Ai=BG.exports;const st=ne(Ai);function Zt(){return Zt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0;u--){var v=a[u];v==="."?xy(a,u):v===".."?(xy(a,u),h++):h&&(xy(a,u),h--)}if(!l)for(;h--;h)a.unshift("..");l&&a[0]!==""&&(!a[0]||!Sv(a[0]))&&a.unshift("");var d=a.join("/");return c&&d.substr(-1)!=="/"&&(d+="/"),d}function mE(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}function ef(t,e){if(t===e)return!0;if(t==null||e==null)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(r,o){return ef(r,e[o])});if(typeof t=="object"||typeof e=="object"){var n=mE(t),a=mE(e);return n!==t||a!==e?ef(n,a):Object.keys(Object.assign({},t,e)).every(function(r){return ef(t[r],e[r])})}return!1}var r61="Invariant failed";function wo(t,e){if(!t)throw new Error(r61)}function I7(t){return t.charAt(0)==="/"?t:"/"+t}function zE(t){return t.charAt(0)==="/"?t.substr(1):t}function i61(t,e){return t.toLowerCase().indexOf(e.toLowerCase())===0&&"/?#".indexOf(t.charAt(e.length))!==-1}function TG(t,e){return i61(t,e)?t.substr(e.length):t}function OG(t){return t.charAt(t.length-1)==="/"?t.slice(0,-1):t}function o61(t){var e=t||"/",n="",a="",r=e.indexOf("#");r!==-1&&(a=e.substr(r),e=e.substr(0,r));var o=e.indexOf("?");return o!==-1&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:n==="?"?"":n,hash:a==="#"?"":a}}function Sn(t){var e=t.pathname,n=t.search,a=t.hash,r=e||"/";return n&&n!=="?"&&(r+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(r+=a.charAt(0)==="#"?a:"#"+a),r}function vn(t,e,n,a){var r;typeof t=="string"?(r=o61(t),r.state=e):(r=Zt({},t),r.pathname===void 0&&(r.pathname=""),r.search?r.search.charAt(0)!=="?"&&(r.search="?"+r.search):r.search="",r.hash?r.hash.charAt(0)!=="#"&&(r.hash="#"+r.hash):r.hash="",e!==void 0&&r.state===void 0&&(r.state=e));try{r.pathname=decodeURI(r.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(r.key=n),a?r.pathname?r.pathname.charAt(0)!=="/"&&(r.pathname=a61(r.pathname,a.pathname)):r.pathname=a.pathname:r.pathname||(r.pathname="/"),r}function l61(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&ef(t.state,e.state)}function g_(){var t=null;function e(l){return t=l,function(){t===l&&(t=null)}}function n(l,c,s,h){if(t!=null){var u=typeof t=="function"?t(l,c):t;typeof u=="string"?typeof s=="function"?s(u,h):h(!0):h(u!==!1)}else h(!0)}var a=[];function r(l){var c=!0;function s(){c&&l.apply(void 0,arguments)}return a.push(s),function(){c=!1,a=a.filter(function(h){return h!==s})}}function o(){for(var l=arguments.length,c=new Array(l),s=0;sF?q.splice(F,q.length-F,S):q.push(S),u({action:B,location:S,index:F,entries:q})}})}function H(b,L){var B="REPLACE",S=vn(b,L,v(),x.location);h.confirmTransitionTo(S,B,n,function(T){T&&(x.entries[x.index]=S,u({action:B,location:S}))})}function m(b){var L=xE(x.index+b,0,x.entries.length-1),B="POP",S=x.entries[L];h.confirmTransitionTo(S,B,n,function(T){T?u({action:B,location:S,index:L}):u()})}function z(){m(-1)}function g(){m(1)}function w(b){var L=x.index+b;return L>=0&&L<\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=l.createElement(n,{is:a.is}):(t=l.createElement(n),n==="select"&&(l=t,a.multiple?l.multiple=!0:a.size&&(l.size=a.size))):t=l.createElementNS(t,n),t[a5]=e,t[Mh]=a,uq(t,e,!1,!1),e.stateNode=t;t:{switch(l=QV(n,a),n){case"dialog":Z0("cancel",t),Z0("close",t),r=a;break;case"iframe":case"object":case"embed":Z0("load",t),r=a;break;case"video":case"audio":for(r=0;rZl&&(e.flags|=128,a=!0,T9(o,!1),e.lanes=4194304)}else{if(!a)if(t=Zf(l),t!==null){if(e.flags|=128,a=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),T9(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!ie)return P4(e),null}else 2*Te()-o.renderingStartTime>Zl&&n!==1073741824&&(e.flags|=128,a=!0,T9(o,!1),e.lanes=4194304);o.isBackwards?(l.sibling=e.child,e.child=l):(n=o.last,n!==null?n.sibling=l:e.child=l,o.last=l)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Te(),e.sibling=null,n=de.current,$0(de,a?n&1|2:n&1),e):(P4(e),null);case 22:case 23:return DB(),a=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(e.flags|=8192),a&&e.mode&1?Zn&1073741824&&(P4(e),e.subtreeFlags&6&&(e.flags|=8192)):P4(e),null;case 24:return null;case 25:return null}throw Error(pt(156,e.tag))}function Dn1(t,e){switch(zB(e),e.tag){case 1:return Dn(e.type)&&$f(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Kl(),ee(Nn),ee(q4),LB(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return bB(e),null;case 13:if(ee(de),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(pt(340));ql()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ee(de),null;case 4:return Kl(),null;case 10:return yB(e.type._context),null;case 22:case 23:return DB(),null;case 24:return null;default:return null}}var _v=!1,j4=!1,Rn1=typeof WeakSet=="function"?WeakSet:Set,Ut=null;function zl(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(a){xe(t,e,a)}else n.current=null}function VC(t,e,n){try{n()}catch(a){xe(t,e,a)}}var ZA=!1;function jn1(t,e){if(lC=Rf,t=mW(),pB(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var l=0,c=-1,s=-1,h=0,u=0,v=t,d=null;e:for(;;){for(var f;v!==n||r!==0&&v.nodeType!==3||(c=l+r),v!==o||a!==0&&v.nodeType!==3||(s=l+a),v.nodeType===3&&(l+=v.nodeValue.length),(f=v.firstChild)!==null;)d=v,v=f;for(;;){if(v===t)break e;if(d===n&&++h===r&&(c=l),d===o&&++u===a&&(s=l),(f=v.nextSibling)!==null)break;v=d,d=v.parentNode}v=f}n=c===-1||s===-1?null:{start:c,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(cC={focusedElem:t,selectionRange:n},Rf=!1,Ut=e;Ut!==null;)if(e=Ut,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ut=t;else for(;Ut!==null;){e=Ut;try{var M=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(M!==null){var p=M.memoizedProps,H=M.memoizedState,m=e.stateNode,z=m.getSnapshotBeforeUpdate(e.elementType===e.type?p:mr(e.type,p),H);m.__reactInternalSnapshotBeforeUpdate=z}break;case 3:var g=e.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(pt(163))}}catch(w){xe(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,Ut=t;break}Ut=e.return}return M=ZA,ZA=!1,M}function S7(t,e,n){var a=e.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var r=a=a.next;do{if((r.tag&t)===t){var o=r.destroy;r.destroy=void 0,o!==void 0&&VC(e,n,o)}r=r.next}while(r!==a)}}function kp(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var a=n.create;n.destroy=a()}n=n.next}while(n!==e)}}function CC(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function fq(t){var e=t.alternate;e!==null&&(t.alternate=null,fq(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[a5],delete e[Mh],delete e[uC],delete e[yn1],delete e[xn1])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function gq(t){return t.tag===5||t.tag===3||t.tag===4}function QA(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||gq(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function bC(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Ff));else if(a!==4&&(t=t.child,t!==null))for(bC(t,e,n),t=t.sibling;t!==null;)bC(t,e,n),t=t.sibling}function LC(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(LC(t,e,n),t=t.sibling;t!==null;)LC(t,e,n),t=t.sibling}var x4=null,Hr=!1;function a3(t,e,n){for(n=n.child;n!==null;)pq(t,e,n),n=n.sibling}function pq(t,e,n){if(m5&&typeof m5.onCommitFiberUnmount=="function")try{m5.onCommitFiberUnmount(bp,n)}catch{}switch(n.tag){case 5:j4||zl(n,e);case 6:var a=x4,r=Hr;x4=null,a3(t,e,n),x4=a,Hr=r,x4!==null&&(Hr?(t=x4,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):x4.removeChild(n.stateNode));break;case 18:x4!==null&&(Hr?(t=x4,n=n.stateNode,t.nodeType===8?bw(t.parentNode,n):t.nodeType===1&&bw(t,n),fh(t)):bw(x4,n.stateNode));break;case 4:a=x4,r=Hr,x4=n.stateNode.containerInfo,Hr=!0,a3(t,e,n),x4=a,Hr=r;break;case 0:case 11:case 14:case 15:if(!j4&&(a=n.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){r=a=a.next;do{var o=r,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&VC(n,e,l),r=r.next}while(r!==a)}a3(t,e,n);break;case 1:if(!j4&&(zl(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=n.memoizedProps,a.state=n.memoizedState,a.componentWillUnmount()}catch(c){xe(n,e,c)}a3(t,e,n);break;case 21:a3(t,e,n);break;case 22:n.mode&1?(j4=(a=j4)||n.memoizedState!==null,a3(t,e,n),j4=a):a3(t,e,n);break;default:a3(t,e,n)}}function XA(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new Rn1),e.forEach(function(a){var r=Yn1.bind(null,t,a);n.has(a)||(n.add(a),a.then(r,r))})}}function lr(t,e){var n=e.deletions;if(n!==null)for(var a=0;ar&&(r=l),a&=~o}if(a=r,a=Te()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Fn1(a/1960))-a,10t?16:t,A3===null)var a=!1;else{if(t=A3,A3=null,eg=0,X2&6)throw Error(pt(331));var r=X2;for(X2|=4,Ut=t.current;Ut!==null;){var o=Ut,l=o.child;if(Ut.flags&16){var c=o.deletions;if(c!==null){for(var s=0;sTe()-PB?b8(t,0):EB|=n),Rn(t,e)}function Vq(t,e){e===0&&(t.mode&1?(e=Hv,Hv<<=1,!(Hv&130023424)&&(Hv=4194304)):e=1);var n=fn();t=zi(t,e),t!==null&&(ns(t,e,n),Rn(t,n))}function Kn1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Vq(t,n)}function Yn1(t,e){var n=0;switch(t.tag){case 13:var a=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(pt(314))}a!==null&&a.delete(e),Vq(t,n)}var Cq;Cq=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Nn.current)En=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return En=!1,Pn1(t,e,n);En=!!(t.flags&131072)}else En=!1,ie&&e.flags&1048576&&BW(e,qf,e.index);switch(e.lanes=0,e.tag){case 2:var a=e.type;Jd(t,e),t=e.pendingProps;var r=Wl(e,q4.current);Ol(e,n),r=_B(null,e,a,t,r,n);var o=SB();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Dn(a)?(o=!0,Uf(e)):o=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,VB(e),r.updater=Op,e.stateNode=r,r._reactInternals=e,mC(e,a,t,n),e=HC(null,e,a,!0,o,n)):(e.tag=0,ie&&o&&mB(e),hn(null,e,r,n),e=e.child),e;case 16:a=e.elementType;t:{switch(Jd(t,e),t=e.pendingProps,r=a._init,a=r(a._payload),e.type=a,r=e.tag=Qn1(a),t=mr(a,t),r){case 0:e=MC(null,e,a,t,n);break t;case 1:e=GA(null,e,a,t,n);break t;case 11:e=WA(null,e,a,t,n);break t;case 14:e=qA(null,e,a,mr(a.type,t),n);break t}throw Error(pt(306,a,""))}return e;case 0:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:mr(a,r),MC(t,e,a,r,n);case 1:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:mr(a,r),GA(t,e,a,r,n);case 3:t:{if(cq(e),t===null)throw Error(pt(387));a=e.pendingProps,o=e.memoizedState,r=o.element,OW(t,e),Yf(e,a,null,n);var l=e.memoizedState;if(a=l.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){r=Yl(Error(pt(423)),e),e=KA(t,e,a,n,r);break t}else if(a!==r){r=Yl(Error(pt(424)),e),e=KA(t,e,a,n,r);break t}else for(ta=F3(e.stateNode.containerInfo.firstChild),ra=e,ie=!0,xr=null,n=PW(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ql(),a===r){e=Mi(t,e,n);break t}hn(t,e,a,n)}e=e.child}return e;case 5:return NW(e),t===null&&fC(e),a=e.type,r=e.pendingProps,o=t!==null?t.memoizedProps:null,l=r.children,hC(a,r)?l=null:o!==null&&hC(a,o)&&(e.flags|=32),lq(t,e),hn(t,e,l,n),e.child;case 6:return t===null&&fC(e),null;case 13:return hq(t,e,n);case 4:return CB(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Gl(e,null,a,n):hn(t,e,a,n),e.child;case 11:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:mr(a,r),WA(t,e,a,r,n);case 7:return hn(t,e,e.pendingProps,n),e.child;case 8:return hn(t,e,e.pendingProps.children,n),e.child;case 12:return hn(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(a=e.type._context,r=e.pendingProps,o=e.memoizedProps,l=r.value,$0(Gf,a._currentValue),a._currentValue=l,o!==null)if(kr(o.value,l)){if(o.children===r.children&&!Nn.current){e=Mi(t,e,n);break t}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){l=o.child;for(var s=c.firstContext;s!==null;){if(s.context===a){if(o.tag===1){s=ui(-1,n&-n),s.tag=2;var h=o.updateQueue;if(h!==null){h=h.shared;var u=h.pending;u===null?s.next=s:(s.next=u.next,u.next=s),h.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),gC(o.return,n,e),c.lanes|=n;break}s=s.next}}else if(o.tag===10)l=o.type===e.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(pt(341));l.lanes|=n,c=l.alternate,c!==null&&(c.lanes|=n),gC(l,n,e),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===e){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}hn(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,a=e.pendingProps.children,Ol(e,n),r=Da(r),a=a(r),e.flags|=1,hn(t,e,a,n),e.child;case 14:return a=e.type,r=mr(a,e.pendingProps),r=mr(a.type,r),qA(t,e,a,r,n);case 15:return iq(t,e,e.type,e.pendingProps,n);case 17:return a=e.type,r=e.pendingProps,r=e.elementType===a?r:mr(a,r),Jd(t,e),e.tag=1,Dn(a)?(t=!0,Uf(e)):t=!1,Ol(e,n),kW(e,a,r),mC(e,a,r,n),HC(null,e,a,!0,t,n);case 19:return sq(t,e,n);case 22:return oq(t,e,n)}throw Error(pt(156,e.tag))};function bq(t,e){return XU(t,e)}function Zn1(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oa(t,e,n,a){return new Zn1(t,e,n,a)}function jB(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Qn1(t){if(typeof t=="function")return jB(t)?1:0;if(t!=null){if(t=t.$$typeof,t===iB)return 11;if(t===oB)return 14}return 2}function q3(t,e){var n=t.alternate;return n===null?(n=Oa(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function nf(t,e,n,a,r,o){var l=2;if(a=t,typeof t=="function")jB(t)&&(l=1);else if(typeof t=="string")l=5;else t:switch(t){case hl:return L8(n.children,r,o,e);case rB:l=8,r|=8;break;case IV:return t=Oa(12,n,e,r|2),t.elementType=IV,t.lanes=o,t;case FV:return t=Oa(13,n,e,r),t.elementType=FV,t.lanes=o,t;case $V:return t=Oa(19,n,e,r),t.elementType=$V,t.lanes=o,t;case EU:return Pp(n,r,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case AU:l=10;break t;case kU:l=9;break t;case iB:l=11;break t;case oB:l=14;break t;case H3:l=16,a=null;break t}throw Error(pt(130,t==null?t:typeof t,""))}return e=Oa(l,n,e,r),e.elementType=t,e.type=a,e.lanes=o,e}function L8(t,e,n,a){return t=Oa(7,t,a,e),t.lanes=n,t}function Pp(t,e,n,a){return t=Oa(22,t,a,e),t.elementType=EU,t.lanes=n,t.stateNode={isHidden:!1},t}function kw(t,e,n){return t=Oa(6,t,null,e),t.lanes=n,t}function Ew(t,e,n){return e=Oa(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Xn1(t,e,n,a,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gw(0),this.expirationTimes=gw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gw(0),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function IB(t,e,n,a,r,o,l,c,s){return t=new Xn1(t,e,n,c,s),e===1?(e=1,o===!0&&(e|=8)):e=0,o=Oa(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},VB(o),t}function Jn1(t,e,n){var a=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sq)}catch(t){console.error(t)}}Sq(),BU.exports=la;var j8=BU.exports;const w8=ne(j8);var ok=j8;RV.createRoot=ok.createRoot,RV.hydrateRoot=ok.hydrateRoot;var Pw={},Nw={},H0={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultConfig=t.defaultApiConfig=t.defaultReadConfig=t.questionSet=t.guessTheAnswer=t.attempted=t.completed=t.blackList=void 0,t.blackList=["http://adlnet.gov/expapi/verbs/attended","http://adlnet.gov/expapi/verbs/attempted","http://adlnet.gov/expapi/verbs/interacted","http://adlnet.gov/expapi/verbs/imported","http://adlnet.gov/expapi/verbs/created"],t.completed=["http://adlnet.gov/expapi/verbs/completed","http://adlnet.gov/expapi/verbs/answered","http://activitystrea.ms/schema/1.0/consume","http://adlnet.gov/expapi/verbs/passed","http://adlnet.gov/expapi/verbs/mastered"],t.attempted="http://adlnet.gov/expapi/verbs/attempted",t.guessTheAnswer="GuessTheAnswer",t.questionSet="QuestionSet",t.defaultReadConfig={apiUrl:"",getImagePrefix:function(){return""},getImageSvgPrefix:function(){return""},courses:{loading:!1},fetchCourses:function(){return Promise.reject()},userGroup:{loading:!1},fetchChallenges:function(){return Promise.reject()},challenges:{loading:!1},fetchUserGroup:function(){return Promise.reject()},userGroups:{loading:!1},fetchUserGroups:function(){return Promise.reject()},registerableGroups:{loading:!1},fetchRegisterableGroups:function(){return Promise.reject()},course:{loading:!1},fetchCourse:function(e){return Promise.reject()},program:{loading:!1},fetchProgram:function(e){return Promise.reject()},login:function(e){return Promise.reject()},logout:function(){return Promise.reject()},settings:{loading:!1,value:{}},fetchSettings:function(){return Promise.reject()},config:{loading:!1,value:{}},fetchConfig:function(){return Promise.reject()},uniqueTags:{loading:!1,list:[]},fetchTags:function(){return Promise.reject()},categoryTree:{loading:!1,list:[]},fetchCategories:function(){return Promise.reject()},user:{loading:!1},register:function(){return Promise.reject({success:!1,message:"register method not implemented"})},forgot:function(e){return Promise.reject()},reset:function(e){return Promise.reject()},emailVerify:function(e,n){return Promise.reject()},initAccountDelete:function(){return Promise.reject()},confirmAccountDelete:function(){return Promise.reject()},addToCart:function(e,n){return Promise.reject()},addMissingProducts:function(e){return Promise.reject()},removeFromCart:function(e){return Promise.reject(e)},fetchCart:function(){return Promise.reject()},resetCart:function(){return Promise.reject()},cart:{loading:!1,value:{total:0,subtotal:0,tax:0,items:[],coupon:null,total_with_tax:0}},payWithStripe:function(e,n){return Promise.reject(e)},payWithP24:function(e,n,a){return Promise.reject()},fetchProgress:function(){return Promise.reject()},fetchPaginatedProgress:function(){return Promise.reject()},paginatedProgress:{loading:!1},fetchMyAuthoredCourses:function(){return Promise.reject()},fetchCourseProgress:function(e){return Promise.reject()},courseProgressDetails:{loading:!1,byId:{}},progress:{loading:!1,value:[]},myAuthoredCourses:{loading:!1},sendProgress:function(e,n){return Promise.reject()},h5pProgress:function(e,n,a){return Promise.reject()},tutors:{loading:!1,list:[]},fetchTutors:function(){return Promise.reject()},tutor:{loading:!1},fetchTutor:function(e){return Promise.reject(e)},orders:{loading:!1},fetchOrders:function(e){return Promise.reject()},payments:{loading:!1},certificates:{loading:!1},fetchCertificates:function(e){return Promise.reject()},fetchCertificate:function(e){return Promise.reject(e)},generateCertificate:function(e){return Promise.reject(e)},getProductInfo:function(e){return Promise.reject(e)},pages:{loading:!1},mattermostChannels:{loading:!1,value:{server:"",teams:[]}},fetchMattermostChannels:function(){return Promise.reject()},fetchPages:function(){return Promise.reject()},page:{loading:!1},fetchPage:function(e){return Promise.reject()},fetchPayments:function(){return Promise.reject()},fetchProfile:function(){return Promise.reject()},updateProfile:function(e){return Promise.reject(e)},updateAvatar:function(e){return Promise.reject(e)},topicPing:function(e){return Promise.reject(e)},topicIsFinished:function(e){return!1},courseProgress:function(e){return 0},getNextPrevTopic:function(e,n){return null},socialAuthorize:function(e){return Promise.reject()},notifications:{loading:!1},fetchNotifications:function(e){return Promise.reject()},readAllNotifications:function(){return Promise.reject()},readNotify:function(e){return Promise.reject()},h5p:{loading:!1},fetchH5P:function(e){return Promise.reject()},getRefreshedToken:function(){return Promise.reject()},fetchConsultations:function(){return Promise.reject()},fetchConsultation:function(e){return Promise.reject()},fetchUserConsultations:function(){return Promise.reject()},consultation:{loading:!1},consultations:{loading:!1},userConsultations:{loading:!1},userWebinars:{loading:!1},fetchUserWebinars:function(){return Promise.reject()},fetchWebinar:function(e){return Promise.reject()},fetchProducts:function(e){return Promise.reject()},fetchProduct:function(e){return Promise.reject()},fields:{loading:!1,list:[]},fetchFields:function(e){return Promise.reject()},stationaryEvents:{loading:!1},stationaryEvent:{loading:!1},tutorConsultations:{loading:!1},fetchStationaryEvents:function(e){return Promise.reject()},fetchStationaryEvent:function(e){return Promise.reject()},bookConsultationTerm:function(e,n){return Promise.reject()},fetchWebinars:function(e){return Promise.reject()},fetchTutorConsultations:function(){return Promise.reject()},approveConsultationTerm:function(e){return Promise.reject()},rejectConsultationTerm:function(e){return Promise.reject()},generateConsultationJitsy:function(e){return Promise.reject(e)},generateWebinarJitsy:function(e){return Promise.reject(e)},webinars:{loading:!1},webinar:{loading:!1},events:{loading:!1},fetchEvents:function(e){return Promise.reject()},changePassword:function(){return Promise.reject()},realizeVoucher:function(){return Promise.reject()},removeVoucher:function(){return Promise.reject()},createTeamsChat:function(){return Promise.reject()},products:{loading:!1},product:{loading:!1},fetchQuestionnaires:function(e,n){return Promise.reject()},fetchQuestionnaire:function(e,n,a){return Promise.reject()},fetchQuestionnairesAnswers:function(e,n,a,r){return Promise.reject()},fetchQuestionnaireStars:function(e,n,a){return Promise.reject()},fetchQuestionnaireStarsByModel:function(e,n){return Promise.reject()},sendQuestionnaireAnswer:function(e,n,a,r){return Promise.reject()},fetchUserStationaryEvents:function(){return Promise.reject()},userStationaryEvents:{loading:!1},fetchOrderInvoice:function(e){return Promise.reject(e)},changeConsultationTerm:function(e,n){return Promise.reject()},tasks:{loading:!1},fetchTasks:function(e){return Promise.reject()},courseAccess:{loading:!1},myCourses:{loading:!1,value:[]},fetchMyCourses:function(){return Promise.reject()},fetchCourseAccess:function(e){return Promise.reject()},addCourseAccess:function(e){return Promise.reject()},deleteCourseAccess:function(e){return Promise.reject()},task:{loading:!1},challenge:{loading:!1},attendances:{loading:!1},consultationAccessEnquiry:{loading:!1},fetchConsultationAccessEnquiry:function(e){return Promise.reject()},consultationAccess:{loading:!1},fetchConsultationAccess:function(e){return Promise.reject()},addConsultationAccess:function(e){return Promise.reject()},deleteConsultationAccess:function(e){return Promise.reject()},updateConsultationAccess:function(e,n){return Promise.reject()},fetchTask:function(e){return Promise.reject()},fetchChallenge:function(e){return Promise.reject()},fetchAttendances:function(e){return Promise.reject()},deleteTask:function(e){return Promise.reject()},addTask:function(e){return Promise.reject()},updateTask:function(e,n){return Promise.reject()},updateTaskStatus:function(e,n){return Promise.reject(e)},createTaskNote:function(e,n){return Promise.reject(e)},updateTaskNote:function(e,n,a){return Promise.reject(e)},deleteTaskNote:function(e){return Promise.reject(e)},schedule:{loading:!1,list:[]},scheduleTutors:{loading:!1,list:[]},fetchSchedule:function(){return Promise.reject()},fetchScheduleTutors:function(){return Promise.reject()},bookmarkNotes:{loading:!1},fetchBookmarkNotes:function(e){return Promise.reject()},createBookmarkNote:function(e){return Promise.reject()},updateBookmarkNote:function(e,n){return Promise.reject(e)},deleteBookmarkNote:function(e){return Promise.reject(e)},subjects:{loading:!1},fetchExams:function(e){return Promise.reject()},exams:{loading:!1},fetchSubjects:function(e){return Promise.reject()},fetchSemesters:function(e){return Promise.reject()},semesters:{loading:!1,list:[]},academicYears:{loading:!1,list:[]},fetchAcademicYears:function(e){return Promise.reject()}},t.defaultApiConfig={apiUrl:"",myCourses:{loading:!1,value:[]},fetchMyCourses:function(){return Promise.reject()},getImagePrefix:function(){return""},getImageSvgPrefix:function(){return""},courses:{loading:!1},fetchCourses:function(){return Promise.reject()},userGroup:{loading:!1},fetchChallenges:function(){return Promise.reject()},challenges:{loading:!1},fetchUserGroup:function(){return Promise.reject()},userGroups:{loading:!1},fetchUserGroups:function(){return Promise.reject()},registerableGroups:{loading:!1},fetchRegisterableGroups:function(){return Promise.reject()},course:{loading:!1},fetchCourse:function(e){return Promise.reject()},program:{loading:!1},fetchProgram:function(e){return Promise.reject()},login:function(e){return Promise.reject()},logout:function(){return Promise.reject()},settings:{loading:!1,value:[]},fetchSettings:function(){return Promise.reject()},config:{loading:!1,value:{escola_auth:{additional_fields:[],additional_fields_required:[]}}},fetchConfig:function(){return Promise.reject()},uniqueTags:{loading:!1,list:[]},fetchTags:function(){return Promise.reject()},categoryTree:{loading:!1,list:[]},fetchCategories:function(){return Promise.reject()},user:{loading:!1},register:function(){return Promise.reject({success:!1,message:"register method not implemented"})},forgot:function(e){return Promise.reject()},reset:function(e){return Promise.reject()},emailVerify:function(e,n){return Promise.reject()},initAccountDelete:function(){return Promise.reject()},confirmAccountDelete:function(){return Promise.reject()},addToCart:function(e,n){return Promise.reject()},addMissingProducts:function(e){return Promise.reject()},removeFromCart:function(e){return Promise.reject(e)},fetchCart:function(){return Promise.reject()},resetCart:function(){return Promise.reject()},cart:{loading:!1,value:{total:0,subtotal:0,tax:0,items:[],coupon:null,total_with_tax:0}},payWithStripe:function(e,n){return Promise.reject(e)},payWithP24:function(e,n,a){return Promise.reject()},fetchProgress:function(){return Promise.reject()},fetchPaginatedProgress:function(){return Promise.reject()},paginatedProgress:{loading:!1},fetchMyAuthoredCourses:function(){return Promise.reject()},fetchCourseProgress:function(e){return Promise.reject()},courseProgressDetails:{loading:!1,byId:{}},progress:{loading:!1,value:[]},myAuthoredCourses:{loading:!1},sendProgress:function(e,n){return Promise.reject()},h5pProgress:function(e,n,a){return Promise.reject()},tutors:{loading:!1,list:[]},fetchTutors:function(){return Promise.reject()},tutor:{loading:!1},fetchTutor:function(e){return Promise.reject(e)},orders:{loading:!1},fetchOrders:function(e){return Promise.reject()},payments:{loading:!1},certificates:{loading:!1},fetchCertificates:function(e){return Promise.reject()},fetchCertificate:function(e){return Promise.reject(e)},generateCertificate:function(e){return Promise.reject(e)},getProductInfo:function(e){return Promise.reject(e)},pages:{loading:!1},mattermostChannels:{loading:!1,value:{server:"",teams:[]}},fetchMattermostChannels:function(){return Promise.reject()},fetchPages:function(){return Promise.reject()},page:{loading:!1},fetchPage:function(e){return Promise.reject()},fetchPayments:function(){return Promise.reject()},fetchProfile:function(){return Promise.reject()},updateProfile:function(e){return Promise.reject(e)},updateAvatar:function(e){return Promise.reject(e)},topicPing:function(e){return Promise.reject(e)},topicIsFinished:function(e){return!1},courseProgress:function(e){return 0},getNextPrevTopic:function(e,n){return null},getRefreshedToken:function(){return Promise.reject()},socialAuthorize:function(e){return Promise.reject()},notifications:{loading:!1},fetchNotifications:function(e){return Promise.reject()},readNotify:function(e){return Promise.reject()},readAllNotifications:function(){return Promise.reject()},h5p:{loading:!1},fetchH5P:function(e){return Promise.reject()},fetchConsultations:function(){return Promise.reject()},fetchConsultation:function(e){return Promise.reject()},fetchUserConsultations:function(){return Promise.reject()},consultation:{loading:!1},consultations:{loading:!1},fields:{loading:!1,list:[]},userConsultations:{loading:!1},tutorConsultations:{loading:!1},userWebinars:{loading:!1},fetchUserWebinars:function(){return Promise.reject()},fetchWebinar:function(e){return Promise.reject()},fetchProducts:function(e){return Promise.reject()},fetchProduct:function(e){return Promise.reject()},fetchFields:function(e){return Promise.reject()},stationaryEvents:{loading:!1},stationaryEvent:{loading:!1},fetchStationaryEvents:function(e){return Promise.reject()},fetchStationaryEvent:function(e){return Promise.reject()},bookConsultationTerm:function(e,n){return Promise.reject()},fetchWebinars:function(e){return Promise.reject()},webinars:{loading:!1},webinar:{loading:!1},fetchTutorConsultations:function(){return Promise.reject()},approveConsultationTerm:function(e){return Promise.reject()},rejectConsultationTerm:function(e){return Promise.reject()},generateConsultationJitsy:function(e){return Promise.reject(e)},generateWebinarJitsy:function(e){return Promise.reject(e)},events:{loading:!1},fetchEvents:function(e){return Promise.reject()},changePassword:function(){return Promise.reject()},realizeVoucher:function(){return Promise.reject()},removeVoucher:function(){return Promise.reject()},createTeamsChat:function(){return Promise.reject()},products:{loading:!1},product:{loading:!1},fetchQuestionnaires:function(e,n){return Promise.reject()},fetchQuestionnaire:function(e,n,a){return Promise.reject()},fetchQuestionnairesAnswers:function(e,n,a,r){return Promise.reject()},sendQuestionnaireAnswer:function(e,n,a,r){return Promise.reject()},fetchQuestionnaireStars:function(e,n,a){return Promise.reject()},fetchQuestionnaireStarsByModel:function(e,n){return Promise.reject()},fetchUserStationaryEvents:function(){return Promise.reject()},userStationaryEvents:{loading:!1},fetchOrderInvoice:function(e){return Promise.reject(e)},changeConsultationTerm:function(e,n){return Promise.reject()},tasks:{loading:!1},fetchTasks:function(e){return Promise.reject()},courseAccess:{loading:!1},fetchCourseAccess:function(e){return Promise.reject()},deleteCourseAccess:function(e){return Promise.reject()},addCourseAccess:function(e){return Promise.reject()},consultationAccessEnquiry:{loading:!1},fetchConsultationAccessEnquiry:function(e){return Promise.reject()},consultationAccess:{loading:!1},fetchConsultationAccess:function(e){return Promise.reject()},deleteConsultationAccess:function(e){return Promise.reject()},addConsultationAccess:function(e){return Promise.reject()},updateConsultationAccess:function(e,n){return Promise.reject()},task:{loading:!1},challenge:{loading:!1},attendances:{loading:!1},fetchTask:function(e){return Promise.reject(e)},fetchChallenge:function(e){return Promise.reject(e)},fetchAttendances:function(e){return Promise.reject(e)},deleteTask:function(e){return Promise.reject()},addTask:function(e){return Promise.reject()},updateTask:function(e,n){return Promise.reject(e)},updateTaskStatus:function(e,n){return Promise.reject(e)},createTaskNote:function(e,n){return Promise.reject(e)},updateTaskNote:function(e,n,a){return Promise.reject(e)},deleteTaskNote:function(e){return Promise.reject(e)},schedule:{loading:!1,list:[]},scheduleTutors:{loading:!1,list:[]},fetchSchedule:function(){return Promise.reject()},fetchScheduleTutors:function(){return Promise.reject()},bookmarkNotes:{loading:!1},fetchBookmarkNotes:function(e){return Promise.reject()},createBookmarkNote:function(e){return Promise.reject()},updateBookmarkNote:function(e,n){return Promise.reject(e)},deleteBookmarkNote:function(e){return Promise.reject(e)},subjects:{loading:!1},fetchSubjects:function(){return Promise.reject()},fetchExams:function(){return Promise.reject()},exams:{loading:!1},fetchSemesters:function(){return Promise.reject()},semesters:{loading:!1,list:[]},fetchAcademicYears:function(){return Promise.reject()},academicYears:{loading:!1,list:[]}},t.defaultConfig=Object.assign({},t.defaultReadConfig,t.defaultApiConfig)})(H0);var f0={},v0=C&&C.__assign||function(){return v0=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]"u"||!d4?$2:d4(Uint8Array),_8={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?$2:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?$2:ArrayBuffer,"%ArrayIteratorPrototype%":D6&&d4?d4([][Symbol.iterator]()):$2,"%AsyncFromSyncIteratorPrototype%":$2,"%AsyncFunction%":nl,"%AsyncGenerator%":nl,"%AsyncGeneratorFunction%":nl,"%AsyncIteratorPrototype%":nl,"%Atomics%":typeof Atomics>"u"?$2:Atomics,"%BigInt%":typeof BigInt>"u"?$2:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?$2:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?$2:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?$2:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Sa1,"%eval%":eval,"%EvalError%":Ta1,"%Float32Array%":typeof Float32Array>"u"?$2:Float32Array,"%Float64Array%":typeof Float64Array>"u"?$2:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?$2:FinalizationRegistry,"%Function%":Oq,"%GeneratorFunction%":nl,"%Int8Array%":typeof Int8Array>"u"?$2:Int8Array,"%Int16Array%":typeof Int16Array>"u"?$2:Int16Array,"%Int32Array%":typeof Int32Array>"u"?$2:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D6&&d4?d4(d4([][Symbol.iterator]())):$2,"%JSON%":typeof JSON=="object"?JSON:$2,"%Map%":typeof Map>"u"?$2:Map,"%MapIteratorPrototype%":typeof Map>"u"||!D6||!d4?$2:d4(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?$2:Promise,"%Proxy%":typeof Proxy>"u"?$2:Proxy,"%RangeError%":Oa1,"%ReferenceError%":Aa1,"%Reflect%":typeof Reflect>"u"?$2:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?$2:Set,"%SetIteratorPrototype%":typeof Set>"u"||!D6||!d4?$2:d4(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?$2:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D6&&d4?d4(""[Symbol.iterator]()):$2,"%Symbol%":D6?Symbol:$2,"%SyntaxError%":Ql,"%ThrowTypeError%":Ea1,"%TypedArray%":Na1,"%TypeError%":kl,"%Uint8Array%":typeof Uint8Array>"u"?$2:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?$2:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?$2:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?$2:Uint32Array,"%URIError%":ka1,"%WeakMap%":typeof WeakMap>"u"?$2:WeakMap,"%WeakRef%":typeof WeakRef>"u"?$2:WeakRef,"%WeakSet%":typeof WeakSet>"u"?$2:WeakSet};if(d4)try{null.error}catch(t){var Da1=d4(d4(t));_8["%Error.prototype%"]=Da1}var Ra1=function t(e){var n;if(e==="%AsyncFunction%")n=Rw("async function () {}");else if(e==="%GeneratorFunction%")n=Rw("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=Rw("async function* () {}");else if(e==="%AsyncGenerator%"){var a=t("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if(e==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");r&&d4&&(n=d4(r.prototype))}return _8[e]=n,n},uk={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ls=WB,rg=_a1,ja1=ls.call(Function.call,Array.prototype.concat),Ia1=ls.call(Function.apply,Array.prototype.splice),vk=ls.call(Function.call,String.prototype.replace),ig=ls.call(Function.call,String.prototype.slice),Fa1=ls.call(Function.call,RegExp.prototype.exec),$a1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ua1=/\\(\\)?/g,Wa1=function(e){var n=ig(e,0,1),a=ig(e,-1);if(n==="%"&&a!=="%")throw new Ql("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&n!=="%")throw new Ql("invalid intrinsic syntax, expected opening `%`");var r=[];return vk(e,$a1,function(o,l,c,s){r[r.length]=c?vk(s,Ua1,"$1"):l||o}),r},qa1=function(e,n){var a=e,r;if(rg(uk,a)&&(r=uk[a],a="%"+r[0]+"%"),rg(_8,a)){var o=_8[a];if(o===nl&&(o=Ra1(a)),typeof o>"u"&&!n)throw new kl("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:a,value:o}}throw new Ql("intrinsic "+e+" does not exist!")},Tc=function(e,n){if(typeof e!="string"||e.length===0)throw new kl("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new kl('"allowMissing" argument must be a boolean');if(Fa1(/^%?[^%]*%?$/,e)===null)throw new Ql("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Wa1(e),r=a.length>0?a[0]:"",o=qa1("%"+r+"%",n),l=o.name,c=o.value,s=!1,h=o.alias;h&&(r=h[0],Ia1(a,ja1([0,1],h)));for(var u=1,v=!0;u=a.length){var p=B8(c,d);v=!!p,v&&"get"in p&&!("originalValue"in p.get)?c=p.get:c=c[d]}else v=rg(c,d),c=c[d];v&&!s&&(_8[l]=c)}}return c},Aq={exports:{}},Iw,dk;function qB(){if(dk)return Iw;dk=1;var t=Tc,e=t("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Iw=e,Iw}var Ga1=Tc,af=Ga1("%Object.getOwnPropertyDescriptor%",!0);if(af)try{af([],"length")}catch{af=null}var kq=af,fk=qB(),Ka1=Tq,R6=os,gk=kq,Ya1=function(e,n,a){if(!e||typeof e!="object"&&typeof e!="function")throw new R6("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new R6("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new R6("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new R6("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new R6("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new R6("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,s=!!gk&&gk(e,n);if(fk)fk(e,n,{configurable:l===null&&s?s.configurable:!l,enumerable:r===null&&s?s.enumerable:!r,value:a,writable:o===null&&s?s.writable:!o});else if(c||!r&&!o&&!l)e[n]=a;else throw new Ka1("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},OC=qB(),Eq=function(){return!!OC};Eq.hasArrayLengthDefineBug=function(){if(!OC)return null;try{return OC([],"length",{value:1}).length!==1}catch{return!0}};var Za1=Eq,Qa1=Tc,pk=Ya1,Xa1=Za1(),mk=kq,zk=os,Ja1=Qa1("%Math.floor%"),tr1=function(e,n){if(typeof e!="function")throw new zk("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||Ja1(n)!==n)throw new zk("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],r=!0,o=!0;if("length"in e&&mk){var l=mk(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(o=!1)}return(r||o||!a)&&(Xa1?pk(e,"length",n,!0,!0):pk(e,"length",n)),e};(function(t){var e=WB,n=Tc,a=tr1,r=os,o=n("%Function.prototype.apply%"),l=n("%Function.prototype.call%"),c=n("%Reflect.apply%",!0)||e.call(l,o),s=qB(),h=n("%Math.max%");t.exports=function(d){if(typeof d!="function")throw new r("a function is required");var f=c(e,l,arguments);return a(f,1+h(0,d.length-(arguments.length-1)),!0)};var u=function(){return c(e,o,arguments)};s?s(t.exports,"apply",{value:u}):t.exports.apply=u})(Aq);var er1=Aq.exports,Pq=Tc,Nq=er1,nr1=Nq(Pq("String.prototype.indexOf")),ar1=function(e,n){var a=Pq(e,!!n);return typeof a=="function"&&nr1(e,".prototype.")>-1?Nq(a):a};const rr1={},ir1=Object.freeze(Object.defineProperty({__proto__:null,default:rr1},Symbol.toStringTag,{value:"Module"})),or1=le(ir1);var GB=typeof Map=="function"&&Map.prototype,Fw=Object.getOwnPropertyDescriptor&&GB?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,og=GB&&Fw&&typeof Fw.get=="function"?Fw.get:null,Mk=GB&&Map.prototype.forEach,KB=typeof Set=="function"&&Set.prototype,$w=Object.getOwnPropertyDescriptor&&KB?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,lg=KB&&$w&&typeof $w.get=="function"?$w.get:null,Hk=KB&&Set.prototype.forEach,lr1=typeof WeakMap=="function"&&WeakMap.prototype,A7=lr1?WeakMap.prototype.has:null,cr1=typeof WeakSet=="function"&&WeakSet.prototype,k7=cr1?WeakSet.prototype.has:null,hr1=typeof WeakRef=="function"&&WeakRef.prototype,wk=hr1?WeakRef.prototype.deref:null,sr1=Boolean.prototype.valueOf,ur1=Object.prototype.toString,vr1=Function.prototype.toString,dr1=String.prototype.match,YB=String.prototype.slice,k3=String.prototype.replace,fr1=String.prototype.toUpperCase,yk=String.prototype.toLowerCase,Dq=RegExp.prototype.test,xk=Array.prototype.concat,t5=Array.prototype.join,gr1=Array.prototype.slice,Vk=Math.floor,AC=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Uw=Object.getOwnPropertySymbols,kC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Xl=typeof Symbol=="function"&&typeof Symbol.iterator=="object",G4=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Xl||!0)?Symbol.toStringTag:null,Rq=Object.prototype.propertyIsEnumerable,Ck=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function bk(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Dq.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var a=t<0?-Vk(-t):Vk(t);if(a!==t){var r=String(a),o=YB.call(e,r.length+1);return k3.call(r,n,"$&_")+"."+k3.call(k3.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return k3.call(e,n,"$&_")}var EC=or1,Lk=EC.custom,Bk=Iq(Lk)?Lk:null,pr1=function t(e,n,a,r){var o=n||{};if(y3(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(y3(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=y3(o,"customInspect")?o.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(y3(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(y3(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return $q(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var s=String(e);return c?bk(e,s):s}if(typeof e=="bigint"){var h=String(e)+"n";return c?bk(e,h):h}var u=typeof o.depth>"u"?5:o.depth;if(typeof a>"u"&&(a=0),a>=u&&u>0&&typeof e=="object")return PC(e)?"[Array]":"[Object]";var v=kr1(o,a);if(typeof r>"u")r=[];else if(Fq(r,e)>=0)return"[Circular]";function d(P,F,q){if(F&&(r=gr1.call(r),r.push(F)),q){var $={depth:o.depth};return y3(o,"quoteStyle")&&($.quoteStyle=o.quoteStyle),t(P,$,a+1,r)}return t(P,o,a+1,r)}if(typeof e=="function"&&!_k(e)){var f=Cr1(e),M=Ov(e,d);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(M.length>0?" { "+t5.call(M,", ")+" }":"")}if(Iq(e)){var p=Xl?k3.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):kC.call(e);return typeof e=="object"&&!Xl?A9(p):p}if(Tr1(e)){for(var H="<"+yk.call(String(e.nodeName)),m=e.attributes||[],z=0;z",H}if(PC(e)){if(e.length===0)return"[]";var g=Ov(e,d);return v&&!Ar1(g)?"["+NC(g,v)+"]":"[ "+t5.call(g,", ")+" ]"}if(Mr1(e)){var w=Ov(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!Rq.call(e,"cause")?"{ ["+String(e)+"] "+t5.call(xk.call("[cause]: "+d(e.cause),w),", ")+" }":w.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+t5.call(w,", ")+" }"}if(typeof e=="object"&&l){if(Bk&&typeof e[Bk]=="function"&&EC)return EC(e,{depth:u-a});if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(br1(e)){var V=[];return Mk&&Mk.call(e,function(P,F){V.push(d(F,e,!0)+" => "+d(P,e))}),Sk("Map",og.call(e),V,v)}if(_r1(e)){var y=[];return Hk&&Hk.call(e,function(P){y.push(d(P,e))}),Sk("Set",lg.call(e),y,v)}if(Lr1(e))return Ww("WeakMap");if(Sr1(e))return Ww("WeakSet");if(Br1(e))return Ww("WeakRef");if(wr1(e))return A9(d(Number(e)));if(xr1(e))return A9(d(AC.call(e)));if(yr1(e))return A9(sr1.call(e));if(Hr1(e))return A9(d(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===C)return"{ [object globalThis] }";if(!zr1(e)&&!_k(e)){var x=Ov(e,d),b=Ck?Ck(e)===Object.prototype:e instanceof Object||e.constructor===Object,L=e instanceof Object?"":"null prototype",B=!b&&G4&&Object(e)===e&&G4 in e?YB.call(wo(e),8,-1):L?"Object":"",S=b||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",T=S+(B||L?"["+t5.call(xk.call([],B||[],L||[]),": ")+"] ":"");return x.length===0?T+"{}":v?T+"{"+NC(x,v)+"}":T+"{ "+t5.call(x,", ")+" }"}return String(e)};function jq(t,e,n){var a=(n.quoteStyle||e)==="double"?'"':"'";return a+t+a}function mr1(t){return k3.call(String(t),/"/g,""")}function PC(t){return wo(t)==="[object Array]"&&(!G4||!(typeof t=="object"&&G4 in t))}function zr1(t){return wo(t)==="[object Date]"&&(!G4||!(typeof t=="object"&&G4 in t))}function _k(t){return wo(t)==="[object RegExp]"&&(!G4||!(typeof t=="object"&&G4 in t))}function Mr1(t){return wo(t)==="[object Error]"&&(!G4||!(typeof t=="object"&&G4 in t))}function Hr1(t){return wo(t)==="[object String]"&&(!G4||!(typeof t=="object"&&G4 in t))}function wr1(t){return wo(t)==="[object Number]"&&(!G4||!(typeof t=="object"&&G4 in t))}function yr1(t){return wo(t)==="[object Boolean]"&&(!G4||!(typeof t=="object"&&G4 in t))}function Iq(t){if(Xl)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!kC)return!1;try{return kC.call(t),!0}catch{}return!1}function xr1(t){if(!t||typeof t!="object"||!AC)return!1;try{return AC.call(t),!0}catch{}return!1}var Vr1=Object.prototype.hasOwnProperty||function(t){return t in this};function y3(t,e){return Vr1.call(t,e)}function wo(t){return ur1.call(t)}function Cr1(t){if(t.name)return t.name;var e=dr1.call(vr1.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Fq(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,a=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,a="... "+n+" more character"+(n>1?"s":"");return $q(YB.call(t,0,e.maxStringLength),e)+a}var r=k3.call(k3.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Or1);return jq(r,"single",e)}function Or1(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+fr1.call(e.toString(16))}function A9(t){return"Object("+t+")"}function Ww(t){return t+" { ? }"}function Sk(t,e,n,a){var r=a?NC(n,a):t5.call(n,", ");return t+" ("+e+") {"+r+"}"}function Ar1(t){for(var e=0;e=0)return!1;return!0}function kr1(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=t5.call(Array(t.indent+1)," ");else return null;return{base:n,prev:t5.call(Array(e+1),n)}}function NC(t,e){if(t.length===0)return"";var n=` +`+e.prev+e.base;return n+t5.call(t,","+n)+` +`+e.prev}function Ov(t,e){var n=PC(t),a=[];if(n){a.length=t.length;for(var r=0;r1;){var n=e.pop(),a=n.obj[n.prop];if(d8(a)){for(var r=[],o=0;o=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===Yr1.RFC1738&&(h===40||h===41)){c+=l.charAt(s);continue}if(h<128){c=c+Yr[h];continue}if(h<2048){c=c+(Yr[192|h>>6]+Yr[128|h&63]);continue}if(h<55296||h>=57344){c=c+(Yr[224|h>>12]+Yr[128|h>>6&63]+Yr[128|h&63]);continue}s+=1,h=65536+((h&1023)<<10|l.charCodeAt(s)&1023),c+=Yr[240|h>>18]+Yr[128|h>>12&63]+Yr[128|h>>6&63]+Yr[128|h&63]}return c},e51=function(e){for(var n=[{obj:{o:e},prop:"o"}],a=[],r=0;r"u"&&(g=0)}if(typeof s=="function"?m=s(n,m):m instanceof Date?m=v(m):a==="comma"&&li(m)&&(m=rf.maybeMap(m,function($){return $ instanceof Date?v($):$})),m===null){if(o)return c&&!M?c(n,D4.encoder,p,"key",d):n;m=""}if(h51(m)||rf.isBuffer(m)){if(c){var y=M?n:c(n,D4.encoder,p,"key",d);return[f(y)+"="+f(c(m,D4.encoder,p,"value",d))]}return[f(n)+"="+f(String(m))]}var x=[];if(typeof m>"u")return x;var b;if(a==="comma"&&li(m))M&&c&&(m=rf.maybeMap(m,c)),b=[{value:m.length>0?m.join(",")||null:void 0}];else if(li(s))b=s;else{var L=Object.keys(m);b=h?L.sort(h):L}for(var B=r&&li(m)&&m.length===1?n+"[]":n,S=0;S"u"?D4.allowDots:!!e.allowDots,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:D4.charsetSentinel,delimiter:typeof e.delimiter>"u"?D4.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:D4.encode,encoder:typeof e.encoder=="function"?e.encoder:D4.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:D4.encodeValuesOnly,filter:o,format:a,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:D4.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:D4.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:D4.strictNullHandling}},v51=function(t,e){var n=t,a=u51(e),r,o;typeof a.filter=="function"?(o=a.filter,n=o("",n)):li(a.filter)&&(o=a.filter,r=o);var l=[];if(typeof n!="object"||n===null)return"";var c;e&&e.arrayFormat in Tk?c=e.arrayFormat:e&&"indices"in e?c=e.indices?"indices":"repeat":c="indices";var s=Tk[c];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=s==="comma"&&e&&e.commaRoundTrip;r||(r=Object.keys(n)),a.sort&&r.sort(a.sort);for(var u=Gq(),v=0;v0?M+f:""},Jl=qq,DC=Object.prototype.hasOwnProperty,d51=Array.isArray,u4={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Jl.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},f51=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},Yq=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},g51="utf8=%26%2310003%3B",p51="utf8=%E2%9C%93",m51=function(e,n){var a={__proto__:null},r=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=n.parameterLimit===1/0?void 0:n.parameterLimit,l=r.split(n.delimiter,o),c=-1,s,h=n.charset;if(n.charsetSentinel)for(s=0;s-1&&(M=d51(M)?[M]:M),DC.call(a,f)?a[f]=Jl.combine(a[f],M):a[f]=M}return a},z51=function(t,e,n,a){for(var r=a?e:Yq(e,n),o=t.length-1;o>=0;--o){var l,c=t[o];if(c==="[]"&&n.parseArrays)l=[].concat(r);else{l=n.plainObjects?Object.create(null):{};var s=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,h=parseInt(s,10);!n.parseArrays&&s===""?l={0:r}:!isNaN(h)&&c!==s&&String(h)===s&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(l=[],l[h]=r):s!=="__proto__"&&(l[s]=r)}r=l}return r},M51=function(e,n,a,r){if(e){var o=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,s=a.depth>0&&l.exec(o),h=s?o.slice(0,s.index):o,u=[];if(h){if(!a.plainObjects&&DC.call(Object.prototype,h)&&!a.allowPrototypes)return;u.push(h)}for(var v=0;a.depth>0&&(s=c.exec(o))!==null&&v"u"?u4.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?u4.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:u4.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:u4.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:u4.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:u4.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:u4.comma,decoder:typeof e.decoder=="function"?e.decoder:u4.decoder,delimiter:typeof e.delimiter=="string"||Jl.isRegExp(e.delimiter)?e.delimiter:u4.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:u4.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:u4.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:u4.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:u4.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:u4.strictNullHandling}},w51=function(t,e){var n=H51(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var a=typeof t=="string"?m51(t,n):t,r=n.plainObjects?Object.create(null):{},o=Object.keys(a),l=0;l-1};function Ac(t){if(typeof t!="string"&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||t==="")throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function XB(t){return typeof t!="string"&&(t=String(t)),t}function JB(t){var e={next:function(){var n=t.shift();return{done:n===void 0,value:n}}};return cn.iterable&&(e[Symbol.iterator]=function(){return e}),e}function o4(t){this.map={},t instanceof o4?t.forEach(function(e,n){this.append(n,e)},this):Array.isArray(t)?t.forEach(function(e){if(e.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}o4.prototype.append=function(t,e){t=Ac(t),e=XB(e);var n=this.map[t];this.map[t]=n?n+", "+e:e};o4.prototype.delete=function(t){delete this.map[Ac(t)]};o4.prototype.get=function(t){return t=Ac(t),this.has(t)?this.map[t]:null};o4.prototype.has=function(t){return this.map.hasOwnProperty(Ac(t))};o4.prototype.set=function(t,e){this.map[Ac(t)]=XB(e)};o4.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)};o4.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),JB(t)};o4.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),JB(t)};o4.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),JB(t)};cn.iterable&&(o4.prototype[Symbol.iterator]=o4.prototype.entries);function Yw(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}}function Qq(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function B51(t){var e=new FileReader,n=Qq(e);return e.readAsArrayBuffer(t),n}function _51(t){var e=new FileReader,n=Qq(e),a=/charset=([A-Za-z0-9_-]+)/.exec(t.type),r=a?a[1]:"utf-8";return e.readAsText(t,r),n}function S51(t){for(var e=new Uint8Array(t),n=new Array(e.length),a=0;a-1?e:t}function I8(t,e){if(!(this instanceof I8))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var n=e.body;if(t instanceof I8){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new o4(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!n&&t._bodyInit!=null&&(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new o4(e.headers)),this.method=O51(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in b4){var o=new AbortController;return o.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+new Date().getTime());else{var r=/\?/;this.url+=(r.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}I8.prototype.clone=function(){return new I8(this,{body:this._bodyInit})};function A51(t){var e=new FormData;return t.trim().split("&").forEach(function(n){if(n){var a=n.split("="),r=a.shift().replace(/\+/g," "),o=a.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function k51(t){var e=new o4,n=t.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(a){return a.indexOf(` +`)===0?a.substr(1,a.length):a}).forEach(function(a){var r=a.split(":"),o=r.shift().trim();if(o){var l=r.join(":").trim();try{e.append(o,l)}catch(c){console.warn("Response "+c.message)}}}),e}Xq.call(I8.prototype);function y5(t,e){if(!(this instanceof y5))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=e.status===void 0?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText===void 0?"":""+e.statusText,this.headers=new o4(e.headers),this.url=e.url||"",this._initBody(t)}Xq.call(y5.prototype);y5.prototype.clone=function(){return new y5(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o4(this.headers),url:this.url})};y5.error=function(){var t=new y5(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var E51=[301,302,303,307,308];y5.redirect=function(t,e){if(E51.indexOf(e)===-1)throw new RangeError("Invalid status code");return new y5(null,{status:e,headers:{location:t}})};var f8=b4.DOMException;try{new f8}catch{f8=function(e,n){this.message=e,this.name=n;var a=Error(e);this.stack=a.stack},f8.prototype=Object.create(Error.prototype),f8.prototype.constructor=f8}function Jq(t,e){return new Promise(function(n,a){var r=new I8(t,e);if(r.signal&&r.signal.aborted)return a(new f8("Aborted","AbortError"));var o=new XMLHttpRequest;function l(){o.abort()}o.onload=function(){var h={statusText:o.statusText,headers:k51(o.getAllResponseHeaders()||"")};r.url.indexOf("file://")===0&&(o.status<200||o.status>599)?h.status=200:h.status=o.status,h.url="responseURL"in o?o.responseURL:h.headers.get("X-Request-URL");var u="response"in o?o.response:o.responseText;setTimeout(function(){n(new y5(u,h))},0)},o.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){a(new f8("Aborted","AbortError"))},0)};function c(h){try{return h===""&&b4.location.href?b4.location.href:h}catch{return h}}if(o.open(r.method,c(r.url),!0),r.credentials==="include"?o.withCredentials=!0:r.credentials==="omit"&&(o.withCredentials=!1),"responseType"in o&&(cn.blob?o.responseType="blob":cn.arrayBuffer&&(o.responseType="arraybuffer")),e&&typeof e.headers=="object"&&!(e.headers instanceof o4||b4.Headers&&e.headers instanceof b4.Headers)){var s=[];Object.getOwnPropertyNames(e.headers).forEach(function(h){s.push(Ac(h)),o.setRequestHeader(h,XB(e.headers[h]))}),r.headers.forEach(function(h,u){s.indexOf(u)===-1&&o.setRequestHeader(u,h)})}else r.headers.forEach(function(h,u){o.setRequestHeader(u,h)});r.signal&&(r.signal.addEventListener("abort",l),o.onreadystatechange=function(){o.readyState===4&&r.signal.removeEventListener("abort",l)}),o.send(typeof r._bodyInit>"u"?null:r._bodyInit)})}Jq.polyfill=!0;b4.fetch||(b4.fetch=Jq,b4.Headers=o4,b4.Request=I8,b4.Response=y5);self.fetch.bind(self);var tG={};function kk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function On(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function of(t,e,n){return nG()?of=Reflect.construct:of=function(r,o,l){var c=[null];c.push.apply(c,o);var s=Function.bind.apply(r,c),h=new s;return l&&Lh(h,l.prototype),h},of.apply(null,arguments)}function N51(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function cg(t){var e=typeof Map=="function"?new Map:void 0;return cg=function(a){if(a===null||!N51(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(a))return e.get(a);e.set(a,r)}function r(){return of(a,arguments,bh(this).constructor)}return r.prototype=Object.create(a.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Lh(r,a)},cg(t)}function D51(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function R51(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D51(t)}function aG(t){var e=nG();return function(){var a=bh(t),r;if(e){var o=bh(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return R51(this,r)}}function r5(t){return j51(t)||I51(t)||F51(t)||$51()}function j51(t){if(Array.isArray(t))return RC(t)}function I51(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function F51(t,e){if(t){if(typeof t=="string")return RC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RC(t,e)}}function RC(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},r=!1,o=!1,l=!1;if(typeof a=="number"?(process,r=!0,o=!1):G3(a)==="object"&&a&&(o=a.global||!1,r=a.core||!1,l=a.defaultInstance||!1),o){t.globalMiddlewares.splice(t.globalMiddlewares.length-t.defaultGlobalMiddlewaresLength,0,n);return}if(r){t.coreMiddlewares.splice(t.coreMiddlewares.length-t.defaultCoreMiddlewaresLength,0,n);return}if(l){this.defaultMiddlewares.push(n);return}this.middlewares.push(n)}},{key:"execute",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,a=U51([].concat(r5(this.middlewares),r5(this.defaultMiddlewares),r5(t.globalMiddlewares),r5(t.coreMiddlewares)));return a(n)}}]),t}();ja.globalMiddlewares=[];ja.defaultGlobalMiddlewaresLength=0;ja.coreMiddlewares=[];ja.defaultCoreMiddlewaresLength=0;var W51=function(){function t(e){cs(this,t),this.cache=new Map,this.timer={},this.extendOptions(e)}return t_(t,[{key:"extendOptions",value:function(n){this.maxCache=n.maxCache||0}},{key:"get",value:function(n){return this.cache.get(JSON.stringify(n))}},{key:"set",value:function(n,a){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var l=r5(this.cache.keys())[0];this.cache.delete(l),this.timer[l]&&clearTimeout(this.timer[l])}var c=JSON.stringify(n);this.cache.set(c,a),o>0&&(this.timer[c]=setTimeout(function(){r.cache.delete(c),delete r.timer[c]},o))}},{key:"delete",value:function(n){var a=JSON.stringify(n);return delete this.timer[a],this.cache.delete(a)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),t}(),e_=function(t){eG(n,t);var e=aG(n);function n(a,r){var o,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return cs(this,n),o=e.call(this,a),o.name="RequestError",o.request=r,o.type=l,o}return n}(cg(Error)),Hl=function(t){eG(n,t);var e=aG(n);function n(a,r,o,l){var c,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return cs(this,n),c=e.call(this,r||a.statusText),c.name="ResponseError",c.data=o,c.response=a,c.request=l,c.type=s,c}return n}(cg(Error));function q51(t){return new Promise(function(e,n){var a=new FileReader;a.onload=function(){e(a.result)},a.onerror=n,a.readAsText(t,"GBK")})}function Pk(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(t)}catch{if(e)throw new Hl(n,"JSON.parse fail",t,a,"ParseError")}return t}function G51(t,e,n){return new Promise(function(a,r){setTimeout(function(){r(new e_(e||"timeout of ".concat(t,"ms exceeded"),n,"Timeout"))},t)})}function Nk(t){return new Promise(function(e,n){t.cancelToken&&t.cancelToken.promise.then(function(a){n(a)})})}var K51=Object.prototype.toString;function rG(){var t;return typeof process<"u"&&K51.call(process)==="[object process]"&&(t="NODE"),typeof XMLHttpRequest<"u"&&(t="BROWSER"),t}function jC(t){return G3(t)==="object"&&Object.prototype.toString.call(t)==="[object Array]"}function iG(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function Y51(t){return G3(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Dk(t){return t!==null&&G3(t)==="object"}function Rk(t,e){if(t)if(G3(t)!=="object"&&(t=[t]),jC(t))for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},a=n.prefix,r=n.suffix;return a&&(e="".concat(a).concat(e)),r&&(e="".concat(e).concat(r)),{url:e,options:n}};function Q51(t,e){var n=e.method,a=n===void 0?"get":n;return a.toLowerCase()==="get"}function X51(t,e){if(!t)return e();var n=t.req;n=n===void 0?{}:n;var a=n.options,r=a===void 0?{}:a,o=n.url,l=o===void 0?"":o,c=t.cache,s=t.responseInterceptors,h=r.timeout,u=h===void 0?0:h,v=r.timeoutMessage,d=r.__umiRequestCoreType__,f=d===void 0?"normal":d,M=r.useCache,p=M===void 0?!1:M,H=r.method,m=H===void 0?"get":H,z=r.params,g=r.ttl,w=r.validateCache,V=w===void 0?Q51:w;if(f!=="normal")return process,e();var y=fetch;if(!y)throw new Error("Global fetch not exist!");var x=rG()==="BROWSER",b=V(l,r)&&p&&x;if(b){var L=c.get({url:l,params:z,method:m});if(L)return L=L.clone(),L.useCache=!0,t.res=L,e()}var B;return u>0?B=Promise.race([Nk(r),y(l,r),G51(u,v,t.req)]):B=Promise.race([Nk(r),y(l,r)]),s.forEach(function(S){B=B.then(function(T){var P=typeof T.clone=="function"?T.clone():T;return S(P,r)})}),B.then(function(S){if(b&&S.status===200){var T=S.clone();T.useCache=!0,c.set({url:l,params:z,method:m},T,g)}return t.res=S,e()})}function J51(t,e){var n;return e().then(function(){if(t){var a=t.res,r=a===void 0?{}:a,o=t.req,l=o===void 0?{}:o,c=l||{},s=c.options;s=s===void 0?{}:s;var h=s.responseType,u=h===void 0?"json":h,v=s.charset,d=v===void 0?"utf8":v;s.getResponse;var f=s.throwErrIfParseFail,M=f===void 0?!1:f,p=s.parseResponse,H=p===void 0?!0:p;if(H&&!(!r||!r.clone)){if(n=rG()==="BROWSER"?r.clone():r,n.useCache=r.useCache||!1,d==="gbk")try{return r.blob().then(q51).then(function(m){return Pk(m,!1,n,l)})}catch(m){throw new Hl(n,m.message,null,l,"ParseError")}else if(u==="json")return r.text().then(function(m){return Pk(m,M,n,l)});try{return r[u]()}catch{throw new Hl(n,"responseType not support",null,l,"ParseError")}}}}).then(function(a){if(t){t.res;var r=t.req,o=r===void 0?{}:r,l=o||{},c=l.options;c=c===void 0?{}:c;var s=c.getResponse,h=s===void 0?!1:s;if(n){if(n.status>=200&&n.status<300){if(h){t.res={data:a,response:n};return}t.res=a;return}throw new Hl(n,"http error",a,o,"HttpError")}}}).catch(function(a){if(a instanceof e_||a instanceof Hl)throw a;var r=t.req,o=t.res;throw a.request=a.request||r,a.response=a.response||o,a.type=a.type||a.name,a.data=a.data||void 0,a})}function ti1(t,e){if(!t)return e();var n=t.req;n=n===void 0?{}:n;var a=n.options,r=a===void 0?{}:a,o=r.method,l=o===void 0?"get":o;if(["post","put","patch","delete"].indexOf(l.toLowerCase())===-1)return e();var c=r.requestType,s=c===void 0?"json":c,h=r.data;if(h){var u=Object.prototype.toString.call(h);u==="[object Object]"||u==="[object Array]"?s==="json"?(r.headers=On({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},r.headers),r.body=JSON.stringify(h)):s==="form"&&(r.headers=On({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},r.headers),r.body=IC(h)):(r.headers=On({Accept:"application/json"},r.headers),r.body=h)}return t.req.options=r,e()}function ei1(t,e){var n,a;if(t)if(e)n=e(t);else if(iG(t))n=t.toString();else if(jC(t))a=[],Rk(t,function(o){o===null||typeof o>"u"?a.push(o):a.push(Dk(o)?JSON.stringify(o):o)}),n=IC(a);else{a={},Rk(t,function(o,l){var c=o;o===null||typeof o>"u"?a[l]=o:Y51(o)?c=o.toISOString():jC(o)?c=o:Dk(o)&&(c=JSON.stringify(o)),a[l]=c});var r=IC(a);n=r}return n}function ni1(t,e){if(!t)return e();var n=t.req;n=n===void 0?{}:n;var a=n.options,r=a===void 0?{}:a,o=r.paramsSerializer,l=r.params,c=t.req;c=c===void 0?{}:c;var s=c.url,h=s===void 0?"":s;r.method=r.method?r.method.toUpperCase():"GET",r.credentials=r.credentials||"same-origin";var u=ei1(l,o);if(t.req.originUrl=h,u){var v=h.indexOf("?")!==-1?"&":"?";t.req.url="".concat(h).concat(v).concat(u)}return t.req.options=r,e()}var lG=[ti1,ni1,J51],cG=[X51];ja.globalMiddlewares=lG;ja.defaultGlobalMiddlewaresLength=lG.length;ja.coreMiddlewares=cG;ja.defaultCoreMiddlewaresLength=cG.length;var P7=function(){function t(e){cs(this,t),this.onion=new ja([]),this.fetchIndex=0,this.mapCache=new W51(e),this.initOptions=e,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return t_(t,[{key:"use",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(n,a),this}},{key:"extendOptions",value:function(n){this.initOptions=oG(this.initOptions,n),this.mapCache.extendOptions(n)}},{key:"dealRequestInterceptors",value:function(n){var a=function(l,c){return l.then(function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n.req.url=s.url||n.req.url,n.req.options=s.options||n.req.options,c(n.req.url,n.req.options)})},r=[].concat(r5(t.requestInterceptors),r5(this.instanceRequestInterceptors));return r.reduce(a,Promise.resolve()).then(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n.req.url=o.url||n.req.url,n.req.options=o.options||n.req.options,Promise.resolve()})}},{key:"request",value:function(n,a){var r=this,o=this.onion,l={req:{url:n,options:On(On({},a),{},{url:n})},res:null,cache:this.mapCache,responseInterceptors:[].concat(r5(t.responseInterceptors),r5(this.instanceResponseInterceptors))};if(typeof n!="string")throw new Error("url MUST be a string");return new Promise(function(c,s){r.dealRequestInterceptors(l).then(function(){return o.execute(l)}).then(function(){c(l.res)}).catch(function(h){var u=l.req.options.errorHandler;if(u)try{var v=u(h);c(v)}catch(d){s(d)}else s(h)})})}}],[{key:"requestUse",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof n!="function")throw new TypeError("Interceptor must be function!");a.global?t.requestInterceptors.push(n):this.instanceRequestInterceptors.push(n)}},{key:"responseUse",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof n!="function")throw new TypeError("Interceptor must be function!");a.global?t.responseInterceptors.push(n):this.instanceResponseInterceptors.push(n)}}]),t}();P7.requestInterceptors=[Z51];P7.responseInterceptors=[];function Fp(t){this.message=t}Fp.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"};Fp.prototype.__CANCEL__=!0;function hg(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(r){e=r});var n=this;t(function(r){n.reason||(n.reason=new Fp(r),e(n.reason))})}hg.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};hg.source=function(){var e,n=new hg(function(r){e=r});return{token:n,cancel:e}};function ai1(t){return!!(t&&t.__CANCEL__)}var n_=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=new P7(e),a=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=oG(n.initOptions,c);return n.request(l,s)};a.use=n.use.bind(n),a.fetchIndex=n.fetchIndex,a.interceptors={request:{use:P7.requestUse.bind(n)},response:{use:P7.responseUse.bind(n)}};var r=["get","post","delete","put","patch","head","options","rpc"];return r.forEach(function(o){a[o]=function(l,c){return a(l,On(On({},c),{},{method:o}))}}),a.Cancel=Fp,a.CancelToken=hg,a.isCancel=ai1,a.extendOptions=n.extendOptions.bind(n),a.middlewares={instance:n.onion.middlewares,defaultInstance:n.onion.defaultMiddlewares,global:ja.globalMiddlewares,core:ja.coreMiddlewares},a},ri1=function(e){return n_(e)},ii1=n_({parseResponse:!1}),oi1=n_({});const li1=Object.freeze(Object.defineProperty({__proto__:null,Onion:ja,RequestError:e_,ResponseError:Hl,default:oi1,extend:ri1,fetch:ii1},Symbol.toStringTag,{value:"Module"})),t0=le(li1);var Ee={};Object.defineProperty(Ee,"__esModule",{value:!0});Ee.currentTimezone=void 0;var ci1=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone};Ee.currentTimezone=ci1;var FC=C&&C.__assign||function(){return FC=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]60*60)return;var J=setTimeout(function(){return P()},i1);return function(){clearTimeout(J)}}},[$]);var n1=(0,a.useCallback)(function(){w(null),x(r.defaultConfig.user)},[]),R=(0,a.useCallback)(function(i1){return s.register.bind(null,p)(i1)},[]);return(0,n.jsx)(t.UserContext.Provider,e({value:{tokenExpireDate:$,token:g,user:y,socialAuthorize:q,changePassword:F,login:L,logout:b,forgot:s.forgot.bind(null,p),reset:s.reset.bind(null,p),fetchProfile:B,updateProfile:S,updateAvatar:T,getRefreshedToken:P,emailVerify:s.emailVerify.bind(null,p),register:R,initAccountDelete:Z,confirmAccountDelete:I}},{children:f}))};t.UserContextProvider=u}(Zw)),Zw}var Fk;function ki1(){return Fk||(Fk=1,function(t){var e=C&&C.__assign||function(){return e=Object.assign||function(v){for(var d,f=1,M=arguments.length;f0&&b[b.length-1])&&(T[0]===6||T[0]===2)){V=0;continue}if(T[0]===3&&(!b||T[1]>b[0]&&T[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&f[f.length-1])&&(m[0]===6||m[0]===2)){u=0;continue}if(m[0]===3&&(!f||m[1]>f[0]&&m[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0;if(b.attempted===k6&&t3&&t3[0].id.includes(b.guessTheAnswer)){var R5=(0,t.getCalcCourseProgress)(Number(k1),E5,P5);$o(Number(k1),(R5==null?void 0:R5.map(function(x9){return x9.topic_id===E1?e(e({},x9),{status:x.CourseProgressItemElementStatus.COMPLETE}):x9}))||[{topic_id:E1,status:x.CourseProgressItemElementStatus.COMPLETE}])}if(b.blackList.includes(k6))return null;if(b.completed.includes(k6)&&(!iw&&t3&&!(!((ga=t3[0])===null||ga===void 0)&&ga.id.includes(b.questionSet))||t3&&(!((H9=t3[0])===null||H9===void 0)&&H9.id.includes(b.questionSet))&&D5&&((w9=D5==null?void 0:D5.score)===null||w9===void 0?void 0:w9.max)===((y9=D5==null?void 0:D5.score)===null||y9===void 0?void 0:y9.raw))){var R5=(0,t.getCalcCourseProgress)(Number(k1),E5,P5);$o(Number(k1),(R5==null?void 0:R5.map(function(qo){return qo.topic_id===E1?e(e({},qo),{status:x.CourseProgressItemElementStatus.COMPLETE}):qo}))||[{topic_id:E1,status:x.CourseProgressItemElementStatus.COMPLETE}])}return V1?d.h5pProgress.bind(null,X)(E1,k6,ct,V1):null},[V1,E5,P5]),vv=(0,s.useCallback)(function(k1){return V1?d.topicPing.bind(null,X)(k1,V1).catch(function(E1){return E1}):Promise.reject("noToken")},[V1]),Gr=(0,s.useMemo)(function(){var k1={coursesProcProgress:{},finishedTopics:[]};return E5.value&&E5.value.reduce(function(E1,ct){return E1.coursesProcProgress[typeof ct.course.id=="number"?ct.course.id:0]=ct.progress.reduce(function(It,T2){return It+T2.status},0)/ct.progress.length,E1.finishedTopics=E1.finishedTopics.concat(ct.progress.filter(function(It){return It.status===x.CourseProgressItemElementStatus.COMPLETE}).map(function(It){return It.topic_id})),E1},k1),k1},[E5]),nw=(0,s.useCallback)(function(k1){return!!(Gr&&Gr.finishedTopics.includes(k1))},[Gr]),aw=(0,s.useCallback)(function(k1){return Gr&&Gr.coursesProcProgress[k1]?Gr.coursesProcProgress[k1]:0},[Gr]),rw=(0,s.useCallback)(function(k1,E1){if(E1===void 0&&(E1=!0),Io.value===void 0)return null;var ct=(0,at.getFlatTopics)(Io.value.lessons),It=ct==null?void 0:ct.findIndex(function(T2){return T2.id===k1});if(It===void 0||It===-1)return null;if(E1){if(Array.isArray(ct)&&ct[It+1])return ct[It+1]||null}else if(Array.isArray(ct)&&ct[It-1])return ct[It-1]||null;return null},[Io]),qn=(0,s.useCallback)(function(k1){return V1?w.addVoucher.bind(null,X)(k1,V1).finally(function(){return e0()}):Promise.reject("noToken")},[V1]),Xi=(0,s.useCallback)(function(){return V1?w.removeVoucher.bind(null,X)(V1).finally(function(){return e0()}):Promise.reject("noToken")},[V1]);return(0,c.jsx)(t.EscolaLMSContext.Provider,e({value:{confirmAccountDelete:c0,initAccountDelete:l0,token:V1,apiUrl:X,courses:K2,course:_u,program:Io,fetchCourses:z2,fetchCourse:UH,fetchProgram:ZH,fetchSettings:k4,settings:pH,config:u9,fetchConfig:O6,fetchTags:T4,uniqueTags:se,fetchCategories:S0,categoryTree:x2,login:vt,logout:qH,forgot:yt,reset:Qt,user:Ct,register:H2,fetchCart:e0,addToCart:Ye,removeFromCart:Ht,resetCart:Tt,cart:q2,payWithStripe:GH,fetchProgress:QH,fetchPaginatedProgress:XH,paginatedProgress:zH,fetchCourseProgress:tw,progress:E5,courseProgressDetails:P5,sendProgress:$o,fetchTutors:Q4,tutors:Be,fetchTutor:m9,tutor:xH,fetchOrders:ew,orders:Du,fetchPayments:z9,payments:HH,pages:Me,fetchPages:C0,page:Pe,fetchPage:O4,fetchProfile:Rt,updateProfile:xt,updateAvatar:At,topicPing:vv,topicIsFinished:nw,courseProgress:aw,getNextPrevTopic:rw,h5pProgress:M9,userGroups:fH,fetchUserGroups:$H,userGroup:Vu,fetchUserGroup:IH,registerableGroups:Lu,fetchRegisterableGroups:FH,socialAuthorize:Z1,notifications:qM,fetchNotifications:GM,readNotify:lu,readAllNotifications:KM,certificates:ju,fetchCertificates:PH,fetchCertificate:p9,generateCertificate:Zi,mattermostChannels:yH,fetchMattermostChannels:DH,h5p:Un,fetchH5P:tn,emailVerify:Xt,getRefreshedToken:Vt,tokenExpireDate:f2,fetchConsultations:s2,consultations:p2,consultation:Mu,fetchConsultation:Qi,fields:CH,fetchFields:A6,stationaryEvents:LH,fetchStationaryEvents:rv,fetchStationaryEvent:iv,fetchUserConsultations:hv,userConsultations:sH,bookConsultationTerm:sv,fetchWebinars:X4,fetchWebinar:J4,webinars:h0,payWithP24:KH,getProductInfo:jH,fetchTutorConsultations:g9,approveConsultationTerm:kH,generateConsultationJitsy:cv,rejectConsultationTerm:lv,tutorConsultations:vH,fetchEvents:uv,events:dH,changePassword:bt,stationaryEvent:Yu,webinar:va,userWebinars:N5,fetchUserWebinars:AH,generateWebinarJitsy:EH,realizeVoucher:qn,removeVoucher:Xi,products:Yi,product:TH,fetchQuestionnaires:YM,fetchQuestionnaire:ZM,fetchQuestionnairesAnswers:QM,fetchQuestionnaireStars:XM,fetchQuestionnaireStarsByModel:tH,sendQuestionnaireAnswer:JM,fetchUserStationaryEvents:ov,userStationaryEvents:Xu,fetchOrderInvoice:YH,addMissingProducts:zt,getImagePrefix:$1,getImageSvgPrefix:Y1,changeConsultationTerm:RH,fetchProducts:nv,fetchProduct:av,courseAccess:L0,fetchCourseAccess:qr,addCourseAccess:Ro,deleteCourseAccess:jo,myCourses:Wn,fetchMyCourses:DM,fetchMyAuthoredCourses:JH,myAuthoredCourses:Eu,challenges:o9,fetchChallenges:RM,challenge:l9,fetchChallenge:ru,consultationAccessEnquiry:IM,fetchConsultationAccessEnquiry:jM,consultationAccess:ou,fetchConsultationAccess:FM,addConsultationAccess:$M,deleteConsultationAccess:UM,updateConsultationAccess:WM,tasks:en,fetchTasks:A4,addTask:_e,deleteTask:Fi,task:ir,fetchTask:$r,updateTask:Ur,updateTaskStatus:O5,createTaskNote:A5,updateTaskNote:$i,deleteTaskNote:Ui,bookmarkNotes:Do,createBookmarkNote:Wr,updateBookmarkNote:Dt,deleteBookmarkNote:c2,fetchBookmarkNotes:O0,fetchSubjects:eH,subjects:hu,fetchSchedule:nH,schedule:aH,fetchScheduleTutors:vu,scheduleTutors:rH,fetchAttendances:iH,attendances:oH,fetchExams:lH,exams:gu,createTeamsChat:NH,fetchSemesters:c9,semesters:pu,fetchAcademicYears:cH,academicYears:mu}},{children:L1}))},_1=function(H1){var L1=H1.children,X=o(H1,["children"]),f1={defaults:X.defaults,apiUrl:X.apiUrl,ssrHydration:X.ssrHydration},t1=[i1.UserContextProvider,S.CoursesContextProvider,T.CategoriesContextProvider,P.TagsContextProvider,F.TutorsContextProvider,q.WebinarsContextProvider,$.WebinarContextProvider,Z.H5pContextProvider,R.ConsultationsContextProvider,I.PagesContextProvider,n1.PageContextProvider,u1.ConsultationAccessContextProvider,h.ConsultationAccessEnquiryContextProvider,e1.NotificationsContextProvider,c1.CourseAccessContextProvider,J.TasksContextProvider,A.TaskContextProvider,C1.BookmarkNotesContextProvider,h1.CartContextProvider,m1.QuestionnairesContextProvider,w1.SubjectsContextProvider,S1.ScheduleContextProvider,R1.ScheduleTutorsContextProvider,q1.AttendancesContextProvider,D1.ExamsContextProvider,rt.StudentDetailsContextProvider,Q1.ChallengesContextProvider].reverse(),W=t1.reduce(function(r1,E,U){return s.default.createElement(E,f1,r1)},s.default.createElement(F1,X,L1));return W};t.EscolaLMSContextProvider=_1}(Pw)),Pw}var Ms=w0();const Q81="modulepreload",X81=function(t){return"/"+t},pE={},a0=function(e,n,a){let r=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");r=Promise.all(n.map(l=>{if(l=X81(l),l in pE)return;pE[l]=!0;const c=l.endsWith(".css"),s=c?'[rel="stylesheet"]':"";if(!!a)for(let v=o.length-1;v>=0;v--){const d=o[v];if(d.href===l&&(!c||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${s}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":Q81,c||(u.as="script",u.crossOrigin=""),u.href=l,document.head.appendChild(u),c)return new Promise((v,d)=>{u.addEventListener("load",v),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>e()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})};function mg(t,e){return mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,r){return a.__proto__=r,a},mg(t,e)}function pn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mg(t,e)}var BG={exports:{}},J81="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",t61=J81,e61=t61;function _G(){}function SG(){}SG.resetWarningCache=_G;var n61=function(){function t(a,r,o,l,c,s){if(s!==e61){var h=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 h.name="Invariant Violation",h}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:SG,resetWarningCache:_G};return n.PropTypes=n,n};BG.exports=n61();var ki=BG.exports;const st=ne(ki);function Zt(){return Zt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0;u--){var v=a[u];v==="."?xy(a,u):v===".."?(xy(a,u),h++):h&&(xy(a,u),h--)}if(!l)for(;h--;h)a.unshift("..");l&&a[0]!==""&&(!a[0]||!Ev(a[0]))&&a.unshift("");var d=a.join("/");return c&&d.substr(-1)!=="/"&&(d+="/"),d}function mE(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}function lf(t,e){if(t===e)return!0;if(t==null||e==null)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(r,o){return lf(r,e[o])});if(typeof t=="object"||typeof e=="object"){var n=mE(t),a=mE(e);return n!==t||a!==e?lf(n,a):Object.keys(Object.assign({},t,e)).every(function(r){return lf(t[r],e[r])})}return!1}var r61="Invariant failed";function Co(t,e){if(!t)throw new Error(r61)}function N7(t){return t.charAt(0)==="/"?t:"/"+t}function zE(t){return t.charAt(0)==="/"?t.substr(1):t}function i61(t,e){return t.toLowerCase().indexOf(e.toLowerCase())===0&&"/?#".indexOf(t.charAt(e.length))!==-1}function TG(t,e){return i61(t,e)?t.substr(e.length):t}function OG(t){return t.charAt(t.length-1)==="/"?t.slice(0,-1):t}function o61(t){var e=t||"/",n="",a="",r=e.indexOf("#");r!==-1&&(a=e.substr(r),e=e.substr(0,r));var o=e.indexOf("?");return o!==-1&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:n==="?"?"":n,hash:a==="#"?"":a}}function Sn(t){var e=t.pathname,n=t.search,a=t.hash,r=e||"/";return n&&n!=="?"&&(r+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(r+=a.charAt(0)==="#"?a:"#"+a),r}function vn(t,e,n,a){var r;typeof t=="string"?(r=o61(t),r.state=e):(r=Zt({},t),r.pathname===void 0&&(r.pathname=""),r.search?r.search.charAt(0)!=="?"&&(r.search="?"+r.search):r.search="",r.hash?r.hash.charAt(0)!=="#"&&(r.hash="#"+r.hash):r.hash="",e!==void 0&&r.state===void 0&&(r.state=e));try{r.pathname=decodeURI(r.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(r.key=n),a?r.pathname?r.pathname.charAt(0)!=="/"&&(r.pathname=a61(r.pathname,a.pathname)):r.pathname=a.pathname:r.pathname||(r.pathname="/"),r}function l61(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&lf(t.state,e.state)}function g_(){var t=null;function e(l){return t=l,function(){t===l&&(t=null)}}function n(l,c,s,h){if(t!=null){var u=typeof t=="function"?t(l,c):t;typeof u=="string"?typeof s=="function"?s(u,h):h(!0):h(u!==!1)}else h(!0)}var a=[];function r(l){var c=!0;function s(){c&&l.apply(void 0,arguments)}return a.push(s),function(){c=!1,a=a.filter(function(h){return h!==s})}}function o(){for(var l=arguments.length,c=new Array(l),s=0;sF?q.splice(F,q.length-F,S):q.push(S),u({action:B,location:S,index:F,entries:q})}})}function H(b,L){var B="REPLACE",S=vn(b,L,v(),x.location);h.confirmTransitionTo(S,B,n,function(T){T&&(x.entries[x.index]=S,u({action:B,location:S}))})}function m(b){var L=xE(x.index+b,0,x.entries.length-1),B="POP",S=x.entries[L];h.confirmTransitionTo(S,B,n,function(T){T?u({action:B,location:S,index:L}):u()})}function z(){m(-1)}function g(){m(1)}function w(b){var L=x.index+b;return L>=0&&L=0)&&(n[r]=t[r]);return n}var x_=y_,O61={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},A61={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},k61={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},FG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},V_={};V_[x_.ForwardRef]=k61;V_[x_.Memo]=FG;function VE(t){return x_.isMemo(t)?FG:V_[t.$$typeof]||O61}var E61=Object.defineProperty,P61=Object.getOwnPropertyNames,CE=Object.getOwnPropertySymbols,N61=Object.getOwnPropertyDescriptor,D61=Object.getPrototypeOf,bE=Object.prototype;function $G(t,e,n){if(typeof e!="string"){if(bE){var a=D61(e);a&&a!==bE&&$G(t,a,n)}var r=P61(e);CE&&(r=r.concat(CE(e)));for(var o=VE(t),l=VE(e),c=0;c"u"&&(rc=__);function rl1(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var il1=rc(function(t,e){var n=t.innerRef,a=t.navigate,r=t.onClick,o=ki(t,["innerRef","navigate","onClick"]),l=o.target,c=Zt({},o,{onClick:function(h){try{r&&r(h)}catch(u){throw h.preventDefault(),u}!h.defaultPrevented&&h.button===0&&(!l||l==="_self")&&!rl1(h)&&(h.preventDefault(),a())}});return __!==rc?c.ref=e||n:c.ref=n,W1.createElement("a",c)}),af=rc(function(t,e){var n=t.component,a=n===void 0?il1:n,r=t.replace,o=t.to,l=t.innerRef,c=ki(t,["component","replace","to","innerRef"]);return W1.createElement(Hi.Consumer,null,function(s){s||wo(!1);var h=s.history,u=tb(JC(o,s.location),s.location),v=u?h.createHref(u):"",d=Zt({},c,{href:v,navigate:function(){var M=JC(o,s.location),p=Sn(s.location)===Sn(tb(M)),H=r||p?h.replace:h.push;H(M)}});return __!==rc?d.ref=e||l:d.innerRef=l,W1.createElement(a,d)})}),GG=function(e){return e},fg=W1.forwardRef;typeof fg>"u"&&(fg=GG);function ol1(){for(var t=arguments.length,e=new Array(t),n=0;n{const{login:n}=_2,{user:a}=_.useContext(xs.EscolaLMSContext),r=e.location&&e.location.pathname||e.path;return Z.jsx(Mr,{...e,render:o=>a.value&&a.value.id?Z.jsx(t,{...o}):Z.jsx(C_,{to:{pathname:n,search:`?referrer=${r}`,state:{referrer:r}}})})},pa=({component:t,...e})=>{var c,s;const{login:n}=_2,{user:a,fetchConfig:r,config:o}=_.useContext(xs.EscolaLMSContext);W1.useEffect(()=>{r()},[r]);const l=((s=(c=o==null?void 0:o.value)==null?void 0:c.escolalms_courses)==null?void 0:s.platform_visibility)==="public"||!1;return Z.jsx(Mr,{...e,render:h=>l||a.value&&a.value.id?Z.jsx(t,{...h}):Z.jsx(C_,{to:{pathname:n}})})},ll1=({component:t,...e})=>{var s,h,u,v;const{login:n}=_2,{user:a,fetchConfig:r,config:o}=_.useContext(xs.EscolaLMSContext);W1.useEffect(()=>{r()},[r]);const l=((h=(s=o==null?void 0:o.value)==null?void 0:s.escolalms_courses)==null?void 0:h.platform_visibility)==="public"||!1,c=((v=(u=o==null?void 0:o.value)==null?void 0:u.escolalms_courses)==null?void 0:v.course_visibility)==="show_all"||!1;return Z.jsx(Mr,{...e,render:d=>l&&!(a.value&&a.value.id)||a.value&&a.value.id&&c?Z.jsx(t,{...d}):Z.jsx(C_,{to:{pathname:n}})})},cl1=()=>"HashRouter";function hl1(){const{pathname:t}=qG();return _.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[t]),null}var sl1=function(e,n,a,r){var o=a?a.call(r,e,n):void 0;if(o!==void 0)return!!o;if(e===n)return!0;if(typeof e!="object"||!e||typeof n!="object"||!n)return!1;var l=Object.keys(e),c=Object.keys(n);if(l.length!==c.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(n),h=0;hS1)&&(tt=(_1=_1.replace(" ",":")).length),0u1&&(u1=(A=A.trim()).charCodeAt(0)),u1){case 38:return A.replace(m,"$1"+J.trim());case 58:return J.trim()+A.replace(m,"$1"+J.trim());default:if(0<1*c1&&0h1.charCodeAt(8))break;case 115:e1=e1.replace(h1,"-webkit-"+h1)+";"+e1;break;case 207:case 102:e1=e1.replace(h1,"-webkit-"+(102c1.charCodeAt(0)&&(c1=c1.trim()),i1=c1,c1=[i1],01?e-1:0),a=1;a0?" Args: "+n.join(", "):""))}var Ml1=function(){function t(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var e=t.prototype;return e.indexOfGroup=function(n){for(var a=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,l=o;n>=l;)(l<<=1)<0&&Lr(16,""+n);this.groupSizes=new Uint32Array(l),this.groupSizes.set(r),this.length=l;for(var c=o;c=this.length||this.groupSizes[n]===0)return a;for(var r=this.groupSizes[n],o=this.indexOfGroup(n),l=o+r,c=o;c=F7&&(F7=e+1),rf.set(t,e),pg.set(e,t)},yl1="style["+no+'][data-styled-version="5.3.11"]',xl1=new RegExp("^"+no+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Vl1=function(t,e,n){for(var a,r=n.split(","),o=0,l=r.length;o=0;h--){var u=s[h];if(u&&u.nodeType===1&&u.hasAttribute(no))return u}}(n),o=r!==void 0?r.nextSibling:null;a.setAttribute(no,"active"),a.setAttribute("data-styled-version","5.3.11");var l=ab();return l&&a.setAttribute("nonce",l),n.insertBefore(a,o),a},bl1=function(){function t(n){var a=this.element=KG(n);a.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,l=0,c=o.length;l=0){var r=document.createTextNode(a),o=this.nodes[n];return this.element.insertBefore(r,o||null),this.length++,!0}return!1},e.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},e.getRule=function(n){return n0&&(v+=d+",")}),o+=""+h+u+'{content:"'+v+`"}/*!sc*/ -`}}}return o}(this)},t}(),Sl1=/(a)(d)/gi,NE=function(t){return String.fromCharCode(t+(t>25?39:97))};function rb(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=NE(e%52)+n;return(NE(e%52)+n).replace(Sl1,"$1-$2")}var Hl=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},YG=function(t){return Hl(5381,t)};function ZG(t){for(var e=0;e>>0);if(!n.hasNameForId(r,c)){var s=a(l,"."+c,void 0,r);n.insertRules(r,c,s)}o.push(c),this.staticRulesId=c}else{for(var h=this.rules.length,u=Hl(this.baseHash,a.hash),v="",d=0;d>>0);if(!n.hasNameForId(r,H)){var m=a(v,"."+H,void 0,r);n.insertRules(r,H,m)}o.push(H)}}return o.join(" ")},t}(),Al1=/^\s*\/\/.*$/gm,kl1=[":","[",".","#"];function QG(t){var e,n,a,r,o=t===void 0?G3:t,l=o.options,c=l===void 0?G3:l,s=o.plugins,h=s===void 0?gg:s,u=new vl1(c),v=[],d=function(p){function H(m){if(m)try{p(m+"}")}catch{}}return function(m,z,g,w,V,y,x,b,L,B){switch(m){case 1:if(L===0&&z.charCodeAt(0)===64)return p(z+";"),"";break;case 2:if(b===0)return z+"/*|*/";break;case 3:switch(b){case 102:case 112:return p(g[0]+z),"";default:return z+(B===0?"/*|*/":"")}case-2:z.split("/*|*/}").forEach(H)}}}(function(p){v.push(p)}),f=function(p,H,m){return H===0&&kl1.indexOf(m[n.length])!==-1||m.match(r)?p:"."+e};function M(p,H,m,z){z===void 0&&(z="&");var g=p.replace(Al1,""),w=H&&m?m+" "+H+" { "+g+" }":g;return e=z,n=H,a=new RegExp("\\"+n+"\\b","g"),r=new RegExp("(\\"+n+"\\b){2,}"),u(m||!H?"":H,w)}return u.use([].concat(h,[function(p,H,m){p===2&&m.length&&m[0].lastIndexOf(n)>0&&(m[0]=m[0].replace(a,f))},d,function(p){if(p===-2){var H=v;return v=[],H}}])),M.hash=h.length?h.reduce(function(p,H){return H.name||Lr(15),Hl(p,H.name)},5381).toString():"",M}var Hm=W1.createContext(),El1=Hm.Consumer,T_=W1.createContext(),XG=(T_.Consumer,new oc),ib=QG();function O_(){return _.useContext(Hm)||XG}function JG(){return _.useContext(T_)||ib}function tK(t){var e=_.useState(t.stylisPlugins),n=e[0],a=e[1],r=O_(),o=_.useMemo(function(){var c=r;return t.sheet?c=t.sheet:t.target&&(c=c.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(c=c.reconstructWithOptions({useCSSOMInjection:!1})),c},[t.disableCSSOMInjection,t.sheet,t.target]),l=_.useMemo(function(){return QG({options:{prefix:!t.disableVendorPrefixes},plugins:n})},[t.disableVendorPrefixes,n]);return _.useEffect(function(){ul1(n,t.stylisPlugins)||a(t.stylisPlugins)},[t.stylisPlugins]),W1.createElement(Hm.Provider,{value:o},W1.createElement(T_.Provider,{value:l},t.children))}var eK=function(){function t(e,n){var a=this;this.inject=function(r,o){o===void 0&&(o=ib);var l=a.name+o.hash;r.hasNameForId(a.id,l)||r.insertRules(a.id,l,o(a.rules,l,"@keyframes"))},this.toString=function(){return Lr(12,String(a.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return t.prototype.getName=function(e){return e===void 0&&(e=ib),this.name+e.hash},t}(),Pl1=/([A-Z])/,Nl1=/([A-Z])/g,Dl1=/^ms-/,Rl1=function(t){return"-"+t.toLowerCase()};function DE(t){return Pl1.test(t)?t.replace(Nl1,Rl1).replace(Dl1,"-ms-"):t}var RE=function(t){return t==null||t===!1||t===""};function W8(t,e,n,a){if(Array.isArray(t)){for(var r,o=[],l=0,c=t.length;l1?e-1:0),a=1;a?@[\\\]^`{|}~-]+/g,Il1=/(^-|-$)/g;function By(t){return t.replace(jl1,"-").replace(Il1,"")}var k_=function(t){return rb(YG(t)>>>0)};function Ov(t){return typeof t=="string"&&!0}var ob=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},Fl1=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function $l1(t,e,n){var a=t[n];ob(e)&&ob(a)?nK(a,e):t[n]=e}function nK(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a=0||(B[b]=y[b]);return B}(e,["componentId"]),V=g&&g+"-"+(Ov(z)?z:By(nb(z)));return aK(z,ea({},w,{attrs:d,componentId:V}),n)},Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(z){this._foldedDefaultProps=a?nK({},t.defaultProps,z):z}}),Object.defineProperty(M,"toString",{value:function(){return"."+M.styledComponentId}}),r&&Vs(M,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),M}var Ia=function(t){return function e(n,a,r){if(r===void 0&&(r=G3),!y_.isValidElementType(a))return Lr(1,String(a));var o=function(){return n(a,r,wm.apply(void 0,arguments))};return o.withConfig=function(l){return e(n,a,ea({},r,{},l))},o.attrs=function(l){return e(n,a,ea({},r,{attrs:Array.prototype.concat(r.attrs,l).filter(Boolean)}))},o}(aK,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){Ia[t]=Ia(t)});var ql1=function(){function t(n,a){this.rules=n,this.componentId=a,this.isStatic=ZG(n),oc.registerId(this.componentId+1)}var e=t.prototype;return e.createStyles=function(n,a,r,o){var l=o(W8(this.rules,a,r,o).join(""),""),c=this.componentId+n;r.insertRules(c,c,l)},e.removeStyles=function(n,a){a.clearRules(this.componentId+n)},e.renderStyles=function(n,a,r,o){n>2&&oc.registerId(this.componentId+n),this.removeStyles(n,r),this.createStyles(n,a,r,o)},t}();function rK(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a1?e-1:0),a=1;a"+a+""},this.getStyleTags=function(){return n.sealed?Lr(2):n._emitSheetCSS()},this.getStyleElement=function(){var a;if(n.sealed)return Lr(2);var r=((a={})[no]="",a["data-styled-version"]="5.3.11",a.dangerouslySetInnerHTML={__html:n.instance.toString()},a),o=ab();return o&&(r.nonce=o),[W1.createElement("style",ea({},r,{key:"sc-0-0"}))]},this.seal=function(){n.sealed=!0},this.instance=new oc({isServer:!0}),this.sealed=!1}var e=t.prototype;return e.collectStyles=function(n){return this.sealed?Lr(2):W1.createElement(tK,{sheet:this.instance},n)},e.interleaveWithNodeStream=function(n){return Lr(3)},t}(),Yl1=function(t){var e=W1.forwardRef(function(n,a){var r=_.useContext(ao),o=t.defaultProps,l=A_(n,r,o);return W1.createElement(t,ea({},n,{theme:l,ref:a}))});return Vs(e,t),e.displayName="WithTheme("+nb(t)+")",e},iK=function(){return _.useContext(ao)},Zl1={StyleSheet:oc,masterSheet:XG};const Ql1=Object.freeze(Object.defineProperty({__proto__:null,ServerStyleSheet:Kl1,StyleSheetConsumer:El1,StyleSheetContext:Hm,StyleSheetManager:tK,ThemeConsumer:Ul1,ThemeContext:ao,ThemeProvider:Wl1,__PRIVATE__:Zl1,createGlobalStyle:rK,css:wm,default:Ia,isStyledComponent:Mm,keyframes:Gl1,useTheme:iK,version:pl1,withTheme:Yl1},Symbol.toStringTag,{value:"Module"}));function Xl1(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var oK=_,Jl1=Xl1(oK);function IE(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tc1(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var ec1=!!(typeof window<"u"&&window.document&&window.document.createElement);function nc1(t,e,n){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function a(r){return r.displayName||r.name||"Component"}return function(o){if(typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var l=[],c;function s(){c=t(l.map(function(u){return u.props})),h.canUseDOM?e(c):n&&(c=n(c))}var h=function(u){tc1(v,u);function v(){return u.apply(this,arguments)||this}v.peek=function(){return c},v.rewind=function(){if(v.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var M=c;return c=void 0,l=[],M};var d=v.prototype;return d.UNSAFE_componentWillMount=function(){l.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var M=l.indexOf(this);l.splice(M,1),s()},d.render=function(){return Jl1.createElement(o,this.props)},v}(oK.PureComponent);return IE(h,"displayName","SideEffect("+a(o)+")"),IE(h,"canUseDOM",ec1),h}}var ac1=nc1;const rc1=ne(ac1);var ic1=typeof Element<"u",oc1=typeof Map=="function",lc1=typeof Set=="function",cc1=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function of(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,a,r;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(a=n;a--!==0;)if(!of(t[a],e[a]))return!1;return!0}var o;if(oc1&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(a=o.next()).done;)if(!e.has(a.value[0]))return!1;for(o=t.entries();!(a=o.next()).done;)if(!of(a.value[1],e.get(a.value[0])))return!1;return!0}if(lc1&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(a=o.next()).done;)if(!e.has(a.value[0]))return!1;return!0}if(cc1&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(a=n;a--!==0;)if(t[a]!==e[a])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[a]))return!1;if(ic1&&t instanceof Element)return!1;for(a=n;a--!==0;)if(!((r[a]==="_owner"||r[a]==="__v"||r[a]==="__o")&&t.$$typeof)&&!of(t[r[a]],e[r[a]]))return!1;return!0}return t!==t&&e!==e}var hc1=function(e,n){try{return of(e,n)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}};const sc1=ne(hc1);/* + */var H4=typeof Symbol=="function"&&Symbol.for,M_=H4?Symbol.for("react.element"):60103,H_=H4?Symbol.for("react.portal"):60106,dm=H4?Symbol.for("react.fragment"):60107,fm=H4?Symbol.for("react.strict_mode"):60108,gm=H4?Symbol.for("react.profiler"):60114,pm=H4?Symbol.for("react.provider"):60109,mm=H4?Symbol.for("react.context"):60110,w_=H4?Symbol.for("react.async_mode"):60111,zm=H4?Symbol.for("react.concurrent_mode"):60111,Mm=H4?Symbol.for("react.forward_ref"):60112,Hm=H4?Symbol.for("react.suspense"):60113,L61=H4?Symbol.for("react.suspense_list"):60120,wm=H4?Symbol.for("react.memo"):60115,ym=H4?Symbol.for("react.lazy"):60116,B61=H4?Symbol.for("react.block"):60121,_61=H4?Symbol.for("react.fundamental"):60117,S61=H4?Symbol.for("react.responder"):60118,T61=H4?Symbol.for("react.scope"):60119;function ha(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case M_:switch(t=t.type,t){case w_:case zm:case dm:case gm:case fm:case Hm:return t;default:switch(t=t&&t.$$typeof,t){case mm:case Mm:case ym:case wm:case pm:return t;default:return e}}case H_:return e}}}function IG(t){return ha(t)===zm}y0.AsyncMode=w_;y0.ConcurrentMode=zm;y0.ContextConsumer=mm;y0.ContextProvider=pm;y0.Element=M_;y0.ForwardRef=Mm;y0.Fragment=dm;y0.Lazy=ym;y0.Memo=wm;y0.Portal=H_;y0.Profiler=gm;y0.StrictMode=fm;y0.Suspense=Hm;y0.isAsyncMode=function(t){return IG(t)||ha(t)===w_};y0.isConcurrentMode=IG;y0.isContextConsumer=function(t){return ha(t)===mm};y0.isContextProvider=function(t){return ha(t)===pm};y0.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===M_};y0.isForwardRef=function(t){return ha(t)===Mm};y0.isFragment=function(t){return ha(t)===dm};y0.isLazy=function(t){return ha(t)===ym};y0.isMemo=function(t){return ha(t)===wm};y0.isPortal=function(t){return ha(t)===H_};y0.isProfiler=function(t){return ha(t)===gm};y0.isStrictMode=function(t){return ha(t)===fm};y0.isSuspense=function(t){return ha(t)===Hm};y0.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===dm||t===zm||t===gm||t===fm||t===Hm||t===L61||typeof t=="object"&&t!==null&&(t.$$typeof===ym||t.$$typeof===wm||t.$$typeof===pm||t.$$typeof===mm||t.$$typeof===Mm||t.$$typeof===_61||t.$$typeof===S61||t.$$typeof===T61||t.$$typeof===B61)};y0.typeOf=ha;jG.exports=y0;var y_=jG.exports;function Ei(t,e){if(t==null)return{};var n={},a=Object.keys(t),r,o;for(o=0;o=0)&&(n[r]=t[r]);return n}var x_=y_,O61={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},A61={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},k61={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},FG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},V_={};V_[x_.ForwardRef]=k61;V_[x_.Memo]=FG;function VE(t){return x_.isMemo(t)?FG:V_[t.$$typeof]||O61}var E61=Object.defineProperty,P61=Object.getOwnPropertyNames,CE=Object.getOwnPropertySymbols,N61=Object.getOwnPropertyDescriptor,D61=Object.getPrototypeOf,bE=Object.prototype;function $G(t,e,n){if(typeof e!="string"){if(bE){var a=D61(e);a&&a!==bE&&$G(t,a,n)}var r=P61(e);CE&&(r=r.concat(CE(e)));for(var o=VE(t),l=VE(e),c=0;c"u"&&(ic=__);function rl1(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var il1=ic(function(t,e){var n=t.innerRef,a=t.navigate,r=t.onClick,o=Ei(t,["innerRef","navigate","onClick"]),l=o.target,c=Zt({},o,{onClick:function(h){try{r&&r(h)}catch(u){throw h.preventDefault(),u}!h.defaultPrevented&&h.button===0&&(!l||l==="_self")&&!rl1(h)&&(h.preventDefault(),a())}});return __!==ic?c.ref=e||n:c.ref=n,W1.createElement("a",c)}),hf=ic(function(t,e){var n=t.component,a=n===void 0?il1:n,r=t.replace,o=t.to,l=t.innerRef,c=Ei(t,["component","replace","to","innerRef"]);return W1.createElement(wi.Consumer,null,function(s){s||Co(!1);var h=s.history,u=tb(JC(o,s.location),s.location),v=u?h.createHref(u):"",d=Zt({},c,{href:v,navigate:function(){var M=JC(o,s.location),p=Sn(s.location)===Sn(tb(M)),H=r||p?h.replace:h.push;H(M)}});return __!==ic?d.ref=e||l:d.innerRef=l,W1.createElement(a,d)})}),GG=function(e){return e},Mg=W1.forwardRef;typeof Mg>"u"&&(Mg=GG);function ol1(){for(var t=arguments.length,e=new Array(t),n=0;n{const{login:n}=B2,{user:a}=_.useContext(Ms.EscolaLMSContext),r=e.location&&e.location.pathname||e.path;return Y.jsx(zr,{...e,render:o=>a.value&&a.value.id?Y.jsx(t,{...o}):Y.jsx(C_,{to:{pathname:n,search:`?referrer=${r}`,state:{referrer:r}}})})},pa=({component:t,...e})=>{var c,s;const{login:n}=B2,{user:a,fetchConfig:r,config:o}=_.useContext(Ms.EscolaLMSContext);W1.useEffect(()=>{r()},[r]);const l=((s=(c=o==null?void 0:o.value)==null?void 0:c.escolalms_courses)==null?void 0:s.platform_visibility)==="public"||!1;return Y.jsx(zr,{...e,render:h=>l||a.value&&a.value.id?Y.jsx(t,{...h}):Y.jsx(C_,{to:{pathname:n}})})},ll1=({component:t,...e})=>{var s,h,u,v;const{login:n}=B2,{user:a,fetchConfig:r,config:o}=_.useContext(Ms.EscolaLMSContext);W1.useEffect(()=>{r()},[r]);const l=((h=(s=o==null?void 0:o.value)==null?void 0:s.escolalms_courses)==null?void 0:h.platform_visibility)==="public"||!1,c=((v=(u=o==null?void 0:o.value)==null?void 0:u.escolalms_courses)==null?void 0:v.course_visibility)==="show_all"||!1;return Y.jsx(zr,{...e,render:d=>l&&!(a.value&&a.value.id)||a.value&&a.value.id&&c?Y.jsx(t,{...d}):Y.jsx(C_,{to:{pathname:n}})})},cl1=()=>"HashRouter";function hl1(){const{pathname:t}=qG();return _.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[t]),null}var sl1=function(e,n,a,r){var o=a?a.call(r,e,n):void 0;if(o!==void 0)return!!o;if(e===n)return!0;if(typeof e!="object"||!e||typeof n!="object"||!n)return!1;var l=Object.keys(e),c=Object.keys(n);if(l.length!==c.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(n),h=0;hS1)&&(tt=(_1=_1.replace(" ",":")).length),0u1&&(u1=(A=A.trim()).charCodeAt(0)),u1){case 38:return A.replace(m,"$1"+J.trim());case 58:return J.trim()+A.replace(m,"$1"+J.trim());default:if(0<1*c1&&0h1.charCodeAt(8))break;case 115:e1=e1.replace(h1,"-webkit-"+h1)+";"+e1;break;case 207:case 102:e1=e1.replace(h1,"-webkit-"+(102c1.charCodeAt(0)&&(c1=c1.trim()),i1=c1,c1=[i1],01?e-1:0),a=1;a0?" Args: "+n.join(", "):""))}var Ml1=function(){function t(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var e=t.prototype;return e.indexOfGroup=function(n){for(var a=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,l=o;n>=l;)(l<<=1)<0&&br(16,""+n);this.groupSizes=new Uint32Array(l),this.groupSizes.set(r),this.length=l;for(var c=o;c=this.length||this.groupSizes[n]===0)return a;for(var r=this.groupSizes[n],o=this.indexOfGroup(n),l=o+r,c=o;c=D7&&(D7=e+1),sf.set(t,e),wg.set(e,t)},yl1="style["+oo+'][data-styled-version="5.3.11"]',xl1=new RegExp("^"+oo+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Vl1=function(t,e,n){for(var a,r=n.split(","),o=0,l=r.length;o=0;h--){var u=s[h];if(u&&u.nodeType===1&&u.hasAttribute(oo))return u}}(n),o=r!==void 0?r.nextSibling:null;a.setAttribute(oo,"active"),a.setAttribute("data-styled-version","5.3.11");var l=ab();return l&&a.setAttribute("nonce",l),n.insertBefore(a,o),a},bl1=function(){function t(n){var a=this.element=KG(n);a.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,l=0,c=o.length;l=0){var r=document.createTextNode(a),o=this.nodes[n];return this.element.insertBefore(r,o||null),this.length++,!0}return!1},e.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},e.getRule=function(n){return n0&&(v+=d+",")}),o+=""+h+u+'{content:"'+v+`"}/*!sc*/ +`}}}return o}(this)},t}(),Sl1=/(a)(d)/gi,NE=function(t){return String.fromCharCode(t+(t>25?39:97))};function rb(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=NE(e%52)+n;return(NE(e%52)+n).replace(Sl1,"$1-$2")}var wl=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},YG=function(t){return wl(5381,t)};function ZG(t){for(var e=0;e>>0);if(!n.hasNameForId(r,c)){var s=a(l,"."+c,void 0,r);n.insertRules(r,c,s)}o.push(c),this.staticRulesId=c}else{for(var h=this.rules.length,u=wl(this.baseHash,a.hash),v="",d=0;d>>0);if(!n.hasNameForId(r,H)){var m=a(v,"."+H,void 0,r);n.insertRules(r,H,m)}o.push(H)}}return o.join(" ")},t}(),Al1=/^\s*\/\/.*$/gm,kl1=[":","[",".","#"];function QG(t){var e,n,a,r,o=t===void 0?Q3:t,l=o.options,c=l===void 0?Q3:l,s=o.plugins,h=s===void 0?Hg:s,u=new vl1(c),v=[],d=function(p){function H(m){if(m)try{p(m+"}")}catch{}}return function(m,z,g,w,V,y,x,b,L,B){switch(m){case 1:if(L===0&&z.charCodeAt(0)===64)return p(z+";"),"";break;case 2:if(b===0)return z+"/*|*/";break;case 3:switch(b){case 102:case 112:return p(g[0]+z),"";default:return z+(B===0?"/*|*/":"")}case-2:z.split("/*|*/}").forEach(H)}}}(function(p){v.push(p)}),f=function(p,H,m){return H===0&&kl1.indexOf(m[n.length])!==-1||m.match(r)?p:"."+e};function M(p,H,m,z){z===void 0&&(z="&");var g=p.replace(Al1,""),w=H&&m?m+" "+H+" { "+g+" }":g;return e=z,n=H,a=new RegExp("\\"+n+"\\b","g"),r=new RegExp("(\\"+n+"\\b){2,}"),u(m||!H?"":H,w)}return u.use([].concat(h,[function(p,H,m){p===2&&m.length&&m[0].lastIndexOf(n)>0&&(m[0]=m[0].replace(a,f))},d,function(p){if(p===-2){var H=v;return v=[],H}}])),M.hash=h.length?h.reduce(function(p,H){return H.name||br(15),wl(p,H.name)},5381).toString():"",M}var Cm=W1.createContext(),El1=Cm.Consumer,T_=W1.createContext(),XG=(T_.Consumer,new lc),ib=QG();function O_(){return _.useContext(Cm)||XG}function JG(){return _.useContext(T_)||ib}function tK(t){var e=_.useState(t.stylisPlugins),n=e[0],a=e[1],r=O_(),o=_.useMemo(function(){var c=r;return t.sheet?c=t.sheet:t.target&&(c=c.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(c=c.reconstructWithOptions({useCSSOMInjection:!1})),c},[t.disableCSSOMInjection,t.sheet,t.target]),l=_.useMemo(function(){return QG({options:{prefix:!t.disableVendorPrefixes},plugins:n})},[t.disableVendorPrefixes,n]);return _.useEffect(function(){ul1(n,t.stylisPlugins)||a(t.stylisPlugins)},[t.stylisPlugins]),W1.createElement(Cm.Provider,{value:o},W1.createElement(T_.Provider,{value:l},t.children))}var eK=function(){function t(e,n){var a=this;this.inject=function(r,o){o===void 0&&(o=ib);var l=a.name+o.hash;r.hasNameForId(a.id,l)||r.insertRules(a.id,l,o(a.rules,l,"@keyframes"))},this.toString=function(){return br(12,String(a.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return t.prototype.getName=function(e){return e===void 0&&(e=ib),this.name+e.hash},t}(),Pl1=/([A-Z])/,Nl1=/([A-Z])/g,Dl1=/^ms-/,Rl1=function(t){return"-"+t.toLowerCase()};function DE(t){return Pl1.test(t)?t.replace(Nl1,Rl1).replace(Dl1,"-ms-"):t}var RE=function(t){return t==null||t===!1||t===""};function G8(t,e,n,a){if(Array.isArray(t)){for(var r,o=[],l=0,c=t.length;l1?e-1:0),a=1;a?@[\\\]^`{|}~-]+/g,Il1=/(^-|-$)/g;function By(t){return t.replace(jl1,"-").replace(Il1,"")}var k_=function(t){return rb(YG(t)>>>0)};function Nv(t){return typeof t=="string"&&!0}var ob=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},Fl1=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function $l1(t,e,n){var a=t[n];ob(e)&&ob(a)?nK(a,e):t[n]=e}function nK(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a=0||(B[b]=y[b]);return B}(e,["componentId"]),V=g&&g+"-"+(Nv(z)?z:By(nb(z)));return aK(z,ea({},w,{attrs:d,componentId:V}),n)},Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(z){this._foldedDefaultProps=a?nK({},t.defaultProps,z):z}}),Object.defineProperty(M,"toString",{value:function(){return"."+M.styledComponentId}}),r&&Hs(M,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),M}var Ia=function(t){return function e(n,a,r){if(r===void 0&&(r=Q3),!y_.isValidElementType(a))return br(1,String(a));var o=function(){return n(a,r,bm.apply(void 0,arguments))};return o.withConfig=function(l){return e(n,a,ea({},r,{},l))},o.attrs=function(l){return e(n,a,ea({},r,{attrs:Array.prototype.concat(r.attrs,l).filter(Boolean)}))},o}(aK,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){Ia[t]=Ia(t)});var ql1=function(){function t(n,a){this.rules=n,this.componentId=a,this.isStatic=ZG(n),lc.registerId(this.componentId+1)}var e=t.prototype;return e.createStyles=function(n,a,r,o){var l=o(G8(this.rules,a,r,o).join(""),""),c=this.componentId+n;r.insertRules(c,c,l)},e.removeStyles=function(n,a){a.clearRules(this.componentId+n)},e.renderStyles=function(n,a,r,o){n>2&&lc.registerId(this.componentId+n),this.removeStyles(n,r),this.createStyles(n,a,r,o)},t}();function rK(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a1?e-1:0),a=1;a"+a+""},this.getStyleTags=function(){return n.sealed?br(2):n._emitSheetCSS()},this.getStyleElement=function(){var a;if(n.sealed)return br(2);var r=((a={})[oo]="",a["data-styled-version"]="5.3.11",a.dangerouslySetInnerHTML={__html:n.instance.toString()},a),o=ab();return o&&(r.nonce=o),[W1.createElement("style",ea({},r,{key:"sc-0-0"}))]},this.seal=function(){n.sealed=!0},this.instance=new lc({isServer:!0}),this.sealed=!1}var e=t.prototype;return e.collectStyles=function(n){return this.sealed?br(2):W1.createElement(tK,{sheet:this.instance},n)},e.interleaveWithNodeStream=function(n){return br(3)},t}(),Yl1=function(t){var e=W1.forwardRef(function(n,a){var r=_.useContext(lo),o=t.defaultProps,l=A_(n,r,o);return W1.createElement(t,ea({},n,{theme:l,ref:a}))});return Hs(e,t),e.displayName="WithTheme("+nb(t)+")",e},iK=function(){return _.useContext(lo)},Zl1={StyleSheet:lc,masterSheet:XG};const Ql1=Object.freeze(Object.defineProperty({__proto__:null,ServerStyleSheet:Kl1,StyleSheetConsumer:El1,StyleSheetContext:Cm,StyleSheetManager:tK,ThemeConsumer:Ul1,ThemeContext:lo,ThemeProvider:Wl1,__PRIVATE__:Zl1,createGlobalStyle:rK,css:bm,default:Ia,isStyledComponent:Vm,keyframes:Gl1,useTheme:iK,version:pl1,withTheme:Yl1},Symbol.toStringTag,{value:"Module"}));function Xl1(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var oK=_,Jl1=Xl1(oK);function IE(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tc1(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var ec1=!!(typeof window<"u"&&window.document&&window.document.createElement);function nc1(t,e,n){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function a(r){return r.displayName||r.name||"Component"}return function(o){if(typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var l=[],c;function s(){c=t(l.map(function(u){return u.props})),h.canUseDOM?e(c):n&&(c=n(c))}var h=function(u){tc1(v,u);function v(){return u.apply(this,arguments)||this}v.peek=function(){return c},v.rewind=function(){if(v.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var M=c;return c=void 0,l=[],M};var d=v.prototype;return d.UNSAFE_componentWillMount=function(){l.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var M=l.indexOf(this);l.splice(M,1),s()},d.render=function(){return Jl1.createElement(o,this.props)},v}(oK.PureComponent);return IE(h,"displayName","SideEffect("+a(o)+")"),IE(h,"canUseDOM",ec1),h}}var ac1=nc1;const rc1=ne(ac1);var ic1=typeof Element<"u",oc1=typeof Map=="function",lc1=typeof Set=="function",cc1=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function uf(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,a,r;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(a=n;a--!==0;)if(!uf(t[a],e[a]))return!1;return!0}var o;if(oc1&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(a=o.next()).done;)if(!e.has(a.value[0]))return!1;for(o=t.entries();!(a=o.next()).done;)if(!uf(a.value[1],e.get(a.value[0])))return!1;return!0}if(lc1&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(a=o.next()).done;)if(!e.has(a.value[0]))return!1;return!0}if(cc1&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(a=n;a--!==0;)if(t[a]!==e[a])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[a]))return!1;if(ic1&&t instanceof Element)return!1;for(a=n;a--!==0;)if(!((r[a]==="_owner"||r[a]==="__v"||r[a]==="__o")&&t.$$typeof)&&!uf(t[r[a]],e[r[a]]))return!1;return!0}return t!==t&&e!==e}var hc1=function(e,n){try{return uf(e,n)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}};const sc1=ne(hc1);/* object-assign (c) Sindre Sorhus @license MIT -*/var FE=Object.getOwnPropertySymbols,uc1=Object.prototype.hasOwnProperty,vc1=Object.prototype.propertyIsEnumerable;function dc1(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function fc1(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var a=Object.getOwnPropertyNames(e).map(function(o){return e[o]});if(a.join("")!=="0123456789")return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(o){r[o]=o}),Object.keys(Object.assign({},r)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var gc1=fc1()?Object.assign:function(t,e){for(var n,a=dc1(t),r,o=1;o=0||Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n},xc1=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},lb=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},Vc1=function(e){var n=kl(e,w2.TITLE),a=kl(e,kh.TITLE_TEMPLATE);if(a&&n)return a.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var r=kl(e,kh.DEFAULT_TITLE);return n||r||void 0},Cc1=function(e){return kl(e,kh.ON_CHANGE_CLIENT_STATE)||function(){}},Sy=function(e,n){return n.filter(function(a){return typeof a[e]<"u"}).map(function(a){return a[e]}).reduce(function(a,r){return Cn({},a,r)},{})},bc1=function(e,n){return n.filter(function(a){return typeof a[w2.BASE]<"u"}).map(function(a){return a[w2.BASE]}).reverse().reduce(function(a,r){if(!a.length)for(var o=Object.keys(r),l=0;l=0;a--){var r=e[a];if(r.hasOwnProperty(n))return r[n]}return null},Lc1=function(e){return{baseTag:bc1([ae.HREF,ae.TARGET],e),bodyAttributes:Sy(B8.BODY,e),defer:kl(e,kh.DEFER),encode:kl(e,kh.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Sy(B8.HTML,e),linkTags:R9(w2.LINK,[ae.REL,ae.HREF],e),metaTags:R9(w2.META,[ae.NAME,ae.CHARSET,ae.HTTPEQUIV,ae.PROPERTY,ae.ITEM_PROP],e),noscriptTags:R9(w2.NOSCRIPT,[ae.INNER_HTML],e),onChangeClientState:Cc1(e),scriptTags:R9(w2.SCRIPT,[ae.SRC,ae.INNER_HTML],e),styleTags:R9(w2.STYLE,[ae.CSS_TEXT],e),title:Vc1(e),titleAttributes:Sy(B8.TITLE,e)}},cb=function(){var t=Date.now();return function(e){var n=Date.now();n-t>16?(t=n,e(n)):setTimeout(function(){cb(e)},0)}}(),UE=function(e){return clearTimeout(e)},Bc1=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||cb:global.requestAnimationFrame||cb,_c1=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||UE:global.cancelAnimationFrame||UE,Sc1=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},j9=null,Tc1=function(e){j9&&_c1(j9),e.defer?j9=Bc1(function(){WE(e,function(){j9=null})}):(WE(e),j9=null)},WE=function(e,n){var a=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,l=e.linkTags,c=e.metaTags,s=e.noscriptTags,h=e.onChangeClientState,u=e.scriptTags,v=e.styleTags,d=e.title,f=e.titleAttributes;hb(w2.BODY,r),hb(w2.HTML,o),Oc1(d,f);var M={baseTag:R6(w2.BASE,a),linkTags:R6(w2.LINK,l),metaTags:R6(w2.META,c),noscriptTags:R6(w2.NOSCRIPT,s),scriptTags:R6(w2.SCRIPT,u),styleTags:R6(w2.STYLE,v)},p={},H={};Object.keys(M).forEach(function(m){var z=M[m],g=z.newTags,w=z.oldTags;g.length&&(p[m]=g),w.length&&(H[m]=M[m].oldTags)}),n&&n(),h(e,p,H)},lK=function(e){return Array.isArray(e)?e.join(""):e},Oc1=function(e,n){typeof e<"u"&&document.title!==e&&(document.title=lK(e)),hb(w2.TITLE,n)},hb=function(e,n){var a=document.getElementsByTagName(e)[0];if(a){for(var r=a.getAttribute(Br),o=r?r.split(","):[],l=[].concat(o),c=Object.keys(n),s=0;s=0;d--)a.removeAttribute(l[d]);o.length===l.length?a.removeAttribute(Br):a.getAttribute(Br)!==c.join(",")&&a.setAttribute(Br,c.join(","))}},R6=function(e,n){var a=document.head||document.querySelector(w2.HEAD),r=a.querySelectorAll(e+"["+Br+"]"),o=Array.prototype.slice.call(r),l=[],c=void 0;return n&&n.length&&n.forEach(function(s){var h=document.createElement(e);for(var u in s)if(s.hasOwnProperty(u))if(u===ae.INNER_HTML)h.innerHTML=s.innerHTML;else if(u===ae.CSS_TEXT)h.styleSheet?h.styleSheet.cssText=s.cssText:h.appendChild(document.createTextNode(s.cssText));else{var v=typeof s[u]>"u"?"":s[u];h.setAttribute(u,v)}h.setAttribute(Br,"true"),o.some(function(d,f){return c=f,h.isEqualNode(d)})?o.splice(c,1):l.push(h)}),o.forEach(function(s){return s.parentNode.removeChild(s)}),l.forEach(function(s){return a.appendChild(s)}),{oldTags:o,newTags:l}},cK=function(e){return Object.keys(e).reduce(function(n,a){var r=typeof e[a]<"u"?a+'="'+e[a]+'"':""+a;return n?n+" "+r:r},"")},Ac1=function(e,n,a,r){var o=cK(a),l=lK(n);return o?"<"+e+" "+Br+'="true" '+o+">"+lb(l,r)+"":"<"+e+" "+Br+'="true">'+lb(l,r)+""},kc1=function(e,n,a){return n.reduce(function(r,o){var l=Object.keys(o).filter(function(h){return!(h===ae.INNER_HTML||h===ae.CSS_TEXT)}).reduce(function(h,u){var v=typeof o[u]>"u"?u:u+'="'+lb(o[u],a)+'"';return h?h+" "+v:v},""),c=o.innerHTML||o.cssText||"",s=zc1.indexOf(e)===-1;return r+"<"+e+" "+Br+'="true" '+l+(s?"/>":">"+c+"")},"")},hK=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(a,r){return a[mg[r]||r]=e[r],a},n)},Ec1=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(a,r){return a[mc1[r]||r]=e[r],a},n)},Pc1=function(e,n,a){var r,o=(r={key:n},r[Br]=!0,r),l=hK(a,o);return[W1.createElement(w2.TITLE,l,n)]},Nc1=function(e,n){return n.map(function(a,r){var o,l=(o={key:r},o[Br]=!0,o);return Object.keys(a).forEach(function(c){var s=mg[c]||c;if(s===ae.INNER_HTML||s===ae.CSS_TEXT){var h=a.innerHTML||a.cssText;l.dangerouslySetInnerHTML={__html:h}}else l[s]=a[c]}),W1.createElement(e,l)})},I5=function(e,n,a){switch(e){case w2.TITLE:return{toComponent:function(){return Pc1(e,n.title,n.titleAttributes)},toString:function(){return Ac1(e,n.title,n.titleAttributes,a)}};case B8.BODY:case B8.HTML:return{toComponent:function(){return hK(n)},toString:function(){return cK(n)}};default:return{toComponent:function(){return Nc1(e,n)},toString:function(){return kc1(e,n,a)}}}},sK=function(e){var n=e.baseTag,a=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,l=e.linkTags,c=e.metaTags,s=e.noscriptTags,h=e.scriptTags,u=e.styleTags,v=e.title,d=v===void 0?"":v,f=e.titleAttributes;return{base:I5(w2.BASE,n,r),bodyAttributes:I5(B8.BODY,a,r),htmlAttributes:I5(B8.HTML,o,r),link:I5(w2.LINK,l,r),meta:I5(w2.META,c,r),noscript:I5(w2.NOSCRIPT,s,r),script:I5(w2.SCRIPT,h,r),style:I5(w2.STYLE,u,r),title:I5(w2.TITLE,{title:d,titleAttributes:f},r)}},Dc1=function(e){var n,a;return a=n=function(r){yc1(o,r);function o(){return Hc1(this,o),xc1(this,r.apply(this,arguments))}return o.prototype.shouldComponentUpdate=function(c){return!sc1(this.props,c)},o.prototype.mapNestedChildrenToProps=function(c,s){if(!s)return null;switch(c.type){case w2.SCRIPT:case w2.NOSCRIPT:return{innerHTML:s};case w2.STYLE:return{cssText:s}}throw new Error("<"+c.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(c){var s,h=c.child,u=c.arrayTypeChildren,v=c.newChildProps,d=c.nestedChildren;return Cn({},u,(s={},s[h.type]=[].concat(u[h.type]||[],[Cn({},v,this.mapNestedChildrenToProps(h,d))]),s))},o.prototype.mapObjectTypeChildren=function(c){var s,h,u=c.child,v=c.newProps,d=c.newChildProps,f=c.nestedChildren;switch(u.type){case w2.TITLE:return Cn({},v,(s={},s[u.type]=f,s.titleAttributes=Cn({},d),s));case w2.BODY:return Cn({},v,{bodyAttributes:Cn({},d)});case w2.HTML:return Cn({},v,{htmlAttributes:Cn({},d)})}return Cn({},v,(h={},h[u.type]=Cn({},d),h))},o.prototype.mapArrayTypeChildrenToProps=function(c,s){var h=Cn({},s);return Object.keys(c).forEach(function(u){var v;h=Cn({},h,(v={},v[u]=c[u],v))}),h},o.prototype.warnOnInvalidChildren=function(c,s){return!0},o.prototype.mapChildrenToProps=function(c,s){var h=this,u={};return W1.Children.forEach(c,function(v){if(!(!v||!v.props)){var d=v.props,f=d.children,M=$E(d,["children"]),p=Ec1(M);switch(h.warnOnInvalidChildren(v,f),v.type){case w2.LINK:case w2.META:case w2.NOSCRIPT:case w2.SCRIPT:case w2.STYLE:u=h.flattenArrayTypeChildren({child:v,arrayTypeChildren:u,newChildProps:p,nestedChildren:f});break;default:s=h.mapObjectTypeChildren({child:v,newProps:s,newChildProps:p,nestedChildren:f});break}}}),s=this.mapArrayTypeChildrenToProps(u,s),s},o.prototype.render=function(){var c=this.props,s=c.children,h=$E(c,["children"]),u=Cn({},h);return s&&(u=this.mapChildrenToProps(s,u)),W1.createElement(e,u)},wc1(o,null,[{key:"canUseDOM",set:function(c){e.canUseDOM=c}}]),o}(W1.Component),n.propTypes={base:st.object,bodyAttributes:st.object,children:st.oneOfType([st.arrayOf(st.node),st.node]),defaultTitle:st.string,defer:st.bool,encodeSpecialCharacters:st.bool,htmlAttributes:st.object,link:st.arrayOf(st.object),meta:st.arrayOf(st.object),noscript:st.arrayOf(st.object),onChangeClientState:st.func,script:st.arrayOf(st.object),style:st.arrayOf(st.object),title:st.string,titleAttributes:st.object,titleTemplate:st.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=e.peek,n.rewind=function(){var r=e.rewind();return r||(r=sK({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),r},a},Rc1=function(){return null},jc1=rc1(Lc1,Tc1,sK)(Rc1),sb=Dc1(jc1);sb.renderStatic=sb.rewind;function uK(t){var e,n,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;etypeof t=="number"&&!isNaN(t),_8=t=>typeof t=="string",na=t=>typeof t=="function",lf=t=>_8(t)||na(t)?t:null,ub=t=>_.isValidElement(t)||_8(t)||na(t)||Eh(t);function Ic1(t,e,n){n===void 0&&(n=300);const{scrollHeight:a,style:r}=t;requestAnimationFrame(()=>{r.minHeight="initial",r.height=a+"px",r.transition=`all ${n}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(e,n)})})}function ym(t){let{enter:e,exit:n,appendPosition:a=!1,collapse:r=!0,collapseDuration:o=300}=t;return function(l){let{children:c,position:s,preventExitTransition:h,done:u,nodeRef:v,isIn:d,playToast:f}=l;const M=a?`${e}--${s}`:e,p=a?`${n}--${s}`:n,H=_.useRef(0);return _.useLayoutEffect(()=>{const m=v.current,z=M.split(" "),g=w=>{w.target===v.current&&(f(),m.removeEventListener("animationend",g),m.removeEventListener("animationcancel",g),H.current===0&&w.type!=="animationcancel"&&m.classList.remove(...z))};m.classList.add(...z),m.addEventListener("animationend",g),m.addEventListener("animationcancel",g)},[]),_.useEffect(()=>{const m=v.current,z=()=>{m.removeEventListener("animationend",z),r?Ic1(m,u,o):u()};d||(h?z():(H.current=1,m.className+=` ${p}`,m.addEventListener("animationend",z)))},[d]),W1.createElement(W1.Fragment,null,c)}}function qE(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const sn=new Map;let Ph=[];const vb=new Set,Fc1=t=>vb.forEach(e=>e(t)),vK=()=>sn.size>0;function dK(t,e){var n;if(e)return!((n=sn.get(e))==null||!n.isToastActive(t));let a=!1;return sn.forEach(r=>{r.isToastActive(t)&&(a=!0)}),a}function fK(t,e){ub(t)&&(vK()||Ph.push({content:t,options:e}),sn.forEach(n=>{n.buildToast(t,e)}))}function GE(t,e){sn.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}function $c1(t){const{subscribe:e,getSnapshot:n,setProps:a}=_.useRef(function(o){const l=o.containerId||1;return{subscribe(c){const s=function(u,v,d){let f=1,M=0,p=[],H=[],m=[],z=v;const g=new Map,w=new Set,V=()=>{m=Array.from(g.values()),w.forEach(b=>b())},y=b=>{H=b==null?[]:H.filter(L=>L!==b),V()},x=b=>{const{toastId:L,onOpen:B,updateId:S,children:T}=b.props,P=S==null;b.staleId&&g.delete(b.staleId),g.set(L,b),H=[...H,b.props.toastId].filter(F=>F!==b.staleId),V(),d(qE(b,P?"added":"updated")),P&&na(B)&&B(_.isValidElement(T)&&T.props)};return{id:u,props:z,observe:b=>(w.add(b),()=>w.delete(b)),toggle:(b,L)=>{g.forEach(B=>{L!=null&&L!==B.props.toastId||na(B.toggle)&&B.toggle(b)})},removeToast:y,toasts:g,clearQueue:()=>{M-=p.length,p=[]},buildToast:(b,L)=>{if((J=>{let{containerId:A,toastId:c1,updateId:u1}=J;const e1=A?A!==u:u!==1,C1=g.has(c1)&&u1==null;return e1||C1})(L))return;const{toastId:B,updateId:S,data:T,staleId:P,delay:F}=L,q=()=>{y(B)},$=S==null;$&&M++;const Q={...z,style:z.toastStyle,key:f++,...Object.fromEntries(Object.entries(L).filter(J=>{let[A,c1]=J;return c1!=null})),toastId:B,updateId:S,data:T,closeToast:q,isIn:!1,className:lf(L.className||z.toastClassName),bodyClassName:lf(L.bodyClassName||z.bodyClassName),progressClassName:lf(L.progressClassName||z.progressClassName),autoClose:!L.isLoading&&(I=L.autoClose,n1=z.autoClose,I===!1||Eh(I)&&I>0?I:n1),deleteToast(){const J=g.get(B),{onClose:A,children:c1}=J.props;na(A)&&A(_.isValidElement(c1)&&c1.props),d(qE(J,"removed")),g.delete(B),M--,M<0&&(M=0),p.length>0?x(p.shift()):V()}};var I,n1;Q.closeButton=z.closeButton,L.closeButton===!1||ub(L.closeButton)?Q.closeButton=L.closeButton:L.closeButton===!0&&(Q.closeButton=!ub(z.closeButton)||z.closeButton);let R=b;_.isValidElement(b)&&!_8(b.type)?R=_.cloneElement(b,{closeToast:q,toastProps:Q,data:T}):na(b)&&(R=b({closeToast:q,toastProps:Q,data:T}));const i1={content:R,props:Q,staleId:P};z.limit&&z.limit>0&&M>z.limit&&$?p.push(i1):Eh(F)?setTimeout(()=>{x(i1)},F):x(i1)},setProps(b){z=b},setToggle:(b,L)=>{g.get(b).toggle=L},isToastActive:b=>H.some(L=>L===b),getSnapshot:()=>z.newestOnTop?m.reverse():m}}(l,o,Fc1);sn.set(l,s);const h=s.observe(c);return Ph.forEach(u=>fK(u.content,u.options)),Ph=[],()=>{h(),sn.delete(l)}},setProps(c){var s;(s=sn.get(l))==null||s.setProps(c)},getSnapshot(){var c;return(c=sn.get(l))==null?void 0:c.getSnapshot()}}}(t)).current;a(t);const r=_.useSyncExternalStore(e,n,n);return{getToastToRender:function(o){if(!r)return[];const l=new Map;return r.forEach(c=>{const{position:s}=c.props;l.has(s)||l.set(s,[]),l.get(s).push(c)}),Array.from(l,c=>o(c[0],c[1]))},isToastActive:dK,count:r==null?void 0:r.length}}function Uc1(t){const[e,n]=_.useState(!1),[a,r]=_.useState(!1),o=_.useRef(null),l=_.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:s,closeToast:h,onClick:u,closeOnClick:v}=t;var d,f;function M(){n(!0)}function p(){n(!1)}function H(g){const w=o.current;l.canDrag&&w&&(l.didMove=!0,e&&p(),l.delta=t.draggableDirection==="x"?g.clientX-l.start:g.clientY-l.start,l.start!==g.clientX&&(l.canCloseOnClick=!1),w.style.transform=`translate3d(${t.draggableDirection==="x"?`${l.delta}px, var(--y)`:`0, calc(${l.delta}px + var(--y))`},0)`,w.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function m(){document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",m);const g=o.current;if(l.canDrag&&l.didMove&&g){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return r(!0),t.closeToast(),void t.collapseAll();g.style.transition="transform 0.2s, opacity 0.2s",g.style.removeProperty("transform"),g.style.removeProperty("opacity")}}(f=sn.get((d={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||f.setToggle(d.id,d.fn),_.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||p(),window.addEventListener("focus",M),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",M),window.removeEventListener("blur",p)}},[t.pauseOnFocusLoss]);const z={onPointerDown:function(g){if(t.draggable===!0||t.draggable===g.pointerType){l.didMove=!1,document.addEventListener("pointermove",H),document.addEventListener("pointerup",m);const w=o.current;l.canCloseOnClick=!0,l.canDrag=!0,w.style.transition="none",t.draggableDirection==="x"?(l.start=g.clientX,l.removalDistance=w.offsetWidth*(t.draggablePercent/100)):(l.start=g.clientY,l.removalDistance=w.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(g){const{top:w,bottom:V,left:y,right:x}=o.current.getBoundingClientRect();g.nativeEvent.type!=="touchend"&&t.pauseOnHover&&g.clientX>=y&&g.clientX<=x&&g.clientY>=w&&g.clientY<=V?p():M()}};return c&&s&&(z.onMouseEnter=p,t.stacked||(z.onMouseLeave=M)),v&&(z.onClick=g=>{u&&u(g),l.canCloseOnClick&&h()}),{playToast:M,pauseToast:p,isRunning:e,preventExitTransition:a,toastRef:o,eventHandlers:z}}function Wc1(t){let{delay:e,isRunning:n,closeToast:a,type:r="default",hide:o,className:l,style:c,controlledProgress:s,progress:h,rtl:u,isIn:v,theme:d}=t;const f=o||s&&h===0,M={...c,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};s&&(M.transform=`scaleX(${h})`);const p=T3("Toastify__progress-bar",s?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":u}),H=na(l)?l({rtl:u,type:r,defaultClassName:p}):T3(p,l),m={[s&&h>=1?"onTransitionEnd":"onAnimationEnd"]:s&&h<1?null:()=>{v&&a()}};return W1.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},W1.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${r}`}),W1.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:H,style:M,...m}))}let qc1=1;const gK=()=>""+qc1++;function Gc1(t){return t&&(_8(t.toastId)||Eh(t.toastId))?t.toastId:gK()}function $7(t,e){return fK(t,e),e.toastId}function zg(t,e){return{...e,type:e&&e.type||t,toastId:Gc1(e)}}function Av(t){return(e,n)=>$7(e,zg(t,n))}function Q0(t,e){return $7(t,zg("default",e))}Q0.loading=(t,e)=>$7(t,zg("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Q0.promise=function(t,e,n){let a,{pending:r,error:o,success:l}=e;r&&(a=_8(r)?Q0.loading(r,n):Q0.loading(r.render,{...n,...r}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(u,v,d)=>{if(v==null)return void Q0.dismiss(a);const f={type:u,...c,...n,data:d},M=_8(v)?{render:v}:v;return a?Q0.update(a,{...f,...M}):Q0(M.render,{...f,...M}),d},h=na(t)?t():t;return h.then(u=>s("success",l,u)).catch(u=>s("error",o,u)),h},Q0.success=Av("success"),Q0.info=Av("info"),Q0.error=Av("error"),Q0.warning=Av("warning"),Q0.warn=Q0.warning,Q0.dark=(t,e)=>$7(t,zg("default",{theme:"dark",...e})),Q0.dismiss=function(t){(function(e){var n;if(vK()){if(e==null||_8(n=e)||Eh(n))sn.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var a;(a=sn.get(e.containerId))!=null&&a.removeToast(e.id)||sn.forEach(r=>{r.removeToast(e.id)})}}else Ph=Ph.filter(r=>e!=null&&r.options.toastId!==e)})(t)},Q0.clearWaitingQueue=function(t){t===void 0&&(t={}),sn.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},Q0.isActive=dK,Q0.update=function(t,e){e===void 0&&(e={});const n=((a,r)=>{var o;let{containerId:l}=r;return(o=sn.get(l||1))==null?void 0:o.toasts.get(a)})(t,e);if(n){const{props:a,content:r}=n,o={delay:100,...a,...e,toastId:e.toastId||t,updateId:gK()};o.toastId!==t&&(o.staleId=t);const l=o.render||r;delete o.render,$7(l,o)}},Q0.done=t=>{Q0.update(t,{progress:1})},Q0.onChange=function(t){return vb.add(t),()=>{vb.delete(t)}},Q0.play=t=>GE(!0,t),Q0.pause=t=>GE(!1,t);const Kc1=typeof window<"u"?_.useLayoutEffect:_.useEffect,kv=t=>{let{theme:e,type:n,isLoading:a,...r}=t;return W1.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},Ty={info:function(t){return W1.createElement(kv,{...t},W1.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return W1.createElement(kv,{...t},W1.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return W1.createElement(kv,{...t},W1.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return W1.createElement(kv,{...t},W1.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return W1.createElement("div",{className:"Toastify__spinner"})}},Yc1=t=>{const{isRunning:e,preventExitTransition:n,toastRef:a,eventHandlers:r,playToast:o}=Uc1(t),{closeButton:l,children:c,autoClose:s,onClick:h,type:u,hideProgressBar:v,closeToast:d,transition:f,position:M,className:p,style:H,bodyClassName:m,bodyStyle:z,progressClassName:g,progressStyle:w,updateId:V,role:y,progress:x,rtl:b,toastId:L,deleteToast:B,isIn:S,isLoading:T,closeOnClick:P,theme:F}=t,q=T3("Toastify__toast",`Toastify__toast-theme--${F}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":b},{"Toastify__toast--close-on-click":P}),$=na(p)?p({rtl:b,position:M,type:u,defaultClassName:q}):T3(q,p),Q=function(i1){let{theme:J,type:A,isLoading:c1,icon:u1}=i1,e1=null;const C1={theme:J,type:A};return u1===!1||(na(u1)?e1=u1({...C1,isLoading:c1}):_.isValidElement(u1)?e1=_.cloneElement(u1,C1):c1?e1=Ty.spinner():(h1=>h1 in Ty)(A)&&(e1=Ty[A](C1))),e1}(t),I=!!x||!s,n1={closeToast:d,type:u,theme:F};let R=null;return l===!1||(R=na(l)?l(n1):_.isValidElement(l)?_.cloneElement(l,n1):function(i1){let{closeToast:J,theme:A,ariaLabel:c1="close"}=i1;return W1.createElement("button",{className:`Toastify__close-button Toastify__close-button--${A}`,type:"button",onClick:u1=>{u1.stopPropagation(),J(u1)},"aria-label":c1},W1.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},W1.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(n1)),W1.createElement(f,{isIn:S,done:B,position:M,preventExitTransition:n,nodeRef:a,playToast:o},W1.createElement("div",{id:L,onClick:h,"data-in":S,className:$,...r,style:H,ref:a},W1.createElement("div",{...S&&{role:y},className:na(m)?m({type:u}):T3("Toastify__toast-body",m),style:z},Q!=null&&W1.createElement("div",{className:T3("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!T})},Q),W1.createElement("div",null,c)),R,W1.createElement(Wc1,{...V&&!I?{key:`pb-${V}`}:{},rtl:b,theme:F,delay:s,isRunning:e,isIn:S,closeToast:d,hide:v,type:u,style:w,className:g,controlledProgress:I,progress:x||0})))},xm=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},Zc1=ym(xm("bounce",!0));ym(xm("slide",!0));ym(xm("zoom"));ym(xm("flip"));const Qc1={position:"top-right",transition:Zc1,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Xc1(t){let e={...Qc1,...t};const n=t.stacked,[a,r]=_.useState(!0),o=_.useRef(null),{getToastToRender:l,isToastActive:c,count:s}=$c1(e),{className:h,style:u,rtl:v,containerId:d}=e;function f(p){const H=T3("Toastify__toast-container",`Toastify__toast-container--${p}`,{"Toastify__toast-container--rtl":v});return na(h)?h({position:p,rtl:v,defaultClassName:H}):T3(H,lf(h))}function M(){n&&(r(!0),Q0.play())}return Kc1(()=>{if(n){var p;const H=o.current.querySelectorAll('[data-in="true"]'),m=12,z=(p=e.position)==null?void 0:p.includes("top");let g=0,w=0;Array.from(H).reverse().forEach((V,y)=>{const x=V;x.classList.add("Toastify__toast--stacked"),y>0&&(x.dataset.collapsed=`${a}`),x.dataset.pos||(x.dataset.pos=z?"top":"bot");const b=g*(a?.2:1)+(a?0:m*y);x.style.setProperty("--y",`${z?b:-1*b}px`),x.style.setProperty("--g",`${m}`),x.style.setProperty("--s",""+(1-(a?w:0))),g+=x.offsetHeight,w+=.025})}},[a,s,n]),W1.createElement("div",{ref:o,className:"Toastify",id:d,onMouseEnter:()=>{n&&(r(!1),Q0.pause())},onMouseLeave:M},l((p,H)=>{const m=H.length?{...u}:{...u,pointerEvents:"none"};return W1.createElement("div",{className:f(p),style:m,key:`container-${p}`},H.map(z=>{let{content:g,props:w}=z;return W1.createElement(Yc1,{...w,stacked:n,collapseAll:M,isIn:c(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},g)}))}))}const KE="/assets/logo-orange-ZEopurkl.svg";var E_={};const Ot=le(Ql1);var Mg={};(function(t){var e=C&&C.__makeTemplateObject||function(f,M){return Object.defineProperty?Object.defineProperty(f,"raw",{value:M}):f.raw=M,f},n=C&&C.__assign||function(){return n=Object.assign||function(f){for(var M,p=1,H=arguments.length;p=0||Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n},xc1=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},lb=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},Vc1=function(e){var n=El(e,w2.TITLE),a=El(e,Sh.TITLE_TEMPLATE);if(a&&n)return a.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var r=El(e,Sh.DEFAULT_TITLE);return n||r||void 0},Cc1=function(e){return El(e,Sh.ON_CHANGE_CLIENT_STATE)||function(){}},Sy=function(e,n){return n.filter(function(a){return typeof a[e]<"u"}).map(function(a){return a[e]}).reduce(function(a,r){return Cn({},a,r)},{})},bc1=function(e,n){return n.filter(function(a){return typeof a[w2.BASE]<"u"}).map(function(a){return a[w2.BASE]}).reverse().reduce(function(a,r){if(!a.length)for(var o=Object.keys(r),l=0;l=0;a--){var r=e[a];if(r.hasOwnProperty(n))return r[n]}return null},Lc1=function(e){return{baseTag:bc1([ae.HREF,ae.TARGET],e),bodyAttributes:Sy(S8.BODY,e),defer:El(e,Sh.DEFER),encode:El(e,Sh.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Sy(S8.HTML,e),linkTags:E9(w2.LINK,[ae.REL,ae.HREF],e),metaTags:E9(w2.META,[ae.NAME,ae.CHARSET,ae.HTTPEQUIV,ae.PROPERTY,ae.ITEM_PROP],e),noscriptTags:E9(w2.NOSCRIPT,[ae.INNER_HTML],e),onChangeClientState:Cc1(e),scriptTags:E9(w2.SCRIPT,[ae.SRC,ae.INNER_HTML],e),styleTags:E9(w2.STYLE,[ae.CSS_TEXT],e),title:Vc1(e),titleAttributes:Sy(S8.TITLE,e)}},cb=function(){var t=Date.now();return function(e){var n=Date.now();n-t>16?(t=n,e(n)):setTimeout(function(){cb(e)},0)}}(),UE=function(e){return clearTimeout(e)},Bc1=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||cb:global.requestAnimationFrame||cb,_c1=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||UE:global.cancelAnimationFrame||UE,Sc1=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},P9=null,Tc1=function(e){P9&&_c1(P9),e.defer?P9=Bc1(function(){WE(e,function(){P9=null})}):(WE(e),P9=null)},WE=function(e,n){var a=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,l=e.linkTags,c=e.metaTags,s=e.noscriptTags,h=e.onChangeClientState,u=e.scriptTags,v=e.styleTags,d=e.title,f=e.titleAttributes;hb(w2.BODY,r),hb(w2.HTML,o),Oc1(d,f);var M={baseTag:j6(w2.BASE,a),linkTags:j6(w2.LINK,l),metaTags:j6(w2.META,c),noscriptTags:j6(w2.NOSCRIPT,s),scriptTags:j6(w2.SCRIPT,u),styleTags:j6(w2.STYLE,v)},p={},H={};Object.keys(M).forEach(function(m){var z=M[m],g=z.newTags,w=z.oldTags;g.length&&(p[m]=g),w.length&&(H[m]=M[m].oldTags)}),n&&n(),h(e,p,H)},lK=function(e){return Array.isArray(e)?e.join(""):e},Oc1=function(e,n){typeof e<"u"&&document.title!==e&&(document.title=lK(e)),hb(w2.TITLE,n)},hb=function(e,n){var a=document.getElementsByTagName(e)[0];if(a){for(var r=a.getAttribute(Lr),o=r?r.split(","):[],l=[].concat(o),c=Object.keys(n),s=0;s=0;d--)a.removeAttribute(l[d]);o.length===l.length?a.removeAttribute(Lr):a.getAttribute(Lr)!==c.join(",")&&a.setAttribute(Lr,c.join(","))}},j6=function(e,n){var a=document.head||document.querySelector(w2.HEAD),r=a.querySelectorAll(e+"["+Lr+"]"),o=Array.prototype.slice.call(r),l=[],c=void 0;return n&&n.length&&n.forEach(function(s){var h=document.createElement(e);for(var u in s)if(s.hasOwnProperty(u))if(u===ae.INNER_HTML)h.innerHTML=s.innerHTML;else if(u===ae.CSS_TEXT)h.styleSheet?h.styleSheet.cssText=s.cssText:h.appendChild(document.createTextNode(s.cssText));else{var v=typeof s[u]>"u"?"":s[u];h.setAttribute(u,v)}h.setAttribute(Lr,"true"),o.some(function(d,f){return c=f,h.isEqualNode(d)})?o.splice(c,1):l.push(h)}),o.forEach(function(s){return s.parentNode.removeChild(s)}),l.forEach(function(s){return a.appendChild(s)}),{oldTags:o,newTags:l}},cK=function(e){return Object.keys(e).reduce(function(n,a){var r=typeof e[a]<"u"?a+'="'+e[a]+'"':""+a;return n?n+" "+r:r},"")},Ac1=function(e,n,a,r){var o=cK(a),l=lK(n);return o?"<"+e+" "+Lr+'="true" '+o+">"+lb(l,r)+"":"<"+e+" "+Lr+'="true">'+lb(l,r)+""},kc1=function(e,n,a){return n.reduce(function(r,o){var l=Object.keys(o).filter(function(h){return!(h===ae.INNER_HTML||h===ae.CSS_TEXT)}).reduce(function(h,u){var v=typeof o[u]>"u"?u:u+'="'+lb(o[u],a)+'"';return h?h+" "+v:v},""),c=o.innerHTML||o.cssText||"",s=zc1.indexOf(e)===-1;return r+"<"+e+" "+Lr+'="true" '+l+(s?"/>":">"+c+"")},"")},hK=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(a,r){return a[yg[r]||r]=e[r],a},n)},Ec1=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(a,r){return a[mc1[r]||r]=e[r],a},n)},Pc1=function(e,n,a){var r,o=(r={key:n},r[Lr]=!0,r),l=hK(a,o);return[W1.createElement(w2.TITLE,l,n)]},Nc1=function(e,n){return n.map(function(a,r){var o,l=(o={key:r},o[Lr]=!0,o);return Object.keys(a).forEach(function(c){var s=yg[c]||c;if(s===ae.INNER_HTML||s===ae.CSS_TEXT){var h=a.innerHTML||a.cssText;l.dangerouslySetInnerHTML={__html:h}}else l[s]=a[c]}),W1.createElement(e,l)})},F5=function(e,n,a){switch(e){case w2.TITLE:return{toComponent:function(){return Pc1(e,n.title,n.titleAttributes)},toString:function(){return Ac1(e,n.title,n.titleAttributes,a)}};case S8.BODY:case S8.HTML:return{toComponent:function(){return hK(n)},toString:function(){return cK(n)}};default:return{toComponent:function(){return Nc1(e,n)},toString:function(){return kc1(e,n,a)}}}},sK=function(e){var n=e.baseTag,a=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,l=e.linkTags,c=e.metaTags,s=e.noscriptTags,h=e.scriptTags,u=e.styleTags,v=e.title,d=v===void 0?"":v,f=e.titleAttributes;return{base:F5(w2.BASE,n,r),bodyAttributes:F5(S8.BODY,a,r),htmlAttributes:F5(S8.HTML,o,r),link:F5(w2.LINK,l,r),meta:F5(w2.META,c,r),noscript:F5(w2.NOSCRIPT,s,r),script:F5(w2.SCRIPT,h,r),style:F5(w2.STYLE,u,r),title:F5(w2.TITLE,{title:d,titleAttributes:f},r)}},Dc1=function(e){var n,a;return a=n=function(r){yc1(o,r);function o(){return Hc1(this,o),xc1(this,r.apply(this,arguments))}return o.prototype.shouldComponentUpdate=function(c){return!sc1(this.props,c)},o.prototype.mapNestedChildrenToProps=function(c,s){if(!s)return null;switch(c.type){case w2.SCRIPT:case w2.NOSCRIPT:return{innerHTML:s};case w2.STYLE:return{cssText:s}}throw new Error("<"+c.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(c){var s,h=c.child,u=c.arrayTypeChildren,v=c.newChildProps,d=c.nestedChildren;return Cn({},u,(s={},s[h.type]=[].concat(u[h.type]||[],[Cn({},v,this.mapNestedChildrenToProps(h,d))]),s))},o.prototype.mapObjectTypeChildren=function(c){var s,h,u=c.child,v=c.newProps,d=c.newChildProps,f=c.nestedChildren;switch(u.type){case w2.TITLE:return Cn({},v,(s={},s[u.type]=f,s.titleAttributes=Cn({},d),s));case w2.BODY:return Cn({},v,{bodyAttributes:Cn({},d)});case w2.HTML:return Cn({},v,{htmlAttributes:Cn({},d)})}return Cn({},v,(h={},h[u.type]=Cn({},d),h))},o.prototype.mapArrayTypeChildrenToProps=function(c,s){var h=Cn({},s);return Object.keys(c).forEach(function(u){var v;h=Cn({},h,(v={},v[u]=c[u],v))}),h},o.prototype.warnOnInvalidChildren=function(c,s){return!0},o.prototype.mapChildrenToProps=function(c,s){var h=this,u={};return W1.Children.forEach(c,function(v){if(!(!v||!v.props)){var d=v.props,f=d.children,M=$E(d,["children"]),p=Ec1(M);switch(h.warnOnInvalidChildren(v,f),v.type){case w2.LINK:case w2.META:case w2.NOSCRIPT:case w2.SCRIPT:case w2.STYLE:u=h.flattenArrayTypeChildren({child:v,arrayTypeChildren:u,newChildProps:p,nestedChildren:f});break;default:s=h.mapObjectTypeChildren({child:v,newProps:s,newChildProps:p,nestedChildren:f});break}}}),s=this.mapArrayTypeChildrenToProps(u,s),s},o.prototype.render=function(){var c=this.props,s=c.children,h=$E(c,["children"]),u=Cn({},h);return s&&(u=this.mapChildrenToProps(s,u)),W1.createElement(e,u)},wc1(o,null,[{key:"canUseDOM",set:function(c){e.canUseDOM=c}}]),o}(W1.Component),n.propTypes={base:st.object,bodyAttributes:st.object,children:st.oneOfType([st.arrayOf(st.node),st.node]),defaultTitle:st.string,defer:st.bool,encodeSpecialCharacters:st.bool,htmlAttributes:st.object,link:st.arrayOf(st.object),meta:st.arrayOf(st.object),noscript:st.arrayOf(st.object),onChangeClientState:st.func,script:st.arrayOf(st.object),style:st.arrayOf(st.object),title:st.string,titleAttributes:st.object,titleTemplate:st.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=e.peek,n.rewind=function(){var r=e.rewind();return r||(r=sK({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),r},a},Rc1=function(){return null},jc1=rc1(Lc1,Tc1,sK)(Rc1),sb=Dc1(jc1);sb.renderStatic=sb.rewind;function uK(t){var e,n,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;etypeof t=="number"&&!isNaN(t),T8=t=>typeof t=="string",na=t=>typeof t=="function",vf=t=>T8(t)||na(t)?t:null,ub=t=>_.isValidElement(t)||T8(t)||na(t)||Th(t);function Ic1(t,e,n){n===void 0&&(n=300);const{scrollHeight:a,style:r}=t;requestAnimationFrame(()=>{r.minHeight="initial",r.height=a+"px",r.transition=`all ${n}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(e,n)})})}function Lm(t){let{enter:e,exit:n,appendPosition:a=!1,collapse:r=!0,collapseDuration:o=300}=t;return function(l){let{children:c,position:s,preventExitTransition:h,done:u,nodeRef:v,isIn:d,playToast:f}=l;const M=a?`${e}--${s}`:e,p=a?`${n}--${s}`:n,H=_.useRef(0);return _.useLayoutEffect(()=>{const m=v.current,z=M.split(" "),g=w=>{w.target===v.current&&(f(),m.removeEventListener("animationend",g),m.removeEventListener("animationcancel",g),H.current===0&&w.type!=="animationcancel"&&m.classList.remove(...z))};m.classList.add(...z),m.addEventListener("animationend",g),m.addEventListener("animationcancel",g)},[]),_.useEffect(()=>{const m=v.current,z=()=>{m.removeEventListener("animationend",z),r?Ic1(m,u,o):u()};d||(h?z():(H.current=1,m.className+=` ${p}`,m.addEventListener("animationend",z)))},[d]),W1.createElement(W1.Fragment,null,c)}}function qE(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const sn=new Map;let Oh=[];const vb=new Set,Fc1=t=>vb.forEach(e=>e(t)),vK=()=>sn.size>0;function dK(t,e){var n;if(e)return!((n=sn.get(e))==null||!n.isToastActive(t));let a=!1;return sn.forEach(r=>{r.isToastActive(t)&&(a=!0)}),a}function fK(t,e){ub(t)&&(vK()||Oh.push({content:t,options:e}),sn.forEach(n=>{n.buildToast(t,e)}))}function GE(t,e){sn.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}function $c1(t){const{subscribe:e,getSnapshot:n,setProps:a}=_.useRef(function(o){const l=o.containerId||1;return{subscribe(c){const s=function(u,v,d){let f=1,M=0,p=[],H=[],m=[],z=v;const g=new Map,w=new Set,V=()=>{m=Array.from(g.values()),w.forEach(b=>b())},y=b=>{H=b==null?[]:H.filter(L=>L!==b),V()},x=b=>{const{toastId:L,onOpen:B,updateId:S,children:T}=b.props,P=S==null;b.staleId&&g.delete(b.staleId),g.set(L,b),H=[...H,b.props.toastId].filter(F=>F!==b.staleId),V(),d(qE(b,P?"added":"updated")),P&&na(B)&&B(_.isValidElement(T)&&T.props)};return{id:u,props:z,observe:b=>(w.add(b),()=>w.delete(b)),toggle:(b,L)=>{g.forEach(B=>{L!=null&&L!==B.props.toastId||na(B.toggle)&&B.toggle(b)})},removeToast:y,toasts:g,clearQueue:()=>{M-=p.length,p=[]},buildToast:(b,L)=>{if((J=>{let{containerId:A,toastId:c1,updateId:u1}=J;const e1=A?A!==u:u!==1,C1=g.has(c1)&&u1==null;return e1||C1})(L))return;const{toastId:B,updateId:S,data:T,staleId:P,delay:F}=L,q=()=>{y(B)},$=S==null;$&&M++;const Z={...z,style:z.toastStyle,key:f++,...Object.fromEntries(Object.entries(L).filter(J=>{let[A,c1]=J;return c1!=null})),toastId:B,updateId:S,data:T,closeToast:q,isIn:!1,className:vf(L.className||z.toastClassName),bodyClassName:vf(L.bodyClassName||z.bodyClassName),progressClassName:vf(L.progressClassName||z.progressClassName),autoClose:!L.isLoading&&(I=L.autoClose,n1=z.autoClose,I===!1||Th(I)&&I>0?I:n1),deleteToast(){const J=g.get(B),{onClose:A,children:c1}=J.props;na(A)&&A(_.isValidElement(c1)&&c1.props),d(qE(J,"removed")),g.delete(B),M--,M<0&&(M=0),p.length>0?x(p.shift()):V()}};var I,n1;Z.closeButton=z.closeButton,L.closeButton===!1||ub(L.closeButton)?Z.closeButton=L.closeButton:L.closeButton===!0&&(Z.closeButton=!ub(z.closeButton)||z.closeButton);let R=b;_.isValidElement(b)&&!T8(b.type)?R=_.cloneElement(b,{closeToast:q,toastProps:Z,data:T}):na(b)&&(R=b({closeToast:q,toastProps:Z,data:T}));const i1={content:R,props:Z,staleId:P};z.limit&&z.limit>0&&M>z.limit&&$?p.push(i1):Th(F)?setTimeout(()=>{x(i1)},F):x(i1)},setProps(b){z=b},setToggle:(b,L)=>{g.get(b).toggle=L},isToastActive:b=>H.some(L=>L===b),getSnapshot:()=>z.newestOnTop?m.reverse():m}}(l,o,Fc1);sn.set(l,s);const h=s.observe(c);return Oh.forEach(u=>fK(u.content,u.options)),Oh=[],()=>{h(),sn.delete(l)}},setProps(c){var s;(s=sn.get(l))==null||s.setProps(c)},getSnapshot(){var c;return(c=sn.get(l))==null?void 0:c.getSnapshot()}}}(t)).current;a(t);const r=_.useSyncExternalStore(e,n,n);return{getToastToRender:function(o){if(!r)return[];const l=new Map;return r.forEach(c=>{const{position:s}=c.props;l.has(s)||l.set(s,[]),l.get(s).push(c)}),Array.from(l,c=>o(c[0],c[1]))},isToastActive:dK,count:r==null?void 0:r.length}}function Uc1(t){const[e,n]=_.useState(!1),[a,r]=_.useState(!1),o=_.useRef(null),l=_.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:s,closeToast:h,onClick:u,closeOnClick:v}=t;var d,f;function M(){n(!0)}function p(){n(!1)}function H(g){const w=o.current;l.canDrag&&w&&(l.didMove=!0,e&&p(),l.delta=t.draggableDirection==="x"?g.clientX-l.start:g.clientY-l.start,l.start!==g.clientX&&(l.canCloseOnClick=!1),w.style.transform=`translate3d(${t.draggableDirection==="x"?`${l.delta}px, var(--y)`:`0, calc(${l.delta}px + var(--y))`},0)`,w.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function m(){document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",m);const g=o.current;if(l.canDrag&&l.didMove&&g){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return r(!0),t.closeToast(),void t.collapseAll();g.style.transition="transform 0.2s, opacity 0.2s",g.style.removeProperty("transform"),g.style.removeProperty("opacity")}}(f=sn.get((d={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||f.setToggle(d.id,d.fn),_.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||p(),window.addEventListener("focus",M),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",M),window.removeEventListener("blur",p)}},[t.pauseOnFocusLoss]);const z={onPointerDown:function(g){if(t.draggable===!0||t.draggable===g.pointerType){l.didMove=!1,document.addEventListener("pointermove",H),document.addEventListener("pointerup",m);const w=o.current;l.canCloseOnClick=!0,l.canDrag=!0,w.style.transition="none",t.draggableDirection==="x"?(l.start=g.clientX,l.removalDistance=w.offsetWidth*(t.draggablePercent/100)):(l.start=g.clientY,l.removalDistance=w.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(g){const{top:w,bottom:V,left:y,right:x}=o.current.getBoundingClientRect();g.nativeEvent.type!=="touchend"&&t.pauseOnHover&&g.clientX>=y&&g.clientX<=x&&g.clientY>=w&&g.clientY<=V?p():M()}};return c&&s&&(z.onMouseEnter=p,t.stacked||(z.onMouseLeave=M)),v&&(z.onClick=g=>{u&&u(g),l.canCloseOnClick&&h()}),{playToast:M,pauseToast:p,isRunning:e,preventExitTransition:a,toastRef:o,eventHandlers:z}}function Wc1(t){let{delay:e,isRunning:n,closeToast:a,type:r="default",hide:o,className:l,style:c,controlledProgress:s,progress:h,rtl:u,isIn:v,theme:d}=t;const f=o||s&&h===0,M={...c,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};s&&(M.transform=`scaleX(${h})`);const p=E3("Toastify__progress-bar",s?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":u}),H=na(l)?l({rtl:u,type:r,defaultClassName:p}):E3(p,l),m={[s&&h>=1?"onTransitionEnd":"onAnimationEnd"]:s&&h<1?null:()=>{v&&a()}};return W1.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},W1.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${r}`}),W1.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:H,style:M,...m}))}let qc1=1;const gK=()=>""+qc1++;function Gc1(t){return t&&(T8(t.toastId)||Th(t.toastId))?t.toastId:gK()}function R7(t,e){return fK(t,e),e.toastId}function xg(t,e){return{...e,type:e&&e.type||t,toastId:Gc1(e)}}function Dv(t){return(e,n)=>R7(e,xg(t,n))}function Q0(t,e){return R7(t,xg("default",e))}Q0.loading=(t,e)=>R7(t,xg("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Q0.promise=function(t,e,n){let a,{pending:r,error:o,success:l}=e;r&&(a=T8(r)?Q0.loading(r,n):Q0.loading(r.render,{...n,...r}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(u,v,d)=>{if(v==null)return void Q0.dismiss(a);const f={type:u,...c,...n,data:d},M=T8(v)?{render:v}:v;return a?Q0.update(a,{...f,...M}):Q0(M.render,{...f,...M}),d},h=na(t)?t():t;return h.then(u=>s("success",l,u)).catch(u=>s("error",o,u)),h},Q0.success=Dv("success"),Q0.info=Dv("info"),Q0.error=Dv("error"),Q0.warning=Dv("warning"),Q0.warn=Q0.warning,Q0.dark=(t,e)=>R7(t,xg("default",{theme:"dark",...e})),Q0.dismiss=function(t){(function(e){var n;if(vK()){if(e==null||T8(n=e)||Th(n))sn.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var a;(a=sn.get(e.containerId))!=null&&a.removeToast(e.id)||sn.forEach(r=>{r.removeToast(e.id)})}}else Oh=Oh.filter(r=>e!=null&&r.options.toastId!==e)})(t)},Q0.clearWaitingQueue=function(t){t===void 0&&(t={}),sn.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},Q0.isActive=dK,Q0.update=function(t,e){e===void 0&&(e={});const n=((a,r)=>{var o;let{containerId:l}=r;return(o=sn.get(l||1))==null?void 0:o.toasts.get(a)})(t,e);if(n){const{props:a,content:r}=n,o={delay:100,...a,...e,toastId:e.toastId||t,updateId:gK()};o.toastId!==t&&(o.staleId=t);const l=o.render||r;delete o.render,R7(l,o)}},Q0.done=t=>{Q0.update(t,{progress:1})},Q0.onChange=function(t){return vb.add(t),()=>{vb.delete(t)}},Q0.play=t=>GE(!0,t),Q0.pause=t=>GE(!1,t);const Kc1=typeof window<"u"?_.useLayoutEffect:_.useEffect,Rv=t=>{let{theme:e,type:n,isLoading:a,...r}=t;return W1.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},Ty={info:function(t){return W1.createElement(Rv,{...t},W1.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return W1.createElement(Rv,{...t},W1.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return W1.createElement(Rv,{...t},W1.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return W1.createElement(Rv,{...t},W1.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return W1.createElement("div",{className:"Toastify__spinner"})}},Yc1=t=>{const{isRunning:e,preventExitTransition:n,toastRef:a,eventHandlers:r,playToast:o}=Uc1(t),{closeButton:l,children:c,autoClose:s,onClick:h,type:u,hideProgressBar:v,closeToast:d,transition:f,position:M,className:p,style:H,bodyClassName:m,bodyStyle:z,progressClassName:g,progressStyle:w,updateId:V,role:y,progress:x,rtl:b,toastId:L,deleteToast:B,isIn:S,isLoading:T,closeOnClick:P,theme:F}=t,q=E3("Toastify__toast",`Toastify__toast-theme--${F}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":b},{"Toastify__toast--close-on-click":P}),$=na(p)?p({rtl:b,position:M,type:u,defaultClassName:q}):E3(q,p),Z=function(i1){let{theme:J,type:A,isLoading:c1,icon:u1}=i1,e1=null;const C1={theme:J,type:A};return u1===!1||(na(u1)?e1=u1({...C1,isLoading:c1}):_.isValidElement(u1)?e1=_.cloneElement(u1,C1):c1?e1=Ty.spinner():(h1=>h1 in Ty)(A)&&(e1=Ty[A](C1))),e1}(t),I=!!x||!s,n1={closeToast:d,type:u,theme:F};let R=null;return l===!1||(R=na(l)?l(n1):_.isValidElement(l)?_.cloneElement(l,n1):function(i1){let{closeToast:J,theme:A,ariaLabel:c1="close"}=i1;return W1.createElement("button",{className:`Toastify__close-button Toastify__close-button--${A}`,type:"button",onClick:u1=>{u1.stopPropagation(),J(u1)},"aria-label":c1},W1.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},W1.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(n1)),W1.createElement(f,{isIn:S,done:B,position:M,preventExitTransition:n,nodeRef:a,playToast:o},W1.createElement("div",{id:L,onClick:h,"data-in":S,className:$,...r,style:H,ref:a},W1.createElement("div",{...S&&{role:y},className:na(m)?m({type:u}):E3("Toastify__toast-body",m),style:z},Z!=null&&W1.createElement("div",{className:E3("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!T})},Z),W1.createElement("div",null,c)),R,W1.createElement(Wc1,{...V&&!I?{key:`pb-${V}`}:{},rtl:b,theme:F,delay:s,isRunning:e,isIn:S,closeToast:d,hide:v,type:u,style:w,className:g,controlledProgress:I,progress:x||0})))},Bm=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},Zc1=Lm(Bm("bounce",!0));Lm(Bm("slide",!0));Lm(Bm("zoom"));Lm(Bm("flip"));const Qc1={position:"top-right",transition:Zc1,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Xc1(t){let e={...Qc1,...t};const n=t.stacked,[a,r]=_.useState(!0),o=_.useRef(null),{getToastToRender:l,isToastActive:c,count:s}=$c1(e),{className:h,style:u,rtl:v,containerId:d}=e;function f(p){const H=E3("Toastify__toast-container",`Toastify__toast-container--${p}`,{"Toastify__toast-container--rtl":v});return na(h)?h({position:p,rtl:v,defaultClassName:H}):E3(H,vf(h))}function M(){n&&(r(!0),Q0.play())}return Kc1(()=>{if(n){var p;const H=o.current.querySelectorAll('[data-in="true"]'),m=12,z=(p=e.position)==null?void 0:p.includes("top");let g=0,w=0;Array.from(H).reverse().forEach((V,y)=>{const x=V;x.classList.add("Toastify__toast--stacked"),y>0&&(x.dataset.collapsed=`${a}`),x.dataset.pos||(x.dataset.pos=z?"top":"bot");const b=g*(a?.2:1)+(a?0:m*y);x.style.setProperty("--y",`${z?b:-1*b}px`),x.style.setProperty("--g",`${m}`),x.style.setProperty("--s",""+(1-(a?w:0))),g+=x.offsetHeight,w+=.025})}},[a,s,n]),W1.createElement("div",{ref:o,className:"Toastify",id:d,onMouseEnter:()=>{n&&(r(!1),Q0.pause())},onMouseLeave:M},l((p,H)=>{const m=H.length?{...u}:{...u,pointerEvents:"none"};return W1.createElement("div",{className:f(p),style:m,key:`container-${p}`},H.map(z=>{let{content:g,props:w}=z;return W1.createElement(Yc1,{...w,stacked:n,collapseAll:M,isIn:c(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},g)}))}))}const KE="/assets/logo-orange-ZEopurkl.svg";var E_={};const Ot=le(Ql1);var Vg={};(function(t){var e=C&&C.__makeTemplateObject||function(f,M){return Object.defineProperty?Object.defineProperty(f,"raw",{value:M}):f.raw=M,f},n=C&&C.__assign||function(){return n=Object.assign||function(f){for(var M,p=1,H=arguments.length;p=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function t2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y2(t){"@babel/helpers - typeof";return y2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y2(t)}function Jc1(t,e){if(y2(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e||"default");if(y2(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function pK(t){var e=Jc1(t,"string");return y2(e)=="symbol"?e:String(e)}function YE(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:1;ZE+=1;var a=ZE;function r(o){if(o===0)HK(a),e();else{var l=zK(function(){r(o-1)});P_.set(a,l)}}return r(n),a};m4.cancel=function(t){var e=P_.get(t);return HK(t),MK(e)};function $a(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var t91=_.forwardRef(function(t,e){var n=t.didUpdate,a=t.getContainer,r=t.children,o=_.useRef(),l=_.useRef();_.useImperativeHandle(e,function(){return{}});var c=_.useRef(!1);return!c.current&&$a()&&(l.current=a(),o.current=l.current.parentNode,c.current=!0),_.useEffect(function(){n==null||n(t)}),_.useEffect(function(){return l.current.parentNode===null&&o.current!==null&&o.current.appendChild(l.current),function(){var s;(s=l.current)===null||s===void 0||(s=s.parentNode)===null||s===void 0||s.removeChild(l.current)}},[]),l.current?M8.createPortal(r,l.current):null}),Oy;function Vm(t){if(typeof document>"u")return 0;if(t||Oy===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),a=n.style;a.position="absolute",a.top="0",a.left="0",a.pointerEvents="none",a.visibility="hidden",a.width="200px",a.height="150px",a.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var r=e.offsetWidth;n.style.overflow="scroll";var o=e.offsetWidth;r===o&&(o=n.clientWidth),document.body.removeChild(n),Oy=r-o}return Oy}function QE(t){var e=t.match(/^(.*)px$/),n=Number(e==null?void 0:e[1]);return Number.isNaN(n)?Vm():n}function e91(t){if(typeof document>"u"||!t||!(t instanceof Element))return{width:0,height:0};var e=getComputedStyle(t,"::-webkit-scrollbar"),n=e.width,a=e.height;return{width:QE(n),height:QE(a)}}function lc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!t)return{};var n=e.element,a=n===void 0?document.body:n,r={},o=Object.keys(t);return o.forEach(function(l){r[l]=a.style[l]}),o.forEach(function(l){a.style[l]=t[l]}),r}function n91(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ay={};const XE=function(t){if(!(!n91()&&!t)){var e="ant-scrolling-effect",n=new RegExp("".concat(e),"g"),a=document.body.className;if(t){if(!n.test(a))return;lc(Ay),Ay={},document.body.className=a.replace(n,"").trim();return}var r=Vm();if(r&&(Ay=lc({position:"relative",width:"calc(100% - ".concat(r,"px)")}),!n.test(a))){var o="".concat(a," ").concat(e);document.body.className=o.trim()}}};function db(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n0||o.scrollHeight>o.clientHeight)&&getComputedStyle(o).overflow!=="hidden"&&(r=Vm());var l=o.className;if(ma.filter(function(s){var h,u=s.options;return(u==null?void 0:u.container)===((h=n.options)===null||h===void 0?void 0:h.container)}).length===0&&Ey.set(o,lc({width:r!==0?"calc(100% - ".concat(r,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:o})),!ky.test(l)){var c="".concat(l," ").concat(yK);o.className=c.trim()}ma=[].concat(n0(ma),[{target:n.lockTarget,options:n.options}])}}),s1(this,"unLock",function(){var a,r=ma.find(function(c){var s=c.target;return s===n.lockTarget});if(ma=ma.filter(function(c){var s=c.target;return s!==n.lockTarget}),!(!r||ma.some(function(c){var s,h=c.options;return(h==null?void 0:h.container)===((s=r.options)===null||s===void 0?void 0:s.container)}))){var o=((a=n.options)===null||a===void 0?void 0:a.container)||document.body,l=o.className;ky.test(l)&&(lc(Ey.get(o),{element:o}),Ey.delete(o),o.className=o.className.replace(ky,"").trim())}}),this.lockTarget=i91++,this.options=e}),F5=0,w7=$a(),Ev={},j6=function(e){if(!w7)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(y2(e)==="object"&&e instanceof window.HTMLElement)return e}return document.body},xK=function(t){m2(n,t);var e=B2(n);function n(a){var r;return t2(this,n),r=e.call(this,a),s1(P1(r),"container",void 0),s1(P1(r),"componentRef",_.createRef()),s1(P1(r),"rafId",void 0),s1(P1(r),"scrollLocker",void 0),s1(P1(r),"renderComponent",void 0),s1(P1(r),"updateScrollLocker",function(o){var l=o||{},c=l.visible,s=r.props,h=s.getContainer,u=s.visible;u&&u!==c&&w7&&j6(h)!==r.scrollLocker.getContainer()&&r.scrollLocker.reLock({container:j6(h)})}),s1(P1(r),"updateOpenCount",function(o){var l=o||{},c=l.visible,s=l.getContainer,h=r.props,u=h.visible,v=h.getContainer;u!==c&&w7&&j6(v)===document.body&&(u&&!c?F5+=1:o&&(F5-=1));var d=typeof v=="function"&&typeof s=="function";(d?v.toString()!==s.toString():v!==s)&&r.removeCurrentContainer()}),s1(P1(r),"attachToParent",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(o||r.container&&!r.container.parentNode){var l=j6(r.props.getContainer);return l?(l.appendChild(r.container),!0):!1}return!0}),s1(P1(r),"getContainer",function(){return w7?(r.container||(r.container=document.createElement("div"),r.attachToParent(!0)),r.setWrapperClassName(),r.container):null}),s1(P1(r),"setWrapperClassName",function(){var o=r.props.wrapperClassName;r.container&&o&&o!==r.container.className&&(r.container.className=o)}),s1(P1(r),"removeCurrentContainer",function(){var o;(o=r.container)===null||o===void 0||(o=o.parentNode)===null||o===void 0||o.removeChild(r.container)}),s1(P1(r),"switchScrollingEffect",function(){F5===1&&!Object.keys(Ev).length?(XE(),Ev=lc({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):F5||(lc(Ev),Ev={},XE(!0))}),r.scrollLocker=new o91({container:j6(a.getContainer)}),r}return e2(n,[{key:"componentDidMount",value:function(){var r=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=m4(function(){r.forceUpdate()}))}},{key:"componentDidUpdate",value:function(r){this.updateOpenCount(r),this.updateScrollLocker(r),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var r=this.props,o=r.visible,l=r.getContainer;w7&&j6(l)===document.body&&(F5=o&&F5?F5-1:F5),this.removeCurrentContainer(),m4.cancel(this.rafId)}},{key:"render",value:function(){var r=this.props,o=r.children,l=r.forceRender,c=r.visible,s=null,h={getOpenCount:function(){return F5},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(l||c||this.componentRef.current)&&(s=_.createElement(t91,{getContainer:this.getContainer,ref:this.componentRef},o(h))),s}}]),n}(_.Component);function JE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function X1(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function t2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y2(t){"@babel/helpers - typeof";return y2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y2(t)}function Jc1(t,e){if(y2(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e||"default");if(y2(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function pK(t){var e=Jc1(t,"string");return y2(e)=="symbol"?e:String(e)}function YE(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:1;ZE+=1;var a=ZE;function r(o){if(o===0)HK(a),e();else{var l=zK(function(){r(o-1)});P_.set(a,l)}}return r(n),a};m4.cancel=function(t){var e=P_.get(t);return HK(t),MK(e)};function $a(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var t91=_.forwardRef(function(t,e){var n=t.didUpdate,a=t.getContainer,r=t.children,o=_.useRef(),l=_.useRef();_.useImperativeHandle(e,function(){return{}});var c=_.useRef(!1);return!c.current&&$a()&&(l.current=a(),o.current=l.current.parentNode,c.current=!0),_.useEffect(function(){n==null||n(t)}),_.useEffect(function(){return l.current.parentNode===null&&o.current!==null&&o.current.appendChild(l.current),function(){var s;(s=l.current)===null||s===void 0||(s=s.parentNode)===null||s===void 0||s.removeChild(l.current)}},[]),l.current?w8.createPortal(r,l.current):null}),Oy;function _m(t){if(typeof document>"u")return 0;if(t||Oy===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),a=n.style;a.position="absolute",a.top="0",a.left="0",a.pointerEvents="none",a.visibility="hidden",a.width="200px",a.height="150px",a.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var r=e.offsetWidth;n.style.overflow="scroll";var o=e.offsetWidth;r===o&&(o=n.clientWidth),document.body.removeChild(n),Oy=r-o}return Oy}function QE(t){var e=t.match(/^(.*)px$/),n=Number(e==null?void 0:e[1]);return Number.isNaN(n)?_m():n}function e91(t){if(typeof document>"u"||!t||!(t instanceof Element))return{width:0,height:0};var e=getComputedStyle(t,"::-webkit-scrollbar"),n=e.width,a=e.height;return{width:QE(n),height:QE(a)}}function cc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!t)return{};var n=e.element,a=n===void 0?document.body:n,r={},o=Object.keys(t);return o.forEach(function(l){r[l]=a.style[l]}),o.forEach(function(l){a.style[l]=t[l]}),r}function n91(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ay={};const XE=function(t){if(!(!n91()&&!t)){var e="ant-scrolling-effect",n=new RegExp("".concat(e),"g"),a=document.body.className;if(t){if(!n.test(a))return;cc(Ay),Ay={},document.body.className=a.replace(n,"").trim();return}var r=_m();if(r&&(Ay=cc({position:"relative",width:"calc(100% - ".concat(r,"px)")}),!n.test(a))){var o="".concat(a," ").concat(e);document.body.className=o.trim()}}};function db(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n0||o.scrollHeight>o.clientHeight)&&getComputedStyle(o).overflow!=="hidden"&&(r=_m());var l=o.className;if(ma.filter(function(s){var h,u=s.options;return(u==null?void 0:u.container)===((h=n.options)===null||h===void 0?void 0:h.container)}).length===0&&Ey.set(o,cc({width:r!==0?"calc(100% - ".concat(r,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:o})),!ky.test(l)){var c="".concat(l," ").concat(yK);o.className=c.trim()}ma=[].concat(n0(ma),[{target:n.lockTarget,options:n.options}])}}),s1(this,"unLock",function(){var a,r=ma.find(function(c){var s=c.target;return s===n.lockTarget});if(ma=ma.filter(function(c){var s=c.target;return s!==n.lockTarget}),!(!r||ma.some(function(c){var s,h=c.options;return(h==null?void 0:h.container)===((s=r.options)===null||s===void 0?void 0:s.container)}))){var o=((a=n.options)===null||a===void 0?void 0:a.container)||document.body,l=o.className;ky.test(l)&&(cc(Ey.get(o),{element:o}),Ey.delete(o),o.className=o.className.replace(ky,"").trim())}}),this.lockTarget=i91++,this.options=e}),$5=0,m7=$a(),jv={},I6=function(e){if(!m7)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(y2(e)==="object"&&e instanceof window.HTMLElement)return e}return document.body},xK=function(t){m2(n,t);var e=L2(n);function n(a){var r;return t2(this,n),r=e.call(this,a),s1(P1(r),"container",void 0),s1(P1(r),"componentRef",_.createRef()),s1(P1(r),"rafId",void 0),s1(P1(r),"scrollLocker",void 0),s1(P1(r),"renderComponent",void 0),s1(P1(r),"updateScrollLocker",function(o){var l=o||{},c=l.visible,s=r.props,h=s.getContainer,u=s.visible;u&&u!==c&&m7&&I6(h)!==r.scrollLocker.getContainer()&&r.scrollLocker.reLock({container:I6(h)})}),s1(P1(r),"updateOpenCount",function(o){var l=o||{},c=l.visible,s=l.getContainer,h=r.props,u=h.visible,v=h.getContainer;u!==c&&m7&&I6(v)===document.body&&(u&&!c?$5+=1:o&&($5-=1));var d=typeof v=="function"&&typeof s=="function";(d?v.toString()!==s.toString():v!==s)&&r.removeCurrentContainer()}),s1(P1(r),"attachToParent",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(o||r.container&&!r.container.parentNode){var l=I6(r.props.getContainer);return l?(l.appendChild(r.container),!0):!1}return!0}),s1(P1(r),"getContainer",function(){return m7?(r.container||(r.container=document.createElement("div"),r.attachToParent(!0)),r.setWrapperClassName(),r.container):null}),s1(P1(r),"setWrapperClassName",function(){var o=r.props.wrapperClassName;r.container&&o&&o!==r.container.className&&(r.container.className=o)}),s1(P1(r),"removeCurrentContainer",function(){var o;(o=r.container)===null||o===void 0||(o=o.parentNode)===null||o===void 0||o.removeChild(r.container)}),s1(P1(r),"switchScrollingEffect",function(){$5===1&&!Object.keys(jv).length?(XE(),jv=cc({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):$5||(cc(jv),jv={},XE(!0))}),r.scrollLocker=new o91({container:I6(a.getContainer)}),r}return e2(n,[{key:"componentDidMount",value:function(){var r=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=m4(function(){r.forceUpdate()}))}},{key:"componentDidUpdate",value:function(r){this.updateOpenCount(r),this.updateScrollLocker(r),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var r=this.props,o=r.visible,l=r.getContainer;m7&&I6(l)===document.body&&($5=o&&$5?$5-1:$5),this.removeCurrentContainer(),m4.cancel(this.rafId)}},{key:"render",value:function(){var r=this.props,o=r.children,l=r.forceRender,c=r.visible,s=null,h={getOpenCount:function(){return $5},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(l||c||this.componentRef.current)&&(s=_.createElement(t91,{getContainer:this.getContainer,ref:this.componentRef},o(h))),s}}]),n}(_.Component);function JE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function X1(t){for(var e=1;e=lt.F1&&n<=lt.F12)return!1;switch(n){case lt.ALT:case lt.CAPS_LOCK:case lt.CONTEXT_MENU:case lt.CTRL:case lt.DOWN:case lt.END:case lt.ESC:case lt.HOME:case lt.INSERT:case lt.LEFT:case lt.MAC_FF_META:case lt.META:case lt.NUMLOCK:case lt.NUM_CENTER:case lt.PAGE_DOWN:case lt.PAGE_UP:case lt.PAUSE:case lt.PRINT_SCREEN:case lt.RIGHT:case lt.SHIFT:case lt.UP:case lt.WIN_KEY:case lt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=lt.ZERO&&e<=lt.NINE||e>=lt.NUM_ZERO&&e<=lt.NUM_MULTIPLY||e>=lt.A&&e<=lt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case lt.SPACE:case lt.QUESTION_MARK:case lt.NUM_PLUS:case lt.NUM_MINUS:case lt.NUM_PERIOD:case lt.NUM_DIVISION:case lt.SEMICOLON:case lt.DASH:case lt.EQUALS:case lt.COMMA:case lt.PERIOD:case lt.SLASH:case lt.APOSTROPHE:case lt.SINGLE_QUOTE:case lt.OPEN_SQUARE_BRACKET:case lt.BACKSLASH:case lt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function N_(t,e){var n=X1({},t);return Array.isArray(e)&&e.forEach(function(a){delete n[a]}),n}function l91(t){return Array.isArray(t)?t:[t]}var CK={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},bK=Object.keys(CK).filter(function(t){if(typeof document>"u")return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],tP=CK[bK];function eP(t,e,n,a){t.addEventListener?t.addEventListener(e,n,a):t.attachEvent&&t.attachEvent("on".concat(e),n)}function nP(t,e,n,a){t.removeEventListener?t.removeEventListener(e,n,a):t.attachEvent&&t.detachEvent("on".concat(e),n)}function c91(t,e){var n=typeof t=="function"?t(e):t;return Array.isArray(n)?n.length===2?n:[n[0],n[1]]:[n]}var aP=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Py=!(typeof window<"u"&&window.document&&window.document.createElement),h91=function t(e,n,a,r){if(!n||n===document||n instanceof Document)return!1;if(n===e.parentNode)return!0;var o=Math.max(Math.abs(a),Math.abs(r))===Math.abs(r),l=Math.max(Math.abs(a),Math.abs(r))===Math.abs(a),c=n.scrollHeight-n.clientHeight,s=n.scrollWidth-n.clientWidth,h=document.defaultView.getComputedStyle(n),u=h.overflowY==="auto"||h.overflowY==="scroll",v=h.overflowX==="auto"||h.overflowX==="scroll",d=c&&u,f=s&&v;return o&&(!d||d&&(n.scrollTop>=c&&r<0||n.scrollTop<=0&&r>0))||l&&(!f||f&&(n.scrollLeft>=s&&a<0||n.scrollLeft<=0&&a>0))?t(e,n.parentNode,a,r):!1},s91=["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","scrollLocker","contentWrapperStyle"],I9={},rP=function(t){m2(n,t);var e=B2(n);function n(a){var r;return t2(this,n),r=e.call(this,a),r.levelDom=void 0,r.dom=void 0,r.contentWrapper=void 0,r.contentDom=void 0,r.maskDom=void 0,r.handlerDom=void 0,r.drawerId=void 0,r.timeout=void 0,r.passive=void 0,r.startPos=void 0,r.domFocus=function(){r.dom&&r.dom.focus()},r.removeStartHandler=function(o){if(o.touches.length>1){r.startPos=null;return}r.startPos={x:o.touches[0].clientX,y:o.touches[0].clientY}},r.removeMoveHandler=function(o){if(!(o.changedTouches.length>1||!r.startPos)){var l=o.currentTarget,c=o.changedTouches[0].clientX-r.startPos.x,s=o.changedTouches[0].clientY-r.startPos.y;(l===r.maskDom||l===r.handlerDom||l===r.contentDom&&h91(l,o.target,c,s))&&o.cancelable&&o.preventDefault()}},r.transitionEnd=function(o){var l=o.target;nP(l,tP,r.transitionEnd),l.style.transition=""},r.onKeyDown=function(o){if(o.keyCode===lt.ESC){var l=r.props.onClose;o.stopPropagation(),l&&l(o)}},r.onWrapperTransitionEnd=function(o){var l=r.props,c=l.open,s=l.afterVisibleChange;o.target===r.contentWrapper&&o.propertyName.match(/transform$/)&&(r.dom.style.transition="",!c&&r.getCurrentDrawerSome()&&(document.body.style.overflowX="",r.maskDom&&(r.maskDom.style.left="",r.maskDom.style.width="")),s&&s(!!c))},r.openLevelTransition=function(){var o=r.props,l=o.open,c=o.width,s=o.height,h=r.getHorizontalBoolAndPlacementName(),u=h.isHorizontal,v=h.placementName,d=r.contentDom?r.contentDom.getBoundingClientRect()[u?"width":"height"]:0,f=(u?c:s)||d;r.setLevelAndScrolling(l,v,f)},r.setLevelTransform=function(o,l,c,s){var h=r.props,u=h.placement,v=h.levelMove,d=h.duration,f=h.ease,M=h.showMask;r.levelDom.forEach(function(p){p.style.transition="transform ".concat(d," ").concat(f),eP(p,tP,r.transitionEnd);var H=o?c:0;if(v){var m=c91(v,{target:p,open:o});H=o?m[0]:m[1]||0}var z=typeof H=="number"?"".concat(H,"px"):H,g=u==="left"||u==="top"?z:"-".concat(z);g=M&&u==="right"&&s?"calc(".concat(g," + ").concat(s,"px)"):g,p.style.transform=H?"".concat(l,"(").concat(g,")"):""})},r.setLevelAndScrolling=function(o,l,c){var s=r.props.onChange;if(!Py){var h=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Vm(!0):0;r.setLevelTransform(o,l,c,h),r.toggleScrollingToDrawerAndBody(h)}s&&s(o)},r.toggleScrollingToDrawerAndBody=function(o){var l=r.props,c=l.getContainer,s=l.showMask,h=l.open,u=c&&c();if(u&&u.parentNode===document.body&&s){var v=["touchstart"],d=[document.body,r.maskDom,r.handlerDom,r.contentDom];h&&document.body.style.overflow!=="hidden"?(o&&r.addScrollingEffect(o),document.body.style.touchAction="none",d.forEach(function(f,M){f&&eP(f,v[M]||"touchmove",M?r.removeMoveHandler:r.removeStartHandler,r.passive)})):r.getCurrentDrawerSome()&&(document.body.style.touchAction="",o&&r.remScrollingEffect(o),d.forEach(function(f,M){f&&nP(f,v[M]||"touchmove",M?r.removeMoveHandler:r.removeStartHandler,r.passive)}))}},r.addScrollingEffect=function(o){var l=r.props,c=l.placement,s=l.duration,h=l.ease,u="width ".concat(s," ").concat(h),v="transform ".concat(s," ").concat(h);switch(r.dom.style.transition="none",c){case"right":r.dom.style.transform="translateX(-".concat(o,"px)");break;case"top":case"bottom":r.dom.style.width="calc(100% - ".concat(o,"px)"),r.dom.style.transform="translateZ(0)";break}clearTimeout(r.timeout),r.timeout=setTimeout(function(){r.dom&&(r.dom.style.transition="".concat(v,",").concat(u),r.dom.style.width="",r.dom.style.transform="")})},r.remScrollingEffect=function(o){var l=r.props,c=l.placement,s=l.duration,h=l.ease;bK&&(document.body.style.overflowX="hidden"),r.dom.style.transition="none";var u,v="width ".concat(s," ").concat(h),d="transform ".concat(s," ").concat(h);switch(c){case"left":{r.dom.style.width="100%",v="width 0s ".concat(h," ").concat(s);break}case"right":{r.dom.style.transform="translateX(".concat(o,"px)"),r.dom.style.width="100%",v="width 0s ".concat(h," ").concat(s),r.maskDom&&(r.maskDom.style.left="-".concat(o,"px"),r.maskDom.style.width="calc(100% + ".concat(o,"px)"));break}case"top":case"bottom":{r.dom.style.width="calc(100% + ".concat(o,"px)"),r.dom.style.height="100%",r.dom.style.transform="translateZ(0)",u="height 0s ".concat(h," ").concat(s);break}}clearTimeout(r.timeout),r.timeout=setTimeout(function(){r.dom&&(r.dom.style.transition="".concat(d,",").concat(u?"".concat(u,","):"").concat(v),r.dom.style.transform="",r.dom.style.width="",r.dom.style.height="")})},r.getCurrentDrawerSome=function(){return!Object.keys(I9).some(function(o){return I9[o]})},r.getLevelDom=function(o){var l=o.level,c=o.getContainer;if(!Py){var s=c&&c(),h=s?s.parentNode:null;if(r.levelDom=[],l==="all"){var u=h?Array.prototype.slice.call(h.children):[];u.forEach(function(v){v.nodeName!=="SCRIPT"&&v.nodeName!=="STYLE"&&v.nodeName!=="LINK"&&v!==s&&r.levelDom.push(v)})}else l&&l91(l).forEach(function(v){document.querySelectorAll(v).forEach(function(d){r.levelDom.push(d)})})}},r.getHorizontalBoolAndPlacementName=function(){var o=r.props.placement,l=o==="left"||o==="right",c="translate".concat(l?"X":"Y");return{isHorizontal:l,placementName:c}},r.state={_self:P1(r)},r}return e2(n,[{key:"componentDidMount",value:function(){var r=this;if(!Py){var o=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return o=!0,null}}))}catch{}this.passive=o?{passive:!1}:!1}var l=this.props,c=l.open,s=l.getContainer,h=l.showMask,u=l.autoFocus,v=s&&s();if(this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),c&&(v&&v.parentNode===document.body&&(I9[this.drawerId]=c),this.openLevelTransition(),this.forceUpdate(function(){u&&r.domFocus()}),h)){var d;(d=this.props.scrollLocker)===null||d===void 0||d.lock()}}},{key:"componentDidUpdate",value:function(r){var o=this.props,l=o.open,c=o.getContainer,s=o.scrollLocker,h=o.showMask,u=o.autoFocus,v=c&&c();l!==r.open&&(v&&v.parentNode===document.body&&(I9[this.drawerId]=!!l),this.openLevelTransition(),l?(u&&this.domFocus(),h&&(s==null||s.lock())):s==null||s.unLock())}},{key:"componentWillUnmount",value:function(){var r=this.props,o=r.open,l=r.scrollLocker;delete I9[this.drawerId],o&&(this.setLevelTransform(!1),document.body.style.touchAction=""),l==null||l.unLock()}},{key:"render",value:function(){var r,o=this,l=this.props,c=l.className,s=l.children,h=l.style,u=l.width,v=l.height;l.defaultOpen;var d=l.open,f=l.prefixCls,M=l.placement;l.level,l.levelMove,l.ease,l.duration,l.getContainer;var p=l.handler;l.onChange,l.afterVisibleChange;var H=l.showMask,m=l.maskClosable,z=l.maskStyle,g=l.onClose,w=l.onHandleClick,V=l.keyboard;l.getOpenCount,l.scrollLocker;var y=l.contentWrapperStyle,x=d0(l,s91),b=this.dom?d:!1,L=A2(f,(r={},s1(r,"".concat(f,"-").concat(M),!0),s1(r,"".concat(f,"-open"),b),s1(r,c||"",!!c),s1(r,"no-mask",!H),r)),B=this.getHorizontalBoolAndPlacementName(),S=B.placementName,T=M==="left"||M==="top"?"-100%":"100%",P=b?"":"".concat(S,"(").concat(T,")"),F=p&&_.cloneElement(p,{onClick:function($){p.props.onClick&&p.props.onClick(),w&&w($)},ref:function($){o.handlerDom=$}});return _.createElement("div",Zt({},N_(x,["switchScrollingEffect","autoFocus"]),{tabIndex:-1,className:L,style:h,ref:function($){o.dom=$},onKeyDown:b&&V?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),H&&_.createElement("div",{className:"".concat(f,"-mask"),onClick:m?g:void 0,style:z,ref:function($){o.maskDom=$}}),_.createElement("div",{className:"".concat(f,"-content-wrapper"),style:X1({transform:P,msTransform:P,width:aP(u)?"".concat(u,"px"):u,height:aP(v)?"".concat(v,"px"):v},y),ref:function($){o.contentWrapper=$}},_.createElement("div",{className:"".concat(f,"-content"),ref:function($){o.contentDom=$}},s),F))}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,c=o._self,s={prevProps:r};if(l!==void 0){var h=r.placement,u=r.level;h!==l.placement&&(c.contentDom=null),u!==l.level&&c.getLevelDom(r)}return s}}]),n}(_.Component),u91=["defaultOpen","getContainer","wrapperClassName","forceRender","handler"],v91=["visible","afterClose"],LK=function(t){m2(n,t);var e=B2(n);function n(a){var r;t2(this,n),r=e.call(this,a),r.dom=void 0,r.onHandleClick=function(l){var c=r.props,s=c.onHandleClick,h=c.open;if(s&&s(l),typeof h>"u"){var u=r.state.open;r.setState({open:!u})}},r.onClose=function(l){var c=r.props,s=c.onClose,h=c.open;s&&s(l),typeof h>"u"&&r.setState({open:!1})};var o=typeof a.open<"u"?a.open:!!a.defaultOpen;return r.state={open:o},"onMaskClick"in a&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),r}return e2(n,[{key:"render",value:function(){var r=this,o=this.props;o.defaultOpen;var l=o.getContainer,c=o.wrapperClassName,s=o.forceRender,h=o.handler,u=d0(o,u91),v=this.state.open;if(!l)return _.createElement("div",{className:c,ref:function(M){r.dom=M}},_.createElement(rP,Zt({},u,{open:v,handler:h,getContainer:function(){return r.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var d=!!h||s;return _.createElement(xK,{visible:v,forceRender:d,getContainer:l,wrapperClassName:c},function(f){var M=f.visible,p=f.afterClose,H=d0(f,v91);return _.createElement(rP,Zt({},u,H,{open:M!==void 0?M:v,afterVisibleChange:p!==void 0?p:u.afterVisibleChange,handler:h,onClose:r.onClose,onHandleClick:r.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,c={prevProps:r};return typeof l<"u"&&r.open!==l.open&&(c.open=r.open),c}}]),n}(_.Component);LK.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:_.createElement("div",{className:"drawer-handle"},_.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1,autoFocus:!0};const d91=Object.freeze(Object.defineProperty({__proto__:null,default:LK},Symbol.toStringTag,{value:"Module"})),f91=le(d91);var Ua={},bm={},Lm={},ro={},Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.setConfiguration=Nr.getConfiguration=void 0;let fb={breakpoints:[576,768,992,1200,1600,1920],containerWidths:[540,750,960,1140,1540,1810],gutterWidth:30,gridColumns:12,defaultScreenClass:"xxl",maxScreenClass:"xxl"};const g91=()=>fb;Nr.getConfiguration=g91;const p91=t=>{fb={...fb,...t}};Nr.setConfiguration=p91;var Rc={},Bm={};Object.defineProperty(Bm,"__esModule",{value:!0});Bm.default=void 0;var m91="div";Bm.default=m91;var _m={};Object.defineProperty(_m,"__esModule",{value:!0});_m.default=void 0;var z91="span";_m.default=z91;var Sm={};Object.defineProperty(Sm,"__esModule",{value:!0});Sm.default=void 0;var M91=typeof window<"u"?window:void 0;Sm.default=M91;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Div",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"Span",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"Window",{enumerable:!0,get:function(){return a.default}});var e=r(Bm),n=r(_m),a=r(Sm);function r(o){return o&&o.__esModule?o:{default:o}}})(Rc);Object.defineProperty(ro,"__esModule",{value:!0});ro.useScreenClass=ro.screenClasses=void 0;var iP=_,H91=Nr,U7=Rc;const w91=t=>t&&t.current&&t.current.clientWidth?t.current.clientWidth:typeof U7.Window<"u"&&U7.Window.innerWidth?U7.Window.innerWidth:null,cf=["xs","sm","md","lg","xl","xxl","xxxl"];ro.screenClasses=cf;const y91=(t,e)=>{const n=()=>{const{breakpoints:o,defaultScreenClass:l,maxScreenClass:c}=(0,H91.getConfiguration)();let s=l;const h=w91(t);h?(s="xs",o[0]&&h>=o[0]&&(s="sm"),o[1]&&h>=o[1]&&(s="md"),o[2]&&h>=o[2]&&(s="lg"),o[3]&&h>=o[3]&&(s="xl"),o[4]&&h>=o[4]&&(s="xxl"),o[5]&&h>=o[5]&&(s="xxxl")):e&&(s=e);const u=cf.indexOf(s),v=cf.indexOf(c);return v>=0&&u>v&&(s=cf[v]),s},[a,r]=(0,iP.useState)(()=>n());return(0,iP.useEffect)(()=>{const o=()=>r(n());return U7.Window.addEventListener("resize",o,!1),()=>{U7.Window.removeEventListener("resize",o,!1)}},[]),a};ro.useScreenClass=y91;Object.defineProperty(Lm,"__esModule",{value:!0});Lm.default=void 0;var oP=ro;const x91=t=>Object.keys(t).reduce((e,n)=>e||t[n],!1),Pv=(t,e)=>{if(typeof t!="number")return;const n=Math.max(0,Math.min(e,t));return`${100/e*n}%`};var V91=t=>{let{forceWidth:e=null,width:n={},offset:a={},pull:r={},push:o={},order:l={},debug:c,screenClass:s,gutterWidth:h,moreStyle:u,gridColumns:v}=t;const d={boxSizing:"border-box",minHeight:1,position:"relative",paddingLeft:h/2,paddingRight:h/2,width:"100%"};return c&&(d.outline="1px solid silver",d.background="rgba(0,0,0,.05)",d.lineHeight="32px"),d.flexBasis="100%",d.flexGrow=0,d.flexShrink=0,d.maxWidth="100%",d.marginLeft="0%",d.right="auto",d.left="auto",oP.screenClasses.forEach((f,M)=>{if(oP.screenClasses.indexOf(s)>=M){const p=Pv(n[f],v),H=n[f]==="content";d.flexBasis=H?"auto":p||d.flexBasis,d.width=d.flexBasis,d.maxWidth=p||d.maxWidth,d.marginLeft=Pv(a[f],v)||d.marginLeft,d.right=Pv(r[f],v)||d.right,d.left=Pv(o[f],v)||d.left,l[f]&&(d.order=l[f])}}),x91(n)||(d.flexBasis=0,d.flexGrow=1),e&&(d.flexBasis="unset",d.flexGrow="unset",d.flexShrink="unset",d.width=e),{...d,...u}};Lm.default=V91;var q8={},Tm={};Object.defineProperty(Tm,"__esModule",{value:!0});Tm.default=void 0;var C91=t=>{let{gutterWidth:e,align:n,justify:a,debug:r,moreStyle:o,direction:l,wrap:c}=t,s=n;n==="start"&&(s="flex-start"),n==="end"&&(s="flex-end");let h=a;a==="start"&&(h="flex-start"),a==="end"&&(h="flex-end"),a==="between"&&(h="space-between"),a==="around"&&(h="space-around"),a==="center"&&(h="center"),a==="initial"&&(h="initial"),a==="inherit"&&(h="inherit");const u=["column","row","column-reverse","row-reverse"].includes(l)?l:void 0;let v=c;c==="nowrap"&&(v="nowrap"),c==="wrap"&&(v="wrap"),c==="reverse"&&(v="wrap-reverse");const d={marginLeft:-e/2,marginRight:-e/2,display:"flex",flexGrow:0,flexShrink:0,alignItems:s,justifyContent:h,flexDirection:u,flexWrap:v};return r&&(d.background="rgba(128,128,128,.05)"),{...d,...o}};Tm.default=C91;Object.defineProperty(q8,"__esModule",{value:!0});q8.default=q8.GutterWidthContext=void 0;var hf=D_(_),Gn=D_(Ai),b91=Nr,L91=D_(Tm),B91=Rc;function D_(t){return t&&t.__esModule?t:{default:t}}const BK=hf.default.createContext(!1);q8.GutterWidthContext=BK;const Om=hf.default.forwardRef((t,e)=>{let{children:n,style:a,align:r,justify:o,wrap:l,debug:c,nogutter:s,gutterWidth:h,component:u,direction:v,...d}=t,f=(0,b91.getConfiguration)().gutterWidth;s&&(f=0),typeof h=="number"&&(f=h);const M=(0,L91.default)({gutterWidth:f,align:r,justify:o,debug:c,moreStyle:a,direction:v,wrap:l});return hf.default.createElement(u,{ref:e,style:M,...d},hf.default.createElement(BK.Provider,{value:f},n))});Om.propTypes={children:Gn.default.node.isRequired,align:Gn.default.oneOf(["normal","start","center","end","stretch"]),justify:Gn.default.oneOf(["start","center","end","between","around","initial","inherit"]),direction:Gn.default.oneOf(["column","row","column-reverse","row-reverse"]),wrap:Gn.default.oneOf(["nowrap","wrap","reverse"]),nogutter:Gn.default.bool,gutterWidth:Gn.default.number,style:Gn.default.objectOf(Gn.default.oneOfType([Gn.default.number,Gn.default.string])),debug:Gn.default.bool,component:Gn.default.elementType};Om.defaultProps={align:"normal",justify:"start",direction:"row",wrap:"wrap",nogutter:!1,gutterWidth:null,style:{},debug:!1,component:B91.Div};Om.displayName="Row";var _91=Om;q8.default=_91;var yo={},ui={};Object.defineProperty(ui,"__esModule",{value:!0});ui.default=ui.ScreenClassContext=ui.NO_PROVIDER_FLAG=void 0;var d3=k91(_),Ny=A91(Ai),S91=ro,T91=Nr,O91=Rc;function A91(t){return t&&t.__esModule?t:{default:t}}function _K(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(_K=function(a){return a?n:e})(t)}function k91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=_K(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}const SK="NO_PROVIDER_FLAG";ui.NO_PROVIDER_FLAG=SK;const TK=d3.default.createContext(SK);ui.ScreenClassContext=TK;const R_=t=>{let{useOwnWidth:e,children:n,fallbackScreenClass:a}=t;const r=(0,d3.useRef)(),[o,l]=(0,d3.useState)(!1),c=(0,S91.useScreenClass)(r,a),{defaultScreenClass:s}=(0,T91.getConfiguration)(),h=o?c:a||s;return(0,d3.useEffect)(()=>l(!0),[]),d3.default.createElement(TK.Provider,{value:h},e?d3.default.createElement(O91.Div,{ref:e?r:null},n):d3.default.createElement(d3.default.Fragment,null,n))};R_.propTypes={children:Ny.default.node.isRequired,useOwnWidth:Ny.default.bool,fallbackScreenClass:Ny.default.oneOf([null,"xs","sm","md","lg","xl","xxl","xxxl"])};R_.defaultProps={useOwnWidth:!1,fallbackScreenClass:null};var E91=R_;ui.default=E91;Object.defineProperty(yo,"__esModule",{value:!0});yo.default=void 0;var Dy=AK(_),P91=AK(Ai),Nv=N91(ui);function OK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(OK=function(a){return a?n:e})(t)}function N91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=OK(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}function AK(t){return t&&t.__esModule?t:{default:t}}const kK=t=>{let{children:e}=t;return Dy.default.createElement(Nv.ScreenClassContext.Consumer,null,n=>n===Nv.NO_PROVIDER_FLAG?Dy.default.createElement(Nv.default,null,Dy.default.createElement(Nv.ScreenClassContext.Consumer,null,a=>e(a))):e(n))};kK.propTypes={children:P91.default.func.isRequired};var D91=kK;yo.default=D91;Object.defineProperty(bm,"__esModule",{value:!0});bm.default=void 0;var Dv=U91(_),Yt=j_(Ai),R91=j_(Lm),j91=Nr,I91=q8,F91=j_(yo),$91=Rc;function j_(t){return t&&t.__esModule?t:{default:t}}function EK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(EK=function(a){return a?n:e})(t)}function U91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=EK(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}const Am=Dv.default.forwardRef((t,e)=>{let{children:n,xs:a,sm:r,md:o,lg:l,xl:c,xxl:s,xxxl:h,offset:u,pull:v,push:d,order:f,debug:M,style:p,component:H,width:m,...z}=t;return Dv.default.createElement(F91.default,null,g=>Dv.default.createElement(I91.GutterWidthContext.Consumer,null,w=>{const V=(0,R91.default)({forceWidth:m,width:{xs:a,sm:r,md:o,lg:l,xl:c,xxl:s,xxxl:h},offset:u,pull:v,push:d,order:f,debug:M,screenClass:g,gutterWidth:w,gridColumns:(0,j91.getConfiguration)().gridColumns,moreStyle:p});return(0,Dv.createElement)(H,{ref:e,style:V,...z,children:n})}))});Am.propTypes={children:Yt.default.node,xs:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),sm:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),md:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),lg:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),xl:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),xxl:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),xxxl:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),width:Yt.default.oneOfType([Yt.default.number,Yt.default.string]),offset:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),push:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),pull:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),order:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),style:Yt.default.objectOf(Yt.default.oneOfType([Yt.default.number,Yt.default.string])),debug:Yt.default.bool,component:Yt.default.elementType};Am.defaultProps={children:null,xs:null,sm:null,md:null,lg:null,xl:null,xxl:null,xxxl:null,width:null,offset:{},push:{},pull:{},style:{},order:{},debug:!1,component:$91.Div};Am.displayName="Col";var W91=Am;bm.default=W91;var km={},Em={};Object.defineProperty(Em,"__esModule",{value:!0});Em.default=void 0;var q91=t=>{let{fluid:e,xs:n,sm:a,md:r,lg:o,xl:l,xxl:c,xxxl:s,screenClass:h,containerWidths:u,gutterWidth:v,moreStyle:d}=t;const f={boxSizing:"border-box",position:"relative",marginLeft:"auto",marginRight:"auto",paddingLeft:v/2,paddingRight:v/2};return e&&!n&&!a&&!r&&!o&&!l?{...f,...d}:(h==="xs"&&u[0]&&!n&&(f.maxWidth=u[0]),h==="sm"&&u[0]&&!a&&(f.maxWidth=u[0]),h==="md"&&u[1]&&!r&&(f.maxWidth=u[1]),h==="lg"&&u[2]&&!o&&(f.maxWidth=u[2]),h==="xl"&&u[3]&&!l&&(f.maxWidth=u[3]),h==="xxl"&&u[4]&&!c&&(f.maxWidth=u[4]),h==="xxxl"&&u[5]&&!s&&(f.maxWidth=u[5]),{...f,...d})};Em.default=q91;Object.defineProperty(km,"__esModule",{value:!0});km.default=void 0;var Ry=Z91(_),xn=I_(Ai),G91=I_(Em),lP=Nr,K91=I_(yo),Y91=Rc;function I_(t){return t&&t.__esModule?t:{default:t}}function PK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(PK=function(a){return a?n:e})(t)}function Z91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=PK(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}const Pm=Ry.default.forwardRef((t,e)=>{let{children:n,fluid:a,xs:r,sm:o,md:l,lg:c,xl:s,xxl:h,xxxl:u,style:v,component:d,...f}=t;return Ry.default.createElement(K91.default,null,M=>(0,Ry.createElement)(d,{ref:e,style:(0,G91.default)({fluid:a,xs:r,sm:o,md:l,lg:c,xl:s,xxl:h,xxxl:u,screenClass:M,containerWidths:(0,lP.getConfiguration)().containerWidths,gutterWidth:(0,lP.getConfiguration)().gutterWidth,moreStyle:v}),...f},n))});Pm.propTypes={children:xn.default.node.isRequired,fluid:xn.default.bool,xs:xn.default.bool,sm:xn.default.bool,md:xn.default.bool,lg:xn.default.bool,xl:xn.default.bool,xxl:xn.default.bool,xxxl:xn.default.bool,style:xn.default.objectOf(xn.default.oneOfType([xn.default.number,xn.default.string])),component:xn.default.elementType};Pm.defaultProps={fluid:!1,xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1,xxxl:!1,style:{},component:Y91.Div};Pm.displayName="Container";var Q91=Pm;km.default=Q91;var Nm={},cc={};Object.defineProperty(cc,"__esModule",{value:!0});cc.hidden=cc.default=void 0;const NK=t=>{let{screenClass:e,xs:n,sm:a,md:r,lg:o,xl:l,xxl:c,xxxl:s}=t;return e==="xxl"?c:e==="xxxl"?s:e==="xl"?l:e==="lg"?o:e==="md"?r:e==="sm"?a:n};cc.hidden=NK;var X91=NK;cc.default=X91;Object.defineProperty(Nm,"__esModule",{value:!0});Nm.default=void 0;var J91=F_(_),t3=F_(Ai),t71=n71(cc),e71=F_(yo);function DK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(DK=function(a){return a?n:e})(t)}function n71(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=DK(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}function F_(t){return t&&t.__esModule?t:{default:t}}const $_=t=>{let{children:e,xs:n,sm:a,md:r,lg:o,xl:l,xxl:c,xxxl:s}=t;return J91.default.createElement(e71.default,null,h=>t71.hidden({screenClass:h,xs:n,sm:a,md:r,lg:o,xl:l,xxl:c,xxxl:s})?null:e)};$_.propTypes={children:t3.default.node.isRequired,xs:t3.default.bool,sm:t3.default.bool,md:t3.default.bool,lg:t3.default.bool,xl:t3.default.bool,xxl:t3.default.bool,xxxl:t3.default.bool};$_.defaultProps={xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1,xxxl:!1};var a71=$_;Nm.default=a71;var Dm={},hc={};Object.defineProperty(hc,"__esModule",{value:!0});hc.visible=hc.default=void 0;const RK=t=>{let{screenClass:e,xs:n,sm:a,md:r,lg:o,xl:l,xxl:c,xxxl:s}=t;return e==="xxl"?c:e==="xxxl"?s:e==="xl"?l:e==="lg"?o:e==="md"?r:e==="sm"?a:n};hc.visible=RK;var r71=RK;hc.default=r71;Object.defineProperty(Dm,"__esModule",{value:!0});Dm.default=void 0;var i71=U_(_),e3=U_(Ai),o71=c71(hc),l71=U_(yo);function jK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(jK=function(a){return a?n:e})(t)}function c71(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=jK(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}function U_(t){return t&&t.__esModule?t:{default:t}}const W_=t=>{let{children:e,xs:n,sm:a,md:r,lg:o,xl:l,xxl:c,xxxl:s}=t;return i71.default.createElement(l71.default,null,h=>o71.visible({screenClass:h,xs:n,sm:a,md:r,lg:o,xl:l,xxl:c,xxxl:s})?e:null)};W_.propTypes={children:e3.default.node.isRequired,xs:e3.default.bool,sm:e3.default.bool,md:e3.default.bool,lg:e3.default.bool,xl:e3.default.bool,xxl:e3.default.bool,xxxl:e3.default.bool};W_.defaultProps={xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1,xxxl:!1};var h71=W_;Dm.default=h71;var Rm={};Object.defineProperty(Rm,"__esModule",{value:!0});Rm.default=void 0;var s71=q_(_),u71=q_(Ai),v71=q_(yo);function q_(t){return t&&t.__esModule?t:{default:t}}const IK=t=>{let{render:e}=t;return s71.default.createElement(v71.default,null,n=>e(n))};IK.propTypes={render:u71.default.func.isRequired};var d71=IK;Rm.default=d71;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Col",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"Hidden",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Row",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"ScreenClassContext",{enumerable:!0,get:function(){return c.ScreenClassContext}}),Object.defineProperty(t,"ScreenClassProvider",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"ScreenClassRender",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Visible",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"setConfiguration",{enumerable:!0,get:function(){return s.setConfiguration}}),Object.defineProperty(t,"useScreenClass",{enumerable:!0,get:function(){return h.useScreenClass}});var e=d(bm),n=d(km),a=d(q8),r=d(Nm),o=d(Dm),l=d(Rm),c=v(ui),s=Nr,h=ro;function u(f){if(typeof WeakMap!="function")return null;var M=new WeakMap,p=new WeakMap;return(u=function(H){return H?p:M})(f)}function v(f,M){if(!M&&f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var p=u(M);if(p&&p.has(f))return p.get(f);var H={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in f)if(z!=="default"&&Object.prototype.hasOwnProperty.call(f,z)){var g=m?Object.getOwnPropertyDescriptor(f,z):null;g&&(g.get||g.set)?Object.defineProperty(H,z,g):H[z]=f[z]}return H.default=f,p&&p.set(f,H),H}function d(f){return f&&f.__esModule?f:{default:f}}})(Ua);var jy={},Nh={},jm={};Object.defineProperty(jm,"__esModule",{value:!0});jm.setAvatarBySize=void 0;var f71=function(t){switch(t){case"extraSmall":return"22px";case"superSmall":return"30px";case"small":return"40px";case"medium":return"50px";case"large":return"60px";case"extraLarge":return"112px";default:return"50px"}};jm.setAvatarBySize=f71;(function(t){var e=C&&C.__makeTemplateObject||function(M,p){return Object.defineProperty?Object.defineProperty(M,"raw",{value:p}):M.raw=p,M},n=C&&C.__assign||function(){return n=Object.assign||function(M){for(var p,H=1,m=arguments.length;H=ot.F1&&n<=ot.F12)return!1;switch(n){case ot.ALT:case ot.CAPS_LOCK:case ot.CONTEXT_MENU:case ot.CTRL:case ot.DOWN:case ot.END:case ot.ESC:case ot.HOME:case ot.INSERT:case ot.LEFT:case ot.MAC_FF_META:case ot.META:case ot.NUMLOCK:case ot.NUM_CENTER:case ot.PAGE_DOWN:case ot.PAGE_UP:case ot.PAUSE:case ot.PRINT_SCREEN:case ot.RIGHT:case ot.SHIFT:case ot.UP:case ot.WIN_KEY:case ot.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ot.ZERO&&e<=ot.NINE||e>=ot.NUM_ZERO&&e<=ot.NUM_MULTIPLY||e>=ot.A&&e<=ot.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case ot.SPACE:case ot.QUESTION_MARK:case ot.NUM_PLUS:case ot.NUM_MINUS:case ot.NUM_PERIOD:case ot.NUM_DIVISION:case ot.SEMICOLON:case ot.DASH:case ot.EQUALS:case ot.COMMA:case ot.PERIOD:case ot.SLASH:case ot.APOSTROPHE:case ot.SINGLE_QUOTE:case ot.OPEN_SQUARE_BRACKET:case ot.BACKSLASH:case ot.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function N_(t,e){var n=X1({},t);return Array.isArray(e)&&e.forEach(function(a){delete n[a]}),n}function l91(t){return Array.isArray(t)?t:[t]}var CK={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},bK=Object.keys(CK).filter(function(t){if(typeof document>"u")return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],tP=CK[bK];function eP(t,e,n,a){t.addEventListener?t.addEventListener(e,n,a):t.attachEvent&&t.attachEvent("on".concat(e),n)}function nP(t,e,n,a){t.removeEventListener?t.removeEventListener(e,n,a):t.attachEvent&&t.detachEvent("on".concat(e),n)}function c91(t,e){var n=typeof t=="function"?t(e):t;return Array.isArray(n)?n.length===2?n:[n[0],n[1]]:[n]}var aP=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Py=!(typeof window<"u"&&window.document&&window.document.createElement),h91=function t(e,n,a,r){if(!n||n===document||n instanceof Document)return!1;if(n===e.parentNode)return!0;var o=Math.max(Math.abs(a),Math.abs(r))===Math.abs(r),l=Math.max(Math.abs(a),Math.abs(r))===Math.abs(a),c=n.scrollHeight-n.clientHeight,s=n.scrollWidth-n.clientWidth,h=document.defaultView.getComputedStyle(n),u=h.overflowY==="auto"||h.overflowY==="scroll",v=h.overflowX==="auto"||h.overflowX==="scroll",d=c&&u,f=s&&v;return o&&(!d||d&&(n.scrollTop>=c&&r<0||n.scrollTop<=0&&r>0))||l&&(!f||f&&(n.scrollLeft>=s&&a<0||n.scrollLeft<=0&&a>0))?t(e,n.parentNode,a,r):!1},s91=["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","scrollLocker","contentWrapperStyle"],N9={},rP=function(t){m2(n,t);var e=L2(n);function n(a){var r;return t2(this,n),r=e.call(this,a),r.levelDom=void 0,r.dom=void 0,r.contentWrapper=void 0,r.contentDom=void 0,r.maskDom=void 0,r.handlerDom=void 0,r.drawerId=void 0,r.timeout=void 0,r.passive=void 0,r.startPos=void 0,r.domFocus=function(){r.dom&&r.dom.focus()},r.removeStartHandler=function(o){if(o.touches.length>1){r.startPos=null;return}r.startPos={x:o.touches[0].clientX,y:o.touches[0].clientY}},r.removeMoveHandler=function(o){if(!(o.changedTouches.length>1||!r.startPos)){var l=o.currentTarget,c=o.changedTouches[0].clientX-r.startPos.x,s=o.changedTouches[0].clientY-r.startPos.y;(l===r.maskDom||l===r.handlerDom||l===r.contentDom&&h91(l,o.target,c,s))&&o.cancelable&&o.preventDefault()}},r.transitionEnd=function(o){var l=o.target;nP(l,tP,r.transitionEnd),l.style.transition=""},r.onKeyDown=function(o){if(o.keyCode===ot.ESC){var l=r.props.onClose;o.stopPropagation(),l&&l(o)}},r.onWrapperTransitionEnd=function(o){var l=r.props,c=l.open,s=l.afterVisibleChange;o.target===r.contentWrapper&&o.propertyName.match(/transform$/)&&(r.dom.style.transition="",!c&&r.getCurrentDrawerSome()&&(document.body.style.overflowX="",r.maskDom&&(r.maskDom.style.left="",r.maskDom.style.width="")),s&&s(!!c))},r.openLevelTransition=function(){var o=r.props,l=o.open,c=o.width,s=o.height,h=r.getHorizontalBoolAndPlacementName(),u=h.isHorizontal,v=h.placementName,d=r.contentDom?r.contentDom.getBoundingClientRect()[u?"width":"height"]:0,f=(u?c:s)||d;r.setLevelAndScrolling(l,v,f)},r.setLevelTransform=function(o,l,c,s){var h=r.props,u=h.placement,v=h.levelMove,d=h.duration,f=h.ease,M=h.showMask;r.levelDom.forEach(function(p){p.style.transition="transform ".concat(d," ").concat(f),eP(p,tP,r.transitionEnd);var H=o?c:0;if(v){var m=c91(v,{target:p,open:o});H=o?m[0]:m[1]||0}var z=typeof H=="number"?"".concat(H,"px"):H,g=u==="left"||u==="top"?z:"-".concat(z);g=M&&u==="right"&&s?"calc(".concat(g," + ").concat(s,"px)"):g,p.style.transform=H?"".concat(l,"(").concat(g,")"):""})},r.setLevelAndScrolling=function(o,l,c){var s=r.props.onChange;if(!Py){var h=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?_m(!0):0;r.setLevelTransform(o,l,c,h),r.toggleScrollingToDrawerAndBody(h)}s&&s(o)},r.toggleScrollingToDrawerAndBody=function(o){var l=r.props,c=l.getContainer,s=l.showMask,h=l.open,u=c&&c();if(u&&u.parentNode===document.body&&s){var v=["touchstart"],d=[document.body,r.maskDom,r.handlerDom,r.contentDom];h&&document.body.style.overflow!=="hidden"?(o&&r.addScrollingEffect(o),document.body.style.touchAction="none",d.forEach(function(f,M){f&&eP(f,v[M]||"touchmove",M?r.removeMoveHandler:r.removeStartHandler,r.passive)})):r.getCurrentDrawerSome()&&(document.body.style.touchAction="",o&&r.remScrollingEffect(o),d.forEach(function(f,M){f&&nP(f,v[M]||"touchmove",M?r.removeMoveHandler:r.removeStartHandler,r.passive)}))}},r.addScrollingEffect=function(o){var l=r.props,c=l.placement,s=l.duration,h=l.ease,u="width ".concat(s," ").concat(h),v="transform ".concat(s," ").concat(h);switch(r.dom.style.transition="none",c){case"right":r.dom.style.transform="translateX(-".concat(o,"px)");break;case"top":case"bottom":r.dom.style.width="calc(100% - ".concat(o,"px)"),r.dom.style.transform="translateZ(0)";break}clearTimeout(r.timeout),r.timeout=setTimeout(function(){r.dom&&(r.dom.style.transition="".concat(v,",").concat(u),r.dom.style.width="",r.dom.style.transform="")})},r.remScrollingEffect=function(o){var l=r.props,c=l.placement,s=l.duration,h=l.ease;bK&&(document.body.style.overflowX="hidden"),r.dom.style.transition="none";var u,v="width ".concat(s," ").concat(h),d="transform ".concat(s," ").concat(h);switch(c){case"left":{r.dom.style.width="100%",v="width 0s ".concat(h," ").concat(s);break}case"right":{r.dom.style.transform="translateX(".concat(o,"px)"),r.dom.style.width="100%",v="width 0s ".concat(h," ").concat(s),r.maskDom&&(r.maskDom.style.left="-".concat(o,"px"),r.maskDom.style.width="calc(100% + ".concat(o,"px)"));break}case"top":case"bottom":{r.dom.style.width="calc(100% + ".concat(o,"px)"),r.dom.style.height="100%",r.dom.style.transform="translateZ(0)",u="height 0s ".concat(h," ").concat(s);break}}clearTimeout(r.timeout),r.timeout=setTimeout(function(){r.dom&&(r.dom.style.transition="".concat(d,",").concat(u?"".concat(u,","):"").concat(v),r.dom.style.transform="",r.dom.style.width="",r.dom.style.height="")})},r.getCurrentDrawerSome=function(){return!Object.keys(N9).some(function(o){return N9[o]})},r.getLevelDom=function(o){var l=o.level,c=o.getContainer;if(!Py){var s=c&&c(),h=s?s.parentNode:null;if(r.levelDom=[],l==="all"){var u=h?Array.prototype.slice.call(h.children):[];u.forEach(function(v){v.nodeName!=="SCRIPT"&&v.nodeName!=="STYLE"&&v.nodeName!=="LINK"&&v!==s&&r.levelDom.push(v)})}else l&&l91(l).forEach(function(v){document.querySelectorAll(v).forEach(function(d){r.levelDom.push(d)})})}},r.getHorizontalBoolAndPlacementName=function(){var o=r.props.placement,l=o==="left"||o==="right",c="translate".concat(l?"X":"Y");return{isHorizontal:l,placementName:c}},r.state={_self:P1(r)},r}return e2(n,[{key:"componentDidMount",value:function(){var r=this;if(!Py){var o=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return o=!0,null}}))}catch{}this.passive=o?{passive:!1}:!1}var l=this.props,c=l.open,s=l.getContainer,h=l.showMask,u=l.autoFocus,v=s&&s();if(this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),c&&(v&&v.parentNode===document.body&&(N9[this.drawerId]=c),this.openLevelTransition(),this.forceUpdate(function(){u&&r.domFocus()}),h)){var d;(d=this.props.scrollLocker)===null||d===void 0||d.lock()}}},{key:"componentDidUpdate",value:function(r){var o=this.props,l=o.open,c=o.getContainer,s=o.scrollLocker,h=o.showMask,u=o.autoFocus,v=c&&c();l!==r.open&&(v&&v.parentNode===document.body&&(N9[this.drawerId]=!!l),this.openLevelTransition(),l?(u&&this.domFocus(),h&&(s==null||s.lock())):s==null||s.unLock())}},{key:"componentWillUnmount",value:function(){var r=this.props,o=r.open,l=r.scrollLocker;delete N9[this.drawerId],o&&(this.setLevelTransform(!1),document.body.style.touchAction=""),l==null||l.unLock()}},{key:"render",value:function(){var r,o=this,l=this.props,c=l.className,s=l.children,h=l.style,u=l.width,v=l.height;l.defaultOpen;var d=l.open,f=l.prefixCls,M=l.placement;l.level,l.levelMove,l.ease,l.duration,l.getContainer;var p=l.handler;l.onChange,l.afterVisibleChange;var H=l.showMask,m=l.maskClosable,z=l.maskStyle,g=l.onClose,w=l.onHandleClick,V=l.keyboard;l.getOpenCount,l.scrollLocker;var y=l.contentWrapperStyle,x=d0(l,s91),b=this.dom?d:!1,L=A2(f,(r={},s1(r,"".concat(f,"-").concat(M),!0),s1(r,"".concat(f,"-open"),b),s1(r,c||"",!!c),s1(r,"no-mask",!H),r)),B=this.getHorizontalBoolAndPlacementName(),S=B.placementName,T=M==="left"||M==="top"?"-100%":"100%",P=b?"":"".concat(S,"(").concat(T,")"),F=p&&_.cloneElement(p,{onClick:function($){p.props.onClick&&p.props.onClick(),w&&w($)},ref:function($){o.handlerDom=$}});return _.createElement("div",Zt({},N_(x,["switchScrollingEffect","autoFocus"]),{tabIndex:-1,className:L,style:h,ref:function($){o.dom=$},onKeyDown:b&&V?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),H&&_.createElement("div",{className:"".concat(f,"-mask"),onClick:m?g:void 0,style:z,ref:function($){o.maskDom=$}}),_.createElement("div",{className:"".concat(f,"-content-wrapper"),style:X1({transform:P,msTransform:P,width:aP(u)?"".concat(u,"px"):u,height:aP(v)?"".concat(v,"px"):v},y),ref:function($){o.contentWrapper=$}},_.createElement("div",{className:"".concat(f,"-content"),ref:function($){o.contentDom=$}},s),F))}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,c=o._self,s={prevProps:r};if(l!==void 0){var h=r.placement,u=r.level;h!==l.placement&&(c.contentDom=null),u!==l.level&&c.getLevelDom(r)}return s}}]),n}(_.Component),u91=["defaultOpen","getContainer","wrapperClassName","forceRender","handler"],v91=["visible","afterClose"],LK=function(t){m2(n,t);var e=L2(n);function n(a){var r;t2(this,n),r=e.call(this,a),r.dom=void 0,r.onHandleClick=function(l){var c=r.props,s=c.onHandleClick,h=c.open;if(s&&s(l),typeof h>"u"){var u=r.state.open;r.setState({open:!u})}},r.onClose=function(l){var c=r.props,s=c.onClose,h=c.open;s&&s(l),typeof h>"u"&&r.setState({open:!1})};var o=typeof a.open<"u"?a.open:!!a.defaultOpen;return r.state={open:o},"onMaskClick"in a&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),r}return e2(n,[{key:"render",value:function(){var r=this,o=this.props;o.defaultOpen;var l=o.getContainer,c=o.wrapperClassName,s=o.forceRender,h=o.handler,u=d0(o,u91),v=this.state.open;if(!l)return _.createElement("div",{className:c,ref:function(M){r.dom=M}},_.createElement(rP,Zt({},u,{open:v,handler:h,getContainer:function(){return r.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var d=!!h||s;return _.createElement(xK,{visible:v,forceRender:d,getContainer:l,wrapperClassName:c},function(f){var M=f.visible,p=f.afterClose,H=d0(f,v91);return _.createElement(rP,Zt({},u,H,{open:M!==void 0?M:v,afterVisibleChange:p!==void 0?p:u.afterVisibleChange,handler:h,onClose:r.onClose,onHandleClick:r.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,c={prevProps:r};return typeof l<"u"&&r.open!==l.open&&(c.open=r.open),c}}]),n}(_.Component);LK.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:_.createElement("div",{className:"drawer-handle"},_.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1,autoFocus:!0};const d91=Object.freeze(Object.defineProperty({__proto__:null,default:LK},Symbol.toStringTag,{value:"Module"})),f91=le(d91);var Ua={},Tm={},Om={},co={},Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.setConfiguration=Pr.getConfiguration=void 0;let fb={breakpoints:[576,768,992,1200,1600,1920],containerWidths:[540,750,960,1140,1540,1810],gutterWidth:30,gridColumns:12,defaultScreenClass:"xxl",maxScreenClass:"xxl"};const g91=()=>fb;Pr.getConfiguration=g91;const p91=t=>{fb={...fb,...t}};Pr.setConfiguration=p91;var jc={},Am={};Object.defineProperty(Am,"__esModule",{value:!0});Am.default=void 0;var m91="div";Am.default=m91;var km={};Object.defineProperty(km,"__esModule",{value:!0});km.default=void 0;var z91="span";km.default=z91;var Em={};Object.defineProperty(Em,"__esModule",{value:!0});Em.default=void 0;var M91=typeof window<"u"?window:void 0;Em.default=M91;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Div",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"Span",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"Window",{enumerable:!0,get:function(){return a.default}});var e=r(Am),n=r(km),a=r(Em);function r(o){return o&&o.__esModule?o:{default:o}}})(jc);Object.defineProperty(co,"__esModule",{value:!0});co.useScreenClass=co.screenClasses=void 0;var iP=_,H91=Pr,j7=jc;const w91=t=>t&&t.current&&t.current.clientWidth?t.current.clientWidth:typeof j7.Window<"u"&&j7.Window.innerWidth?j7.Window.innerWidth:null,df=["xs","sm","md","lg","xl","xxl","xxxl"];co.screenClasses=df;const y91=(t,e)=>{const n=()=>{const{breakpoints:o,defaultScreenClass:l,maxScreenClass:c}=(0,H91.getConfiguration)();let s=l;const h=w91(t);h?(s="xs",o[0]&&h>=o[0]&&(s="sm"),o[1]&&h>=o[1]&&(s="md"),o[2]&&h>=o[2]&&(s="lg"),o[3]&&h>=o[3]&&(s="xl"),o[4]&&h>=o[4]&&(s="xxl"),o[5]&&h>=o[5]&&(s="xxxl")):e&&(s=e);const u=df.indexOf(s),v=df.indexOf(c);return v>=0&&u>v&&(s=df[v]),s},[a,r]=(0,iP.useState)(()=>n());return(0,iP.useEffect)(()=>{const o=()=>r(n());return j7.Window.addEventListener("resize",o,!1),()=>{j7.Window.removeEventListener("resize",o,!1)}},[]),a};co.useScreenClass=y91;Object.defineProperty(Om,"__esModule",{value:!0});Om.default=void 0;var oP=co;const x91=t=>Object.keys(t).reduce((e,n)=>e||t[n],!1),Iv=(t,e)=>{if(typeof t!="number")return;const n=Math.max(0,Math.min(e,t));return`${100/e*n}%`};var V91=t=>{let{forceWidth:e=null,width:n={},offset:a={},pull:r={},push:o={},order:l={},debug:c,screenClass:s,gutterWidth:h,moreStyle:u,gridColumns:v}=t;const d={boxSizing:"border-box",minHeight:1,position:"relative",paddingLeft:h/2,paddingRight:h/2,width:"100%"};return c&&(d.outline="1px solid silver",d.background="rgba(0,0,0,.05)",d.lineHeight="32px"),d.flexBasis="100%",d.flexGrow=0,d.flexShrink=0,d.maxWidth="100%",d.marginLeft="0%",d.right="auto",d.left="auto",oP.screenClasses.forEach((f,M)=>{if(oP.screenClasses.indexOf(s)>=M){const p=Iv(n[f],v),H=n[f]==="content";d.flexBasis=H?"auto":p||d.flexBasis,d.width=d.flexBasis,d.maxWidth=p||d.maxWidth,d.marginLeft=Iv(a[f],v)||d.marginLeft,d.right=Iv(r[f],v)||d.right,d.left=Iv(o[f],v)||d.left,l[f]&&(d.order=l[f])}}),x91(n)||(d.flexBasis=0,d.flexGrow=1),e&&(d.flexBasis="unset",d.flexGrow="unset",d.flexShrink="unset",d.width=e),{...d,...u}};Om.default=V91;var K8={},Pm={};Object.defineProperty(Pm,"__esModule",{value:!0});Pm.default=void 0;var C91=t=>{let{gutterWidth:e,align:n,justify:a,debug:r,moreStyle:o,direction:l,wrap:c}=t,s=n;n==="start"&&(s="flex-start"),n==="end"&&(s="flex-end");let h=a;a==="start"&&(h="flex-start"),a==="end"&&(h="flex-end"),a==="between"&&(h="space-between"),a==="around"&&(h="space-around"),a==="center"&&(h="center"),a==="initial"&&(h="initial"),a==="inherit"&&(h="inherit");const u=["column","row","column-reverse","row-reverse"].includes(l)?l:void 0;let v=c;c==="nowrap"&&(v="nowrap"),c==="wrap"&&(v="wrap"),c==="reverse"&&(v="wrap-reverse");const d={marginLeft:-e/2,marginRight:-e/2,display:"flex",flexGrow:0,flexShrink:0,alignItems:s,justifyContent:h,flexDirection:u,flexWrap:v};return r&&(d.background="rgba(128,128,128,.05)"),{...d,...o}};Pm.default=C91;Object.defineProperty(K8,"__esModule",{value:!0});K8.default=K8.GutterWidthContext=void 0;var ff=D_(_),Gn=D_(ki),b91=Pr,L91=D_(Pm),B91=jc;function D_(t){return t&&t.__esModule?t:{default:t}}const BK=ff.default.createContext(!1);K8.GutterWidthContext=BK;const Nm=ff.default.forwardRef((t,e)=>{let{children:n,style:a,align:r,justify:o,wrap:l,debug:c,nogutter:s,gutterWidth:h,component:u,direction:v,...d}=t,f=(0,b91.getConfiguration)().gutterWidth;s&&(f=0),typeof h=="number"&&(f=h);const M=(0,L91.default)({gutterWidth:f,align:r,justify:o,debug:c,moreStyle:a,direction:v,wrap:l});return ff.default.createElement(u,{ref:e,style:M,...d},ff.default.createElement(BK.Provider,{value:f},n))});Nm.propTypes={children:Gn.default.node.isRequired,align:Gn.default.oneOf(["normal","start","center","end","stretch"]),justify:Gn.default.oneOf(["start","center","end","between","around","initial","inherit"]),direction:Gn.default.oneOf(["column","row","column-reverse","row-reverse"]),wrap:Gn.default.oneOf(["nowrap","wrap","reverse"]),nogutter:Gn.default.bool,gutterWidth:Gn.default.number,style:Gn.default.objectOf(Gn.default.oneOfType([Gn.default.number,Gn.default.string])),debug:Gn.default.bool,component:Gn.default.elementType};Nm.defaultProps={align:"normal",justify:"start",direction:"row",wrap:"wrap",nogutter:!1,gutterWidth:null,style:{},debug:!1,component:B91.Div};Nm.displayName="Row";var _91=Nm;K8.default=_91;var bo={},vi={};Object.defineProperty(vi,"__esModule",{value:!0});vi.default=vi.ScreenClassContext=vi.NO_PROVIDER_FLAG=void 0;var m3=k91(_),Ny=A91(ki),S91=co,T91=Pr,O91=jc;function A91(t){return t&&t.__esModule?t:{default:t}}function _K(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(_K=function(a){return a?n:e})(t)}function k91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=_K(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}const SK="NO_PROVIDER_FLAG";vi.NO_PROVIDER_FLAG=SK;const TK=m3.default.createContext(SK);vi.ScreenClassContext=TK;const R_=t=>{let{useOwnWidth:e,children:n,fallbackScreenClass:a}=t;const r=(0,m3.useRef)(),[o,l]=(0,m3.useState)(!1),c=(0,S91.useScreenClass)(r,a),{defaultScreenClass:s}=(0,T91.getConfiguration)(),h=o?c:a||s;return(0,m3.useEffect)(()=>l(!0),[]),m3.default.createElement(TK.Provider,{value:h},e?m3.default.createElement(O91.Div,{ref:e?r:null},n):m3.default.createElement(m3.default.Fragment,null,n))};R_.propTypes={children:Ny.default.node.isRequired,useOwnWidth:Ny.default.bool,fallbackScreenClass:Ny.default.oneOf([null,"xs","sm","md","lg","xl","xxl","xxxl"])};R_.defaultProps={useOwnWidth:!1,fallbackScreenClass:null};var E91=R_;vi.default=E91;Object.defineProperty(bo,"__esModule",{value:!0});bo.default=void 0;var Dy=AK(_),P91=AK(ki),Fv=N91(vi);function OK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(OK=function(a){return a?n:e})(t)}function N91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=OK(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}function AK(t){return t&&t.__esModule?t:{default:t}}const kK=t=>{let{children:e}=t;return Dy.default.createElement(Fv.ScreenClassContext.Consumer,null,n=>n===Fv.NO_PROVIDER_FLAG?Dy.default.createElement(Fv.default,null,Dy.default.createElement(Fv.ScreenClassContext.Consumer,null,a=>e(a))):e(n))};kK.propTypes={children:P91.default.func.isRequired};var D91=kK;bo.default=D91;Object.defineProperty(Tm,"__esModule",{value:!0});Tm.default=void 0;var $v=U91(_),Yt=j_(ki),R91=j_(Om),j91=Pr,I91=K8,F91=j_(bo),$91=jc;function j_(t){return t&&t.__esModule?t:{default:t}}function EK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(EK=function(a){return a?n:e})(t)}function U91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=EK(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}const Dm=$v.default.forwardRef((t,e)=>{let{children:n,xs:a,sm:r,md:o,lg:l,xl:c,xxl:s,xxxl:h,offset:u,pull:v,push:d,order:f,debug:M,style:p,component:H,width:m,...z}=t;return $v.default.createElement(F91.default,null,g=>$v.default.createElement(I91.GutterWidthContext.Consumer,null,w=>{const V=(0,R91.default)({forceWidth:m,width:{xs:a,sm:r,md:o,lg:l,xl:c,xxl:s,xxxl:h},offset:u,pull:v,push:d,order:f,debug:M,screenClass:g,gutterWidth:w,gridColumns:(0,j91.getConfiguration)().gridColumns,moreStyle:p});return(0,$v.createElement)(H,{ref:e,style:V,...z,children:n})}))});Dm.propTypes={children:Yt.default.node,xs:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),sm:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),md:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),lg:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),xl:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),xxl:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),xxxl:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf(["content"])]),width:Yt.default.oneOfType([Yt.default.number,Yt.default.string]),offset:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),push:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),pull:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),order:Yt.default.shape({xs:Yt.default.number,sm:Yt.default.number,md:Yt.default.number,lg:Yt.default.number,xl:Yt.default.number,xxl:Yt.default.number,xxxl:Yt.default.number}),style:Yt.default.objectOf(Yt.default.oneOfType([Yt.default.number,Yt.default.string])),debug:Yt.default.bool,component:Yt.default.elementType};Dm.defaultProps={children:null,xs:null,sm:null,md:null,lg:null,xl:null,xxl:null,xxxl:null,width:null,offset:{},push:{},pull:{},style:{},order:{},debug:!1,component:$91.Div};Dm.displayName="Col";var W91=Dm;Tm.default=W91;var Rm={},jm={};Object.defineProperty(jm,"__esModule",{value:!0});jm.default=void 0;var q91=t=>{let{fluid:e,xs:n,sm:a,md:r,lg:o,xl:l,xxl:c,xxxl:s,screenClass:h,containerWidths:u,gutterWidth:v,moreStyle:d}=t;const f={boxSizing:"border-box",position:"relative",marginLeft:"auto",marginRight:"auto",paddingLeft:v/2,paddingRight:v/2};return e&&!n&&!a&&!r&&!o&&!l?{...f,...d}:(h==="xs"&&u[0]&&!n&&(f.maxWidth=u[0]),h==="sm"&&u[0]&&!a&&(f.maxWidth=u[0]),h==="md"&&u[1]&&!r&&(f.maxWidth=u[1]),h==="lg"&&u[2]&&!o&&(f.maxWidth=u[2]),h==="xl"&&u[3]&&!l&&(f.maxWidth=u[3]),h==="xxl"&&u[4]&&!c&&(f.maxWidth=u[4]),h==="xxxl"&&u[5]&&!s&&(f.maxWidth=u[5]),{...f,...d})};jm.default=q91;Object.defineProperty(Rm,"__esModule",{value:!0});Rm.default=void 0;var Ry=Z91(_),xn=I_(ki),G91=I_(jm),lP=Pr,K91=I_(bo),Y91=jc;function I_(t){return t&&t.__esModule?t:{default:t}}function PK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(PK=function(a){return a?n:e})(t)}function Z91(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=PK(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}const Im=Ry.default.forwardRef((t,e)=>{let{children:n,fluid:a,xs:r,sm:o,md:l,lg:c,xl:s,xxl:h,xxxl:u,style:v,component:d,...f}=t;return Ry.default.createElement(K91.default,null,M=>(0,Ry.createElement)(d,{ref:e,style:(0,G91.default)({fluid:a,xs:r,sm:o,md:l,lg:c,xl:s,xxl:h,xxxl:u,screenClass:M,containerWidths:(0,lP.getConfiguration)().containerWidths,gutterWidth:(0,lP.getConfiguration)().gutterWidth,moreStyle:v}),...f},n))});Im.propTypes={children:xn.default.node.isRequired,fluid:xn.default.bool,xs:xn.default.bool,sm:xn.default.bool,md:xn.default.bool,lg:xn.default.bool,xl:xn.default.bool,xxl:xn.default.bool,xxxl:xn.default.bool,style:xn.default.objectOf(xn.default.oneOfType([xn.default.number,xn.default.string])),component:xn.default.elementType};Im.defaultProps={fluid:!1,xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1,xxxl:!1,style:{},component:Y91.Div};Im.displayName="Container";var Q91=Im;Rm.default=Q91;var Fm={},hc={};Object.defineProperty(hc,"__esModule",{value:!0});hc.hidden=hc.default=void 0;const NK=t=>{let{screenClass:e,xs:n,sm:a,md:r,lg:o,xl:l,xxl:c,xxxl:s}=t;return e==="xxl"?c:e==="xxxl"?s:e==="xl"?l:e==="lg"?o:e==="md"?r:e==="sm"?a:n};hc.hidden=NK;var X91=NK;hc.default=X91;Object.defineProperty(Fm,"__esModule",{value:!0});Fm.default=void 0;var J91=F_(_),r3=F_(ki),t71=n71(hc),e71=F_(bo);function DK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(DK=function(a){return a?n:e})(t)}function n71(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=DK(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}function F_(t){return t&&t.__esModule?t:{default:t}}const $_=t=>{let{children:e,xs:n,sm:a,md:r,lg:o,xl:l,xxl:c,xxxl:s}=t;return J91.default.createElement(e71.default,null,h=>t71.hidden({screenClass:h,xs:n,sm:a,md:r,lg:o,xl:l,xxl:c,xxxl:s})?null:e)};$_.propTypes={children:r3.default.node.isRequired,xs:r3.default.bool,sm:r3.default.bool,md:r3.default.bool,lg:r3.default.bool,xl:r3.default.bool,xxl:r3.default.bool,xxxl:r3.default.bool};$_.defaultProps={xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1,xxxl:!1};var a71=$_;Fm.default=a71;var $m={},sc={};Object.defineProperty(sc,"__esModule",{value:!0});sc.visible=sc.default=void 0;const RK=t=>{let{screenClass:e,xs:n,sm:a,md:r,lg:o,xl:l,xxl:c,xxxl:s}=t;return e==="xxl"?c:e==="xxxl"?s:e==="xl"?l:e==="lg"?o:e==="md"?r:e==="sm"?a:n};sc.visible=RK;var r71=RK;sc.default=r71;Object.defineProperty($m,"__esModule",{value:!0});$m.default=void 0;var i71=U_(_),i3=U_(ki),o71=c71(sc),l71=U_(bo);function jK(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(jK=function(a){return a?n:e})(t)}function c71(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=jK(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var l=r?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a}function U_(t){return t&&t.__esModule?t:{default:t}}const W_=t=>{let{children:e,xs:n,sm:a,md:r,lg:o,xl:l,xxl:c,xxxl:s}=t;return i71.default.createElement(l71.default,null,h=>o71.visible({screenClass:h,xs:n,sm:a,md:r,lg:o,xl:l,xxl:c,xxxl:s})?e:null)};W_.propTypes={children:i3.default.node.isRequired,xs:i3.default.bool,sm:i3.default.bool,md:i3.default.bool,lg:i3.default.bool,xl:i3.default.bool,xxl:i3.default.bool,xxxl:i3.default.bool};W_.defaultProps={xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1,xxxl:!1};var h71=W_;$m.default=h71;var Um={};Object.defineProperty(Um,"__esModule",{value:!0});Um.default=void 0;var s71=q_(_),u71=q_(ki),v71=q_(bo);function q_(t){return t&&t.__esModule?t:{default:t}}const IK=t=>{let{render:e}=t;return s71.default.createElement(v71.default,null,n=>e(n))};IK.propTypes={render:u71.default.func.isRequired};var d71=IK;Um.default=d71;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Col",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"Hidden",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Row",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"ScreenClassContext",{enumerable:!0,get:function(){return c.ScreenClassContext}}),Object.defineProperty(t,"ScreenClassProvider",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"ScreenClassRender",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Visible",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"setConfiguration",{enumerable:!0,get:function(){return s.setConfiguration}}),Object.defineProperty(t,"useScreenClass",{enumerable:!0,get:function(){return h.useScreenClass}});var e=d(Tm),n=d(Rm),a=d(K8),r=d(Fm),o=d($m),l=d(Um),c=v(vi),s=Pr,h=co;function u(f){if(typeof WeakMap!="function")return null;var M=new WeakMap,p=new WeakMap;return(u=function(H){return H?p:M})(f)}function v(f,M){if(!M&&f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var p=u(M);if(p&&p.has(f))return p.get(f);var H={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in f)if(z!=="default"&&Object.prototype.hasOwnProperty.call(f,z)){var g=m?Object.getOwnPropertyDescriptor(f,z):null;g&&(g.get||g.set)?Object.defineProperty(H,z,g):H[z]=f[z]}return H.default=f,p&&p.set(f,H),H}function d(f){return f&&f.__esModule?f:{default:f}}})(Ua);var jy={},Ah={},Wm={};Object.defineProperty(Wm,"__esModule",{value:!0});Wm.setAvatarBySize=void 0;var f71=function(t){switch(t){case"extraSmall":return"22px";case"superSmall":return"30px";case"small":return"40px";case"medium":return"50px";case"large":return"60px";case"extraLarge":return"112px";default:return"50px"}};Wm.setAvatarBySize=f71;(function(t){var e=C&&C.__makeTemplateObject||function(M,p){return Object.defineProperty?Object.defineProperty(M,"raw",{value:p}):M.raw=p,M},n=C&&C.__assign||function(){return n=Object.assign||function(M){for(var p,H=1,m=arguments.length;HY?Y:k},a=n,r=function(k){k._clipped=!1,k._unclipped=k.slice(0);for(var j=0;j<=3;j++)j<3?((k[j]<0||k[j]>255)&&(k._clipped=!0),k[j]=a(k[j],0,255)):j===3&&(k[j]=a(k[j],0,1));return k},o={},l=0,c=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];l=3?Array.prototype.slice.call(k):u(k[0])=="object"&&j?j.split("").filter(function(Y){return k[0][Y]!==void 0}).map(function(Y){return k[0][Y]}):k[0]},d=h,f=function(k){if(k.length<2)return null;var j=k.length-1;return d(k[j])=="string"?k[j].toLowerCase():null},M=Math.PI,p={clip_rgb:r,limit:n,type:h,unpack:v,last:f,PI:M,TWOPI:M*2,PITHIRD:M/3,DEG2RAD:M/180,RAD2DEG:180/M},H={format:{},autodetect:[]},m=p.last,z=p.clip_rgb,g=p.type,w=H,V=function(){for(var j=[],Y=arguments.length;Y--;)j[Y]=arguments[Y];var l1=this;if(g(j[0])==="object"&&j[0].constructor&&j[0].constructor===this.constructor)return j[0];var B1=m(j),T1=!1;if(!B1){T1=!0,w.sorted||(w.autodetect=w.autodetect.sort(function(ht,kt){return kt.p-ht.p}),w.sorted=!0);for(var y1=0,N1=w.autodetect;y14?k[4]:1;return T1===1?[0,0,0,y1]:[Y>=1?0:255*(1-Y)*(1-T1),l1>=1?0:255*(1-l1)*(1-T1),B1>=1?0:255*(1-B1)*(1-T1),y1]},q=F,$=b,Q=y,I=H,n1=p.unpack,R=p.type,i1=T;Q.prototype.cmyk=function(){return i1(this._rgb)},$.cmyk=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Q,[null].concat(k,["cmyk"])))},I.format.cmyk=q,I.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=n1(k,"cmyk"),R(k)==="array"&&k.length===4)return"cmyk"}});var J=p.unpack,A=p.last,c1=function(k){return Math.round(k*100)/100},u1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=J(k,"hsla"),l1=A(k)||"lsa";return Y[0]=c1(Y[0]||0),Y[1]=c1(Y[1]*100)+"%",Y[2]=c1(Y[2]*100)+"%",l1==="hsla"||Y.length>3&&Y[3]<1?(Y[3]=Y.length>3?Y[3]:1,l1="hsla"):Y.length=3,l1+"("+Y.join(",")+")"},e1=u1,C1=p.unpack,h1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=C1(k,"rgba");var Y=k[0],l1=k[1],B1=k[2];Y/=255,l1/=255,B1/=255;var T1=Math.min(Y,l1,B1),y1=Math.max(Y,l1,B1),N1=(y1+T1)/2,I1,et;return y1===T1?(I1=0,et=Number.NaN):I1=N1<.5?(y1-T1)/(y1+T1):(y1-T1)/(2-y1-T1),Y==y1?et=(l1-B1)/(y1-T1):l1==y1?et=2+(B1-Y)/(y1-T1):B1==y1&&(et=4+(Y-l1)/(y1-T1)),et*=60,et<0&&(et+=360),k.length>3&&k[3]!==void 0?[et,I1,N1,k[3]]:[et,I1,N1]},m1=h1,w1=p.unpack,S1=p.last,R1=e1,q1=m1,D1=Math.round,G1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=w1(k,"rgba"),l1=S1(k)||"rgb";return l1.substr(0,3)=="hsl"?R1(q1(Y),l1):(Y[0]=D1(Y[0]),Y[1]=D1(Y[1]),Y[2]=D1(Y[2]),(l1==="rgba"||Y.length>3&&Y[3]<1)&&(Y[3]=Y.length>3?Y[3]:1,l1="rgba"),l1+"("+Y.slice(0,l1==="rgb"?3:4).join(",")+")")},rt=G1,Q1=p.unpack,at=Math.round,J1=function(){for(var k,j=[],Y=arguments.length;Y--;)j[Y]=arguments[Y];j=Q1(j,"hsl");var l1=j[0],B1=j[1],T1=j[2],y1,N1,I1;if(B1===0)y1=N1=I1=T1*255;else{var et=[0,0,0],ht=[0,0,0],kt=T1<.5?T1*(1+B1):T1+B1-T1*B1,ft=2*T1-kt,Wt=l1/360;et[0]=Wt+1/3,et[1]=Wt,et[2]=Wt-1/3;for(var Ft=0;Ft<3;Ft++)et[Ft]<0&&(et[Ft]+=1),et[Ft]>1&&(et[Ft]-=1),6*et[Ft]<1?ht[Ft]=ft+(kt-ft)*6*et[Ft]:2*et[Ft]<1?ht[Ft]=kt:3*et[Ft]<2?ht[Ft]=ft+(kt-ft)*(2/3-et[Ft])*6:ht[Ft]=ft;k=[at(ht[0]*255),at(ht[1]*255),at(ht[2]*255)],y1=k[0],N1=k[1],I1=k[2]}return j.length>3?[y1,N1,I1,j[3]]:[y1,N1,I1,1]},tt=J1,ut=tt,x1=H,F1=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,_1=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,H1=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,L1=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,X=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,f1=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,t1=Math.round,W=function(k){k=k.toLowerCase().trim();var j;if(x1.format.named)try{return x1.format.named(k)}catch{}if(j=k.match(F1)){for(var Y=j.slice(1,4),l1=0;l1<3;l1++)Y[l1]=+Y[l1];return Y[3]=1,Y}if(j=k.match(_1)){for(var B1=j.slice(1,5),T1=0;T1<4;T1++)B1[T1]=+B1[T1];return B1}if(j=k.match(H1)){for(var y1=j.slice(1,4),N1=0;N1<3;N1++)y1[N1]=t1(y1[N1]*2.55);return y1[3]=1,y1}if(j=k.match(L1)){for(var I1=j.slice(1,5),et=0;et<3;et++)I1[et]=t1(I1[et]*2.55);return I1[3]=+I1[3],I1}if(j=k.match(X)){var ht=j.slice(1,4);ht[1]*=.01,ht[2]*=.01;var kt=ut(ht);return kt[3]=1,kt}if(j=k.match(f1)){var ft=j.slice(1,4);ft[1]*=.01,ft[2]*=.01;var Wt=ut(ft);return Wt[3]=+j[4],Wt}};W.test=function(k){return F1.test(k)||_1.test(k)||H1.test(k)||L1.test(k)||X.test(k)||f1.test(k)};var r1=W,E=b,U=y,K=H,o1=p.type,d1=rt,z1=r1;U.prototype.css=function(k){return d1(this._rgb,k)},E.css=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(U,[null].concat(k,["css"])))},K.format.css=z1,K.autodetect.push({p:5,test:function(k){for(var j=[],Y=arguments.length-1;Y-- >0;)j[Y]=arguments[Y+1];if(!j.length&&o1(k)==="string"&&z1.test(k))return"css"}});var $1=y,Y1=b,j1=H,V1=p.unpack;j1.format.gl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=V1(k,"rgba");return Y[0]*=255,Y[1]*=255,Y[2]*=255,Y},Y1.gl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply($1,[null].concat(k,["gl"])))},$1.prototype.gl=function(){var k=this._rgb;return[k[0]/255,k[1]/255,k[2]/255,k[3]]};var Ct=p.unpack,Z1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=Ct(k,"rgb"),l1=Y[0],B1=Y[1],T1=Y[2],y1=Math.min(l1,B1,T1),N1=Math.max(l1,B1,T1),I1=N1-y1,et=I1*100/255,ht=y1/(255-I1)*100,kt;return I1===0?kt=Number.NaN:(l1===N1&&(kt=(B1-T1)/I1),B1===N1&&(kt=2+(T1-l1)/I1),T1===N1&&(kt=4+(l1-B1)/I1),kt*=60,kt<0&&(kt+=360)),[kt,et,ht]},bt=Z1,vt=p.unpack,Gt=Math.floor,yt=function(){for(var k,j,Y,l1,B1,T1,y1=[],N1=arguments.length;N1--;)y1[N1]=arguments[N1];y1=vt(y1,"hcg");var I1=y1[0],et=y1[1],ht=y1[2],kt,ft,Wt;ht=ht*255;var Ft=et*255;if(et===0)kt=ft=Wt=ht;else{I1===360&&(I1=0),I1>360&&(I1-=360),I1<0&&(I1+=360),I1/=60;var S2=Gt(I1),E2=I1-S2,Y2=ht*(1-et),r0=Y2+Ft*(1-E2),w4=Y2+Ft*E2,s4=Y2+Ft;switch(S2){case 0:k=[s4,w4,Y2],kt=k[0],ft=k[1],Wt=k[2];break;case 1:j=[r0,s4,Y2],kt=j[0],ft=j[1],Wt=j[2];break;case 2:Y=[Y2,s4,w4],kt=Y[0],ft=Y[1],Wt=Y[2];break;case 3:l1=[Y2,r0,s4],kt=l1[0],ft=l1[1],Wt=l1[2];break;case 4:B1=[w4,Y2,s4],kt=B1[0],ft=B1[1],Wt=B1[2];break;case 5:T1=[s4,Y2,r0],kt=T1[0],ft=T1[1],Wt=T1[2];break}}return[kt,ft,Wt,y1.length>3?y1[3]:1]},Qt=yt,Rt=p.unpack,xt=p.type,At=b,Vt=y,Xt=H,f2=bt;Vt.prototype.hcg=function(){return f2(this._rgb)},At.hcg=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Vt,[null].concat(k,["hcg"])))},Xt.format.hcg=Qt,Xt.autodetect.push({p:1,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=Rt(k,"hcg"),xt(k)==="array"&&k.length===3)return"hcg"}});var H2=p.unpack,l0=p.last,c0=Math.round,p0=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=H2(k,"rgba"),l1=Y[0],B1=Y[1],T1=Y[2],y1=Y[3],N1=l0(k)||"auto";y1===void 0&&(y1=1),N1==="auto"&&(N1=y1<1?"rgba":"rgb"),l1=c0(l1),B1=c0(B1),T1=c0(T1);var I1=l1<<16|B1<<8|T1,et="000000"+I1.toString(16);et=et.substr(et.length-6);var ht="0"+c0(y1*255).toString(16);switch(ht=ht.substr(ht.length-2),N1.toLowerCase()){case"rgba":return"#"+et+ht;case"argb":return"#"+ht+et;default:return"#"+et}},q2=p0,e0=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Ye=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Ht=function(k){if(k.match(e0)){(k.length===4||k.length===7)&&(k=k.substr(1)),k.length===3&&(k=k.split(""),k=k[0]+k[0]+k[1]+k[1]+k[2]+k[2]);var j=parseInt(k,16),Y=j>>16,l1=j>>8&255,B1=j&255;return[Y,l1,B1,1]}if(k.match(Ye)){(k.length===5||k.length===9)&&(k=k.substr(1)),k.length===4&&(k=k.split(""),k=k[0]+k[0]+k[1]+k[1]+k[2]+k[2]+k[3]+k[3]);var T1=parseInt(k,16),y1=T1>>24&255,N1=T1>>16&255,I1=T1>>8&255,et=Math.round((T1&255)/255*100)/100;return[y1,N1,I1,et]}throw new Error("unknown hex color: "+k)},zt=Ht,Tt=b,It=y,K2=p.type,z2=H,C2=q2;It.prototype.hex=function(k){return C2(this._rgb,k)},Tt.hex=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(It,[null].concat(k,["hex"])))},z2.format.hex=zt,z2.autodetect.push({p:4,test:function(k){for(var j=[],Y=arguments.length-1;Y-- >0;)j[Y]=arguments[Y+1];if(!j.length&&K2(k)==="string"&&[3,4,5,6,7,8,9].indexOf(k.length)>=0)return"hex"}});var x2=p.unpack,S0=p.TWOPI,he=Math.min,se=Math.sqrt,T4=Math.acos,c4=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=x2(k,"rgb"),l1=Y[0],B1=Y[1],T1=Y[2];l1/=255,B1/=255,T1/=255;var y1,N1=he(l1,B1,T1),I1=(l1+B1+T1)/3,et=I1>0?1-N1/I1:0;return et===0?y1=NaN:(y1=(l1-B1+(l1-T1))/2,y1/=se((l1-B1)*(l1-B1)+(l1-T1)*(B1-T1)),y1=T4(y1),T1>B1&&(y1=S0-y1),y1/=S0),[y1*360,et,I1]},Be=c4,Z4=p.unpack,T0=p.limit,h0=p.TWOPI,Q4=p.PITHIRD,Ze=Math.cos,va=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=Z4(k,"hsi");var Y=k[0],l1=k[1],B1=k[2],T1,y1,N1;return isNaN(Y)&&(Y=0),isNaN(l1)&&(l1=0),Y>360&&(Y-=360),Y<0&&(Y+=360),Y/=360,Y<1/3?(N1=(1-l1)/3,T1=(1+l1*Ze(h0*Y)/Ze(Q4-h0*Y))/3,y1=1-(N1+T1)):Y<2/3?(Y-=1/3,T1=(1-l1)/3,y1=(1+l1*Ze(h0*Y)/Ze(Q4-h0*Y))/3,N1=1-(T1+y1)):(Y-=2/3,y1=(1-l1)/3,N1=(1+l1*Ze(h0*Y)/Ze(Q4-h0*Y))/3,T1=1-(y1+N1)),T1=T0(B1*T1*3),y1=T0(B1*y1*3),N1=T0(B1*N1*3),[T1*255,y1*255,N1*255,k.length>3?k[3]:1]},X4=va,rr=p.unpack,Un=p.type,J4=b,wn=y,p2=H,s2=Be;wn.prototype.hsi=function(){return s2(this._rgb)},J4.hsi=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(wn,[null].concat(k,["hsi"])))},p2.format.hsi=X4,p2.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=rr(k,"hsi"),Un(k)==="array"&&k.length===3)return"hsi"}});var D0=p.unpack,Me=p.type,C0=b,G0=y,Pe=H,O4=m1;G0.prototype.hsl=function(){return O4(this._rgb)},C0.hsl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(G0,[null].concat(k,["hsl"])))},Pe.format.hsl=tt,Pe.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=D0(k,"hsl"),Me(k)==="array"&&k.length===3)return"hsl"}});var Qe=p.unpack,tn=Math.min,A4=Math.max,_e=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=Qe(k,"rgb");var Y=k[0],l1=k[1],B1=k[2],T1=tn(Y,l1,B1),y1=A4(Y,l1,B1),N1=y1-T1,I1,et,ht;return ht=y1/255,y1===0?(I1=Number.NaN,et=0):(et=N1/y1,Y===y1&&(I1=(l1-B1)/N1),l1===y1&&(I1=2+(B1-Y)/N1),B1===y1&&(I1=4+(Y-l1)/N1),I1*=60,I1<0&&(I1+=360)),[I1,et,ht]},Ii=_e,Xe=p.unpack,ir=Math.floor,Ur=function(){for(var k,j,Y,l1,B1,T1,y1=[],N1=arguments.length;N1--;)y1[N1]=arguments[N1];y1=Xe(y1,"hsv");var I1=y1[0],et=y1[1],ht=y1[2],kt,ft,Wt;if(ht*=255,et===0)kt=ft=Wt=ht;else{I1===360&&(I1=0),I1>360&&(I1-=360),I1<0&&(I1+=360),I1/=60;var Ft=ir(I1),S2=I1-Ft,E2=ht*(1-et),Y2=ht*(1-et*S2),r0=ht*(1-et*(1-S2));switch(Ft){case 0:k=[ht,r0,E2],kt=k[0],ft=k[1],Wt=k[2];break;case 1:j=[Y2,ht,E2],kt=j[0],ft=j[1],Wt=j[2];break;case 2:Y=[E2,ht,r0],kt=Y[0],ft=Y[1],Wt=Y[2];break;case 3:l1=[E2,Y2,ht],kt=l1[0],ft=l1[1],Wt=l1[2];break;case 4:B1=[r0,E2,ht],kt=B1[0],ft=B1[1],Wt=B1[2];break;case 5:T1=[ht,E2,Y2],kt=T1[0],ft=T1[1],Wt=T1[2];break}}return[kt,ft,Wt,y1.length>3?y1[3]:1]},Wr=Ur,A5=p.unpack,k5=p.type,Fi=b,$i=y,da=H,ko=Ii;$i.prototype.hsv=function(){return ko(this._rgb)},Fi.hsv=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply($i,[null].concat(k,["hsv"])))},da.format.hsv=Wr,da.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=A5(k,"hsv"),k5(k)==="array"&&k.length===3)return"hsv"}});var qr={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Dt=qr,c2=p.unpack,O0=Math.pow,b0=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=c2(k,"rgb"),l1=Y[0],B1=Y[1],T1=Y[2],y1=Eo(l1,B1,T1),N1=y1[0],I1=y1[1],et=y1[2],ht=116*I1-16;return[ht<0?0:ht,500*(N1-I1),200*(I1-et)]},L0=function(k){return(k/=255)<=.04045?k/12.92:O0((k+.055)/1.055,2.4)},Gr=function(k){return k>Dt.t3?O0(k,1/3):k/Dt.t2+Dt.t0},Eo=function(k,j,Y){k=L0(k),j=L0(j),Y=L0(Y);var l1=Gr((.4124564*k+.3575761*j+.1804375*Y)/Dt.Xn),B1=Gr((.2126729*k+.7151522*j+.072175*Y)/Dt.Yn),T1=Gr((.0193339*k+.119192*j+.9503041*Y)/Dt.Zn);return[l1,B1,T1]},Po=b0,Wn=qr,AM=p.unpack,x6=Math.pow,kM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=AM(k,"lab");var Y=k[0],l1=k[1],B1=k[2],T1,y1,N1,I1,et,ht;return y1=(Y+16)/116,T1=isNaN(l1)?y1:y1+l1/500,N1=isNaN(B1)?y1:y1-B1/200,y1=Wn.Yn*o9(y1),T1=Wn.Xn*o9(T1),N1=Wn.Zn*o9(N1),I1=i9(3.2404542*T1-1.5371385*y1-.4985314*N1),et=i9(-.969266*T1+1.8760108*y1+.041556*N1),ht=i9(.0556434*T1-.2040259*y1+1.0572252*N1),[I1,et,ht,k.length>3?k[3]:1]},i9=function(k){return 255*(k<=.00304?12.92*k:1.055*x6(k,1/2.4)-.055)},o9=function(k){return k>Wn.t1?k*k*k:Wn.t2*(k-Wn.t0)},cu=kM,hu=p.unpack,EM=p.type,PM=b,Ui=y,su=H,NM=Po;Ui.prototype.lab=function(){return NM(this._rgb)},PM.lab=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Ui,[null].concat(k,["lab"])))},su.format.lab=cu,su.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=hu(k,"lab"),EM(k)==="array"&&k.length===3)return"lab"}});var DM=p.unpack,RM=p.RAD2DEG,jM=Math.sqrt,V6=Math.atan2,IM=Math.round,FM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=DM(k,"lab"),l1=Y[0],B1=Y[1],T1=Y[2],y1=jM(B1*B1+T1*T1),N1=(V6(T1,B1)*RM+360)%360;return IM(y1*1e4)===0&&(N1=Number.NaN),[l1,y1,N1]},uu=FM,$M=p.unpack,No=Po,UM=uu,WM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=$M(k,"rgb"),l1=Y[0],B1=Y[1],T1=Y[2],y1=No(l1,B1,T1),N1=y1[0],I1=y1[1],et=y1[2];return UM(N1,I1,et)},qM=WM,GM=p.unpack,KM=p.DEG2RAD,vu=Math.sin,YM=Math.cos,ZM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=GM(k,"lch"),l1=Y[0],B1=Y[1],T1=Y[2];return isNaN(T1)&&(T1=0),T1=T1*KM,[l1,YM(T1)*B1,vu(T1)*B1]},l9=ZM,QM=p.unpack,XM=l9,du=cu,JM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=QM(k,"lch");var Y=k[0],l1=k[1],B1=k[2],T1=XM(Y,l1,B1),y1=T1[0],N1=T1[1],I1=T1[2],et=du(y1,N1,I1),ht=et[0],kt=et[1],ft=et[2];return[ht,kt,ft,k.length>3?k[3]:1]},fu=JM,gu=p.unpack,tH=fu,eH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=gu(k,"hcl").reverse();return tH.apply(void 0,Y)},pu=eH,nH=p.unpack,aH=p.type,Do=b,C6=y,c9=H,mu=qM;C6.prototype.lch=function(){return mu(this._rgb)},C6.prototype.hcl=function(){return mu(this._rgb).reverse()},Do.lch=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(C6,[null].concat(k,["lch"])))},Do.hcl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(C6,[null].concat(k,["hcl"])))},c9.format.lch=fu,c9.format.hcl=pu,["lch","hcl"].forEach(function(k){return c9.autodetect.push({p:2,test:function(){for(var j=[],Y=arguments.length;Y--;)j[Y]=arguments[Y];if(j=nH(j,k),aH(j)==="array"&&j.length===3)return k}})});var rH={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},h9=rH,iH=y,zu=H,Mu=p.type,Ro=h9,oH=zt,Hu=q2;iH.prototype.name=function(){for(var k=Hu(this._rgb,"rgb"),j=0,Y=Object.keys(Ro);j0;)j[Y]=arguments[Y+1];if(!j.length&&Mu(k)==="string"&&Ro[k.toLowerCase()])return"named"}});var lH=p.unpack,s9=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=lH(k,"rgb"),l1=Y[0],B1=Y[1],T1=Y[2];return(l1<<16)+(B1<<8)+T1},wu=s9,cH=p.type,yu=function(k){if(cH(k)=="number"&&k>=0&&k<=16777215){var j=k>>16,Y=k>>8&255,l1=k&255;return[j,Y,l1,1]}throw new Error("unknown num color: "+k)},xu=yu,hH=b,Vu=y,u9=H,sH=p.type,uH=wu;Vu.prototype.num=function(){return uH(this._rgb)},hH.num=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Vu,[null].concat(k,["num"])))},u9.format.num=xu,u9.autodetect.push({p:5,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k.length===1&&sH(k[0])==="number"&&k[0]>=0&&k[0]<=16777215)return"num"}});var Cu=b,v9=y,bu=H,d9=p.unpack,Lu=p.type,b6=Math.round;v9.prototype.rgb=function(k){return k===void 0&&(k=!0),k===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(b6)},v9.prototype.rgba=function(k){return k===void 0&&(k=!0),this._rgb.slice(0,4).map(function(j,Y){return Y<3?k===!1?j:b6(j):j})},Cu.rgb=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(v9,[null].concat(k,["rgb"])))},bu.format.rgb=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=d9(k,"rgba");return Y[3]===void 0&&(Y[3]=1),Y},bu.autodetect.push({p:3,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=d9(k,"rgba"),Lu(k)==="array"&&(k.length===3||k.length===4&&Lu(k[3])=="number"&&k[3]>=0&&k[3]<=1))return"rgb"}});var jo=Math.log,L6=function(k){var j=k/100,Y,l1,B1;return j<66?(Y=255,l1=j<6?0:-155.25485562709179-.44596950469579133*(l1=j-2)+104.49216199393888*jo(l1),B1=j<20?0:-254.76935184120902+.8274096064007395*(B1=j-10)+115.67994401066147*jo(B1)):(Y=351.97690566805693+.114206453784165*(Y=j-55)-40.25366309332127*jo(Y),l1=325.4494125711974+.07943456536662342*(l1=j-50)-28.0852963507957*jo(l1),B1=255),[Y,l1,B1,1]},Wi=L6,Bu=Wi,vH=p.unpack,dH=Math.round,_u=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];for(var Y=vH(k,"rgb"),l1=Y[0],B1=Y[2],T1=1e3,y1=4e4,N1=.4,I1;y1-T1>N1;){I1=(y1+T1)*.5;var et=Bu(I1);et[2]/et[0]>=B1/l1?y1=I1:T1=I1}return dH(I1)},fH=_u,f9=b,Io=y,or=H,Su=fH;Io.prototype.temp=Io.prototype.kelvin=Io.prototype.temperature=function(){return Su(this._rgb)},f9.temp=f9.kelvin=f9.temperature=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Io,[null].concat(k,["temp"])))},or.format.temp=or.format.kelvin=or.format.temperature=Wi;var Tu=p.unpack,g9=Math.cbrt,gH=Math.pow,Ou=Math.sign,pH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=Tu(k,"rgb"),l1=Y[0],B1=Y[1],T1=Y[2],y1=[B6(l1/255),B6(B1/255),B6(T1/255)],N1=y1[0],I1=y1[1],et=y1[2],ht=g9(.4122214708*N1+.5363325363*I1+.0514459929*et),kt=g9(.2119034982*N1+.6806995451*I1+.1073969566*et),ft=g9(.0883024619*N1+.2817188376*I1+.6299787005*et);return[.2104542553*ht+.793617785*kt-.0040720468*ft,1.9779984951*ht-2.428592205*kt+.4505937099*ft,.0259040371*ht+.7827717662*kt-.808675766*ft]},Au=pH;function B6(k){var j=Math.abs(k);return j<.04045?k/12.92:(Ou(k)||1)*gH((j+.055)/1.055,2.4)}var _6=p.unpack,E5=Math.pow,ku=Math.sign,mH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=_6(k,"lab");var Y=k[0],l1=k[1],B1=k[2],T1=E5(Y+.3963377774*l1+.2158037573*B1,3),y1=E5(Y-.1055613458*l1-.0638541728*B1,3),N1=E5(Y-.0894841775*l1-1.291485548*B1,3);return[255*S6(4.0767416621*T1-3.3077115913*y1+.2309699292*N1),255*S6(-1.2684380046*T1+2.6097574011*y1-.3413193965*N1),255*S6(-.0041960863*T1-.7034186147*y1+1.707614701*N1),k.length>3?k[3]:1]},Eu=mH;function S6(k){var j=Math.abs(k);return j>.0031308?(ku(k)||1)*(1.055*E5(j,1/2.4)-.055):k*12.92}var zH=p.unpack,MH=p.type,Pu=b,Nu=y,p9=H,Du=Au;Nu.prototype.oklab=function(){return Du(this._rgb)},Pu.oklab=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Nu,[null].concat(k,["oklab"])))},p9.format.oklab=Eu,p9.autodetect.push({p:3,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=zH(k,"oklab"),MH(k)==="array"&&k.length===3)return"oklab"}});var HH=p.unpack,Ru=Au,ju=uu,wH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Y=HH(k,"rgb"),l1=Y[0],B1=Y[1],T1=Y[2],y1=Ru(l1,B1,T1),N1=y1[0],I1=y1[1],et=y1[2];return ju(N1,I1,et)},yH=wH,Iu=p.unpack,xH=l9,VH=Eu,Fu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=Iu(k,"lch");var Y=k[0],l1=k[1],B1=k[2],T1=xH(Y,l1,B1),y1=T1[0],N1=T1[1],I1=T1[2],et=VH(y1,N1,I1),ht=et[0],kt=et[1],ft=et[2];return[ht,kt,ft,k.length>3?k[3]:1]},CH=Fu,$u=p.unpack,Uu=p.type,bH=b,Wu=y,m9=H,LH=yH;Wu.prototype.oklch=function(){return LH(this._rgb)},bH.oklch=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Wu,[null].concat(k,["oklch"])))},m9.format.oklch=CH,m9.autodetect.push({p:3,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=$u(k,"oklch"),Uu(k)==="array"&&k.length===3)return"oklch"}});var qu=y,Gu=p.type;qu.prototype.alpha=function(k,j){return j===void 0&&(j=!1),k!==void 0&&Gu(k)==="number"?j?(this._rgb[3]=k,this):new qu([this._rgb[0],this._rgb[1],this._rgb[2],k],"rgb"):this._rgb[3]};var BH=y;BH.prototype.clipped=function(){return this._rgb._clipped||!1};var P5=y,Ku=qr;P5.prototype.darken=function(k){k===void 0&&(k=1);var j=this,Y=j.lab();return Y[0]-=Ku.Kn*k,new P5(Y,"lab").alpha(j.alpha(),!0)},P5.prototype.brighten=function(k){return k===void 0&&(k=1),this.darken(-k)},P5.prototype.darker=P5.prototype.darken,P5.prototype.brighter=P5.prototype.brighten;var _H=y;_H.prototype.get=function(k){var j=k.split("."),Y=j[0],l1=j[1],B1=this[Y]();if(l1){var T1=Y.indexOf(l1)-(Y.substr(0,2)==="ok"?2:0);if(T1>-1)return B1[T1];throw new Error("unknown channel "+l1+" in mode "+Y)}else return B1};var qi=y,Yu=p.type,SH=Math.pow,TH=1e-7,a2=20;qi.prototype.luminance=function(k){if(k!==void 0&&Yu(k)==="number"){if(k===0)return new qi([0,0,0,this._rgb[3]],"rgb");if(k===1)return new qi([255,255,255,this._rgb[3]],"rgb");var j=this.luminance(),Y="rgb",l1=a2,B1=function(y1,N1){var I1=y1.interpolate(N1,.5,Y),et=I1.luminance();return Math.abs(k-et)k?B1(y1,I1):B1(I1,N1)},T1=(j>k?B1(new qi([0,0,0]),this):B1(this,new qi([255,255,255]))).rgb();return new qi(T1.concat([this._rgb[3]]))}return Zu.apply(void 0,this._rgb.slice(0,3))};var Zu=function(k,j,Y){return k=T6(k),j=T6(j),Y=T6(Y),.2126*k+.7152*j+.0722*Y},T6=function(k){return k/=255,k<=.03928?k/12.92:SH((k+.055)/1.055,2.4)},en={},Qu=y,Xu=p.type,O6=en,Ju=function(k,j,Y){Y===void 0&&(Y=.5);for(var l1=[],B1=arguments.length-3;B1-- >0;)l1[B1]=arguments[B1+3];var T1=l1[0]||"lrgb";if(!O6[T1]&&!l1.length&&(T1=Object.keys(O6)[0]),!O6[T1])throw new Error("interpolation mode "+T1+" is not defined");return Xu(k)!=="object"&&(k=new Qu(k)),Xu(j)!=="object"&&(j=new Qu(j)),O6[T1](k,j,Y).alpha(k.alpha()+Y*(j.alpha()-k.alpha()))},tv=y,OH=Ju;tv.prototype.mix=tv.prototype.interpolate=function(k,j){j===void 0&&(j=.5);for(var Y=[],l1=arguments.length-2;l1-- >0;)Y[l1]=arguments[l1+2];return OH.apply(void 0,[this,k,j].concat(Y))};var ev=y;ev.prototype.premultiply=function(k){k===void 0&&(k=!1);var j=this._rgb,Y=j[3];return k?(this._rgb=[j[0]*Y,j[1]*Y,j[2]*Y,Y],this):new ev([j[0]*Y,j[1]*Y,j[2]*Y,Y],"rgb")};var z9=y,AH=qr;z9.prototype.saturate=function(k){k===void 0&&(k=1);var j=this,Y=j.lch();return Y[1]+=AH.Kn*k,Y[1]<0&&(Y[1]=0),new z9(Y,"lch").alpha(j.alpha(),!0)},z9.prototype.desaturate=function(k){return k===void 0&&(k=1),this.saturate(-k)};var nv=y,av=p.type;nv.prototype.set=function(k,j,Y){Y===void 0&&(Y=!1);var l1=k.split("."),B1=l1[0],T1=l1[1],y1=this[B1]();if(T1){var N1=B1.indexOf(T1)-(B1.substr(0,2)==="ok"?2:0);if(N1>-1){if(av(j)=="string")switch(j.charAt(0)){case"+":y1[N1]+=+j;break;case"-":y1[N1]+=+j;break;case"*":y1[N1]*=+j.substr(1);break;case"/":y1[N1]/=+j.substr(1);break;default:y1[N1]=+j}else if(av(j)==="number")y1[N1]=j;else throw new Error("unsupported value for Color.set");var I1=new nv(y1,B1);return Y?(this._rgb=I1._rgb,this):I1}throw new Error("unknown channel "+T1+" in mode "+B1)}else return y1};var kH=y,EH=function(k,j,Y){var l1=k._rgb,B1=j._rgb;return new kH(l1[0]+Y*(B1[0]-l1[0]),l1[1]+Y*(B1[1]-l1[1]),l1[2]+Y*(B1[2]-l1[2]),"rgb")};en.rgb=EH;var PH=y,M9=Math.sqrt,Gi=Math.pow,NH=function(k,j,Y){var l1=k._rgb,B1=l1[0],T1=l1[1],y1=l1[2],N1=j._rgb,I1=N1[0],et=N1[1],ht=N1[2];return new PH(M9(Gi(B1,2)*(1-Y)+Gi(I1,2)*Y),M9(Gi(T1,2)*(1-Y)+Gi(et,2)*Y),M9(Gi(y1,2)*(1-Y)+Gi(ht,2)*Y),"rgb")};en.lrgb=NH;var rv=y,DH=function(k,j,Y){var l1=k.lab(),B1=j.lab();return new rv(l1[0]+Y*(B1[0]-l1[0]),l1[1]+Y*(B1[1]-l1[1]),l1[2]+Y*(B1[2]-l1[2]),"lab")};en.lab=DH;var iv=y,Ki=function(k,j,Y,l1){var B1,T1,y1,N1;l1==="hsl"?(y1=k.hsl(),N1=j.hsl()):l1==="hsv"?(y1=k.hsv(),N1=j.hsv()):l1==="hcg"?(y1=k.hcg(),N1=j.hcg()):l1==="hsi"?(y1=k.hsi(),N1=j.hsi()):l1==="lch"||l1==="hcl"?(l1="hcl",y1=k.hcl(),N1=j.hcl()):l1==="oklch"&&(y1=k.oklch().reverse(),N1=j.oklch().reverse());var I1,et,ht,kt,ft,Wt;(l1.substr(0,1)==="h"||l1==="oklch")&&(B1=y1,I1=B1[0],ht=B1[1],ft=B1[2],T1=N1,et=T1[0],kt=T1[1],Wt=T1[2]);var Ft,S2,E2,Y2;return!isNaN(I1)&&!isNaN(et)?(et>I1&&et-I1>180?Y2=et-(I1+360):et180?Y2=et+360-I1:Y2=et-I1,S2=I1+Y*Y2):isNaN(I1)?isNaN(et)?S2=Number.NaN:(S2=et,(ft==1||ft==0)&&l1!="hsv"&&(Ft=kt)):(S2=I1,(Wt==1||Wt==0)&&l1!="hsv"&&(Ft=ht)),Ft===void 0&&(Ft=ht+Y*(kt-ht)),E2=ft+Y*(Wt-ft),l1==="oklch"?new iv([E2,Ft,S2],l1):new iv([S2,Ft,E2],l1)},RH=Ki,ov=function(k,j,Y){return RH(k,j,Y,"lch")};en.lch=ov,en.hcl=ov;var jH=y,IH=function(k,j,Y){var l1=k.num(),B1=j.num();return new jH(l1+Y*(B1-l1),"num")};en.num=IH;var FH=Ki,$H=function(k,j,Y){return FH(k,j,Y,"hcg")};en.hcg=$H;var UH=Ki,WH=function(k,j,Y){return UH(k,j,Y,"hsi")};en.hsi=WH;var qH=Ki,GH=function(k,j,Y){return qH(k,j,Y,"hsl")};en.hsl=GH;var KH=Ki,YH=function(k,j,Y){return KH(k,j,Y,"hsv")};en.hsv=YH;var ZH=y,QH=function(k,j,Y){var l1=k.oklab(),B1=j.oklab();return new ZH(l1[0]+Y*(B1[0]-l1[0]),l1[1]+Y*(B1[1]-l1[1]),l1[2]+Y*(B1[2]-l1[2]),"oklab")};en.oklab=QH;var XH=Ki,JH=function(k,j,Y){return XH(k,j,Y,"oklch")};en.oklch=JH;var H9=y,tw=p.clip_rgb,Fo=Math.pow,w9=Math.sqrt,y9=Math.PI,Kr=Math.cos,lv=Math.sin,ew=Math.atan2,nw=function(k,j,Y){j===void 0&&(j="lrgb"),Y===void 0&&(Y=null);var l1=k.length;Y||(Y=Array.from(new Array(l1)).map(function(){return 1}));var B1=l1/Y.reduce(function(S2,E2){return S2+E2});if(Y.forEach(function(S2,E2){Y[E2]*=B1}),k=k.map(function(S2){return new H9(S2)}),j==="lrgb")return aw(k,Y);for(var T1=k.shift(),y1=T1.get(j),N1=[],I1=0,et=0,ht=0;ht=360;)Ft-=360;y1[Wt]=Ft}else y1[Wt]=y1[Wt]/N1[Wt];return ft/=l1,new H9(y1,j).alpha(ft>.99999?1:ft,!0)},aw=function(k,j){for(var Y=k.length,l1=[0,0,0,0],B1=0;B1.9999999&&(l1[3]=1),new H9(tw(l1))},qn=b,A1=p.type,E1=Math.pow,ot=function(k){var j="rgb",Y=qn("#ccc"),l1=0,B1=[0,1],T1=[],y1=[0,0],N1=!1,I1=[],et=!1,ht=0,kt=1,ft=!1,Wt={},Ft=!0,S2=1,E2=function(gt){if(gt=gt||["#fff","#000"],gt&&A1(gt)==="string"&&qn.brewer&&qn.brewer[gt.toLowerCase()]&&(gt=qn.brewer[gt.toLowerCase()]),A1(gt)==="array"){gt.length===1&&(gt=[gt[0],gt[0]]),gt=gt.slice(0);for(var l2=0;l2=N1[O2];)O2++;return O2-1}return 0},r0=function(gt){return gt},w4=function(gt){return gt},s4=function(gt,l2){var O2,T2;if(l2==null&&(l2=!1),isNaN(gt)||gt===null)return Y;if(l2)T2=gt;else if(N1&&N1.length>2){var y4=Y2(gt);T2=y4/(N1.length-2)}else kt!==ht?T2=(gt-ht)/(kt-ht):T2=1;T2=w4(T2),l2||(T2=r0(T2)),S2!==1&&(T2=E1(T2,S2)),T2=y1[0]+T2*(1-y1[0]-y1[1]),T2=Math.min(1,Math.max(0,T2));var R0=Math.floor(T2*1e4);if(Ft&&Wt[R0])O2=Wt[R0];else{if(A1(I1)==="array")for(var Z2=0;Z2=s0&&Z2===T1.length-1){O2=I1[Z2];break}if(T2>s0&&T22){var Z2=gt.map(function(u0,m0){return m0/(gt.length-1)}),s0=gt.map(function(u0){return(u0-ht)/(kt-ht)});s0.every(function(u0,m0){return Z2[m0]===u0})||(w4=function(u0){if(u0<=0||u0>=1)return u0;for(var m0=0;u0>=s0[m0+1];)m0++;var lr=(u0-s0[m0])/(s0[m0+1]-s0[m0]),Qi=Z2[m0]+lr*(Z2[m0+1]-Z2[m0]);return Qi})}}return B1=[ht,kt],G2},G2.mode=function(gt){return arguments.length?(j=gt,yn(),G2):j},G2.range=function(gt,l2){return E2(gt),G2},G2.out=function(gt){return et=gt,G2},G2.spread=function(gt){return arguments.length?(l1=gt,G2):l1},G2.correctLightness=function(gt){return gt==null&&(gt=!0),ft=gt,yn(),ft?r0=function(l2){for(var O2=s4(0,!0).lab()[0],T2=s4(1,!0).lab()[0],y4=O2>T2,R0=s4(l2,!0).lab()[0],Z2=O2+(T2-O2)*l2,s0=R0-Z2,u0=0,m0=1,lr=20;Math.abs(s0)>.01&&lr-- >0;)(function(){return y4&&(s0*=-1),s0<0?(u0=l2,l2+=(m0-l2)*.5):(m0=l2,l2+=(u0-l2)*.5),R0=s4(l2,!0).lab()[0],s0=R0-Z2})();return l2}:r0=function(l2){return l2},G2},G2.padding=function(gt){return gt!=null?(A1(gt)==="number"&&(gt=[gt,gt]),y1=gt,G2):y1},G2.colors=function(gt,l2){arguments.length<2&&(l2="hex");var O2=[];if(arguments.length===0)O2=I1.slice(0);else if(gt===1)O2=[G2(.5)];else if(gt>1){var T2=B1[0],y4=B1[1]-T2;O2=Kt(0,gt,!1).map(function(m0){return G2(T2+m0/(gt-1)*y4)})}else{k=[];var R0=[];if(N1&&N1.length>2)for(var Z2=1,s0=N1.length,u0=1<=s0;u0?Z2s0;u0?Z2++:Z2--)R0.push((N1[Z2-1]+N1[Z2])*.5);else R0=B1;O2=R0.map(function(m0){return G2(m0)})}return qn[l2]&&(O2=O2.map(function(m0){return m0[l2]()})),O2},G2.cache=function(gt){return gt!=null?(Ft=gt,G2):Ft},G2.gamma=function(gt){return gt!=null?(S2=gt,G2):S2},G2.nodata=function(gt){return gt!=null?(Y=qn(gt),G2):Y},G2};function Kt(k,j,Y){for(var l1=[],B1=kT1;B1?y1++:y1--)l1.push(y1);return l1}var V2=y,Ne=ot,Yi=function(k){for(var j=[1,1],Y=1;Y=5){var et,ht,kt;et=k.map(function(ft){return ft.lab()}),kt=k.length-1,ht=Yi(kt),B1=function(ft){var Wt=1-ft,Ft=[0,1,2].map(function(S2){return et.reduce(function(E2,Y2,r0){return E2+ht[r0]*Math.pow(Wt,kt-r0)*Math.pow(ft,r0)*Y2[S2]},0)});return new V2(Ft,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return B1},x9=function(k){var j=$o(k);return j.scale=function(){return Ne(j)},j},Uo=b,nn=function(k,j,Y){if(!nn[Y])throw new Error("unknown blend mode "+Y);return nn[Y](k,j)},fa=function(k){return function(j,Y){var l1=Uo(Y).rgb(),B1=Uo(j).rgb();return Uo.rgb(k(l1,B1))}},ga=function(k){return function(j,Y){var l1=[];return l1[0]=k(j[0],Y[0]),l1[1]=k(j[1],Y[1]),l1[2]=k(j[2],Y[2]),l1}},V9=function(k){return k},C9=function(k,j){return k*j/255},A6=function(k,j){return k>j?j:k},Zi=function(k,j){return k>j?k:j},N5=function(k,j){return 255*(1-(1-k/255)*(1-j/255))},rw=function(k,j){return j<128?2*k*j/255:255*(1-2*(1-k/255)*(1-j/255))},D5=function(k,j){return 255*(1-(1-j/255)/(k/255))},b9=function(k,j){return k===255?255:(k=255*(j/255)/(1-k/255),k>255?255:k)};nn.normal=fa(ga(V9)),nn.multiply=fa(ga(C9)),nn.screen=fa(ga(N5)),nn.overlay=fa(ga(rw)),nn.darken=fa(ga(A6)),nn.lighten=fa(ga(Zi)),nn.dodge=fa(ga(b9)),nn.burn=fa(ga(D5));for(var L9=nn,iw=p.type,le1=p.clip_rgb,ce1=p.TWOPI,he1=Math.pow,se1=Math.sin,ue1=Math.cos,PO=b,ve1=function(k,j,Y,l1,B1){k===void 0&&(k=300),j===void 0&&(j=-1.5),Y===void 0&&(Y=1),l1===void 0&&(l1=1),B1===void 0&&(B1=[0,1]);var T1=0,y1;iw(B1)==="array"?y1=B1[1]-B1[0]:(y1=0,B1=[B1,B1]);var N1=function(I1){var et=ce1*((k+120)/360+j*I1),ht=he1(B1[0]+y1*I1,l1),kt=T1!==0?Y[0]+I1*T1:Y,ft=kt*ht*(1-ht)/2,Wt=ue1(et),Ft=se1(et),S2=ht+ft*(-.14861*Wt+1.78277*Ft),E2=ht+ft*(-.29227*Wt-.90649*Ft),Y2=ht+ft*(1.97294*Wt);return PO(le1([S2*255,E2*255,Y2*255,1]))};return N1.start=function(I1){return I1==null?k:(k=I1,N1)},N1.rotations=function(I1){return I1==null?j:(j=I1,N1)},N1.gamma=function(I1){return I1==null?l1:(l1=I1,N1)},N1.hue=function(I1){return I1==null?Y:(Y=I1,iw(Y)==="array"?(T1=Y[1]-Y[0],T1===0&&(Y=Y[1])):T1=0,N1)},N1.lightness=function(I1){return I1==null?B1:(iw(I1)==="array"?(B1=I1,y1=I1[1]-I1[0]):(B1=[I1,I1],y1=0),N1)},N1.scale=function(){return PO.scale(N1)},N1.hue(Y),N1},de1=y,fe1="0123456789abcdef",ge1=Math.floor,pe1=Math.random,me1=function(){for(var k="#",j=0;j<6;j++)k+=fe1.charAt(ge1(pe1()*16));return new de1(k,"hex")},ow=h,NO=Math.log,ze1=Math.pow,Me1=Math.floor,He1=Math.abs,DO=function(k,j){j===void 0&&(j=null);var Y={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return ow(k)==="object"&&(k=Object.values(k)),k.forEach(function(l1){j&&ow(l1)==="object"&&(l1=l1[j]),l1!=null&&!isNaN(l1)&&(Y.values.push(l1),Y.sum+=l1,l1Y.max&&(Y.max=l1),Y.count+=1)}),Y.domain=[Y.min,Y.max],Y.limits=function(l1,B1){return RO(Y,l1,B1)},Y},RO=function(k,j,Y){j===void 0&&(j="equal"),Y===void 0&&(Y=7),ow(k)=="array"&&(k=DO(k));var l1=k.min,B1=k.max,T1=k.values.sort(function(cw,hw){return cw-hw});if(Y===1)return[l1,B1];var y1=[];if(j.substr(0,1)==="c"&&(y1.push(l1),y1.push(B1)),j.substr(0,1)==="e"){y1.push(l1);for(var N1=1;N1 0");var I1=Math.LOG10E*NO(l1),et=Math.LOG10E*NO(B1);y1.push(l1);for(var ht=1;ht200&&(w4=!1)}for(var Xi={},k6=0;k6l1?(Y+.05)/(l1+.05):(l1+.05)/(Y+.05)},FO=y,R5=Math.sqrt,De=Math.pow,ye1=Math.min,xe1=Math.max,$O=Math.atan2,UO=Math.abs,cv=Math.cos,WO=Math.sin,Ve1=Math.exp,qO=Math.PI,Ce1=function(k,j,Y,l1,B1){Y===void 0&&(Y=1),l1===void 0&&(l1=1),B1===void 0&&(B1=1);var T1=function(qo){return 360*qo/(2*qO)},y1=function(qo){return 2*qO*qo/360};k=new FO(k),j=new FO(j);var N1=Array.from(k.lab()),I1=N1[0],et=N1[1],ht=N1[2],kt=Array.from(j.lab()),ft=kt[0],Wt=kt[1],Ft=kt[2],S2=(I1+ft)/2,E2=R5(De(et,2)+De(ht,2)),Y2=R5(De(Wt,2)+De(Ft,2)),r0=(E2+Y2)/2,w4=.5*(1-R5(De(r0,7)/(De(r0,7)+De(25,7)))),s4=et*(1+w4),yn=Wt*(1+w4),G2=R5(De(s4,2)+De(ht,2)),gt=R5(De(yn,2)+De(Ft,2)),l2=(G2+gt)/2,O2=T1($O(ht,s4)),T2=T1($O(Ft,yn)),y4=O2>=0?O2:O2+360,R0=T2>=0?T2:T2+360,Z2=UO(y4-R0)>180?(y4+R0+360)/2:(y4+R0)/2,s0=1-.17*cv(y1(Z2-30))+.24*cv(y1(2*Z2))+.32*cv(y1(3*Z2+6))-.2*cv(y1(4*Z2-63)),u0=R0-y4;u0=UO(u0)<=180?u0:R0<=y4?u0+360:u0-360,u0=2*R5(G2*gt)*WO(y1(u0)/2);var m0=ft-I1,lr=gt-G2,Qi=1+.015*De(S2-50,2)/R5(20+De(S2-50,2)),Xi=1+.045*l2,k6=1+.015*l2*s0,E6=30*Ve1(-De((Z2-275)/25,2)),j5=2*R5(De(l2,7)/(De(l2,7)+De(25,7))),Wo=-j5*WO(2*y1(E6)),B9=R5(De(m0/(Y*Qi),2)+De(lr/(l1*Xi),2)+De(u0/(B1*k6),2)+Wo*(lr/(l1*Xi))*(u0/(B1*k6)));return xe1(0,ye1(100,B9))},GO=y,be1=function(k,j,Y){Y===void 0&&(Y="lab"),k=new GO(k),j=new GO(j);var l1=k.get(Y),B1=j.get(Y),T1=0;for(var y1 in l1){var N1=(l1[y1]||0)-(B1[y1]||0);T1+=N1*N1}return Math.sqrt(T1)},Le1=y,Be1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];try{return new(Function.prototype.bind.apply(Le1,[null].concat(k))),!0}catch{return!1}},KO=b,YO=ot,_e1={cool:function(){return YO([KO.hsl(180,1,.9),KO.hsl(250,.7,.4)])},hot:function(){return YO(["#000","#f00","#ff0","#fff"]).mode("rgb")}},hv={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},lw=0,ZO=Object.keys(hv);lw=e?"100%":"".concat(Math.round(t/e*100),"%")};Nt.calcPercentage=V71;var C71=function(t,e){e||(e=100);for(var n=[],a=t.length,r=[],o=t.length,l=0,c=0,s=0,h,u,v;o--;)c+=n[o]=Math.round(t[o]);for(s=cv&&(l=h);n[l]+=s,c+=s}for(var d=0;dQ?Q:k},a=n,r=function(k){k._clipped=!1,k._unclipped=k.slice(0);for(var j=0;j<=3;j++)j<3?((k[j]<0||k[j]>255)&&(k._clipped=!0),k[j]=a(k[j],0,255)):j===3&&(k[j]=a(k[j],0,1));return k},o={},l=0,c=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];l=3?Array.prototype.slice.call(k):u(k[0])=="object"&&j?j.split("").filter(function(Q){return k[0][Q]!==void 0}).map(function(Q){return k[0][Q]}):k[0]},d=h,f=function(k){if(k.length<2)return null;var j=k.length-1;return d(k[j])=="string"?k[j].toLowerCase():null},M=Math.PI,p={clip_rgb:r,limit:n,type:h,unpack:v,last:f,PI:M,TWOPI:M*2,PITHIRD:M/3,DEG2RAD:M/180,RAD2DEG:180/M},H={format:{},autodetect:[]},m=p.last,z=p.clip_rgb,g=p.type,w=H,V=function(){for(var j=[],Q=arguments.length;Q--;)j[Q]=arguments[Q];var l1=this;if(g(j[0])==="object"&&j[0].constructor&&j[0].constructor===this.constructor)return j[0];var B1=m(j),T1=!1;if(!B1){T1=!0,w.sorted||(w.autodetect=w.autodetect.sort(function(ht,kt){return kt.p-ht.p}),w.sorted=!0);for(var y1=0,N1=w.autodetect;y14?k[4]:1;return T1===1?[0,0,0,y1]:[Q>=1?0:255*(1-Q)*(1-T1),l1>=1?0:255*(1-l1)*(1-T1),B1>=1?0:255*(1-B1)*(1-T1),y1]},q=F,$=b,Z=y,I=H,n1=p.unpack,R=p.type,i1=T;Z.prototype.cmyk=function(){return i1(this._rgb)},$.cmyk=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Z,[null].concat(k,["cmyk"])))},I.format.cmyk=q,I.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=n1(k,"cmyk"),R(k)==="array"&&k.length===4)return"cmyk"}});var J=p.unpack,A=p.last,c1=function(k){return Math.round(k*100)/100},u1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=J(k,"hsla"),l1=A(k)||"lsa";return Q[0]=c1(Q[0]||0),Q[1]=c1(Q[1]*100)+"%",Q[2]=c1(Q[2]*100)+"%",l1==="hsla"||Q.length>3&&Q[3]<1?(Q[3]=Q.length>3?Q[3]:1,l1="hsla"):Q.length=3,l1+"("+Q.join(",")+")"},e1=u1,C1=p.unpack,h1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=C1(k,"rgba");var Q=k[0],l1=k[1],B1=k[2];Q/=255,l1/=255,B1/=255;var T1=Math.min(Q,l1,B1),y1=Math.max(Q,l1,B1),N1=(y1+T1)/2,I1,et;return y1===T1?(I1=0,et=Number.NaN):I1=N1<.5?(y1-T1)/(y1+T1):(y1-T1)/(2-y1-T1),Q==y1?et=(l1-B1)/(y1-T1):l1==y1?et=2+(B1-Q)/(y1-T1):B1==y1&&(et=4+(Q-l1)/(y1-T1)),et*=60,et<0&&(et+=360),k.length>3&&k[3]!==void 0?[et,I1,N1,k[3]]:[et,I1,N1]},m1=h1,w1=p.unpack,S1=p.last,R1=e1,q1=m1,D1=Math.round,G1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=w1(k,"rgba"),l1=S1(k)||"rgb";return l1.substr(0,3)=="hsl"?R1(q1(Q),l1):(Q[0]=D1(Q[0]),Q[1]=D1(Q[1]),Q[2]=D1(Q[2]),(l1==="rgba"||Q.length>3&&Q[3]<1)&&(Q[3]=Q.length>3?Q[3]:1,l1="rgba"),l1+"("+Q.slice(0,l1==="rgb"?3:4).join(",")+")")},rt=G1,Q1=p.unpack,at=Math.round,J1=function(){for(var k,j=[],Q=arguments.length;Q--;)j[Q]=arguments[Q];j=Q1(j,"hsl");var l1=j[0],B1=j[1],T1=j[2],y1,N1,I1;if(B1===0)y1=N1=I1=T1*255;else{var et=[0,0,0],ht=[0,0,0],kt=T1<.5?T1*(1+B1):T1+B1-T1*B1,ft=2*T1-kt,qt=l1/360;et[0]=qt+1/3,et[1]=qt,et[2]=qt-1/3;for(var $t=0;$t<3;$t++)et[$t]<0&&(et[$t]+=1),et[$t]>1&&(et[$t]-=1),6*et[$t]<1?ht[$t]=ft+(kt-ft)*6*et[$t]:2*et[$t]<1?ht[$t]=kt:3*et[$t]<2?ht[$t]=ft+(kt-ft)*(2/3-et[$t])*6:ht[$t]=ft;k=[at(ht[0]*255),at(ht[1]*255),at(ht[2]*255)],y1=k[0],N1=k[1],I1=k[2]}return j.length>3?[y1,N1,I1,j[3]]:[y1,N1,I1,1]},tt=J1,ut=tt,x1=H,F1=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,_1=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,H1=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,L1=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,X=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,f1=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,t1=Math.round,W=function(k){k=k.toLowerCase().trim();var j;if(x1.format.named)try{return x1.format.named(k)}catch{}if(j=k.match(F1)){for(var Q=j.slice(1,4),l1=0;l1<3;l1++)Q[l1]=+Q[l1];return Q[3]=1,Q}if(j=k.match(_1)){for(var B1=j.slice(1,5),T1=0;T1<4;T1++)B1[T1]=+B1[T1];return B1}if(j=k.match(H1)){for(var y1=j.slice(1,4),N1=0;N1<3;N1++)y1[N1]=t1(y1[N1]*2.55);return y1[3]=1,y1}if(j=k.match(L1)){for(var I1=j.slice(1,5),et=0;et<3;et++)I1[et]=t1(I1[et]*2.55);return I1[3]=+I1[3],I1}if(j=k.match(X)){var ht=j.slice(1,4);ht[1]*=.01,ht[2]*=.01;var kt=ut(ht);return kt[3]=1,kt}if(j=k.match(f1)){var ft=j.slice(1,4);ft[1]*=.01,ft[2]*=.01;var qt=ut(ft);return qt[3]=+j[4],qt}};W.test=function(k){return F1.test(k)||_1.test(k)||H1.test(k)||L1.test(k)||X.test(k)||f1.test(k)};var r1=W,E=b,U=y,K=H,o1=p.type,d1=rt,z1=r1;U.prototype.css=function(k){return d1(this._rgb,k)},E.css=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(U,[null].concat(k,["css"])))},K.format.css=z1,K.autodetect.push({p:5,test:function(k){for(var j=[],Q=arguments.length-1;Q-- >0;)j[Q]=arguments[Q+1];if(!j.length&&o1(k)==="string"&&z1.test(k))return"css"}});var $1=y,Y1=b,j1=H,V1=p.unpack;j1.format.gl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=V1(k,"rgba");return Q[0]*=255,Q[1]*=255,Q[2]*=255,Q},Y1.gl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply($1,[null].concat(k,["gl"])))},$1.prototype.gl=function(){var k=this._rgb;return[k[0]/255,k[1]/255,k[2]/255,k[3]]};var Ct=p.unpack,Z1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Ct(k,"rgb"),l1=Q[0],B1=Q[1],T1=Q[2],y1=Math.min(l1,B1,T1),N1=Math.max(l1,B1,T1),I1=N1-y1,et=I1*100/255,ht=y1/(255-I1)*100,kt;return I1===0?kt=Number.NaN:(l1===N1&&(kt=(B1-T1)/I1),B1===N1&&(kt=2+(T1-l1)/I1),T1===N1&&(kt=4+(l1-B1)/I1),kt*=60,kt<0&&(kt+=360)),[kt,et,ht]},bt=Z1,vt=p.unpack,Kt=Math.floor,yt=function(){for(var k,j,Q,l1,B1,T1,y1=[],N1=arguments.length;N1--;)y1[N1]=arguments[N1];y1=vt(y1,"hcg");var I1=y1[0],et=y1[1],ht=y1[2],kt,ft,qt;ht=ht*255;var $t=et*255;if(et===0)kt=ft=qt=ht;else{I1===360&&(I1=0),I1>360&&(I1-=360),I1<0&&(I1+=360),I1/=60;var _2=Kt(I1),E2=I1-_2,Y2=ht*(1-et),r0=Y2+$t*(1-E2),w4=Y2+$t*E2,s4=Y2+$t;switch(_2){case 0:k=[s4,w4,Y2],kt=k[0],ft=k[1],qt=k[2];break;case 1:j=[r0,s4,Y2],kt=j[0],ft=j[1],qt=j[2];break;case 2:Q=[Y2,s4,w4],kt=Q[0],ft=Q[1],qt=Q[2];break;case 3:l1=[Y2,r0,s4],kt=l1[0],ft=l1[1],qt=l1[2];break;case 4:B1=[w4,Y2,s4],kt=B1[0],ft=B1[1],qt=B1[2];break;case 5:T1=[s4,Y2,r0],kt=T1[0],ft=T1[1],qt=T1[2];break}}return[kt,ft,qt,y1.length>3?y1[3]:1]},Qt=yt,Rt=p.unpack,xt=p.type,At=b,Vt=y,Xt=H,f2=bt;Vt.prototype.hcg=function(){return f2(this._rgb)},At.hcg=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Vt,[null].concat(k,["hcg"])))},Xt.format.hcg=Qt,Xt.autodetect.push({p:1,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=Rt(k,"hcg"),xt(k)==="array"&&k.length===3)return"hcg"}});var H2=p.unpack,l0=p.last,c0=Math.round,p0=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=H2(k,"rgba"),l1=Q[0],B1=Q[1],T1=Q[2],y1=Q[3],N1=l0(k)||"auto";y1===void 0&&(y1=1),N1==="auto"&&(N1=y1<1?"rgba":"rgb"),l1=c0(l1),B1=c0(B1),T1=c0(T1);var I1=l1<<16|B1<<8|T1,et="000000"+I1.toString(16);et=et.substr(et.length-6);var ht="0"+c0(y1*255).toString(16);switch(ht=ht.substr(ht.length-2),N1.toLowerCase()){case"rgba":return"#"+et+ht;case"argb":return"#"+ht+et;default:return"#"+et}},q2=p0,e0=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Ye=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Ht=function(k){if(k.match(e0)){(k.length===4||k.length===7)&&(k=k.substr(1)),k.length===3&&(k=k.split(""),k=k[0]+k[0]+k[1]+k[1]+k[2]+k[2]);var j=parseInt(k,16),Q=j>>16,l1=j>>8&255,B1=j&255;return[Q,l1,B1,1]}if(k.match(Ye)){(k.length===5||k.length===9)&&(k=k.substr(1)),k.length===4&&(k=k.split(""),k=k[0]+k[0]+k[1]+k[1]+k[2]+k[2]+k[3]+k[3]);var T1=parseInt(k,16),y1=T1>>24&255,N1=T1>>16&255,I1=T1>>8&255,et=Math.round((T1&255)/255*100)/100;return[y1,N1,I1,et]}throw new Error("unknown hex color: "+k)},zt=Ht,Tt=b,Ft=y,K2=p.type,z2=H,V2=q2;Ft.prototype.hex=function(k){return V2(this._rgb,k)},Tt.hex=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Ft,[null].concat(k,["hex"])))},z2.format.hex=zt,z2.autodetect.push({p:4,test:function(k){for(var j=[],Q=arguments.length-1;Q-- >0;)j[Q]=arguments[Q+1];if(!j.length&&K2(k)==="string"&&[3,4,5,6,7,8,9].indexOf(k.length)>=0)return"hex"}});var x2=p.unpack,S0=p.TWOPI,he=Math.min,se=Math.sqrt,T4=Math.acos,c4=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=x2(k,"rgb"),l1=Q[0],B1=Q[1],T1=Q[2];l1/=255,B1/=255,T1/=255;var y1,N1=he(l1,B1,T1),I1=(l1+B1+T1)/3,et=I1>0?1-N1/I1:0;return et===0?y1=NaN:(y1=(l1-B1+(l1-T1))/2,y1/=se((l1-B1)*(l1-B1)+(l1-T1)*(B1-T1)),y1=T4(y1),T1>B1&&(y1=S0-y1),y1/=S0),[y1*360,et,I1]},Be=c4,Q4=p.unpack,T0=p.limit,h0=p.TWOPI,X4=p.PITHIRD,Ze=Math.cos,va=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=Q4(k,"hsi");var Q=k[0],l1=k[1],B1=k[2],T1,y1,N1;return isNaN(Q)&&(Q=0),isNaN(l1)&&(l1=0),Q>360&&(Q-=360),Q<0&&(Q+=360),Q/=360,Q<1/3?(N1=(1-l1)/3,T1=(1+l1*Ze(h0*Q)/Ze(X4-h0*Q))/3,y1=1-(N1+T1)):Q<2/3?(Q-=1/3,T1=(1-l1)/3,y1=(1+l1*Ze(h0*Q)/Ze(X4-h0*Q))/3,N1=1-(T1+y1)):(Q-=2/3,y1=(1-l1)/3,N1=(1+l1*Ze(h0*Q)/Ze(X4-h0*Q))/3,T1=1-(y1+N1)),T1=T0(B1*T1*3),y1=T0(B1*y1*3),N1=T0(B1*N1*3),[T1*255,y1*255,N1*255,k.length>3?k[3]:1]},J4=va,rr=p.unpack,Un=p.type,tn=b,wn=y,p2=H,s2=Be;wn.prototype.hsi=function(){return s2(this._rgb)},tn.hsi=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(wn,[null].concat(k,["hsi"])))},p2.format.hsi=J4,p2.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=rr(k,"hsi"),Un(k)==="array"&&k.length===3)return"hsi"}});var D0=p.unpack,Me=p.type,C0=b,G0=y,Pe=H,O4=m1;G0.prototype.hsl=function(){return O4(this._rgb)},C0.hsl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(G0,[null].concat(k,["hsl"])))},Pe.format.hsl=tt,Pe.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=D0(k,"hsl"),Me(k)==="array"&&k.length===3)return"hsl"}});var Qe=p.unpack,en=Math.min,A4=Math.max,_e=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=Qe(k,"rgb");var Q=k[0],l1=k[1],B1=k[2],T1=en(Q,l1,B1),y1=A4(Q,l1,B1),N1=y1-T1,I1,et,ht;return ht=y1/255,y1===0?(I1=Number.NaN,et=0):(et=N1/y1,Q===y1&&(I1=(l1-B1)/N1),l1===y1&&(I1=2+(B1-Q)/N1),B1===y1&&(I1=4+(Q-l1)/N1),I1*=60,I1<0&&(I1+=360)),[I1,et,ht]},Fi=_e,Xe=p.unpack,ir=Math.floor,$r=function(){for(var k,j,Q,l1,B1,T1,y1=[],N1=arguments.length;N1--;)y1[N1]=arguments[N1];y1=Xe(y1,"hsv");var I1=y1[0],et=y1[1],ht=y1[2],kt,ft,qt;if(ht*=255,et===0)kt=ft=qt=ht;else{I1===360&&(I1=0),I1>360&&(I1-=360),I1<0&&(I1+=360),I1/=60;var $t=ir(I1),_2=I1-$t,E2=ht*(1-et),Y2=ht*(1-et*_2),r0=ht*(1-et*(1-_2));switch($t){case 0:k=[ht,r0,E2],kt=k[0],ft=k[1],qt=k[2];break;case 1:j=[Y2,ht,E2],kt=j[0],ft=j[1],qt=j[2];break;case 2:Q=[E2,ht,r0],kt=Q[0],ft=Q[1],qt=Q[2];break;case 3:l1=[E2,Y2,ht],kt=l1[0],ft=l1[1],qt=l1[2];break;case 4:B1=[r0,E2,ht],kt=B1[0],ft=B1[1],qt=B1[2];break;case 5:T1=[ht,E2,Y2],kt=T1[0],ft=T1[1],qt=T1[2];break}}return[kt,ft,qt,y1.length>3?y1[3]:1]},Ur=$r,O5=p.unpack,A5=p.type,$i=b,Ui=y,da=H,Do=Fi;Ui.prototype.hsv=function(){return Do(this._rgb)},$i.hsv=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Ui,[null].concat(k,["hsv"])))},da.format.hsv=Ur,da.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=O5(k,"hsv"),A5(k)==="array"&&k.length===3)return"hsv"}});var Wr={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Dt=Wr,c2=p.unpack,O0=Math.pow,b0=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=c2(k,"rgb"),l1=Q[0],B1=Q[1],T1=Q[2],y1=Ro(l1,B1,T1),N1=y1[0],I1=y1[1],et=y1[2],ht=116*I1-16;return[ht<0?0:ht,500*(N1-I1),200*(I1-et)]},L0=function(k){return(k/=255)<=.04045?k/12.92:O0((k+.055)/1.055,2.4)},qr=function(k){return k>Dt.t3?O0(k,1/3):k/Dt.t2+Dt.t0},Ro=function(k,j,Q){k=L0(k),j=L0(j),Q=L0(Q);var l1=qr((.4124564*k+.3575761*j+.1804375*Q)/Dt.Xn),B1=qr((.2126729*k+.7151522*j+.072175*Q)/Dt.Yn),T1=qr((.0193339*k+.119192*j+.9503041*Q)/Dt.Zn);return[l1,B1,T1]},jo=b0,Wn=Wr,DM=p.unpack,C6=Math.pow,RM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=DM(k,"lab");var Q=k[0],l1=k[1],B1=k[2],T1,y1,N1,I1,et,ht;return y1=(Q+16)/116,T1=isNaN(l1)?y1:y1+l1/500,N1=isNaN(B1)?y1:y1-B1/200,y1=Wn.Yn*l9(y1),T1=Wn.Xn*l9(T1),N1=Wn.Zn*l9(N1),I1=o9(3.2404542*T1-1.5371385*y1-.4985314*N1),et=o9(-.969266*T1+1.8760108*y1+.041556*N1),ht=o9(.0556434*T1-.2040259*y1+1.0572252*N1),[I1,et,ht,k.length>3?k[3]:1]},o9=function(k){return 255*(k<=.00304?12.92*k:1.055*C6(k,1/2.4)-.055)},l9=function(k){return k>Wn.t1?k*k*k:Wn.t2*(k-Wn.t0)},ru=RM,iu=p.unpack,jM=p.type,IM=b,Wi=y,ou=H,FM=jo;Wi.prototype.lab=function(){return FM(this._rgb)},IM.lab=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Wi,[null].concat(k,["lab"])))},ou.format.lab=ru,ou.autodetect.push({p:2,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=iu(k,"lab"),jM(k)==="array"&&k.length===3)return"lab"}});var $M=p.unpack,UM=p.RAD2DEG,WM=Math.sqrt,b6=Math.atan2,qM=Math.round,GM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=$M(k,"lab"),l1=Q[0],B1=Q[1],T1=Q[2],y1=WM(B1*B1+T1*T1),N1=(b6(T1,B1)*UM+360)%360;return qM(y1*1e4)===0&&(N1=Number.NaN),[l1,y1,N1]},lu=GM,KM=p.unpack,qi=jo,YM=lu,ZM=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=KM(k,"rgb"),l1=Q[0],B1=Q[1],T1=Q[2],y1=qi(l1,B1,T1),N1=y1[0],I1=y1[1],et=y1[2];return YM(N1,I1,et)},QM=ZM,XM=p.unpack,JM=p.DEG2RAD,tH=Math.sin,cu=Math.cos,eH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=XM(k,"lch"),l1=Q[0],B1=Q[1],T1=Q[2];return isNaN(T1)&&(T1=0),T1=T1*JM,[l1,cu(T1)*B1,tH(T1)*B1]},hu=eH,su=p.unpack,nH=hu,aH=ru,uu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=su(k,"lch");var Q=k[0],l1=k[1],B1=k[2],T1=nH(Q,l1,B1),y1=T1[0],N1=T1[1],I1=T1[2],et=aH(y1,N1,I1),ht=et[0],kt=et[1],ft=et[2];return[ht,kt,ft,k.length>3?k[3]:1]},vu=uu,rH=p.unpack,du=vu,iH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=rH(k,"hcl").reverse();return du.apply(void 0,Q)},oH=iH,fu=p.unpack,lH=p.type,gu=b,k5=y,c9=H,pu=QM;k5.prototype.lch=function(){return pu(this._rgb)},k5.prototype.hcl=function(){return pu(this._rgb).reverse()},gu.lch=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(k5,[null].concat(k,["lch"])))},gu.hcl=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(k5,[null].concat(k,["hcl"])))},c9.format.lch=vu,c9.format.hcl=oH,["lch","hcl"].forEach(function(k){return c9.autodetect.push({p:2,test:function(){for(var j=[],Q=arguments.length;Q--;)j[Q]=arguments[Q];if(j=fu(j,k),lH(j)==="array"&&j.length===3)return k}})});var cH={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},mu=cH,zu=y,Mu=H,hH=p.type,Gi=mu,sH=zt,uH=q2;zu.prototype.name=function(){for(var k=uH(this._rgb,"rgb"),j=0,Q=Object.keys(Gi);j0;)j[Q]=arguments[Q+1];if(!j.length&&hH(k)==="string"&&Gi[k.toLowerCase()])return"named"}});var Hu=p.unpack,vH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Hu(k,"rgb"),l1=Q[0],B1=Q[1],T1=Q[2];return(l1<<16)+(B1<<8)+T1},h9=vH,wu=p.type,dH=function(k){if(wu(k)=="number"&&k>=0&&k<=16777215){var j=k>>16,Q=k>>8&255,l1=k&255;return[j,Q,l1,1]}throw new Error("unknown num color: "+k)},yu=dH,xu=b,Vu=y,Cu=H,bu=p.type,fH=h9;Vu.prototype.num=function(){return fH(this._rgb)},xu.num=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Vu,[null].concat(k,["num"])))},Cu.format.num=yu,Cu.autodetect.push({p:5,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k.length===1&&bu(k[0])==="number"&&k[0]>=0&&k[0]<=16777215)return"num"}});var gH=b,L6=y,Lu=H,Bu=p.unpack,s9=p.type,_u=Math.round;L6.prototype.rgb=function(k){return k===void 0&&(k=!0),k===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(_u)},L6.prototype.rgba=function(k){return k===void 0&&(k=!0),this._rgb.slice(0,4).map(function(j,Q){return Q<3?k===!1?j:_u(j):j})},gH.rgb=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(L6,[null].concat(k,["rgb"])))},Lu.format.rgb=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Bu(k,"rgba");return Q[3]===void 0&&(Q[3]=1),Q},Lu.autodetect.push({p:3,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=Bu(k,"rgba"),s9(k)==="array"&&(k.length===3||k.length===4&&s9(k[3])=="number"&&k[3]>=0&&k[3]<=1))return"rgb"}});var Ki=Math.log,Su=function(k){var j=k/100,Q,l1,B1;return j<66?(Q=255,l1=j<6?0:-155.25485562709179-.44596950469579133*(l1=j-2)+104.49216199393888*Ki(l1),B1=j<20?0:-254.76935184120902+.8274096064007395*(B1=j-10)+115.67994401066147*Ki(B1)):(Q=351.97690566805693+.114206453784165*(Q=j-55)-40.25366309332127*Ki(Q),l1=325.4494125711974+.07943456536662342*(l1=j-50)-28.0852963507957*Ki(l1),B1=255),[Q,l1,B1,1]},Io=Su,Fo=Io,Tu=p.unpack,pH=Math.round,mH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];for(var Q=Tu(k,"rgb"),l1=Q[0],B1=Q[2],T1=1e3,y1=4e4,N1=.4,I1;y1-T1>N1;){I1=(y1+T1)*.5;var et=Fo(I1);et[2]/et[0]>=B1/l1?y1=I1:T1=I1}return pH(I1)},Ou=mH,u9=b,B6=y,_6=H,E5=Ou;B6.prototype.temp=B6.prototype.kelvin=B6.prototype.temperature=function(){return E5(this._rgb)},u9.temp=u9.kelvin=u9.temperature=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(B6,[null].concat(k,["temp"])))},_6.format.temp=_6.format.kelvin=_6.format.temperature=Io;var Au=p.unpack,S6=Math.cbrt,zH=Math.pow,MH=Math.sign,ku=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Au(k,"rgb"),l1=Q[0],B1=Q[1],T1=Q[2],y1=[v9(l1/255),v9(B1/255),v9(T1/255)],N1=y1[0],I1=y1[1],et=y1[2],ht=S6(.4122214708*N1+.5363325363*I1+.0514459929*et),kt=S6(.2119034982*N1+.6806995451*I1+.1073969566*et),ft=S6(.0883024619*N1+.2817188376*I1+.6299787005*et);return[.2104542553*ht+.793617785*kt-.0040720468*ft,1.9779984951*ht-2.428592205*kt+.4505937099*ft,.0259040371*ht+.7827717662*kt-.808675766*ft]},Eu=ku;function v9(k){var j=Math.abs(k);return j<.04045?k/12.92:(MH(k)||1)*zH((j+.055)/1.055,2.4)}var Pu=p.unpack,P5=Math.pow,T6=Math.sign,Nu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=Pu(k,"lab");var Q=k[0],l1=k[1],B1=k[2],T1=P5(Q+.3963377774*l1+.2158037573*B1,3),y1=P5(Q-.1055613458*l1-.0638541728*B1,3),N1=P5(Q-.0894841775*l1-1.291485548*B1,3);return[255*d9(4.0767416621*T1-3.3077115913*y1+.2309699292*N1),255*d9(-1.2684380046*T1+2.6097574011*y1-.3413193965*N1),255*d9(-.0041960863*T1-.7034186147*y1+1.707614701*N1),k.length>3?k[3]:1]},Du=Nu;function d9(k){var j=Math.abs(k);return j>.0031308?(T6(k)||1)*(1.055*P5(j,1/2.4)-.055):k*12.92}var Ru=p.unpack,HH=p.type,wH=b,f9=y,ju=H,Iu=Eu;f9.prototype.oklab=function(){return Iu(this._rgb)},wH.oklab=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(f9,[null].concat(k,["oklab"])))},ju.format.oklab=Du,ju.autodetect.push({p:3,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=Ru(k,"oklab"),HH(k)==="array"&&k.length===3)return"oklab"}});var Fu=p.unpack,yH=Eu,$u=lu,Uu=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];var Q=Fu(k,"rgb"),l1=Q[0],B1=Q[1],T1=Q[2],y1=yH(l1,B1,T1),N1=y1[0],I1=y1[1],et=y1[2];return $u(N1,I1,et)},xH=Uu,VH=p.unpack,Wu=hu,CH=Du,bH=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];k=VH(k,"lch");var Q=k[0],l1=k[1],B1=k[2],T1=Wu(Q,l1,B1),y1=T1[0],N1=T1[1],I1=T1[2],et=CH(y1,N1,I1),ht=et[0],kt=et[1],ft=et[2];return[ht,kt,ft,k.length>3?k[3]:1]},qu=bH,LH=p.unpack,Gu=p.type,Ku=b,Yu=y,Zu=H,Qu=xH;Yu.prototype.oklch=function(){return Qu(this._rgb)},Ku.oklch=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];return new(Function.prototype.bind.apply(Yu,[null].concat(k,["oklch"])))},Zu.format.oklch=qu,Zu.autodetect.push({p:3,test:function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];if(k=LH(k,"oklch"),Gu(k)==="array"&&k.length===3)return"oklch"}});var Xu=y,BH=p.type;Xu.prototype.alpha=function(k,j){return j===void 0&&(j=!1),k!==void 0&&BH(k)==="number"?j?(this._rgb[3]=k,this):new Xu([this._rgb[0],this._rgb[1],this._rgb[2],k],"rgb"):this._rgb[3]};var Ju=y;Ju.prototype.clipped=function(){return this._rgb._clipped||!1};var N5=y,_H=Wr;N5.prototype.darken=function(k){k===void 0&&(k=1);var j=this,Q=j.lab();return Q[0]-=_H.Kn*k,new N5(Q,"lab").alpha(j.alpha(),!0)},N5.prototype.brighten=function(k){return k===void 0&&(k=1),this.darken(-k)},N5.prototype.darker=N5.prototype.darken,N5.prototype.brighter=N5.prototype.brighten;var tv=y;tv.prototype.get=function(k){var j=k.split("."),Q=j[0],l1=j[1],B1=this[Q]();if(l1){var T1=Q.indexOf(l1)-(Q.substr(0,2)==="ok"?2:0);if(T1>-1)return B1[T1];throw new Error("unknown channel "+l1+" in mode "+Q)}else return B1};var Yi=y,SH=p.type,ev=Math.pow,TH=1e-7,OH=20;Yi.prototype.luminance=function(k){if(k!==void 0&&SH(k)==="number"){if(k===0)return new Yi([0,0,0,this._rgb[3]],"rgb");if(k===1)return new Yi([255,255,255,this._rgb[3]],"rgb");var j=this.luminance(),Q="rgb",l1=OH,B1=function(y1,N1){var I1=y1.interpolate(N1,.5,Q),et=I1.luminance();return Math.abs(k-et)k?B1(y1,I1):B1(I1,N1)},T1=(j>k?B1(new Yi([0,0,0]),this):B1(this,new Yi([255,255,255]))).rgb();return new Yi(T1.concat([this._rgb[3]]))}return a2.apply(void 0,this._rgb.slice(0,3))};var a2=function(k,j,Q){return k=O6(k),j=O6(j),Q=O6(Q),.2126*k+.7152*j+.0722*Q},O6=function(k){return k/=255,k<=.03928?k/12.92:ev((k+.055)/1.055,2.4)},k4={},nv=y,av=p.type,A6=k4,rv=function(k,j,Q){Q===void 0&&(Q=.5);for(var l1=[],B1=arguments.length-3;B1-- >0;)l1[B1]=arguments[B1+3];var T1=l1[0]||"lrgb";if(!A6[T1]&&!l1.length&&(T1=Object.keys(A6)[0]),!A6[T1])throw new Error("interpolation mode "+T1+" is not defined");return av(k)!=="object"&&(k=new nv(k)),av(j)!=="object"&&(j=new nv(j)),A6[T1](k,j,Q).alpha(k.alpha()+Q*(j.alpha()-k.alpha()))},iv=y,AH=rv;iv.prototype.mix=iv.prototype.interpolate=function(k,j){j===void 0&&(j=.5);for(var Q=[],l1=arguments.length-2;l1-- >0;)Q[l1]=arguments[l1+2];return AH.apply(void 0,[this,k,j].concat(Q))};var ov=y;ov.prototype.premultiply=function(k){k===void 0&&(k=!1);var j=this._rgb,Q=j[3];return k?(this._rgb=[j[0]*Q,j[1]*Q,j[2]*Q,Q],this):new ov([j[0]*Q,j[1]*Q,j[2]*Q,Q],"rgb")};var g9=y,kH=Wr;g9.prototype.saturate=function(k){k===void 0&&(k=1);var j=this,Q=j.lch();return Q[1]+=kH.Kn*k,Q[1]<0&&(Q[1]=0),new g9(Q,"lch").alpha(j.alpha(),!0)},g9.prototype.desaturate=function(k){return k===void 0&&(k=1),this.saturate(-k)};var lv=y,cv=p.type;lv.prototype.set=function(k,j,Q){Q===void 0&&(Q=!1);var l1=k.split("."),B1=l1[0],T1=l1[1],y1=this[B1]();if(T1){var N1=B1.indexOf(T1)-(B1.substr(0,2)==="ok"?2:0);if(N1>-1){if(cv(j)=="string")switch(j.charAt(0)){case"+":y1[N1]+=+j;break;case"-":y1[N1]+=+j;break;case"*":y1[N1]*=+j.substr(1);break;case"/":y1[N1]/=+j.substr(1);break;default:y1[N1]=+j}else if(cv(j)==="number")y1[N1]=j;else throw new Error("unsupported value for Color.set");var I1=new lv(y1,B1);return Q?(this._rgb=I1._rgb,this):I1}throw new Error("unknown channel "+T1+" in mode "+B1)}else return y1};var EH=y,PH=function(k,j,Q){var l1=k._rgb,B1=j._rgb;return new EH(l1[0]+Q*(B1[0]-l1[0]),l1[1]+Q*(B1[1]-l1[1]),l1[2]+Q*(B1[2]-l1[2]),"rgb")};k4.rgb=PH;var NH=y,p9=Math.sqrt,Zi=Math.pow,DH=function(k,j,Q){var l1=k._rgb,B1=l1[0],T1=l1[1],y1=l1[2],N1=j._rgb,I1=N1[0],et=N1[1],ht=N1[2];return new NH(p9(Zi(B1,2)*(1-Q)+Zi(I1,2)*Q),p9(Zi(T1,2)*(1-Q)+Zi(et,2)*Q),p9(Zi(y1,2)*(1-Q)+Zi(ht,2)*Q),"rgb")};k4.lrgb=DH;var RH=y,hv=function(k,j,Q){var l1=k.lab(),B1=j.lab();return new RH(l1[0]+Q*(B1[0]-l1[0]),l1[1]+Q*(B1[1]-l1[1]),l1[2]+Q*(B1[2]-l1[2]),"lab")};k4.lab=hv;var sv=y,Qi=function(k,j,Q,l1){var B1,T1,y1,N1;l1==="hsl"?(y1=k.hsl(),N1=j.hsl()):l1==="hsv"?(y1=k.hsv(),N1=j.hsv()):l1==="hcg"?(y1=k.hcg(),N1=j.hcg()):l1==="hsi"?(y1=k.hsi(),N1=j.hsi()):l1==="lch"||l1==="hcl"?(l1="hcl",y1=k.hcl(),N1=j.hcl()):l1==="oklch"&&(y1=k.oklch().reverse(),N1=j.oklch().reverse());var I1,et,ht,kt,ft,qt;(l1.substr(0,1)==="h"||l1==="oklch")&&(B1=y1,I1=B1[0],ht=B1[1],ft=B1[2],T1=N1,et=T1[0],kt=T1[1],qt=T1[2]);var $t,_2,E2,Y2;return!isNaN(I1)&&!isNaN(et)?(et>I1&&et-I1>180?Y2=et-(I1+360):et180?Y2=et+360-I1:Y2=et-I1,_2=I1+Q*Y2):isNaN(I1)?isNaN(et)?_2=Number.NaN:(_2=et,(ft==1||ft==0)&&l1!="hsv"&&($t=kt)):(_2=I1,(qt==1||qt==0)&&l1!="hsv"&&($t=ht)),$t===void 0&&($t=ht+Q*(kt-ht)),E2=ft+Q*(qt-ft),l1==="oklch"?new sv([E2,$t,_2],l1):new sv([_2,$t,E2],l1)},jH=Qi,uv=function(k,j,Q){return jH(k,j,Q,"lch")};k4.lch=uv,k4.hcl=uv;var IH=y,FH=function(k,j,Q){var l1=k.num(),B1=j.num();return new IH(l1+Q*(B1-l1),"num")};k4.num=FH;var $H=Qi,UH=function(k,j,Q){return $H(k,j,Q,"hcg")};k4.hcg=UH;var WH=Qi,qH=function(k,j,Q){return WH(k,j,Q,"hsi")};k4.hsi=qH;var GH=Qi,KH=function(k,j,Q){return GH(k,j,Q,"hsl")};k4.hsl=KH;var YH=Qi,ZH=function(k,j,Q){return YH(k,j,Q,"hsv")};k4.hsv=ZH;var QH=y,XH=function(k,j,Q){var l1=k.oklab(),B1=j.oklab();return new QH(l1[0]+Q*(B1[0]-l1[0]),l1[1]+Q*(B1[1]-l1[1]),l1[2]+Q*(B1[2]-l1[2]),"oklab")};k4.oklab=XH;var JH=Qi,tw=function(k,j,Q){return JH(k,j,Q,"oklch")};k4.oklch=tw;var m9=y,ew=p.clip_rgb,z9=Math.pow,$o=Math.sqrt,M9=Math.PI,vv=Math.cos,Gr=Math.sin,nw=Math.atan2,aw=function(k,j,Q){j===void 0&&(j="lrgb"),Q===void 0&&(Q=null);var l1=k.length;Q||(Q=Array.from(new Array(l1)).map(function(){return 1}));var B1=l1/Q.reduce(function(_2,E2){return _2+E2});if(Q.forEach(function(_2,E2){Q[E2]*=B1}),k=k.map(function(_2){return new m9(_2)}),j==="lrgb")return rw(k,Q);for(var T1=k.shift(),y1=T1.get(j),N1=[],I1=0,et=0,ht=0;ht=360;)$t-=360;y1[qt]=$t}else y1[qt]=y1[qt]/N1[qt];return ft/=l1,new m9(y1,j).alpha(ft>.99999?1:ft,!0)},rw=function(k,j){for(var Q=k.length,l1=[0,0,0,0],B1=0;B1.9999999&&(l1[3]=1),new m9(ew(l1))},qn=b,Xi=p.type,k1=Math.pow,E1=function(k){var j="rgb",Q=qn("#ccc"),l1=0,B1=[0,1],T1=[],y1=[0,0],N1=!1,I1=[],et=!1,ht=0,kt=1,ft=!1,qt={},$t=!0,_2=1,E2=function(gt){if(gt=gt||["#fff","#000"],gt&&Xi(gt)==="string"&&qn.brewer&&qn.brewer[gt.toLowerCase()]&&(gt=qn.brewer[gt.toLowerCase()]),Xi(gt)==="array"){gt.length===1&&(gt=[gt[0],gt[0]]),gt=gt.slice(0);for(var l2=0;l2=N1[O2];)O2++;return O2-1}return 0},r0=function(gt){return gt},w4=function(gt){return gt},s4=function(gt,l2){var O2,S2;if(l2==null&&(l2=!1),isNaN(gt)||gt===null)return Q;if(l2)S2=gt;else if(N1&&N1.length>2){var y4=Y2(gt);S2=y4/(N1.length-2)}else kt!==ht?S2=(gt-ht)/(kt-ht):S2=1;S2=w4(S2),l2||(S2=r0(S2)),_2!==1&&(S2=k1(S2,_2)),S2=y1[0]+S2*(1-y1[0]-y1[1]),S2=Math.min(1,Math.max(0,S2));var R0=Math.floor(S2*1e4);if($t&&qt[R0])O2=qt[R0];else{if(Xi(I1)==="array")for(var Z2=0;Z2=s0&&Z2===T1.length-1){O2=I1[Z2];break}if(S2>s0&&S22){var Z2=gt.map(function(u0,m0){return m0/(gt.length-1)}),s0=gt.map(function(u0){return(u0-ht)/(kt-ht)});s0.every(function(u0,m0){return Z2[m0]===u0})||(w4=function(u0){if(u0<=0||u0>=1)return u0;for(var m0=0;u0>=s0[m0+1];)m0++;var or=(u0-s0[m0])/(s0[m0+1]-s0[m0]),e3=Z2[m0]+or*(Z2[m0+1]-Z2[m0]);return e3})}}return B1=[ht,kt],G2},G2.mode=function(gt){return arguments.length?(j=gt,yn(),G2):j},G2.range=function(gt,l2){return E2(gt),G2},G2.out=function(gt){return et=gt,G2},G2.spread=function(gt){return arguments.length?(l1=gt,G2):l1},G2.correctLightness=function(gt){return gt==null&&(gt=!0),ft=gt,yn(),ft?r0=function(l2){for(var O2=s4(0,!0).lab()[0],S2=s4(1,!0).lab()[0],y4=O2>S2,R0=s4(l2,!0).lab()[0],Z2=O2+(S2-O2)*l2,s0=R0-Z2,u0=0,m0=1,or=20;Math.abs(s0)>.01&&or-- >0;)(function(){return y4&&(s0*=-1),s0<0?(u0=l2,l2+=(m0-l2)*.5):(m0=l2,l2+=(u0-l2)*.5),R0=s4(l2,!0).lab()[0],s0=R0-Z2})();return l2}:r0=function(l2){return l2},G2},G2.padding=function(gt){return gt!=null?(Xi(gt)==="number"&&(gt=[gt,gt]),y1=gt,G2):y1},G2.colors=function(gt,l2){arguments.length<2&&(l2="hex");var O2=[];if(arguments.length===0)O2=I1.slice(0);else if(gt===1)O2=[G2(.5)];else if(gt>1){var S2=B1[0],y4=B1[1]-S2;O2=ct(0,gt,!1).map(function(m0){return G2(S2+m0/(gt-1)*y4)})}else{k=[];var R0=[];if(N1&&N1.length>2)for(var Z2=1,s0=N1.length,u0=1<=s0;u0?Z2s0;u0?Z2++:Z2--)R0.push((N1[Z2-1]+N1[Z2])*.5);else R0=B1;O2=R0.map(function(m0){return G2(m0)})}return qn[l2]&&(O2=O2.map(function(m0){return m0[l2]()})),O2},G2.cache=function(gt){return gt!=null?($t=gt,G2):$t},G2.gamma=function(gt){return gt!=null?(_2=gt,G2):_2},G2.nodata=function(gt){return gt!=null?(Q=qn(gt),G2):Q},G2};function ct(k,j,Q){for(var l1=[],B1=kT1;B1?y1++:y1--)l1.push(y1);return l1}var It=y,T2=E1,Ne=function(k){for(var j=[1,1],Q=1;Q=5){var et,ht,kt;et=k.map(function(ft){return ft.lab()}),kt=k.length-1,ht=Ne(kt),B1=function(ft){var qt=1-ft,$t=[0,1,2].map(function(_2){return et.reduce(function(E2,Y2,r0){return E2+ht[r0]*Math.pow(qt,kt-r0)*Math.pow(ft,r0)*Y2[_2]},0)});return new It($t,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return B1},Uo=function(k){var j=Ji(k);return j.scale=function(){return T2(j)},j},Wo=b,nn=function(k,j,Q){if(!nn[Q])throw new Error("unknown blend mode "+Q);return nn[Q](k,j)},fa=function(k){return function(j,Q){var l1=Wo(Q).rgb(),B1=Wo(j).rgb();return Wo.rgb(k(l1,B1))}},ga=function(k){return function(j,Q){var l1=[];return l1[0]=k(j[0],Q[0]),l1[1]=k(j[1],Q[1]),l1[2]=k(j[2],Q[2]),l1}},H9=function(k){return k},w9=function(k,j){return k*j/255},y9=function(k,j){return k>j?j:k},k6=function(k,j){return k>j?k:j},t3=function(k,j){return 255*(1-(1-k/255)*(1-j/255))},D5=function(k,j){return j<128?2*k*j/255:255*(1-2*(1-k/255)*(1-j/255))},iw=function(k,j){return 255*(1-(1-j/255)/(k/255))},R5=function(k,j){return k===255?255:(k=255*(j/255)/(1-k/255),k>255?255:k)};nn.normal=fa(ga(H9)),nn.multiply=fa(ga(w9)),nn.screen=fa(ga(t3)),nn.overlay=fa(ga(D5)),nn.darken=fa(ga(y9)),nn.lighten=fa(ga(k6)),nn.dodge=fa(ga(R5)),nn.burn=fa(ga(iw));for(var x9=nn,qo=p.type,le1=p.clip_rgb,ce1=p.TWOPI,he1=Math.pow,se1=Math.sin,ue1=Math.cos,PO=b,ve1=function(k,j,Q,l1,B1){k===void 0&&(k=300),j===void 0&&(j=-1.5),Q===void 0&&(Q=1),l1===void 0&&(l1=1),B1===void 0&&(B1=[0,1]);var T1=0,y1;qo(B1)==="array"?y1=B1[1]-B1[0]:(y1=0,B1=[B1,B1]);var N1=function(I1){var et=ce1*((k+120)/360+j*I1),ht=he1(B1[0]+y1*I1,l1),kt=T1!==0?Q[0]+I1*T1:Q,ft=kt*ht*(1-ht)/2,qt=ue1(et),$t=se1(et),_2=ht+ft*(-.14861*qt+1.78277*$t),E2=ht+ft*(-.29227*qt-.90649*$t),Y2=ht+ft*(1.97294*qt);return PO(le1([_2*255,E2*255,Y2*255,1]))};return N1.start=function(I1){return I1==null?k:(k=I1,N1)},N1.rotations=function(I1){return I1==null?j:(j=I1,N1)},N1.gamma=function(I1){return I1==null?l1:(l1=I1,N1)},N1.hue=function(I1){return I1==null?Q:(Q=I1,qo(Q)==="array"?(T1=Q[1]-Q[0],T1===0&&(Q=Q[1])):T1=0,N1)},N1.lightness=function(I1){return I1==null?B1:(qo(I1)==="array"?(B1=I1,y1=I1[1]-I1[0]):(B1=[I1,I1],y1=0),N1)},N1.scale=function(){return PO.scale(N1)},N1.hue(Q),N1},de1=y,fe1="0123456789abcdef",ge1=Math.floor,pe1=Math.random,me1=function(){for(var k="#",j=0;j<6;j++)k+=fe1.charAt(ge1(pe1()*16));return new de1(k,"hex")},ow=h,NO=Math.log,ze1=Math.pow,Me1=Math.floor,He1=Math.abs,DO=function(k,j){j===void 0&&(j=null);var Q={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return ow(k)==="object"&&(k=Object.values(k)),k.forEach(function(l1){j&&ow(l1)==="object"&&(l1=l1[j]),l1!=null&&!isNaN(l1)&&(Q.values.push(l1),Q.sum+=l1,l1Q.max&&(Q.max=l1),Q.count+=1)}),Q.domain=[Q.min,Q.max],Q.limits=function(l1,B1){return RO(Q,l1,B1)},Q},RO=function(k,j,Q){j===void 0&&(j="equal"),Q===void 0&&(Q=7),ow(k)=="array"&&(k=DO(k));var l1=k.min,B1=k.max,T1=k.values.sort(function(cw,hw){return cw-hw});if(Q===1)return[l1,B1];var y1=[];if(j.substr(0,1)==="c"&&(y1.push(l1),y1.push(B1)),j.substr(0,1)==="e"){y1.push(l1);for(var N1=1;N1 0");var I1=Math.LOG10E*NO(l1),et=Math.LOG10E*NO(B1);y1.push(l1);for(var ht=1;ht200&&(w4=!1)}for(var n3={},E6=0;E6l1?(Q+.05)/(l1+.05):(l1+.05)/(Q+.05)},FO=y,j5=Math.sqrt,De=Math.pow,ye1=Math.min,xe1=Math.max,$O=Math.atan2,UO=Math.abs,dv=Math.cos,WO=Math.sin,Ve1=Math.exp,qO=Math.PI,Ce1=function(k,j,Q,l1,B1){Q===void 0&&(Q=1),l1===void 0&&(l1=1),B1===void 0&&(B1=1);var T1=function(Ko){return 360*Ko/(2*qO)},y1=function(Ko){return 2*qO*Ko/360};k=new FO(k),j=new FO(j);var N1=Array.from(k.lab()),I1=N1[0],et=N1[1],ht=N1[2],kt=Array.from(j.lab()),ft=kt[0],qt=kt[1],$t=kt[2],_2=(I1+ft)/2,E2=j5(De(et,2)+De(ht,2)),Y2=j5(De(qt,2)+De($t,2)),r0=(E2+Y2)/2,w4=.5*(1-j5(De(r0,7)/(De(r0,7)+De(25,7)))),s4=et*(1+w4),yn=qt*(1+w4),G2=j5(De(s4,2)+De(ht,2)),gt=j5(De(yn,2)+De($t,2)),l2=(G2+gt)/2,O2=T1($O(ht,s4)),S2=T1($O($t,yn)),y4=O2>=0?O2:O2+360,R0=S2>=0?S2:S2+360,Z2=UO(y4-R0)>180?(y4+R0+360)/2:(y4+R0)/2,s0=1-.17*dv(y1(Z2-30))+.24*dv(y1(2*Z2))+.32*dv(y1(3*Z2+6))-.2*dv(y1(4*Z2-63)),u0=R0-y4;u0=UO(u0)<=180?u0:R0<=y4?u0+360:u0-360,u0=2*j5(G2*gt)*WO(y1(u0)/2);var m0=ft-I1,or=gt-G2,e3=1+.015*De(_2-50,2)/j5(20+De(_2-50,2)),n3=1+.045*l2,E6=1+.015*l2*s0,P6=30*Ve1(-De((Z2-275)/25,2)),I5=2*j5(De(l2,7)/(De(l2,7)+De(25,7))),Go=-I5*WO(2*y1(P6)),V9=j5(De(m0/(Q*e3),2)+De(or/(l1*n3),2)+De(u0/(B1*E6),2)+Go*(or/(l1*n3))*(u0/(B1*E6)));return xe1(0,ye1(100,V9))},GO=y,be1=function(k,j,Q){Q===void 0&&(Q="lab"),k=new GO(k),j=new GO(j);var l1=k.get(Q),B1=j.get(Q),T1=0;for(var y1 in l1){var N1=(l1[y1]||0)-(B1[y1]||0);T1+=N1*N1}return Math.sqrt(T1)},Le1=y,Be1=function(){for(var k=[],j=arguments.length;j--;)k[j]=arguments[j];try{return new(Function.prototype.bind.apply(Le1,[null].concat(k))),!0}catch{return!1}},KO=b,YO=E1,_e1={cool:function(){return YO([KO.hsl(180,1,.9),KO.hsl(250,.7,.4)])},hot:function(){return YO(["#000","#f00","#ff0","#fff"]).mode("rgb")}},fv={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},lw=0,ZO=Object.keys(fv);lw=e?"100%":"".concat(Math.round(t/e*100),"%")};Nt.calcPercentage=V71;var C71=function(t,e){e||(e=100);for(var n=[],a=t.length,r=[],o=t.length,l=0,c=0,s=0,h,u,v;o--;)c+=n[o]=Math.round(t[o]);for(s=cv&&(l=h);n[l]+=s,c+=s}for(var d=0;d"u"?r&&c?s=r:o&&!c&&(s=o):r?s=c?r:o??l:o?s=a==="light"?o:l:s=l,s}Nt.getStylesBasedOnTheme=b71;var Rv=Date.now(),Iy=[],L71=function(t,e){e===void 0&&(e=!1);var n="".concat(Rv,"--").concat(t);return Iy.filter(function(a){return a===n}).length>(e?1:0)?(Rv=Date.now(),Iy.push("".concat(Rv,"--").concat(t)),"".concat(Rv,"--").concat(t)):(Iy.push(n),n)};Nt.getUniqueId=L71;Nt.DATE_FORMAT="YYYY-MM-DD";Nt.DATETIME_FORMAT="yyyy-MM-dd HH:mm";Nt.DAY_FORMAT="yyyy-MM-dd";var cP;(function(t){var e=C&&C.__makeTemplateObject||function(z,g){return Object.defineProperty?Object.defineProperty(z,"raw",{value:g}):z.raw=g,z},n=C&&C.__assign||function(){return n=Object.assign||function(z){for(var g,w=1,V=arguments.length;w"u"?r&&c?s=r:o&&!c&&(s=o):r?s=c?r:o??l:o?s=a==="light"?o:l:s=l,s}Nt.getStylesBasedOnTheme=b71;var Uv=Date.now(),Iy=[],L71=function(t,e){e===void 0&&(e=!1);var n="".concat(Uv,"--").concat(t);return Iy.filter(function(a){return a===n}).length>(e?1:0)?(Uv=Date.now(),Iy.push("".concat(Uv,"--").concat(t)),"".concat(Uv,"--").concat(t)):(Iy.push(n),n)};Nt.getUniqueId=L71;Nt.DATE_FORMAT="YYYY-MM-DD";Nt.DATETIME_FORMAT="yyyy-MM-dd HH:mm";Nt.DAY_FORMAT="yyyy-MM-dd";var cP;(function(t){var e=C&&C.__makeTemplateObject||function(z,g){return Object.defineProperty?Object.defineProperty(z,"raw",{value:g}):z.raw=g,z},n=C&&C.__assign||function(){return n=Object.assign||function(z){for(var g,w=1,V=arguments.length;w=2.5},[w||b.primaryColor]);return(0,c.jsx)(f,n({lightContrast:L,color:w},x,{className:"wellms-component ".concat(y)},{children:g}))};t.Badge=M;var p=(0,h.default)(t.Badge)(m||(m=e([""],[""])));t.default=(0,h.withTheme)(p);var H,m})(G_);var GK={};(function(t){var e=C&&C.__makeTemplateObject||function(m,z){return Object.defineProperty?Object.defineProperty(m,"raw",{value:z}):m.raw=z,m},n=C&&C.__assign||function(){return n=Object.assign||function(m){for(var z,g=1,w=arguments.length;g=2.5},[w||b.primaryColor]);return(0,c.jsx)(f,n({lightContrast:L,color:w},x,{className:"wellms-component ".concat(y)},{children:g}))};t.Badge=M;var p=(0,h.default)(t.Badge)(m||(m=e([""],[""])));t.default=(0,h.withTheme)(p);var H,m})(G_);var GK={};(function(t){var e=C&&C.__makeTemplateObject||function(m,z){return Object.defineProperty?Object.defineProperty(m,"raw",{value:z}):m.raw=z,m},n=C&&C.__assign||function(){return n=Object.assign||function(m){for(var z,g=1,w=arguments.length;g1?"s":"")+" required, but only "+e.length+" present")}function YK(t){return g1(1,arguments),t instanceof Date||y2(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function k1(t){g1(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||y2(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function wi(t){if(g1(1,arguments),!YK(t)&&typeof t!="number")return!1;var e=k1(t);return!isNaN(Number(e))}function _t(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Ls(t,e){g1(2,arguments);var n=k1(t).getTime(),a=_t(e);return new Date(n+a)}function sc(t,e){g1(2,arguments);var n=_t(e);return Ls(t,-n)}var R71=864e5;function j71(t){g1(1,arguments);var e=k1(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),r=n-a;return Math.floor(r/R71)+1}function uc(t){g1(1,arguments);var e=1,n=k1(t),a=n.getUTCDay(),r=(a=r.getTime()?n+1:e.getTime()>=l.getTime()?n:n-1}function I71(t){g1(1,arguments);var e=ZK(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var a=uc(n);return a}var F71=6048e5;function QK(t){g1(1,arguments);var e=k1(t),n=uc(e).getTime()-I71(e).getTime();return Math.round(n/F71)+1}var XK={};function Ge(){return XK}function $71(t){XK=t}function yi(t,e){var n,a,r,o,l,c,s,h;g1(1,arguments);var u=Ge(),v=_t((n=(a=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&a!==void 0?a:(s=u.locale)===null||s===void 0||(h=s.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=k1(t),f=d.getUTCDay(),M=(f=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=new Date(0);M.setUTCFullYear(v+1,0,f),M.setUTCHours(0,0,0,0);var p=yi(M,e),H=new Date(0);H.setUTCFullYear(v,0,f),H.setUTCHours(0,0,0,0);var m=yi(H,e);return u.getTime()>=p.getTime()?v+1:u.getTime()>=m.getTime()?v:v-1}function U71(t,e){var n,a,r,o,l,c,s,h;g1(1,arguments);var u=Ge(),v=_t((n=(a=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:u.firstWeekContainsDate)!==null&&a!==void 0?a:(s=u.locale)===null||s===void 0||(h=s.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),d=J_(t,e),f=new Date(0);f.setUTCFullYear(d,0,v),f.setUTCHours(0,0,0,0);var M=yi(f,e);return M}var W71=6048e5;function JK(t,e){g1(1,arguments);var n=k1(t),a=yi(n,e).getTime()-U71(n,e).getTime();return Math.round(a/W71)+1}function n2(t,e){for(var n=t<0?"-":"",a=Math.abs(t).toString();a.length0?a:1-a;return n2(n==="yy"?r%100:r,n.length)},M:function(e,n){var a=e.getUTCMonth();return n==="M"?String(a+1):n2(a+1,2)},d:function(e,n){return n2(e.getUTCDate(),n.length)},a:function(e,n){var a=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(e,n){return n2(e.getUTCHours()%12||12,n.length)},H:function(e,n){return n2(e.getUTCHours(),n.length)},m:function(e,n){return n2(e.getUTCMinutes(),n.length)},s:function(e,n){return n2(e.getUTCSeconds(),n.length)},S:function(e,n){var a=n.length,r=e.getUTCMilliseconds(),o=Math.floor(r*Math.pow(10,a-3));return n2(o,n.length)}};const J5=q71;var I6={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},G71={G:function(e,n,a){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return a.era(r,{width:"abbreviated"});case"GGGGG":return a.era(r,{width:"narrow"});case"GGGG":default:return a.era(r,{width:"wide"})}},y:function(e,n,a){if(n==="yo"){var r=e.getUTCFullYear(),o=r>0?r:1-r;return a.ordinalNumber(o,{unit:"year"})}return J5.y(e,n)},Y:function(e,n,a,r){var o=J_(e,r),l=o>0?o:1-o;if(n==="YY"){var c=l%100;return n2(c,2)}return n==="Yo"?a.ordinalNumber(l,{unit:"year"}):n2(l,n.length)},R:function(e,n){var a=ZK(e);return n2(a,n.length)},u:function(e,n){var a=e.getUTCFullYear();return n2(a,n.length)},Q:function(e,n,a){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return n2(r,2);case"Qo":return a.ordinalNumber(r,{unit:"quarter"});case"QQQ":return a.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,a){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return n2(r,2);case"qo":return a.ordinalNumber(r,{unit:"quarter"});case"qqq":return a.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,a){var r=e.getUTCMonth();switch(n){case"M":case"MM":return J5.M(e,n);case"Mo":return a.ordinalNumber(r+1,{unit:"month"});case"MMM":return a.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,a){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return n2(r+1,2);case"Lo":return a.ordinalNumber(r+1,{unit:"month"});case"LLL":return a.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,a,r){var o=JK(e,r);return n==="wo"?a.ordinalNumber(o,{unit:"week"}):n2(o,n.length)},I:function(e,n,a){var r=QK(e);return n==="Io"?a.ordinalNumber(r,{unit:"week"}):n2(r,n.length)},d:function(e,n,a){return n==="do"?a.ordinalNumber(e.getUTCDate(),{unit:"date"}):J5.d(e,n)},D:function(e,n,a){var r=j71(e);return n==="Do"?a.ordinalNumber(r,{unit:"dayOfYear"}):n2(r,n.length)},E:function(e,n,a){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return a.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(r,{width:"short",context:"formatting"});case"EEEE":default:return a.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,a,r){var o=e.getUTCDay(),l=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(l);case"ee":return n2(l,2);case"eo":return a.ordinalNumber(l,{unit:"day"});case"eee":return a.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(o,{width:"short",context:"formatting"});case"eeee":default:return a.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,a,r){var o=e.getUTCDay(),l=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(l);case"cc":return n2(l,n.length);case"co":return a.ordinalNumber(l,{unit:"day"});case"ccc":return a.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(o,{width:"narrow",context:"standalone"});case"cccccc":return a.day(o,{width:"short",context:"standalone"});case"cccc":default:return a.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,a){var r=e.getUTCDay(),o=r===0?7:r;switch(n){case"i":return String(o);case"ii":return n2(o,n.length);case"io":return a.ordinalNumber(o,{unit:"day"});case"iii":return a.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(r,{width:"short",context:"formatting"});case"iiii":default:return a.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,a){var r=e.getUTCHours(),o=r/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,a){var r=e.getUTCHours(),o;switch(r===12?o=I6.noon:r===0?o=I6.midnight:o=r/12>=1?"pm":"am",n){case"b":case"bb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,a){var r=e.getUTCHours(),o;switch(r>=17?o=I6.evening:r>=12?o=I6.afternoon:r>=4?o=I6.morning:o=I6.night,n){case"B":case"BB":case"BBB":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,a){if(n==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),a.ordinalNumber(r,{unit:"hour"})}return J5.h(e,n)},H:function(e,n,a){return n==="Ho"?a.ordinalNumber(e.getUTCHours(),{unit:"hour"}):J5.H(e,n)},K:function(e,n,a){var r=e.getUTCHours()%12;return n==="Ko"?a.ordinalNumber(r,{unit:"hour"}):n2(r,n.length)},k:function(e,n,a){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?a.ordinalNumber(r,{unit:"hour"}):n2(r,n.length)},m:function(e,n,a){return n==="mo"?a.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):J5.m(e,n)},s:function(e,n,a){return n==="so"?a.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):J5.s(e,n)},S:function(e,n){return J5.S(e,n)},X:function(e,n,a,r){var o=r._originalDate||e,l=o.getTimezoneOffset();if(l===0)return"Z";switch(n){case"X":return sP(l);case"XXXX":case"XX":return i8(l);case"XXXXX":case"XXX":default:return i8(l,":")}},x:function(e,n,a,r){var o=r._originalDate||e,l=o.getTimezoneOffset();switch(n){case"x":return sP(l);case"xxxx":case"xx":return i8(l);case"xxxxx":case"xxx":default:return i8(l,":")}},O:function(e,n,a,r){var o=r._originalDate||e,l=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+hP(l,":");case"OOOO":default:return"GMT"+i8(l,":")}},z:function(e,n,a,r){var o=r._originalDate||e,l=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+hP(l,":");case"zzzz":default:return"GMT"+i8(l,":")}},t:function(e,n,a,r){var o=r._originalDate||e,l=Math.floor(o.getTime()/1e3);return n2(l,n.length)},T:function(e,n,a,r){var o=r._originalDate||e,l=o.getTime();return n2(l,n.length)}};function hP(t,e){var n=t>0?"-":"+",a=Math.abs(t),r=Math.floor(a/60),o=a%60;if(o===0)return n+String(r);var l=e||"";return n+String(r)+l+n2(o,2)}function sP(t,e){if(t%60===0){var n=t>0?"-":"+";return n+n2(Math.abs(t)/60,2)}return i8(t,e)}function i8(t,e){var n=e||"",a=t>0?"-":"+",r=Math.abs(t),o=n2(Math.floor(r/60),2),l=n2(r%60,2);return a+o+n+l}var uP=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},tY=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},K71=function(e,n){var a=e.match(/(P+)(p+)?/)||[],r=a[1],o=a[2];if(!o)return uP(e,n);var l;switch(r){case"P":l=n.dateTime({width:"short"});break;case"PP":l=n.dateTime({width:"medium"});break;case"PPP":l=n.dateTime({width:"long"});break;case"PPPP":default:l=n.dateTime({width:"full"});break}return l.replace("{{date}}",uP(r,n)).replace("{{time}}",tY(o,n))},gb={p:tY,P:K71};function mn(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var Y71=["D","DD"],Z71=["YY","YYYY"];function eY(t){return Y71.indexOf(t)!==-1}function nY(t){return Z71.indexOf(t)!==-1}function Hg(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Q71={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},X71=function(e,n,a){var r,o=Q71[e];return typeof o=="string"?r=o:n===1?r=o.one:r=o.other.replace("{{count}}",n.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+r:r+" ago":r};const aY=X71;function vi(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,a=t.formats[n]||t.formats[t.defaultWidth];return a}}var J71={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},th1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},eh1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nh1={date:vi({formats:J71,defaultWidth:"full"}),time:vi({formats:th1,defaultWidth:"full"}),dateTime:vi({formats:eh1,defaultWidth:"full"})};const ah1=nh1;var rh1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ih1=function(e,n,a,r){return rh1[e]};const rY=ih1;function o5(t){return function(e,n){var a=n!=null&&n.context?String(n.context):"standalone",r;if(a==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,l=n!=null&&n.width?String(n.width):o;r=t.formattingValues[l]||t.formattingValues[o]}else{var c=t.defaultWidth,s=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[s]||t.values[c]}var h=t.argumentCallback?t.argumentCallback(e):e;return r[h]}}var oh1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},lh1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ch1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},hh1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},sh1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},uh1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},vh1=function(e,n){var a=Number(e),r=a%100;if(r>20||r<10)switch(r%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},dh1={ordinalNumber:vh1,era:o5({values:oh1,defaultWidth:"wide"}),quarter:o5({values:lh1,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:o5({values:ch1,defaultWidth:"wide"}),day:o5({values:hh1,defaultWidth:"wide"}),dayPeriod:o5({values:sh1,defaultWidth:"wide",formattingValues:uh1,defaultFormattingWidth:"wide"})};const iY=dh1;function l5(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.width,r=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],o=e.match(r);if(!o)return null;var l=o[0],c=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],s=Array.isArray(c)?gh1(c,function(v){return v.test(l)}):fh1(c,function(v){return v.test(l)}),h;h=t.valueCallback?t.valueCallback(s):s,h=n.valueCallback?n.valueCallback(h):h;var u=e.slice(l.length);return{value:h,rest:u}}}function fh1(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function gh1(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},a=e.match(t.matchPattern);if(!a)return null;var r=a[0],o=e.match(t.parsePattern);if(!o)return null;var l=t.valueCallback?t.valueCallback(o[0]):o[0];l=n.valueCallback?n.valueCallback(l):l;var c=e.slice(r.length);return{value:l,rest:c}}}var ph1=/^(\d+)(th|st|nd|rd)?/i,mh1=/\d+/i,zh1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Mh1={any:[/^b/i,/^(a|c)/i]},Hh1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},wh1={any:[/1/i,/2/i,/3/i,/4/i]},yh1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xh1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Vh1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ch1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},bh1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Lh1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Bh1={ordinalNumber:oY({matchPattern:ph1,parsePattern:mh1,valueCallback:function(e){return parseInt(e,10)}}),era:l5({matchPatterns:zh1,defaultMatchWidth:"wide",parsePatterns:Mh1,defaultParseWidth:"any"}),quarter:l5({matchPatterns:Hh1,defaultMatchWidth:"wide",parsePatterns:wh1,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:l5({matchPatterns:yh1,defaultMatchWidth:"wide",parsePatterns:xh1,defaultParseWidth:"any"}),day:l5({matchPatterns:Vh1,defaultMatchWidth:"wide",parsePatterns:Ch1,defaultParseWidth:"any"}),dayPeriod:l5({matchPatterns:bh1,defaultMatchWidth:"any",parsePatterns:Lh1,defaultParseWidth:"any"})};const lY=Bh1;var _h1={code:"en-US",formatDistance:aY,formatLong:ah1,formatRelative:rY,localize:iY,match:lY,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ic=_h1;var Sh1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Th1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Oh1=/^'([^]*?)'?$/,Ah1=/''/g,kh1=/[a-zA-Z]/;function tS(t,e,n){var a,r,o,l,c,s,h,u,v,d,f,M,p,H,m,z,g,w;g1(2,arguments);var V=String(e),y=Ge(),x=(a=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:y.locale)!==null&&a!==void 0?a:Ic,b=_t((o=(l=(c=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(h=n.locale)===null||h===void 0||(u=h.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&c!==void 0?c:y.firstWeekContainsDate)!==null&&l!==void 0?l:(v=y.locale)===null||v===void 0||(d=v.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(b>=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=_t((f=(M=(p=(H=n==null?void 0:n.weekStartsOn)!==null&&H!==void 0?H:n==null||(m=n.locale)===null||m===void 0||(z=m.options)===null||z===void 0?void 0:z.weekStartsOn)!==null&&p!==void 0?p:y.weekStartsOn)!==null&&M!==void 0?M:(g=y.locale)===null||g===void 0||(w=g.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&f!==void 0?f:0);if(!(L>=0&&L<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var B=k1(t);if(!wi(B))throw new RangeError("Invalid time value");var S=mn(B),T=sc(B,S),P={firstWeekContainsDate:b,weekStartsOn:L,locale:x,_originalDate:B},F=V.match(Th1).map(function(q){var $=q[0];if($==="p"||$==="P"){var Q=gb[$];return Q(q,x.formatLong)}return q}).join("").match(Sh1).map(function(q){if(q==="''")return"'";var $=q[0];if($==="'")return Eh1(q);var Q=G71[$];if(Q)return!(n!=null&&n.useAdditionalWeekYearTokens)&&nY(q)&&Hg(q,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&eY(q)&&Hg(q,e,String(t)),Q(T,q,x.localize,P);if($.match(kh1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return q}).join("");return F}function Eh1(t){var e=t.match(Oh1);return e?e[1].replace(Ah1,"'"):t}const Ph1=Object.freeze(Object.defineProperty({__proto__:null,default:tS},Symbol.toStringTag,{value:"Module"})),Nh1=le(Ph1);function vc(t){g1(1,arguments);var e=k1(t);return e.setHours(0,0,0,0),e}function Bs(t,e){g1(2,arguments);var n=vc(t),a=vc(e);return n.getTime()===a.getTime()}function cY(t){return g1(1,arguments),Bs(t,Date.now())}const Dh1=Object.freeze(Object.defineProperty({__proto__:null,default:cY},Symbol.toStringTag,{value:"Module"})),Rh1=le(Dh1);var vP;function hY(){return vP||(vP=1,function(t){var e=C&&C.__makeTemplateObject||function(g,w){return Object.defineProperty?Object.defineProperty(g,"raw",{value:w}):g.raw=w,g},n=C&&C.__assign||function(){return n=Object.assign||function(g){for(var w,V=1,y=arguments.length;V1?"s":"")+" required, but only "+e.length+" present")}function YK(t){return g1(1,arguments),t instanceof Date||y2(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function A1(t){g1(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||y2(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function yi(t){if(g1(1,arguments),!YK(t)&&typeof t!="number")return!1;var e=A1(t);return!isNaN(Number(e))}function _t(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function xs(t,e){g1(2,arguments);var n=A1(t).getTime(),a=_t(e);return new Date(n+a)}function uc(t,e){g1(2,arguments);var n=_t(e);return xs(t,-n)}var R71=864e5;function j71(t){g1(1,arguments);var e=A1(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),r=n-a;return Math.floor(r/R71)+1}function vc(t){g1(1,arguments);var e=1,n=A1(t),a=n.getUTCDay(),r=(a=r.getTime()?n+1:e.getTime()>=l.getTime()?n:n-1}function I71(t){g1(1,arguments);var e=ZK(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var a=vc(n);return a}var F71=6048e5;function QK(t){g1(1,arguments);var e=A1(t),n=vc(e).getTime()-I71(e).getTime();return Math.round(n/F71)+1}var XK={};function Ge(){return XK}function $71(t){XK=t}function xi(t,e){var n,a,r,o,l,c,s,h;g1(1,arguments);var u=Ge(),v=_t((n=(a=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&a!==void 0?a:(s=u.locale)===null||s===void 0||(h=s.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=A1(t),f=d.getUTCDay(),M=(f=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=new Date(0);M.setUTCFullYear(v+1,0,f),M.setUTCHours(0,0,0,0);var p=xi(M,e),H=new Date(0);H.setUTCFullYear(v,0,f),H.setUTCHours(0,0,0,0);var m=xi(H,e);return u.getTime()>=p.getTime()?v+1:u.getTime()>=m.getTime()?v:v-1}function U71(t,e){var n,a,r,o,l,c,s,h;g1(1,arguments);var u=Ge(),v=_t((n=(a=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:u.firstWeekContainsDate)!==null&&a!==void 0?a:(s=u.locale)===null||s===void 0||(h=s.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),d=J_(t,e),f=new Date(0);f.setUTCFullYear(d,0,v),f.setUTCHours(0,0,0,0);var M=xi(f,e);return M}var W71=6048e5;function JK(t,e){g1(1,arguments);var n=A1(t),a=xi(n,e).getTime()-U71(n,e).getTime();return Math.round(a/W71)+1}function n2(t,e){for(var n=t<0?"-":"",a=Math.abs(t).toString();a.length0?a:1-a;return n2(n==="yy"?r%100:r,n.length)},M:function(e,n){var a=e.getUTCMonth();return n==="M"?String(a+1):n2(a+1,2)},d:function(e,n){return n2(e.getUTCDate(),n.length)},a:function(e,n){var a=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(e,n){return n2(e.getUTCHours()%12||12,n.length)},H:function(e,n){return n2(e.getUTCHours(),n.length)},m:function(e,n){return n2(e.getUTCMinutes(),n.length)},s:function(e,n){return n2(e.getUTCSeconds(),n.length)},S:function(e,n){var a=n.length,r=e.getUTCMilliseconds(),o=Math.floor(r*Math.pow(10,a-3));return n2(o,n.length)}};const ti=q71;var F6={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},G71={G:function(e,n,a){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return a.era(r,{width:"abbreviated"});case"GGGGG":return a.era(r,{width:"narrow"});case"GGGG":default:return a.era(r,{width:"wide"})}},y:function(e,n,a){if(n==="yo"){var r=e.getUTCFullYear(),o=r>0?r:1-r;return a.ordinalNumber(o,{unit:"year"})}return ti.y(e,n)},Y:function(e,n,a,r){var o=J_(e,r),l=o>0?o:1-o;if(n==="YY"){var c=l%100;return n2(c,2)}return n==="Yo"?a.ordinalNumber(l,{unit:"year"}):n2(l,n.length)},R:function(e,n){var a=ZK(e);return n2(a,n.length)},u:function(e,n){var a=e.getUTCFullYear();return n2(a,n.length)},Q:function(e,n,a){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return n2(r,2);case"Qo":return a.ordinalNumber(r,{unit:"quarter"});case"QQQ":return a.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,a){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return n2(r,2);case"qo":return a.ordinalNumber(r,{unit:"quarter"});case"qqq":return a.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,a){var r=e.getUTCMonth();switch(n){case"M":case"MM":return ti.M(e,n);case"Mo":return a.ordinalNumber(r+1,{unit:"month"});case"MMM":return a.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,a){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return n2(r+1,2);case"Lo":return a.ordinalNumber(r+1,{unit:"month"});case"LLL":return a.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,a,r){var o=JK(e,r);return n==="wo"?a.ordinalNumber(o,{unit:"week"}):n2(o,n.length)},I:function(e,n,a){var r=QK(e);return n==="Io"?a.ordinalNumber(r,{unit:"week"}):n2(r,n.length)},d:function(e,n,a){return n==="do"?a.ordinalNumber(e.getUTCDate(),{unit:"date"}):ti.d(e,n)},D:function(e,n,a){var r=j71(e);return n==="Do"?a.ordinalNumber(r,{unit:"dayOfYear"}):n2(r,n.length)},E:function(e,n,a){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return a.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(r,{width:"short",context:"formatting"});case"EEEE":default:return a.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,a,r){var o=e.getUTCDay(),l=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(l);case"ee":return n2(l,2);case"eo":return a.ordinalNumber(l,{unit:"day"});case"eee":return a.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(o,{width:"short",context:"formatting"});case"eeee":default:return a.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,a,r){var o=e.getUTCDay(),l=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(l);case"cc":return n2(l,n.length);case"co":return a.ordinalNumber(l,{unit:"day"});case"ccc":return a.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(o,{width:"narrow",context:"standalone"});case"cccccc":return a.day(o,{width:"short",context:"standalone"});case"cccc":default:return a.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,a){var r=e.getUTCDay(),o=r===0?7:r;switch(n){case"i":return String(o);case"ii":return n2(o,n.length);case"io":return a.ordinalNumber(o,{unit:"day"});case"iii":return a.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(r,{width:"short",context:"formatting"});case"iiii":default:return a.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,a){var r=e.getUTCHours(),o=r/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,a){var r=e.getUTCHours(),o;switch(r===12?o=F6.noon:r===0?o=F6.midnight:o=r/12>=1?"pm":"am",n){case"b":case"bb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,a){var r=e.getUTCHours(),o;switch(r>=17?o=F6.evening:r>=12?o=F6.afternoon:r>=4?o=F6.morning:o=F6.night,n){case"B":case"BB":case"BBB":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,a){if(n==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),a.ordinalNumber(r,{unit:"hour"})}return ti.h(e,n)},H:function(e,n,a){return n==="Ho"?a.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ti.H(e,n)},K:function(e,n,a){var r=e.getUTCHours()%12;return n==="Ko"?a.ordinalNumber(r,{unit:"hour"}):n2(r,n.length)},k:function(e,n,a){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?a.ordinalNumber(r,{unit:"hour"}):n2(r,n.length)},m:function(e,n,a){return n==="mo"?a.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ti.m(e,n)},s:function(e,n,a){return n==="so"?a.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ti.s(e,n)},S:function(e,n){return ti.S(e,n)},X:function(e,n,a,r){var o=r._originalDate||e,l=o.getTimezoneOffset();if(l===0)return"Z";switch(n){case"X":return sP(l);case"XXXX":case"XX":return l8(l);case"XXXXX":case"XXX":default:return l8(l,":")}},x:function(e,n,a,r){var o=r._originalDate||e,l=o.getTimezoneOffset();switch(n){case"x":return sP(l);case"xxxx":case"xx":return l8(l);case"xxxxx":case"xxx":default:return l8(l,":")}},O:function(e,n,a,r){var o=r._originalDate||e,l=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+hP(l,":");case"OOOO":default:return"GMT"+l8(l,":")}},z:function(e,n,a,r){var o=r._originalDate||e,l=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+hP(l,":");case"zzzz":default:return"GMT"+l8(l,":")}},t:function(e,n,a,r){var o=r._originalDate||e,l=Math.floor(o.getTime()/1e3);return n2(l,n.length)},T:function(e,n,a,r){var o=r._originalDate||e,l=o.getTime();return n2(l,n.length)}};function hP(t,e){var n=t>0?"-":"+",a=Math.abs(t),r=Math.floor(a/60),o=a%60;if(o===0)return n+String(r);var l=e||"";return n+String(r)+l+n2(o,2)}function sP(t,e){if(t%60===0){var n=t>0?"-":"+";return n+n2(Math.abs(t)/60,2)}return l8(t,e)}function l8(t,e){var n=e||"",a=t>0?"-":"+",r=Math.abs(t),o=n2(Math.floor(r/60),2),l=n2(r%60,2);return a+o+n+l}var uP=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},tY=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},K71=function(e,n){var a=e.match(/(P+)(p+)?/)||[],r=a[1],o=a[2];if(!o)return uP(e,n);var l;switch(r){case"P":l=n.dateTime({width:"short"});break;case"PP":l=n.dateTime({width:"medium"});break;case"PPP":l=n.dateTime({width:"long"});break;case"PPPP":default:l=n.dateTime({width:"full"});break}return l.replace("{{date}}",uP(r,n)).replace("{{time}}",tY(o,n))},gb={p:tY,P:K71};function mn(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var Y71=["D","DD"],Z71=["YY","YYYY"];function eY(t){return Y71.indexOf(t)!==-1}function nY(t){return Z71.indexOf(t)!==-1}function Cg(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Q71={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},X71=function(e,n,a){var r,o=Q71[e];return typeof o=="string"?r=o:n===1?r=o.one:r=o.other.replace("{{count}}",n.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+r:r+" ago":r};const aY=X71;function di(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,a=t.formats[n]||t.formats[t.defaultWidth];return a}}var J71={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},th1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},eh1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nh1={date:di({formats:J71,defaultWidth:"full"}),time:di({formats:th1,defaultWidth:"full"}),dateTime:di({formats:eh1,defaultWidth:"full"})};const ah1=nh1;var rh1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ih1=function(e,n,a,r){return rh1[e]};const rY=ih1;function i5(t){return function(e,n){var a=n!=null&&n.context?String(n.context):"standalone",r;if(a==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,l=n!=null&&n.width?String(n.width):o;r=t.formattingValues[l]||t.formattingValues[o]}else{var c=t.defaultWidth,s=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[s]||t.values[c]}var h=t.argumentCallback?t.argumentCallback(e):e;return r[h]}}var oh1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},lh1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ch1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},hh1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},sh1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},uh1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},vh1=function(e,n){var a=Number(e),r=a%100;if(r>20||r<10)switch(r%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},dh1={ordinalNumber:vh1,era:i5({values:oh1,defaultWidth:"wide"}),quarter:i5({values:lh1,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:i5({values:ch1,defaultWidth:"wide"}),day:i5({values:hh1,defaultWidth:"wide"}),dayPeriod:i5({values:sh1,defaultWidth:"wide",formattingValues:uh1,defaultFormattingWidth:"wide"})};const iY=dh1;function o5(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.width,r=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],o=e.match(r);if(!o)return null;var l=o[0],c=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],s=Array.isArray(c)?gh1(c,function(v){return v.test(l)}):fh1(c,function(v){return v.test(l)}),h;h=t.valueCallback?t.valueCallback(s):s,h=n.valueCallback?n.valueCallback(h):h;var u=e.slice(l.length);return{value:h,rest:u}}}function fh1(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function gh1(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},a=e.match(t.matchPattern);if(!a)return null;var r=a[0],o=e.match(t.parsePattern);if(!o)return null;var l=t.valueCallback?t.valueCallback(o[0]):o[0];l=n.valueCallback?n.valueCallback(l):l;var c=e.slice(r.length);return{value:l,rest:c}}}var ph1=/^(\d+)(th|st|nd|rd)?/i,mh1=/\d+/i,zh1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Mh1={any:[/^b/i,/^(a|c)/i]},Hh1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},wh1={any:[/1/i,/2/i,/3/i,/4/i]},yh1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xh1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Vh1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ch1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},bh1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Lh1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Bh1={ordinalNumber:oY({matchPattern:ph1,parsePattern:mh1,valueCallback:function(e){return parseInt(e,10)}}),era:o5({matchPatterns:zh1,defaultMatchWidth:"wide",parsePatterns:Mh1,defaultParseWidth:"any"}),quarter:o5({matchPatterns:Hh1,defaultMatchWidth:"wide",parsePatterns:wh1,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:o5({matchPatterns:yh1,defaultMatchWidth:"wide",parsePatterns:xh1,defaultParseWidth:"any"}),day:o5({matchPatterns:Vh1,defaultMatchWidth:"wide",parsePatterns:Ch1,defaultParseWidth:"any"}),dayPeriod:o5({matchPatterns:bh1,defaultMatchWidth:"any",parsePatterns:Lh1,defaultParseWidth:"any"})};const lY=Bh1;var _h1={code:"en-US",formatDistance:aY,formatLong:ah1,formatRelative:rY,localize:iY,match:lY,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Fc=_h1;var Sh1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Th1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Oh1=/^'([^]*?)'?$/,Ah1=/''/g,kh1=/[a-zA-Z]/;function tS(t,e,n){var a,r,o,l,c,s,h,u,v,d,f,M,p,H,m,z,g,w;g1(2,arguments);var V=String(e),y=Ge(),x=(a=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:y.locale)!==null&&a!==void 0?a:Fc,b=_t((o=(l=(c=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(h=n.locale)===null||h===void 0||(u=h.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&c!==void 0?c:y.firstWeekContainsDate)!==null&&l!==void 0?l:(v=y.locale)===null||v===void 0||(d=v.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(b>=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=_t((f=(M=(p=(H=n==null?void 0:n.weekStartsOn)!==null&&H!==void 0?H:n==null||(m=n.locale)===null||m===void 0||(z=m.options)===null||z===void 0?void 0:z.weekStartsOn)!==null&&p!==void 0?p:y.weekStartsOn)!==null&&M!==void 0?M:(g=y.locale)===null||g===void 0||(w=g.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&f!==void 0?f:0);if(!(L>=0&&L<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var B=A1(t);if(!yi(B))throw new RangeError("Invalid time value");var S=mn(B),T=uc(B,S),P={firstWeekContainsDate:b,weekStartsOn:L,locale:x,_originalDate:B},F=V.match(Th1).map(function(q){var $=q[0];if($==="p"||$==="P"){var Z=gb[$];return Z(q,x.formatLong)}return q}).join("").match(Sh1).map(function(q){if(q==="''")return"'";var $=q[0];if($==="'")return Eh1(q);var Z=G71[$];if(Z)return!(n!=null&&n.useAdditionalWeekYearTokens)&&nY(q)&&Cg(q,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&eY(q)&&Cg(q,e,String(t)),Z(T,q,x.localize,P);if($.match(kh1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return q}).join("");return F}function Eh1(t){var e=t.match(Oh1);return e?e[1].replace(Ah1,"'"):t}const Ph1=Object.freeze(Object.defineProperty({__proto__:null,default:tS},Symbol.toStringTag,{value:"Module"})),Nh1=le(Ph1);function dc(t){g1(1,arguments);var e=A1(t);return e.setHours(0,0,0,0),e}function Vs(t,e){g1(2,arguments);var n=dc(t),a=dc(e);return n.getTime()===a.getTime()}function cY(t){return g1(1,arguments),Vs(t,Date.now())}const Dh1=Object.freeze(Object.defineProperty({__proto__:null,default:cY},Symbol.toStringTag,{value:"Module"})),Rh1=le(Dh1);var vP;function hY(){return vP||(vP=1,function(t){var e=C&&C.__makeTemplateObject||function(g,w){return Object.defineProperty?Object.defineProperty(g,"raw",{value:w}):g.raw=w,g},n=C&&C.__assign||function(){return n=Object.assign||function(g){for(var w,V=1,y=arguments.length;Vy?"".concat(P.substring(0,y),"..."):P}))]}),(0,c.jsx)(v.Text,n({size:"12",className:"date"},{children:(0,h.default)(F,(0,u.default)(F)?"hh:mm":"dd.MM.yyyy")}))]}))};t.Notification=M,t.default=(0,s.withTheme)((0,s.default)(t.Notification)(z||(z=e([""],[""]))));var p,H,m,z}(Fy)),Fy}var Um={};(function(t){var e=C&&C.__makeTemplateObject||function(p,H){return Object.defineProperty?Object.defineProperty(p,"raw",{value:H}):p.raw=H,p},n=C&&C.__assign||function(){return n=Object.assign||function(p){for(var H,m=1,z=arguments.length;my?"".concat(P.substring(0,y),"..."):P}))]}),(0,c.jsx)(v.Text,n({size:"12",className:"date"},{children:(0,h.default)(F,(0,u.default)(F)?"hh:mm":"dd.MM.yyyy")}))]}))};t.Notification=M,t.default=(0,s.withTheme)((0,s.default)(t.Notification)(z||(z=e([""],[""]))));var p,H,m,z}(Fy)),Fy}var Ym={};(function(t){var e=C&&C.__makeTemplateObject||function(p,H){return Object.defineProperty?Object.defineProperty(p,"raw",{value:H}):p.raw=H,p},n=C&&C.__assign||function(){return n=Object.assign||function(p){for(var H,m=1,z=arguments.length;m<]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function dP(t){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=t.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(e.name=n[1],(Zh1[n[1]]||t.charAt(t.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var a=t.indexOf("-->");return{type:"comment",comment:a!==-1?t.slice(4,a):""}}for(var r=new RegExp(Qh1),o=null;(o=r.exec(t))!==null;)if(o[0].trim())if(o[1]){var l=o[1].trim(),c=[l,""];l.indexOf("=")>-1&&(c=l.split("=")),e.attrs[c[0]]=c[1],r.lastIndex--}else o[2]&&(e.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return e}var Xh1=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Jh1=/^\s*$/,ts1=Object.create(null);function sY(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?function(n){var a=[];for(var r in n)a.push(r+'="'+n[r]+'"');return a.length?" "+a.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(sY,"")+"";case"comment":return t+""}}var es1={parse:function(t,e){e||(e={}),e.components||(e.components=ts1);var n,a=[],r=[],o=-1,l=!1;if(t.indexOf("<")!==0){var c=t.indexOf("<");a.push({type:"text",content:c===-1?t:t.substring(0,c)})}return t.replace(Xh1,function(s,h){if(l){if(s!=="")return;l=!1}var u,v=s.charAt(1)!=="/",d=s.startsWith("");return{type:"comment",comment:a!==-1?t.slice(4,a):""}}for(var r=new RegExp(Qh1),o=null;(o=r.exec(t))!==null;)if(o[0].trim())if(o[1]){var l=o[1].trim(),c=[l,""];l.indexOf("=")>-1&&(c=l.split("=")),e.attrs[c[0]]=c[1],r.lastIndex--}else o[2]&&(e.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return e}var Xh1=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Jh1=/^\s*$/,ts1=Object.create(null);function sY(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?function(n){var a=[];for(var r in n)a.push(r+'="'+n[r]+'"');return a.length?" "+a.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(sY,"")+"";case"comment":return t+""}}var es1={parse:function(t,e){e||(e={}),e.components||(e.components=ts1);var n,a=[],r=[],o=-1,l=!1;if(t.indexOf("<")!==0){var c=t.indexOf("<");a.push({type:"text",content:c===-1?t:t.substring(0,c)})}return t.replace(Xh1,function(s,h){if(l){if(s!=="")return;l=!1}var u,v=s.charAt(1)!=="/",d=s.startsWith("